Re: clone LVM disk to a larger disk
On dim. 05 juin 2011 16:51:26 CEST, Jochen Schulz <ml@well-adjusted.de> wrote:
> Peter Beck:
> >
> > Now I've got a 1TB disk which I would like to use instead of the
> > 160GB disk. My question: Can I just clone the small disk to the new
> > large disk and then resize the LV on it ? Does that work ? I would
> > say yes, but I've never done that, so I am not sure... ;)
>
> 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
You certainly forget a pvmove of the partitions between vgextend and vgreduce.
Reply to: