Peter Beck: > On 06/05/2011 04:51 PM, Jochen Schulz wrote: >> What I would probably do is: >> >> - install new disk alongside the old one >> - put one big partition on the new disk and pvcreate the partition >> - vgextend the existing VG with the new partition >> - vgreduce the VG, removing the old disk's partitions >> >> That should be just as fast as dd'ing the old filesystems and can be >> done without downtime. You don't need to resize any existing partitions, >> but you can of course grow the LVs and the filesystems afterwards, if >> you want to take advantage of the additional space. > > and this will also work when the operating system is running on this > lvm ? Yes, if you add the pvmove step that I forgot to mention. Just expect a (heavy) drop in IO performance as both the new and the old disk are very busy during the move. If you also have filesystems on non-LVM devices, you have to take care of them by other means. If you boot from the disk, don't forget to grub-install. J. -- Quite often I wonder why I am not more famous and/or more wealthy. [Agree] [Disagree] <http://www.slowlydownward.com/NODATA/data_enter2.html>
Attachment:
signature.asc
Description: Digital signature