Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have LVM set up on my server and i am going to remove a hard disk. When i use the command..


..will this simply copy the data over to the other disks or does it wipe out data as its being copied over?

share|improve this question

pvmove leverage's LVMs ability to create mirror LVs. The first thing it does is set up a temporary LV mirror for each LV on the original PV. Then it syncs the mirrors the LV at the block level, I believe one at a time. Once a LV's mirror is in sync the mirror on the original PV is then removed.

share|improve this answer
exactly right, uses mirroring to perform live migration of data. more precisely, it sets up small mirrors, one for each chunk of the data. That way, it can advance slowly and (mostly) safely, by mirroring, verifying, disconnecting the original, repeat with next chunk. Of course, there are lots of horror stories about interrupted moves that leave the whole VG in a mangled state. Backup first! – Javier Dec 11 '09 at 4:20

A few standard references for pvmove.

  1. pvmove manual page
  2. Linux Documentation Project LVM HOWTO page

And, a short article at hackery on pvmove Disk Migrations

share|improve this answer

Your Answer


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.