On Sun, 20 Feb 2005 16:17:54 +0800, Craig Mandsager
<[EMAIL PROTECTED]> wrote:
>   
> Hi Carl, 
> 
> Checking if you were able to solve the resizing of the root 
> filesystem on a Logical volume?  
> 
> Had you tried resize2fs âf 
> To bypass safety checks? 

I never actually managed to resize the root file system but I learned
a lot.  Then I rebuilt the whole thing.

Some of the things I learned:
Knoppix does not seem to  be able to cope with Logical Volumes, even
if booted with the 2.6 Kernel.  Likewise, SystemRescue Cd is a
non-starter.

Fedora Core 3 Rescue disk has the necessary tools.  I was able to boot
FC3 Rescue and tell it not to mount the LVs.  Could then do:

# lvm
lvm> vgscan
       finds "VolGroup00"
lvm> vgchange --available y VolGroup00
       2 logical volumes now available
lvm> lvscan
        ACTIVE   /dev/VolGroup00/LogVol00
        ACTIVE   /dev/VolGroup00/LogVol01
lvm> ^C
         here try to resize the file system
# resize2fs -p /dev/VolGroup00/LogVol00 8G
 file system has unsupported features

I don't know what the "unsupported features" are.  Maybe it means
ext3. I go through the exercise of changing the file system from ext3
to ext2, and learning  how to make the system still bootable without a
panic.  Meanwhile, I have found another candidate for resizing file
systems, it is named "ext2resize", and I compile it and link it
statically and store it on my USB external disk.

Back to booting FC3 Rescue

# resize2fs -p /dev/VolGroup00/LogVol00 8G
file system has unsupported features

OK, try the other program:
# mount /dev/sdc1 /sdc1
# e2fsck -f /dev/VolGroup00/LogVol00
# /sdc1/ext2resize --verbose /dev/VolGroup00/LogVol00
      makes a bunch of progress reports, ending with
error;  cross-linked blocks found, run e2fsck first

At this point, I gave up, made sure that everything of value was
backed up to the external drive, and did a fresh installation of
Fedora Core 3.  But this time I used DiskDruid, and set up a "small"
8GB root partition, and gave the rest to the LVM.  There is a  good
guide to using DiskDruid for setting up LVM at
< 
http://www.startcom.org/docs/en/System%20Administration%20Guide%20StartCom%20Enterprise%20Linux%203.0.x/
>
Maybe you can find it from < http://tinyurl.com/59mdz >
When you get there, look for Chapter 13. LVM Configuration

I have lots of scratch paper notes, and some more gray hairs.  I will
try to write this up in more detail on the KPLUG Wiki in the next day
or two.

    carl
-- 
    carl lowenstein         marine physical lab     u.c. san diego
                                                 [EMAIL PROTECTED]
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to