02-10-2012 11:21 AM
Hi,
I would like to know what the steps need to be taken after the LUNs has been deallocated from Solaris.
In my case 1 lun [2 path] need to deallocate from the server.
In the same ref. I have taken following stpes.
1. Unmountet the File system
2. Stop the volume
3. Remove the Volume
4. Remove the disk from Disk Group
5. Destroy the Disk Group
6. Remove the device
Please let me know do I need to perform any steps before above LUN will be deallocated from Server.
Also once LUN will be deallocated from the server what command I need to perform to refresh "echo | format"---with real no. of disks.
Please suggest.
02-10-2012 07:20 PM
If all the luns/disks in diskgroup will be removed, you can simply destroy the diskgroup after unmounting volume(s).
You may also want to remove lun(s) from VxVM control with vxdiskunsetup before disconnecting.
To cleanup OS devices:
devfsadm -C
02-13-2012 05:58 AM
The decommission process is a bit more complicated then that:
1) Remove all vxvm DA devices: vxdisk rm DA
2) Unmap lun from array-side
3) From OS-side, check for any unusable threads from the luns that were unmapped then unconfigure them:
for disk in `cfgadm -alo show_FCP_dev | grep -i unusable | awk '{print $1}' | awk -F\, '{print $1}'`; do cfgadm -o unusable_FCP_dev -c unconfigure $disk; done
4) Clean OS layer: devfsadm -Cv
5) Re-scan vxvm to update: vxdisk scandisks
02-13-2012 07:19 AM
Thanks for update.
In the same ref. I have below queries.
1. After unmapped LUNs how to ensure from Veritas end that its config file is updated with latest device info.
From OS end I can check the same with echo | format.
Thanks
02-13-2012 04:54 PM
Rajan - If you follow my steps that you should be able to verify that the devices have been removed.
02-25-2012 10:02 PM
Hi,
I have tested the same and it is working fine for primary node on which Disk Group has been created and file system has been mounted.
In my case the lun has been mapped to 2 node VCS cluster, as it was cretaed for primary only [Local Disk Group], after unmapping the same I have applied devfsadm -Cv, it clears the disk which has been removed.
In case of node 2 it still shows 10 disks i.e. [5 lun - multipathing]
I have tried the same command but no luck.
Please suggest.
Thanks
Raj
02-26-2012 09:16 PM
Where are you still seeing the disks - in 'vxdisk list' output or 'format'?
02-27-2012 08:32 AM
1. Stop Apps
2. Unmount Filesystem
3. Destroy Diskgroup
4. Unmask the devices to server from SAN side
5. Reconfigure the devices on OS : devfsadm
6. Reconfigure devices on Veritas : vxdctl enable
02-27-2012 12:42 PM
As on now all disks visible under format and vxdisk -o alldgs list also.