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

2013-09-26 Thread Götz Reinicke - IT Koordinator
Am 25.09.13 16:12, schrieb m.r...@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.reini...@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

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


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

2013-09-26 Thread Götz Reinicke - IT Koordinator
Am 25.09.13 17:10, schrieb Ian Pilcher:
 On 09/25/2013 08:58 AM, Götz Reinicke - IT Koordinator wrote:
 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.)
 
 My approach would be:
 
 * Disable all volume groups on the iSCSI LUN(s) with vgchange -a n ...
 
 * Use iscsiadm to log out of the target and delete it from the database
 
 * Run vgscan to update the LVM cache
 
 HTH
 

Helped :) thx /Götz

-- 
Götz Reinicke
IT-Koordinator

Tel. +49 7141 969 82 420
Fax  +49 7141 969 55 420
E-Mail goetz.reini...@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

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


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

2013-09-26 Thread Götz Reinicke - IT Koordinator
Am 25.09.13 20:01, schrieb John R Pierce:
 On 9/25/2013 6:58 AM, Götz Reinicke - IT Koordinator wrote:
 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?
 
 
 umount any file systems, remove them from /etc/fstab, then vgremove the 
 volume group should be sufficient to remove history of the LV's and VG's 
 ... I don't believe its neccessary to pvremove the individual disks.
 
 then drop the target LUN on the storage server.
 


Helped :) thx /Götz

-- 
Götz Reinicke
IT-Koordinator

Tel. +49 7141 969 82 420
Fax  +49 7141 969 55 420
E-Mail goetz.reini...@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

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


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

2013-09-25 Thread Götz Reinicke - IT Koordinator
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?


Thanks for any suggestion and best regards . Götz

-- 
Götz Reinicke
IT-Koordinator

Tel. +49 7141 969 82 420
Fax  +49 7141 969 55 420
E-Mail goetz.reini...@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


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


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

2013-09-25 Thread m . roth
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

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


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

2013-09-25 Thread Ian Pilcher
On 09/25/2013 08:58 AM, Götz Reinicke - IT Koordinator wrote:
 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.)

My approach would be:

* Disable all volume groups on the iSCSI LUN(s) with vgchange -a n ...

* Use iscsiadm to log out of the target and delete it from the database

* Run vgscan to update the LVM cache

HTH

-- 

Ian Pilcher arequip...@gmail.com
Sometimes there's nothing left to do but crash and burn...or die trying.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


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

2013-09-25 Thread John R Pierce
On 9/25/2013 6:58 AM, Götz Reinicke - IT Koordinator wrote:
 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?


umount any file systems, remove them from /etc/fstab, then vgremove the 
volume group should be sufficient to remove history of the LV's and VG's 
... I don't believe its neccessary to pvremove the individual disks.

then drop the target LUN on the storage server.

-- 
john r pierce  37N 122W
somewhere on the middle of the left coast

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos