Package: e2fsprogs
Version: 1.37-2sarge1
Severity: normal

I have a vg (/dev/system_vg) with several lv on it. I extended one lv
(/dev/system_vg/media_lv) which worked fine. Now I want to extend the
ext3 file system on it from 20 GB to 40 GB. So I do the following:

remaxp:~# env LANG=C resize2fs /dev/system_vg/media_lv
resize2fs 1.37 (21-Mar-2005)
Please run 'e2fsck -f /dev/system_vg/media_lv' first.

remaxp:~# env LANG=C e2fsck -f /dev/system_vg/media_lv
e2fsck 1.37 (21-Mar-2005)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/scr/media: 2631/2621440 files (24.3% non-contiguous), 3830718/5242880
blocks
remaxp:~# env LANG=C resize2fs /dev/system_vg/media_lv
resize2fs 1.37 (21-Mar-2005)
Please run 'e2fsck -f /dev/system_vg/media_lv' first.

This continues. I do not do anything beside running these commands,
but resize2fs does not work. Looking in the man page, I only see the
"-f" option, but I am a little reluctant to use it...

I attach the output of dumpe2fs for this file system (before
resizing).

Since the lvm-tools always required /dev/system_vg/* to work, I
assumed the ext2tools would do the same. Now, however, I try to work
with the /dev/mapper-paths, and voila: it works:

remaxp:~# env LANG=C resize2fs /dev/mapper/system_vg-media_lv
resize2fs 1.37 (21-Mar-2005)
Please run 'e2fsck -f /dev/mapper/system_vg-media_lv' first.

remaxp:~# env LANG=C e2fsck -f /dev/mapper/system_vg-media_lv
e2fsck 1.37 (21-Mar-2005)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/scr/media: 2631/2621440 files (24.3% non-contiguous), 3830718/5242880
blocks
remaxp:~# env LANG=C resize2fs /dev/mapper/system_vg-media_lv
resize2fs 1.37 (21-Mar-2005)
Resizing the filesystem on /dev/mapper/system_vg-media_lv to 10485760 (4k) 
blocks.
The filesystem on /dev/mapper/system_vg-media_lv is now 10485760 blocks long.
remaxp:~# mount /scr/media/
kjournald starting.  Commit interval 5 seconds
EXT3 FS on dm-4, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
remaxp:~# df -h /scr/media/
Dateisystem          Größe Benut  Verf Ben% Eingehängt auf
/dev/mapper/system_vg-media_lv
                       40G   15G   24G  39% /scr/media

Please adjust severity, but IMHO "resize2fs" should print a proper
error message, or maybe hint to try the other path to the lv. 

If you need more/further info, please tell me which.

-- System Information:
Debian Release: 3.1
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.11.deb-7-grsec
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages e2fsprogs depends on:
ii  e2fslibs                    1.37-2sarge1 ext2 filesystem libraries
ii  libblkid1                   1.37-2sarge1 block device id library
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libcomerr2                  1.37-2sarge1 common error description library
ii  libss2                      1.37-2sarge1 command-line interface parsing lib
ii  libuuid1                    1.37-2sarge1 universally unique id library

-- no debconf information
-- 
Dr. Helge Kreutzmann, Dipl.-Phys.           [EMAIL PROTECTED]
                       gpg signed mail preferred 
    64bit GNU powered                  http://www.itp.uni-hannover.de/~kreutzm
          Help keep free software "libre": http://www.ffii.de/

Attachment: dumpe2fs.bz2
Description: Binary data

Reply via email to