While removing the LUNs from Solaris you might need to unmap the LUNs from the OS level.
The clean up steps are as follows. In this we are going to consider the LUN id c2t500604844A375F48d101s2
c2t500604844A375F48d101s2 => c2 is controller t500604844A375F48 and d101 is the disk
The format output of the Solaris command is not showing the drive since the LUN is already removed from the storage side. Also the Vxdmp for the LUN is present.
# format
Searching for disks...done
................
255. c2t500604844A375F48d101s2 <drive not available>
/pci@3,700000/SUNW,qlc@0/fp@0,0/ssd@w50000974082ccd5c,f9
................
#devfsadm -Cv
#vxdisk rm c2t500604844A375F48d101s2
Removing the LUNs path from Veritas Dynamic Path control
# vxdmpadm getsubpaths
# vxdmpadm exclude vxvm dmpnodename=c2t500604844A375F48d101s2
# vxdmpadm exclude vxdmp dmpnodename=c2t500604844A375F48d101s2
Offline the LUN from OS level.
# luxadm -e offline /dev/rdsk/c2t500604844A375F48d101s2
While performing the offline you might face the error shown below
# luxadm -e offline /dev/rdsk/c4t5006016C0864165Ad12s2
devctl: I/O error
If you encounter the error shown then confirm that VxVM does not have a Veritas disk access name (DA) for the removed LUN.
#vxdisk list
emc_clariion0_769 auto - - nolabel
or
emc_clariion0_769 auto - - error
Remove the disk from the VxVM as shown below.
#vxdisk rm emc_clariion0_769
Once you have removed the disk as shown once agian fire the command # luxadm -e offline /dev/rdsk/c4t5006016C0864165Ad12s2
Once the LUN in put in offline state it will be moved into unusable state.
# cfgadm -al -o show_SCSI_LUN | grep -i unusable
You will be able to see LUN in unusable state.
Using cfgadm unconfigure the unusable LUN of given controller.
# cfgadm -c unconfigure -o unusable_SCSI_LUN c2::500604844a375f48
# devfsadm -Cv
Check if the LUN is present in #format command output also verify the #vxdisk -eo alldgs output.
Veritas Links used for reference.
http://www.veritas.com/community/forums/remove-lun-solaris-10
https://www.veritas.com/support/en_US/article.HOWTO35877
The clean up steps are as follows. In this we are going to consider the LUN id c2t500604844A375F48d101s2
c2t500604844A375F48d101s2 => c2 is controller t500604844A375F48 and d101 is the disk
The format output of the Solaris command is not showing the drive since the LUN is already removed from the storage side. Also the Vxdmp for the LUN is present.
# format
Searching for disks...done
................
255. c2t500604844A375F48d101s2 <drive not available>
/pci@3,700000/SUNW,qlc@0/fp@0,0/ssd@w50000974082ccd5c,f9
................
#devfsadm -Cv
#vxdisk rm c2t500604844A375F48d101s2
Removing the LUNs path from Veritas Dynamic Path control
# vxdmpadm getsubpaths
# vxdmpadm exclude vxvm dmpnodename=c2t500604844A375F48d101s2
# vxdmpadm exclude vxdmp dmpnodename=c2t500604844A375F48d101s2
Offline the LUN from OS level.
# luxadm -e offline /dev/rdsk/c2t500604844A375F48d101s2
While performing the offline you might face the error shown below
# luxadm -e offline /dev/rdsk/c4t5006016C0864165Ad12s2
devctl: I/O error
If you encounter the error shown then confirm that VxVM does not have a Veritas disk access name (DA) for the removed LUN.
#vxdisk list
emc_clariion0_769 auto - - nolabel
or
emc_clariion0_769 auto - - error
Remove the disk from the VxVM as shown below.
#vxdisk rm emc_clariion0_769
Once you have removed the disk as shown once agian fire the command # luxadm -e offline /dev/rdsk/c4t5006016C0864165Ad12s2
Once the LUN in put in offline state it will be moved into unusable state.
# cfgadm -al -o show_SCSI_LUN | grep -i unusable
You will be able to see LUN in unusable state.
Using cfgadm unconfigure the unusable LUN of given controller.
# cfgadm -c unconfigure -o unusable_SCSI_LUN c2::500604844a375f48
# devfsadm -Cv
Check if the LUN is present in #format command output also verify the #vxdisk -eo alldgs output.
Veritas Links used for reference.
http://www.veritas.com/community/forums/remove-lun-solaris-10
https://www.veritas.com/support/en_US/article.HOWTO35877
No comments:
Post a Comment