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

Thu Sep 26 08:48:06 UTC 2013
Götz Reinicke - IT Koordinator <goetz.reinicke at filmakademie.de>

Am 25.09.13 16:12, schrieb m.roth at 5-cent.us:
> 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?


AFAIK LVM etc create some traces and file information in some
places/caches .. and I like to remove all traces...

	Regards . Götz

-- 
Götz Reinicke
IT-Koordinator

Tel. +49 7141 969 82 420
Fax  +49 7141 969 55 420
E-Mail goetz.reinicke at filmakademie.de

Filmakademie Baden-Württemberg GmbH
Akademiehof 10
71638 Ludwigsburg
www.filmakademie.de

Eintragung Amtsgericht Stuttgart HRB 205016

Vorsitzender des Aufsichtsrats: Jürgen Walter MdL
Staatssekretär im Ministerium für Wissenschaft,
Forschung und Kunst Baden-Württemberg

Geschäftsführer: Prof. Thomas Schadt