bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem resizing ext2 filesystem on LVM


From: Dave Wapstra
Subject: Problem resizing ext2 filesystem on LVM
Date: Mon, 7 Jan 2002 21:01:30 +0100
User-agent: Mutt/1.2.5.1i

Hi,

I'm having some problems resizing an ext2 partition on a LVM Logical Volume. 
The filesystem is currently approx. 
170GB, the LV is about 200GB.  Parted seems to resize fine, no error messages 
are given.  However, the filesystem  
is not resized and the size stays the same.

I've resize the filesystem this way before from ~140GB to ~170GB and that 
worked fine.  Using parted 1.4.13 or 
1.4.22 gives the same result.

Below is a log showing the process. This is on a Sun E450 running Linux 2.4.2.

-Dave

address@hidden src]# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda6               100837     90844      4787  95% /
/dev/sda2              2520092    300456   2091620  13% /home
/dev/sda7               100837        16     95615   0% /tmp
/dev/sda1              2520028   1343604   1048412  56% /usr
/dev/sda4              1009092     43892    913940   5% /var
/dev/ftp/pub          95747876  78672776  12211308  87% /home/ftp/pub
/dev/ftp1/cisco      174009096 174009096         0 100% /home/ftp/pub/cisco
address@hidden src]# umount /home/ftp/pub/cisco
address@hidden src]# e2fsck -f /dev/ftp1/cisco
e2fsck 1.22, 22-Jun-2001 for EXT2 FS 0.5b, 95/08/09
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
/dev/ftp1/cisco: 32752/22102016 files (15.5% non-contiguous), 44195840/44195840 
blocks
address@hidden /root]# parted /dev/ftp1/cisco
Warning: Device /dev/ftp1/cisco is neither a SCSI nor IDE drive.
Ignore Cancel ? i
GNU Parted 1.4.13
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This program is free software, covered by the GNU General Public License.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
for more details.

Using /dev/ftp1/cisco
(parted) p
Disk geometry for /dev/ftp1/cisco: 0.000-206440.000 megabytes
Disk label type: loop
Minor    Start       End     Filesystem  Flags
1          0.000 206440.000  ext2        
(parted) resize 1 0 206432
(parted) quit
Warning: You should reinstall your boot loader before rebooting.  Read section 
4 of the Parted User documentation for more
information.
address@hidden /root]# tail -1 /var/log/messages
Jan  6 10:43:49 ftp-tsn kernel: lvm -- lvm_blk_ioctl: unknown command 
0x20001268 

address@hidden /root]# debugfs /dev/ftp1/cisco
debugfs 1.22, 22-Jun-2001 for EXT2 FS 0.5b, 95/08/09
debugfs:  show_super_stats
Filesystem volume name:   <none>
Last mounted on:          <not available>
Filesystem UUID:          a733cd3e-749e-489f-8735-c4189ae8a759
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      filetype sparse_super
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              22102016
Block count:              44195840
Reserved block count:     0
Free blocks:              933
Free inodes:              22069265
First block:              0
Block size:               4096
Fragment size:            4096
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         16384
Inode blocks per group:   512
Last mount time:          Sun Jan  6 10:43:10 2002
Last write time:          Sun Jan  6 10:43:28 2002
Mount count:              2
Maximum mount count:      20
Last checked:             Sun Jan  6 10:41:06 2002
Check interval:           15552000 (6 months)
Next check after:         Fri Jul  5 11:41:06 2002
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               128
 Group  0: block bitmap at 12, inode bitmap at 13, inode table at 14
           0 free blocks, 16353 free inodes, 9 used directories
 Group  1: block bitmap at 32780, inode bitmap at 32781, inode table at 32782
           0 free blocks, 16377 free inodes, 1 used directory
 Group  2: block bitmap at 65536, inode bitmap at 65537, inode table at 65550
           0 free blocks, 16382 free inodes, 1 used directory
 Group  3: block bitmap at 98316, inode bitmap at 98317, inode table at 98318
           0 free blocks, 16369 free inodes, 1 used directory

<...>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]