resize "/ " under LVM 2005-10-05 - By Greg Hosler
Back <disclaimer>I haven't used RHEL3 since about U4+</disclaimer>
RHEL3 did not have ext2online resize command, and required volumes to be offline to be resized. You then used e2fsadm (as I recall) to resize both the volumn as well as the partition.
in your case, you shouldn't need to make a new volume, just add more space to the original volume.
The tricky part will be resizing the lv, though.
I can't think of any way to do this from a mounted running system.
Several ideas which do pop into mind follow (none are that elegant though):
- boot into rescue mode (from disc1: linux rescue), and see if e2fsadm is on the disc, and if it iss, try that. Not sure if that will work, or not. If the rescue cd will recognize your lvm when it mounts your file systems, then you _might_ be ok.
- install a simple install onto a spare disk, on a spare machine. borrow your root disks/volumes from your main system, plug them in as secondary disks on the new system, and do the extension there.
(I can think of all kinds of problems you might encounter, none of them pleasant, but it *might* work.)
needless to say, before any of the above, you really want to backup your system.
on the other hand, the installer can do this, so it probably should work (and since the installer can do this, it _should_ work from a rescue cd, since that's the base set of utilities that the installer happens to use :)
lvm on RHEL3 and lvm on RHEL4 are 2 different animals. From what I undserstand, they come from completely different code bases. I would probably not expect ext2online from lvm2 (rhel4) to work on rhel3. I do not recall if there was work going on on ext2online for lvm1 (rhel3) or not.
best rgds (and best wishes!),
-Greg Hosler
On 04-Oct-2005 (See http://Oct-2005.ora-code.com) Collins, Kevin (MindWorks) wrote: >> Hi, >> >> 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? >> >> 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... >> >> Can I fix this? Is the ext2online command functional on RHEL 3? I'd >> prefer not to redo thepost work I have already completed. >> >> Thanks, >> >> Kevin
+-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------+
Please also check the log file at "/dev/null" for additional information. (from /var/log/Xorg.setup.log)
| Greg Hosler greg@(protected) | +-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------+
-- Taroon-list mailing list Taroon-list@(protected) https://www.redhat.com/mailman/listinfo/taroon-list
|
|