具體環境描述請見上一篇文章(http://blog.chinaunix.net/uid-28255964-id-5753714.html),本文章主要介紹linux系統下,更改磁盤Minor#
查看兩邊識別到磁盤的uuid
節點2
[root@vincent2 ~]#/sbin/scsi_id -g -u -d /dev/emcpowera
36006016007b04000184b075892a4d03b
[root@vincent2 ~]#/sbin/scsi_id -g -u -d /dev/emcpowerb
36006016007b04000184b0758ffb5cf84
[root@vincent2 ~]#/sbin/scsi_id -g -u -d /dev/emcpowerc
36006016007b04000174b0758c7d16373
[root@vincent2 ~]#/sbin/scsi_id -g -u -d /dev/emcpowerd
36006016007b04000164b07580ec61c93
[root@vincent2 ~]#/sbin/scsi_id -g -u -d /dev/emcpowere
36006016007b04000174b0758ece00fd7
[root@vincent2 ~]#/sbin/scsi_id -g -u -d /dev/emcpowerf
36006016007b04000154b07582d81834a
[root@vincent2 ~]#/sbin/scsi_id -g -u -d /dev/emcpowerg
36006016007b04000154b075826f1cdf7
[root@vincent2 ~]#/sbin/scsi_id -g -u -d /dev/emcpowerh
36006016007b04000144b07580d38d995
節點1
[root@vincent1 ~]#/sbin/scsi_id -g -u -d /dev/emcpowera
36006016007b04000184b075892a4d03b
[root@vincent1 ~]#/sbin/scsi_id -g -u -d /dev/emcpowerb
36006016007b04000184b0758ffb5cf84
[root@vincent1 ~]#/sbin/scsi_id -g -u -d /dev/emcpowerc
36006016007b04000174b0758c7d16373
[root@vincent1 ~]#/sbin/scsi_id -g -u -d /dev/emcpowerd
36006016007b04000174b0758ece00fd7
[root@vincent1 ~]#/sbin/scsi_id -g -u -d /dev/emcpowere
36006016007b04000164b07580ec61c93
[root@vincent1 ~]# /sbin/scsi_id-g -u -d /dev/emcpowerf
36006016007b04000154b07582d81834a
[root@vincent1 ~]#/sbin/scsi_id -g -u -d /dev/emcpowerg
36006016007b04000154b075826f1cdf7
[root@vincent1 ~]#/sbin/scsi_id -g -u -d /dev/emcpowerh
36006016007b04000144b07580d38d995
從上面可以看出兩個節點的emcpowerd和emcpowere的uuid反了,所以在1節點上將emcpowerd和emcpowere的盤符互換,以達到兩邊保持一致
下面的調整的步驟
可以使用下面的命令查看可用Minor號
[root@vincent1 database]#emcpadm getfreepseudos -n 5 -b 20
開始調整,首先將emcpowerd占用的Minor#釋放出來
[root@vincent1 ~]# emcpadmrenamepseudo -s 48 -t 128
將emcpowere調整為emcpowerd
[root@vincent1 ~]# emcpadmrenamepseudo -s 64 -t 48
將emcpowerd的Minor#換成48
[root@vincent1 ~]# emcpadmrenamepseudo -s 128 -t 64
到此emcpowerd和emcpowere的Minor#交換完畢
[root@vincent1 ~]# emcpadmgetusedpseudos
PowerPath pseudo device namesin use:
Pseudo DeviceName Major# Minor#
emcpowera120 0
emcpowerb120 16
emcpowerc120 32
emcpowerd120 48
emcpowere 12064
emcpowerf120 80
emcpowerg120 96
emcpowerh 120112
再次查看兩邊磁盤的uuid
[root@vincent1 ~]#/sbin/scsi_id -g -u -d /dev/emcpowera
36006016007b04000184b075892a4d03b
[root@vincent1 ~]# /sbin/scsi_id-g -u -d /dev/emcpowerb
36006016007b04000184b0758ffb5cf84
[root@vincent1 ~]#/sbin/scsi_id -g -u -d /dev/emcpowerc
36006016007b04000174b0758c7d16373
[root@vincent1 ~]#/sbin/scsi_id -g -u -d /dev/emcpowerd
36006016007b04000164b07580ec61c93
[root@vincent1 ~]#/sbin/scsi_id -g -u -d /dev/emcpowere
36006016007b04000174b0758ece00fd7
[root@vincent1 ~]#/sbin/scsi_id -g -u -d /dev/emcpowerf
36006016007b04000154b07582d81834a
[root@vincent1 ~]#/sbin/scsi_id -g -u -d /dev/emcpowerg
36006016007b04000154b075826f1cdf7
[root@vincent1 ~]#/sbin/scsi_id -g -u -d /dev/emcpowerh
36006016007b04000144b07580d38d995
節點2
[root@vincent2 ~]#/sbin/scsi_id -g -u -d /dev/emcpowera
36006016007b04000184b075892a4d03b
[root@vincent2 ~]#/sbin/scsi_id -g -u -d /dev/emcpowerb
36006016007b04000184b0758ffb5cf84
[root@vincent2 ~]#/sbin/scsi_id -g -u -d /dev/emcpowerc
36006016007b04000174b0758c7d16373
[root@vincent2 ~]#/sbin/scsi_id -g -u -d /dev/emcpowerd
36006016007b04000164b07580ec61c93
[root@vincent2 ~]#/sbin/scsi_id -g -u -d /dev/emcpowere
36006016007b04000174b0758ece00fd7
[root@vincent2 ~]#/sbin/scsi_id -g -u -d /dev/emcpowerf
36006016007b04000154b07582d81834a
[root@vincent2 ~]#/sbin/scsi_id -g -u -d /dev/emcpowerg
36006016007b04000154b075826f1cdf7
[root@vincent2 ~]#/sbin/scsi_id -g -u -d /dev/emcpowerh
36006016007b04000144b07580d38d995
兩邊一致