Change the emc disk drive letter in linux
For detailed environment description, see the previous article (http://blog.chinaunix.net/uid-28255964-id-5753714.html), this article mainly introduces the linux system, change the disk Minor #
View the uuid on both sides of the Disk
Node 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
Node 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
We can see from the above that the emcpowerd of the two nodes and the uuid of emcpowere are reversed. Therefore, the drive letters of emcpowerd and emcpowere are exchanged on the first node to ensure consistency between the two nodes.
The following adjustment steps
You can use the following command to view available Minor numbers.
[Root @ vincent1 database] # emcpadm getfreepseudos-n 5-B 20
Start to adjust. First, release the Minor # occupied by emcpowerd.
[Root @ vincent1 ~] # Emcpadmrenamepseudo-s 48-t 128
Adjust emcpowere to emcpowerd
[Root @ vincent1 ~] # Emcpadmrenamepseudo-s 64-t 48
Replace Minor # Of emcpowerd with 48
[Root @ vincent1 ~] # Emcpadmrenamepseudo-s 128-t 64
Minor # Of emcpowerd and emcpowere has been exchanged.
[Root @ vincent1 ~] # Emcpadmgetusedpseudos
PowerPath pseudo do device namesin use:
Pseudo DeviceName Major # Minor #
Emcpowera120 0
Emcpowerb120 16
Emcpowerc120 32
Emcpowerd120 48
Emcpowere 12064
Emcpowerf120 80
Emcpowerg120 96
Emcpowerh 120112
View the uuid of the disks on both sides again
[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
Node 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
Consistent on both sides