cancel
Showing results for 
Search instead for 
Did you mean: 

Steps need to be executed after LUNs has been deallocated from Solaris

Rajan_Iyer
Level 4
Certified

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.

8 REPLIES 8

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

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

al_from_indiana
Level 3

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

Rajan_Iyer
Level 4
Certified

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

al_from_indiana
Level 3

Rajan - If you follow my steps that you should be able to verify that the devices have been removed.

Rajan_Iyer
Level 4
Certified

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

 

 

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

Where are you still seeing the disks  - in 'vxdisk list' output or 'format'?

Anoop_Kumar1
Level 5

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

Rajan_Iyer
Level 4
Certified

As on now all disks visible under format and vxdisk -o alldgs list also.