On Sun, 22 Mar 2009 22:35:35 +0200
Alan McKinnon <alan.mckin...@gmail.com> wrote:

> On Sunday 22 March 2009 22:15:14 Momesso Andrea wrote:
> > My current setup is:
> >
> >    Device Boot      Start         End      Blocks   Id  System
> > /dev/sda1   *           1        2894    23246023+  83  Linux
> > /dev/sda2            2895        3381     3911827+  82  Linux
> >    swap /Solaris
> > /dev/sda3            3382       24804   172080247+  83  Linux
> > /dev/sda4           24805       30401    44957902+  83  Linux
> >
> > where sda3 is an lvm volume and sda4 is free space.
> >
> > I'd like to to merge sda3 and sda4 into a single partition without
> > losing the data on it, but I'm not sure if it is possible.
> >
> > My guess is that I can use fdisk to delete sda4 and sda3, create a
> > sda3 partition starting at 3382 and ending at 30401, then use
> > pvresize to enlarge it.
> 
> Correct. That's all there is to it.
> 
> > This is from man pvresize:
> > "Expand the PV on /dev/sda1 after enlarging the partition with
> > fdisk: pvresize /dev/sda1"
> >
> > Is that going to work or I'm going to lose all the data?
> 
> Your data is safe if you do exactly the steps you said above.
> 
pvresize /dev/sda3    
  /dev/sda3: too many metadata areas for pvresize

Looks like I cannot expand it...

---
TopperH
http://topperh.blogspot.com

Attachment: signature.asc
Description: PGP signature

Reply via email to