How to perform LUN migration in Linux (using LVM and native multipath) from one storage device to another storage device
Asked
Active
Viewed 1,801 times
1
-
Is there a chance you could tell us some of the details involved please - you've put almost zero effort into this question as it's essentially unanswerable until you do. – Chopper3 Nov 25 '10 at 13:29
2 Answers
2
Expanding on janneb's comment because I want formatting:
Given:
/dev/oldSAN1 (Linux LVM partition)
/dev/newSAN1 (linux LVM partition)
VG "mystuff"
Then:
# pvcreate /dev/newSAN1
# vgextend mystuff /dev/newSAN1
# pvmove -v /dev/oldSAN1
# vgreduce -a mystuff
# pvremove /dev/oldSAN1
Obviously, make sure you have a good backup before starting. /dev/newSAN1 has to be as large as or larger than /dev/oldSAN1 as you'd think.