linux硬盘盘符更改,linux更改emc磁盘盘符

具体环境描述请见上一篇文章(http://blog.chinaunix.net/uid-28255964-id-5753714.html),本文章主要介绍linux系统下,更改磁盘Minor#查看两边识别到磁盘的uuid节点2[root@vincent2 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowera36006016007b04000184b075892a4d03b[root@vincent2 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowerb36006016007b04000184b0758ffb5cf84[root@vincent2 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowerc36006016007b04000174b0758c7d16373[root@vincent2 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowerd36006016007b04000164b07580ec61c93[root@vincent2 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowere36006016007b04000174b0758ece00fd7[root@vincent2 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowerf36006016007b04000154b07582d81834a[root@vincent2 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowerg36006016007b04000154b075826f1cdf7[root@vincent2 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowerh36006016007b04000144b07580d38d995节点1[root@vincent1 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowera36006016007b04000184b075892a4d03b[root@vincent1 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowerb36006016007b04000184b0758ffb5cf84[root@vincent1 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowerc36006016007b04000174b0758c7d16373[root@vincent1 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowerd36006016007b04000174b0758ece00fd7[root@vincent1 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowere36006016007b04000164b07580ec61c93[root@vincent1 ~]# /sbin/scsi_id

-g -u -d /dev/emcpowerf36006016007b04000154b07582d81834a[root@vincent1 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowerg36006016007b04000154b075826f1cdf7[root@vincent1 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowerh36006016007b04000144b07580d38d995从上面可以看出两个节点的emcpowerd和emcpowere的uuid反了,所以在1节点上将emcpowerd和emcpowere的盘符互换,以达到两边保持一致下面的调整的步骤可以使用下面的命令查看可用Minor号[root@vincent1 database]#

emcpadm getfreepseudos -n 5 -b 20开始调整,首先将emcpowerd占用的Minor#释放出来[root@vincent1 ~]# emcpadm

renamepseudo -s 48 -t 128将emcpowere调整为emcpowerd[root@vincent1 ~]# emcpadm

renamepseudo -s 64 -t 48将emcpowerd的Minor#换成48[root@vincent1 ~]# emcpadm

renamepseudo -s 128 -t 64到此emcpowerd和emcpowere的Minor#交换完毕[root@vincent1 ~]# emcpadm

getusedpseudosPowerPath pseudo device names

in use:Pseudo Device

Name      Major# Minor#emcpowera

120      0emcpowerb

120     16emcpowerc

120     32emcpowerd

120     48emcpowere         120

64emcpowerf

120     80emcpowerg

120     96emcpowerh         120

112再次查看两边磁盘的uuid[root@vincent1 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowera36006016007b04000184b075892a4d03b[root@vincent1 ~]# /sbin/scsi_id

-g -u -d /dev/emcpowerb36006016007b04000184b0758ffb5cf84[root@vincent1 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowerc36006016007b04000174b0758c7d16373[root@vincent1 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowerd36006016007b04000164b07580ec61c93[root@vincent1 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowere36006016007b04000174b0758ece00fd7[root@vincent1 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowerf36006016007b04000154b07582d81834a[root@vincent1 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowerg36006016007b04000154b075826f1cdf7[root@vincent1 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowerh36006016007b04000144b07580d38d995节点2[root@vincent2 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowera36006016007b04000184b075892a4d03b[root@vincent2 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowerb36006016007b04000184b0758ffb5cf84[root@vincent2 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowerc36006016007b04000174b0758c7d16373[root@vincent2 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowerd36006016007b04000164b07580ec61c93[root@vincent2 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowere36006016007b04000174b0758ece00fd7[root@vincent2 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowerf36006016007b04000154b07582d81834a[root@vincent2 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowerg36006016007b04000154b075826f1cdf7[root@vincent2 ~]#

/sbin/scsi_id -g -u -d /dev/emcpowerh36006016007b04000144b07580d38d995两边一致

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值