LVM - How to resize a volume group?
Brian Tillman
mailinglists at briantillman.com
Sun May 25 17:13:22 UTC 2008
Dejan
Instead of making a new partition on disk, why not create another
logical volume? You can shrink one of the two logical volumes {root |
home} and create a new LV for your new partition. This will allow you
more flexibility in the future with resizing, and will be worlds
easier than shrinking your LV's VG's, PV, the partition, and then
writing a new one.
If you're using EXT2/3 for your /home, you can shrink the LV like this:
# umount /home
# e2fsadm -L-1G /dev/VolGroup00/home
# mount /home
See the e2fsadm man page for more information.
See the lvcreate manpage for instructions on creating the new volume.
Brian
On May 25, 2008, at 9:51 AM, Dejan Čabrilo wrote:
>> Can you be more clean on your goal, I understand you'd like to
>> create a new
>> filesystem?
>
> I would like to create a new primary partition. I currently have sda1
> (/boot) and sda2 (lvm), and would like to shrink sda2.
>
>> Please provide output of the following two commands:
>> vgdisplay
>> lvdisplay
>
> Attached.
>
> Thanks,
> Dejan
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
> <lvdisplay><vgdisplay>--
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20080525/100c7d7e/attachment-0001.htm>
More information about the fedora-list
mailing list