Re: LVM - How to resize a volume group?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/27/2008 08:08 AM, Dejan Čabrilo wrote:
On Sun, May 25, 2008 at 7:40 PM, Dejan Čabrilo <dcabrilo@xxxxxxxxx> wrote:
  
You'll have to shrink the PV first before resizing the partition.. see the
pvresize man page.
      

Right, so I shrunk the PV, and I want to shrink /dev/sda2.

What's the safest way to do it?
Can parted accomplish it, or should I delete a partition in fdisk and
then create a smaller one? (the second option scares the hell out of
me!)

Also, are there any gotchas to watch for?

Thanks,
Dejan

  
You'll have to delete /dev/sda2 using fdisk - that's what I use - and then create a new smaller /dev/sda2. Just be careful not to make it smaller than your physical volume. Then you can make /dev/sda3 from the free space you have. Normally I use dd to backup my partition table first, but yours is so small that you could just as easily write it down on a scrap of paper. If you mess things up, you can recover by booting from a liveCD (eg knoppix) and restoring your partition table to its original state.

John
======
-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux