Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question
    
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.

share|improve this answer

Use the "pvmove" command.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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