Fedora Cookbook: Resizing a logical volume
moi
rainer at lucien.sysadmin.at
Fri Dec 28 11:02:40 UTC 2007
Root FS resizes imho usually requires the Rescue mode. Perhaps when
growing, but shrinking is a bit tough...
You may - in rescue mode - import the Volume Group (when using LVM) and
do the resize operations. Do not forget to do a partprobe /dev/xda, as
the kernel will still be using the old filesystem tables when resizing
(one of our customers did a shrink on the root partition and ran fsck,
this made a lot of errors afterwards).
brgds
rainer
Robert P. J. Day schrieb:
> On Fri, 28 Dec 2007, Luciano Rocha wrote:
>
>
>> 2. There is no need to do an off-line resize. Ext3 (and xfs) suppors
>> on-line resizing, so the steps are:
>> * lvextend -L +4G /dev/f8/opt
>> * resize2fs /dev/f8/opt
>>
>
> does that include the root filesystem as well? i recall that that
> *used to be* an issue.
>
> rday
>
> ========================================================================
> Robert P. J. Day
> Linux Consulting, Training and Annoying Kernel Pedantry
> Waterloo, Ontario, CANADA
>
> http://crashcourse.ca
> ========================================================================
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20071228/c9f9eb31/attachment-0001.htm>
More information about the fedora-list
mailing list