On Mon, 23 Mar 2009 09:31:20 +0000 Neil Bothwick <[email protected]> wrote:
> On Mon, 23 Mar 2009 10:07:59 +0100, Momesso Andrea wrote: > > > > Since you currently have plenty of free space, you don't have to > > > take the system out of service to do a backup. Create a new PV in > > > sda4 and run pvmove, then remove and recreate the PV on sda3 and > > > pvmove the data back. Then you can delete sda4 and enlarge sda3. > > > Since, as Alan suggested, I enlarged sda3 with fdisk, how can I have > > back my old sda4 without risking to lose the data? > > You only enlarged the partition, not the PV that lives on it. So you > can delete and recreate it at the original size,although I'd make it a > little larger than before, just to be certain it is never smaller. > > Wow, didn't know that lvm offers such a great flexibility... But I still miss someting... If I pvmove the pv from sda3 to sda4, then recreate a brand new pv on sda3, pvmove the data back, fdisk to delete sda4 and enlarge sda3, what will prevent pvextend to fall in the same error I had before? --- TopperH http://topperh.blogspot.com
signature.asc
Description: PGP signature

