On 13/11/2014 8:27 AM, "lee" <l...@yagibdah.de> wrote: > > Hi, > > what's the best way to move existing logical volumes or a whole volume > group to new disks? > > The target disks cannot be installed at the same time as the source > disks. I will have to make some sort of copy over the network to > another machine, remove the old disks, install the new disks and put the > copy in place. > > Using dd doesn't seem to be a good option because extend sizes in the > old VG can be different from the extend sizes used in the new VG. > > The LVs contain VMs. The VMs can be shut down during the migration. > It's not possible to make snapshots because the VG is full. > > New disks will be 6x1TB RAID-5, old ones are 2x74GB RAID-1 on a > ServeRaid 8k. No more than 6 discs can be installed at the same time. > > > -- > Again we must be afraid of speaking of daemons for fear that daemons > might swallow us. Finally, this fear has become reasonable. > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org > Archive: https://lists.debian.org/874mu4cei0....@yun.yagibdah.de > How about this, sdf is one of the new disks sdb is old that needs replacement:
Attach sdf and add it to the vg # pvcreate /dev/sdf # vgextend vg1 /dev/sdf Move the data # pvmove /dev/sdb /dev/sdf Remove the old disk from vg1 # vgreduce vg1 /dev/sdb Take out sdb, attach new drive and repeat the procedure. No need to unmound the filesystem for pvmove. Having backup is of course recommended.