## To get all LUNS details presented
vxdisk -o alldgs list
## To get all the deported LUNS, especially it will start (container-dg) so we filtered with "(" along with printing only the first columns
vxdisk -o alldgs list | grep "(" | awk {'print $1'}
## Take a count if many LUNS need to remove from Veritas Disk group
vxdisk -o alldgs list | grep "(" | awk {'print $1'} | wc -l
## All with previous comments, we are printing only the first columns that represent LUNS details along with LUNS UDID number. Also do take a note of this LUNS UDID.
for i in `vxdisk -o alldgs list | grep "(" | awk {'print $1'}`;do echo "##### $i #####";vxdisk -o alldgs list $i | grep udid;done
## Remove permanetly from Veritas disk group
for i in `vxdisk -o alldgs list | grep "(" | awk {'print $1'}`;do echo "##### $i #####";vxdisk rm $i;done
Hope this helps ;)
vxdisk -o alldgs list
## To get all the deported LUNS, especially it will start (container-dg) so we filtered with "(" along with printing only the first columns
vxdisk -o alldgs list | grep "(" | awk {'print $1'}
## Take a count if many LUNS need to remove from Veritas Disk group
vxdisk -o alldgs list | grep "(" | awk {'print $1'} | wc -l
## All with previous comments, we are printing only the first columns that represent LUNS details along with LUNS UDID number. Also do take a note of this LUNS UDID.
for i in `vxdisk -o alldgs list | grep "(" | awk {'print $1'}`;do echo "##### $i #####";vxdisk -o alldgs list $i | grep udid;done
## Remove permanetly from Veritas disk group
for i in `vxdisk -o alldgs list | grep "(" | awk {'print $1'}`;do echo "##### $i #####";vxdisk rm $i;done
Hope this helps ;)
Comments