LVM Disk Management

floyd

Verified User
Joined
Mar 29, 2005
Messages
6,273
If you have a LVM spanning multiple drives and one drive is starting to fail, is there a way to move the data off of that drive so that it can be removed from the volume group and replaced?
 
if lvm still working - try to extend it by another drive, than move data, and reduce. also make backup and better to use raid
 
But do we have the ability to move data from one drive to another within the one lv? How to do that?

When installing Virtuozzo it creates one volume spanning multiple drives mounted on /vz. But what to do if one of those drives starts to fail. It seems at that point you have to reinstall the whole system simply to replace one drive.
 
Nope. I am talking about 1 lvm partition spanning multiple drives. Say you have 4 drives and 1 lvm partition. What to do if I need to replace one of those drives. Will vgreduce move the data from the drive I am removing?
 
I guess its not a LVM partition spanning multiple drives but 1 LV spanning multiple drives. How can I safely replace one?
 
so if it is one disk, that whole mounted as /vz
you can install new disk to system, create same system directories,
stop each container, move it's data to new disk and create symlinks from old disk to new, start container,
when all containers will be moved - just swap mount points in fstab for both disks and reboot node.
in such case at startup new disk will be mounted as /vz with all containers.
 
Back
Top