lvm/ext3 resize
Gordon Messmer
yinyang at eburg.com
Wed Jun 29 07:39:50 UTC 2005
b.ally at sympatico.ca wrote:
>
> So, the steps i have so far:
>
> boot rescue mode
>
> # tune2fs -O ^has_journal /dev/hda # discontinue journaling
You don't need to do that. If you wanted to do it anyway, you'd do it
on the filesystem (/dev/VolGroup00/LogVol00), and not the disk (/dev/hda).
> # lvm
> lvm > vgscan
> lvm > vgchange --available y VolGroup00
> lvm > exit
> e2fsck -f /dev/VolGroup00/LogVol00 # check & repair
> resize2fs -p /dev/VolGroup00/LogVol00 20G # resize to 20G
> e2fsck -f /dev/VolGroup00/LogVol00 # check & repair
>
> # lvm
> lvm > lvreduce -L20G /dev/VolGroup00/LogVol00
> lvm > lvcreate -L55.25G -nhome # create volume for /home
> lvm > exit
> e2fsck -f /dev/VolGroup00/LogVol00 # check & repair
> e2fsck -f /dev/VolGroup00/home # check & repair
All looks good up until the last step. You need to 'mkfs -t ext3
/dev/VolGroup00/home' before you can fsck it.
> Am I heading for a re-install?
Well, it never hurts to have a backup, but my experience with the tools
has been good.
More information about the fedora-list
mailing list