resize "/ " under LVM 2005-10-05 - By Collins, Kevin (MindWorks)
Back John,
I can extend the lvol on-line, but the filesystem still needs to be extended. So, I tried booting in rescue mode 2 ways:
1) allowing rescue mode to mount the local filesystems. In this mode, I can't get /mnt/sysimage umounted because a kernel process has the filesystem busy.
2) skipping the mount, I can then not extend the fileystem because there is no /dev/vg00/lvol1 device :) Is there something I am not seeing here?
Thanks, it feels like I'm right on the verge of fixing it...
Kevin
-- --Original Message-- -- From: taroon-list-bounces@(protected) [mailto:taroon-list-bounces@(protected)] On Behalf Of John Haxby Sent: Wednesday, October 05, 2005 8:56 AM To: Discussion of Red Hat Enterprise Linux 3 (Taroon) Subject: Re: resize "/" under LVM
Collins, Kevin (MindWorks) wrote:
> I can't believe nobody has any help to offer on this... Usually, there
> is a response to everything. Anyone?
Well, I looked at the original message and thought "oh dear, what a mess, where to start?"
> I just used kickstart to install 3 systems with U6. I used the
> same partition sizes as I had previously used with RH9, and > unfortunately I now have about 700 bytes free in "/". Is it possible > to extend this filesystem under LVM? > On RHEL3, I'd do this by booting a rescue disk and extending the logical
volume and file system off line. In fact, I have done just that at least once and it works just fine.
> I tried creating a new LVOL (lvolslash) that is bigger, copying all > the contents of / (lvol1) to it, changing /etc/fstab and > /etc/grub.conf to point to the new lvolslash. The system reboots fine,
> and a "df" shows my new lvol mounted as root. However, the df also > shows the size of my original lvol1 and says it is mounted when I try > to resize2fs it... > Did you re-run mkinitrd? (The linuxrc in there contains a line to mount the root logical volume as /sysroot.) That *might* fix things up
and then you can delete the old logical volume. If not, undo what you've done so far, delete the new logical volume and go back to doing an off-line resize.
> Can I fix this? Is the ext2online command functional on RHEL 3? I'd > prefer not to redo thepost work I have already completed. > ext2online isn't available (or doesn't work, or both) for RHEL3, you need to do file system resizing off line. If it's the root file system
that means booting off a rescue disk.
jch
-- Taroon-list mailing list Taroon-list@(protected) https://www.redhat.com/mailman/listinfo/taroon-list
-- Taroon-list mailing list Taroon-list@(protected) https://www.redhat.com/mailman/listinfo/taroon-list
|
|