1

How to perform LUN migration in Linux (using LVM and native multipath) from one storage device to another storage device

0mk4r4
  • 11
  • 2
  • 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 Answers2

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.

0

Use the "pvmove" command.

janneb
  • 3,761
  • 18
  • 22