[CentOS] Best Practice to remove an ISCSI LVM from a system

m.roth at 5-cent.us m.roth at 5-cent.us
Wed Sep 25 14:12:29 UTC 2013


Götz Reinicke - IT Koordinator wrote:
> Hi,
>
> I'd like to know what would be the best way to remove an iscsi lvm
> storage from a server. (removing all reference to that storage etc.)
>
> The storage in question will be reset and reformated and used on a
> different server; so no LVM export is needed.
>
> Do I have to do lvremove ..., vgremove ..., pvremove ... and do an
>
> iscsiadm -m node -T ... -p ... -u and
>
> iscsiadm -m node -o delete -T ... -p ...
>
> in order to achieve that?
>
> Or is there some more simple way?
>
This may be a stupid question, but couldn't you simply umount the storage
from everywhere, maybe the iscsiadm commands, and then just unplug the
thing? Why do you need to do *anything* with lvm?

       mark




More information about the CentOS mailing list