migrating iscsi luns in logical volumes

Bohdan Sydor bohdan at harazd.net
Tue Jun 28 20:27:20 UTC 2011


On 06/28/2011 06:53 PM, Troy Knabe wrote:
> I have a host with 8 iscsi luns in 4 logical volumes.  I have a new server that I would like to move them too.  I do not have enough storage to duplicate them and copy the data.  What is the best method of moving the luns to the new host and keeping the logical volumes?  Or is that even possible?
> 
> I would also like to move from Red Hat 5 to Red Hat 6, unless that complicates things too much.

1. Unmount the volumes on the old machine
2. Mark the VG inactive:
	vgchange -an VGname
3. Export the VG:
	vgexport VGname
4. Logout from the iscsi target
5. Login to the target on the new machine
6. pvscan
7. vgimport VGname
8. Activate the VG:
	vgchange -ay VGname




More information about the redhat-list mailing list