In order to avoid any issues (data loss) and for the fear of punishment, first just remove the device from the SG and then if you are sure that you don't want/need any more the device, then unmap it and unbind it as Joseph said.
Now regarding the ESX, before remove an EMC device from a SG, which device is provisioned to an ESX host, you have to do the following steps:
1. First unmounts the device from the ESX host
2. Detach the device from the ESX console
The above two steps can be done via vSphere or ESXCLI.
By following this way you are sure that you would NEVER have ghosts devices in your ESX and dead paths that probably could hang your ESX.
If you remove a device from the storage group without unmapping it, that device will be unmasked, but the mapping (to those FA ports present in the portgroup of the corresponding Masking View) will still be there. You can choose that option to unmask and unmap a device at the same time.
Unbinding a Thin device will free up all its allocated extents from the Thin pool which means that all data in that Thin device will be gone.
Please advice... Is it recommended to "unmounting the device" for all type of OS before removing the device from SG. Even if it is not ESX host, is it recommended ?
Zikas
278 Posts
0
May 25th, 2013 00:00
Hi Smaiello,
I totally agree with Joseph.
In order to avoid any issues (data loss) and for the fear of punishment, first just remove the device from the SG and then if you are sure that you don't want/need any more the device, then unmap it and unbind it as Joseph said.
Now regarding the ESX, before remove an EMC device from a SG, which device is provisioned to an ESX host, you have to do the following steps:
1. First unmounts the device from the ESX host
2. Detach the device from the ESX console
The above two steps can be done via vSphere or ESXCLI.
By following this way you are sure that you would NEVER have ghosts devices in your ESX and dead paths that probably could hang your ESX.
joseph_gk
5 Posts
1
May 24th, 2013 14:00
If you remove a device from the storage group without unmapping it, that device will be unmasked, but the mapping (to those FA ports present in the portgroup of the corresponding Masking View) will still be there. You can choose that option to unmask and unmap a device at the same time.
Unbinding a Thin device will free up all its allocated extents from the Thin pool which means that all data in that Thin device will be gone.
r_shankar
22 Posts
0
May 27th, 2013 05:00
Hi Yankee,
Please advice... Is it recommended to "unmounting the device" for all type of OS before removing the device from SG. Even if it is not ESX host, is it recommended ?
Regards,
Shankar R
Zikas
278 Posts
1
May 27th, 2013 05:00
Hi Shankar,
it is recommended and adviseable because if you remove a device from a SG, then you will get an error at your O.S's volume manager.
First you have to unmount the device from your host and then remove it from the SG.
r_shankar
22 Posts
0
May 27th, 2013 23:00
Hi Yankees,
Thank you so much
Regards,
Shankar R