![]() | Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition | ||
|
|
![]() |
||||||||||||
Solution Type Technical Instruction Sure Solution 1011782.1 : How to Replace a Failed Disk in an A5X00 array which is under Veritas Volume Manager Control
PreviouslyPublishedAs 216147 Oracle Confidential INTERNAL - Do not distribute to customer (OracleConfidential). Reason: no longer supported by oracle Applies to:Veritas Volume Manager (VxVM) SoftwareAll Platforms GoalThis document provides a working example of how to replace a failed Fix
# luxadm display PHOTON DISK STATUS SLOT FRONT DISKS (Node WWN) 0 On (O.K.) 20000020370f441b 1 Not Installed 2 On (O.K.) 2000002037269c13 3 Not Installed 4 On (O.K.) 20000020370f3c05 5 On (O.K.) 20000020370f4166 6 On (O.K.) 20000020370f46c5 7 On (O.K.) 20000020370f452a 8 On (O.K.) 20000020370f384b 9 Not Installed 10 On (O.K.) 20000020370f46f2 # vxdisk list DEVICE TYPE DISK GROUP STATUS c2t0d0s2 auto:sliced disk01 testdf online c2t2d0s2 auto:sliced disk02 testdf online # vxprint -ht dm disk01 c2t0d0s2 auto 67972 17610256 - dm disk02 c2t2d0s2 auto 67972 17610256 - v vol01 - ENABLED ACTIVE 1048576 SELECT - fsgen pl vol01-01 vol01 ENABLED ACTIVE 1048576 CONCAT - RW sd disk01-01 vol01-01 disk01 0 1048576 0 c2t0d0 ENA pl vol01-02 vol01 ENABLED ACTIVE 1048576 CONCAT - RW sd disk02-01 vol01-02 disk02 0 1048576 0 c2t2d0 ENA The disk "PHOTON, FRONT DISK 2" fails. This is device c2t2d0 with
a wwpn of 2000002037269c13. Notice how the outputs from the previous commands have changed. # luxadm display PHOTON DISK STATUS SLOT FRONT DISKS (Node WWN) 0 On (O.K.) 20000020370f441b 1 Not Installed 2 On (Bypassed:AB) 3 Not Installed 4 On (O.K.) 20000020370f3c05 5 On (O.K.) 20000020370f4166 6 On (O.K.) 20000020370f46c5 7 On (O.K.) 20000020370f452a 8 On (O.K.) 20000020370f384b 9 Not Installed 10 On (O.K.) 20000020370f46f2 # vxdisk list NEXT, WE WILL REPLACE THE DISK IN THE A5X00 # luxadm -e offline /dev/rdsk/c2t2d0s2 # luxadm remove_device -F PHOTON,f2 Al alternative command to removing the device by "Enclosure name / slot location" is # luxadm remove_device -F /dev/rdsk/c2t2d0s2 The list of devices which will be removed is: 1: Box Name: "PHOTON" front slot 2 Node WWN: 2000002037269c13 Device Type:Disk device Device Paths: /dev/rdsk/c2t2d0s2 /dev/rdsk/c3t2d0s2 stopping: Drive in "PHOTON" front slot 2....Done offlining: Drive in "PHOTON" front slot 2....Done Hit <Return> after removing the device(s). Logical Nodes being removed under /dev/dsk/ and /dev/rdsk: c3t2d0s2 c2t2d0s2 PHYSICALLY REPLACE THE DISK. # luxadm insert_device PHOTON,f2 As an alternative to specifying the enclosure name and slot, you may also run... # luxadm insert_device Notice: PHOTON,f2 may already be present. The list of devices which will be inserted is: 1: Box Name: "PHOTON" front slot 2 Please verify the above list of devices and then enter 'c' or <CR> to Continue or 'q' to Quit. [Default: c]: Hit <Return> after inserting the device(s). Drive in Box Name "PHOTON" front slot 2 Logical Nodes under /dev/dsk and /dev/rdsk : c2t2d0s2 c3t2d0s2 # luxadm display PHOTON DISK STATUS SLOT FRONT DISKS (Node WWN) 0 On (O.K.) 20000020370f441b 1 Not Installed 2 On (O.K.) 20000020370f426e 3 Not Installed 4 On (O.K.) 20000020370f3c05 5 On (O.K.) 20000020370f4166 6 On (O.K.) 20000020370f46c5 7 On (O.K.) 20000020370f452a 8 On (O.K.) 20000020370f384b 9 Not Installed 10 On (O.K.) 20000020370f46f2 YOU CAN NOW LABEL THE DISK IN SOLARIS. MANY OPTIONS EXIST. You may use a similar drive from the A5X00. # prtvtoc /dev/rdsk/c2t0d0s2 | fmthard -s - /dev/rdsk/c2t2d0s2 Or you may use the format utility. # format c2t2d0 <CR> label <CR> LASTLY, REINTRODUCE THE DISK INTO VERITAS VOLUME MANAGER. # vxdctl enable This next command will initialize the drive. There are many different initialization parameters (especially in later versions of veritas volume manager.) You must make sure the disk is initialized in the exact same fashion as before. An excellent verification of this is to compare the VTOC of the drive with other disks in the diskgroup. If your vtoc differs after initialization, see the man page on vxdisksetup to re-initialize correctly. # /usr/lib/vxvm/bin/vxdisksetup -i c2t2d0 format=sliced # vxdg -g testdf -k adddisk disk02=c2t2d0s2 # vxrecover -g testdf disk02 As an alternative to the vxdisksetup, vxdg and vxrecover commands, you may use the # vxdiskadm utility, option 5, to restore the disk into the diskgroup. # vxdisk list DEVICE TYPE DISK GROUP STATUS c2t0d0s2 auto:sliced disk01 testdf online c2t2d0s2 auto:sliced disk02 testdf online # vxprint -ht dm disk01 c2t0d0s2 auto 67972 17610256 - dm disk02 c2t2d0s2 auto 67972 17610256 - v vol01 - ENABLED ACTIVE 1048576 SELECT - fsgen pl vol01-01 vol01 ENABLED ACTIVE 1048576 CONCAT - RW sd disk01-01 vol01-01 disk01 0 1048576 0 c2t0d0 ENA pl vol01-02 vol01 ENABLED ACTIVE 1048576 CONCAT - RW sd disk02-01 vol01-02 disk02 0 1048576 0 c2t2d0 ENA Previously Published As Attachments This solution has no attachment |
||||||||||||
|