Re: LVM resize sanity check

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

 



On Wed, 2008-10-22 at 11:42 -0400, brian wrote:

> # umount /var
> # e2fsck -f /dev/VolGroup00/LogVol04
> # resize2fs /dev/VolGroup00/LogVol04 13G
> # lvreduce -L-6G /dev/VolGroup00/LogVol04
> # mount /var
> # umount /tmp
> # e2fsck -f /dev/VolGroup00/LogVol03
> # lvextend -L+6G /dev/VolGroup00/LogVol03
> # resize2fs /dev/VolGroup00/LogVol03
> # mount /tmp
> 
> Does that ring any alarm bells?

One huge alarm bell.

When you are manually resizing an ext3/LVM combo you risk over reducing
the LVM compared to the ext3 FS due to math/1000vs1024 conversion
errors.
As, such, I over reduce the file-system, resize the LVM and than extend
the file-system back to the intended size.

E.g. Reduce Home to 14GB:
$ e2fsck -f /dev/VolMD/LogHome
$ resize2fs /dev/VolMD/LogHome 13G
$ lvreduce -L14G /dev/VolMD/LogHome
$ resize2fs /dev/VolMD/LogHome
$ e2fsck -f /dev/VolMD/LogHome
$ echo Done.

- Gilboa

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux