1

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

  • 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

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for?Browse other questions tagged or ask your own question.