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

resize2fs on LVM on MD raid on Fedora Core 3 - inode table conflicts in fsck



Hi.

I'm attempting to setup a box here to be a file-server for all my data. I'm attempting to resize an ext3 partition to demonstrate this capability to myself before fully committing to this system as the primary data storage. I'm having some problems resizing an ext3 filesystem after I've resized the underlying logical volume. Following the ext3 resize, fsck spits out lots of errors like:

Pass 1: Checking inodes, blocks, and sizes
Group 49's inode table at 1605636 conflicts with some other fs block.
Relocate<y>? no

I believe that I'm following the correct procedure for resizing the filesystem. Any pointers greatly appreciated. Thanks.

A complete transcript demonstrating this problem follows:

SEVERN:~# cat /etc/fedora-release
Fedora Core release 3 (Heidelberg)

SEVERN:~# uname -a
Linux severn.wwwdotorg.org 2.6.9-1.667 #1 Tue Nov 2 14:41:25 EST 2004 i686 athlon i386 GNU/Linux


SEVERN:~# cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 hdk2[1] hdg2[0]
      242685824 blocks [2/2] [UU]

md0 : active raid1 hdk1[1] hdg1[0]
      104320 blocks [2/2] [UU]

unused devices: <none>

root@:~# pvscan
  PV /dev/md1   VG severn_vg0   lvm2 [231.44 GB / 109.88 GB free]
  Total: 1 [231.44 GB] / in use: 1 [231.44 GB] / in no VG: 0 [0   ]

root SEVERN:~# vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "severn_vg0" using metadata type lvm2

root SEVERN:~# lvscan
  ACTIVE            '/dev/severn_vg0/severn_root' [24.44 GB] inherit
  ACTIVE            '/dev/severn_vg0/severn_samba' [128.00 MB] inherit
  ACTIVE            '/dev/severn_vg0/severn_archive' [12.00 GB] inherit
  ACTIVE            '/dev/severn_vg0/severn_photos' [20.00 GB] inherit
  ACTIVE            '/dev/severn_vg0/severn_home' [20.00 GB] inherit
  ACTIVE            '/dev/severn_vg0/severn_backup' [40.00 GB] inherit
  ACTIVE            '/dev/severn_vg0/severn_svn' [5.00 GB] inherit

root SEVERN:~# lvcreate -L 5G -n test severn_vg0
  Logical volume "test" created

root SEVERN:~# mke2fs /dev/severn_vg0/test
mke2fs 1.35 (28-Feb-2004)
max_blocks 1342177280, rsv_groups = 40960, rsv_gdb = 319
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
655360 inodes, 1310720 blocks
65536 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1342177280
40 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736

Writing inode tables:  0/40 [...deleted from logfile...] done
inode.i_blocks = 20424, i_size = 4243456
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 33 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.

root SEVERN:~# e2fsck /dev/severn_vg0/test
e2fsck 1.35 (28-Feb-2004)
/dev/severn_vg0/test: clean, 11/655360 files, 23134/1310720 blocks

root SEVERN:~# resize2fs -d 16 /dev/severn_vg0/test
resize2fs 1.35 (28-Feb-2004)
The filesystem is already 1310720 blocks long.  Nothing to do!

root SEVERN:~# lvextend -L +5G /dev/severn_vg0/test
  Extending logical volume test to 10.00 GB
  Logical volume test successfully resized

root SEVERN:~# resize2fs -d 16 /dev/severn_vg0/test
resize2fs 1.35 (28-Feb-2004)
Resizing the filesystem on /dev/severn_vg0/test to 2621440 (4k) blocks.
The filesystem on /dev/severn_vg0/test is now 2621440 blocks long.

root SEVERN:~# e2fsck /dev/severn_vg0/test
e2fsck 1.35 (28-Feb-2004)
/dev/severn_vg0/test: clean, 11/1310720 files, 43696/2621440 blocks

root SEVERN:~# e2fsck -f /dev/severn_vg0/test
e2fsck 1.35 (28-Feb-2004)
Pass 1: Checking inodes, blocks, and sizes
Group 49's inode table at 1605636 conflicts with some other fs block.
Relocate<y>? no

Group 49's inode table at 1605637 conflicts with some other fs block.
Relocate<y>? no

... same message repeated for many blocks.
... eventually hit ^C

Group 49's inode table at 1605767 conflicts with some other fs block.
Relocate<y>? Quit

root SEVERN:~# debugfs /dev/severn_vg0/test
debugfs 1.35 (28-Feb-2004)
debugfs: stats
Filesystem volume name: <none>
Last mounted on: <not available>
Filesystem UUID: c037ef14-2db8-41ce-92bf-3b642a5bad55
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: resize_inode filetype sparse_super large_file
Default mount options: (none)
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 1310720
Block count: 2621440
Reserved block count: 131072
Free blocks: 2577744
Free inodes: 1310709
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
Filesystem created: Wed Dec 8 20:24:58 2004
Last mount time: n/a
Last write time: Wed Dec 8 20:26:31 2004
Mount count: 0
Maximum mount count: 33
Last checked: Wed Dec 8 20:24:58 2004
Check interval: 15552000 (6 months)
Next check after: Mon Jun 6 21:24:58 2005
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 128
Default directory hash: tea
Directory Hash Seed: ed7f64a9-338d-4938-8e49-b93241bb88b6
Directories: 2
Group 0: block bitmap at 321, inode bitmap at 322, inode table at 323
31927 free blocks, 16373 free inodes, 2 used directories
Group 1: block bitmap at 33089, inode bitmap at 33090, inode table at 33091
31933 free blocks, 16384 free inodes, 0 used directories
Group 2: block bitmap at 65536, inode bitmap at 65537, inode table at 65538
32254 free blocks, 16384 free inodes, 0 used directories
Group 3: block bitmap at 98625, inode bitmap at 98626, inode table at 98627
31933 free blocks, 16384 free inodes, 0 used directories
Group 4: block bitmap at 131072, inode bitmap at 131073, inode table at 131074
32254 free blocks, 16384 free inodes, 0 used directories
Group 5: block bitmap at 164161, inode bitmap at 164162, inode table at 164163
31933 free blocks, 16384 free inodes, 0 used directories
Group 6: block bitmap at 196608, inode bitmap at 196609, inode table at 196610
32254 free blocks, 16384 free inodes, 0 used directories
Group 7: block bitmap at 229697, inode bitmap at 229698, inode table at 229699
31933 free blocks, 16384 free inodes, 0 used directories
Group 8: block bitmap at 262144, inode bitmap at 262145, inode table at 262146
32254 free blocks, 16384 free inodes, 0 used directories
Group 9: block bitmap at 295233, inode bitmap at 295234, inode table at 295235
31933 free blocks, 16384 free inodes, 0 used directories
Group 10: block bitmap at 327680, inode bitmap at 327681, inode table at 327682
32254 free blocks, 16384 free inodes, 0 used directories
Group 11: block bitmap at 360448, inode bitmap at 360449, inode table at 360450
32254 free blocks, 16384 free inodes, 0 used directories
Group 12: block bitmap at 393216, inode bitmap at 393217, inode table at 393218
32254 free blocks, 16384 free inodes, 0 used directories
Group 13: block bitmap at 425984, inode bitmap at 425985, inode table at 425986
32254 free blocks, 16384 free inodes, 0 used directories
Group 14: block bitmap at 458752, inode bitmap at 458753, inode table at 458754
32254 free blocks, 16384 free inodes, 0 used directories
Group 15: block bitmap at 491520, inode bitmap at 491521, inode table at 491522
32254 free blocks, 16384 free inodes, 0 used directories
Group 16: block bitmap at 524288, inode bitmap at 524289, inode table at 524290
32254 free blocks, 16384 free inodes, 0 used directories
Group 17: block bitmap at 557056, inode bitmap at 557057, inode table at 557058
32254 free blocks, 16384 free inodes, 0 used directories
Group 18: block bitmap at 589824, inode bitmap at 589825, inode table at 589826
32254 free blocks, 16384 free inodes, 0 used directories
Group 19: block bitmap at 622592, inode bitmap at 622593, inode table at 622594
32254 free blocks, 16384 free inodes, 0 used directories
Group 20: block bitmap at 655360, inode bitmap at 655361, inode table at 655362
32254 free blocks, 16384 free inodes, 0 used directories
Group 21: block bitmap at 688128, inode bitmap at 688129, inode table at 688130
32254 free blocks, 16384 free inodes, 0 used directories
Group 22: block bitmap at 720896, inode bitmap at 720897, inode table at 720898
32254 free blocks, 16384 free inodes, 0 used directories
Group 23: block bitmap at 753664, inode bitmap at 753665, inode table at 753666
32254 free blocks, 16384 free inodes, 0 used directories
Group 24: block bitmap at 786432, inode bitmap at 786433, inode table at 786434
32254 free blocks, 16384 free inodes, 0 used directories
Group 25: block bitmap at 819521, inode bitmap at 819522, inode table at 819523
31933 free blocks, 16384 free inodes, 0 used directories
Group 26: block bitmap at 851968, inode bitmap at 851969, inode table at 851970
32254 free blocks, 16384 free inodes, 0 used directories
Group 27: block bitmap at 885057, inode bitmap at 885058, inode table at 885059
31933 free blocks, 16384 free inodes, 0 used directories
Group 28: block bitmap at 917504, inode bitmap at 917505, inode table at 917506
32254 free blocks, 16384 free inodes, 0 used directories
Group 29: block bitmap at 950272, inode bitmap at 950273, inode table at 950274
32254 free blocks, 16384 free inodes, 0 used directories
Group 30: block bitmap at 983040, inode bitmap at 983041, inode table at 983042
32254 free blocks, 16384 free inodes, 0 used directories
Group 31: block bitmap at 1015808, inode bitmap at 1015809, inode table at 1015
810
32254 free blocks, 16384 free inodes, 0 used directories
Group 32: block bitmap at 1048576, inode bitmap at 1048577, inode table at 1048
578
32254 free blocks, 16384 free inodes, 0 used directories
Group 33: block bitmap at 1081344, inode bitmap at 1081345, inode table at 1081
346
32254 free blocks, 16384 free inodes, 0 used directories
Group 34: block bitmap at 1114112, inode bitmap at 1114113, inode table at 1114
114
32254 free blocks, 16384 free inodes, 0 used directories
Group 35: block bitmap at 1146880, inode bitmap at 1146881, inode table at 1146
882
32254 free blocks, 16384 free inodes, 0 used directories
Group 36: block bitmap at 1179648, inode bitmap at 1179649, inode table at 1179
650
32254 free blocks, 16384 free inodes, 0 used directories
Group 37: block bitmap at 1212416, inode bitmap at 1212417, inode table at 1212
418
32254 free blocks, 16384 free inodes, 0 used directories
Group 38: block bitmap at 1245184, inode bitmap at 1245185, inode table at 1245
186
32254 free blocks, 16384 free inodes, 0 used directories
Group 39: block bitmap at 1277952, inode bitmap at 1277953, inode table at 1277
954
32254 free blocks, 16384 free inodes, 0 used directories
Group 40: block bitmap at 1310720, inode bitmap at 1310721, inode table at 1310
722
32254 free blocks, 16384 free inodes, 0 used directories
Group 41: block bitmap at 1343488, inode bitmap at 1343489, inode table at 1343
490
32254 free blocks, 16384 free inodes, 0 used directories
Group 42: block bitmap at 1376256, inode bitmap at 1376257, inode table at 1376
258
32254 free blocks, 16384 free inodes, 0 used directories
Group 43: block bitmap at 1409024, inode bitmap at 1409025, inode table at 1409
026
32254 free blocks, 16384 free inodes, 0 used directories
Group 44: block bitmap at 1441792, inode bitmap at 1441793, inode table at 1441
794
32254 free blocks, 16384 free inodes, 0 used directories
Group 45: block bitmap at 1474560, inode bitmap at 1474561, inode table at 1474
562
32254 free blocks, 16384 free inodes, 0 used directories
Group 46: block bitmap at 1507328, inode bitmap at 1507329, inode table at 1507
330
32254 free blocks, 16384 free inodes, 0 used directories
Group 47: block bitmap at 1540096, inode bitmap at 1540097, inode table at 1540
098
32254 free blocks, 16384 free inodes, 0 used directories
Group 48: block bitmap at 1572864, inode bitmap at 1572865, inode table at 1572
866
32254 free blocks, 16384 free inodes, 0 used directories
Group 49: block bitmap at 1605634, inode bitmap at 1605635, inode table at 1605
636
32252 free blocks, 16384 free inodes, 0 used directories
Group 50: block bitmap at 1638400, inode bitmap at 1638401, inode table at 1638
402
32254 free blocks, 16384 free inodes, 0 used directories
Group 51: block bitmap at 1671168, inode bitmap at 1671169, inode table at 1671
170
32254 free blocks, 16384 free inodes, 0 used directories
Group 52: block bitmap at 1703936, inode bitmap at 1703937, inode table at 1703
938
32254 free blocks, 16384 free inodes, 0 used directories
Group 53: block bitmap at 1736704, inode bitmap at 1736705, inode table at 1736
706
32254 free blocks, 16384 free inodes, 0 used directories
Group 54: block bitmap at 1769472, inode bitmap at 1769473, inode table at 1769
474
32254 free blocks, 16384 free inodes, 0 used directories
Group 55: block bitmap at 1802240, inode bitmap at 1802241, inode table at 1802
242
32254 free blocks, 16384 free inodes, 0 used directories
Group 56: block bitmap at 1835008, inode bitmap at 1835009, inode table at 1835
010
32254 free blocks, 16384 free inodes, 0 used directories
Group 57: block bitmap at 1867776, inode bitmap at 1867777, inode table at 1867
778
32254 free blocks, 16384 free inodes, 0 used directories
Group 58: block bitmap at 1900544, inode bitmap at 1900545, inode table at 1900
546
32254 free blocks, 16384 free inodes, 0 used directories
Group 59: block bitmap at 1933312, inode bitmap at 1933313, inode table at 1933
314
32254 free blocks, 16384 free inodes, 0 used directories
Group 60: block bitmap at 1966080, inode bitmap at 1966081, inode table at 1966
082
32254 free blocks, 16384 free inodes, 0 used directories
Group 61: block bitmap at 1998848, inode bitmap at 1998849, inode table at 1998
850
32254 free blocks, 16384 free inodes, 0 used directories
Group 62: block bitmap at 2031616, inode bitmap at 2031617, inode table at 2031
618
32254 free blocks, 16384 free inodes, 0 used directories
Group 63: block bitmap at 2064384, inode bitmap at 2064385, inode table at 2064
386
32254 free blocks, 16384 free inodes, 0 used directories
Group 64: block bitmap at 2097152, inode bitmap at 2097153, inode table at 2097
154
32254 free blocks, 16384 free inodes, 0 used directories
Group 65: block bitmap at 2129920, inode bitmap at 2129921, inode table at 2129
922
32254 free blocks, 16384 free inodes, 0 used directories
Group 66: block bitmap at 2162688, inode bitmap at 2162689, inode table at 2162
690
32254 free blocks, 16384 free inodes, 0 used directories
Group 67: block bitmap at 2195456, inode bitmap at 2195457, inode table at 2195
458
32254 free blocks, 16384 free inodes, 0 used directories
Group 68: block bitmap at 2228224, inode bitmap at 2228225, inode table at 2228
226
32254 free blocks, 16384 free inodes, 0 used directories
Group 69: block bitmap at 2260992, inode bitmap at 2260993, inode table at 2260
994
32254 free blocks, 16384 free inodes, 0 used directories
Group 70: block bitmap at 2293760, inode bitmap at 2293761, inode table at 2293
762
32254 free blocks, 16384 free inodes, 0 used directories
Group 71: block bitmap at 2326528, inode bitmap at 2326529, inode table at 2326
530
32254 free blocks, 16384 free inodes, 0 used directories
Group 72: block bitmap at 2359296, inode bitmap at 2359297, inode table at 2359
298
32254 free blocks, 16384 free inodes, 0 used directories
Group 73: block bitmap at 2392064, inode bitmap at 2392065, inode table at 2392
066
32254 free blocks, 16384 free inodes, 0 used directories
Group 74: block bitmap at 2424832, inode bitmap at 2424833, inode table at 2424
834
32254 free blocks, 16384 free inodes, 0 used directories
Group 75: block bitmap at 2457600, inode bitmap at 2457601, inode table at 2457
602
32254 free blocks, 16384 free inodes, 0 used directories
Group 76: block bitmap at 2490368, inode bitmap at 2490369, inode table at 2490
370
32254 free blocks, 16384 free inodes, 0 used directories
Group 77: block bitmap at 2523136, inode bitmap at 2523137, inode table at 2523
138
32254 free blocks, 16384 free inodes, 0 used directories
Group 78: block bitmap at 2555904, inode bitmap at 2555905, inode table at 2555
906
32254 free blocks, 16384 free inodes, 0 used directories
Group 79: block bitmap at 2588672, inode bitmap at 2588673, inode table at 2588
674
32254 free blocks, 16384 free inodes, 0 used directories
debugfs: quit


--
Stephen Warren, Software Engineer, NVIDIA, Fort Collins, CO
swarren wwwdotorg org     http://www.wwwdotorg.org/pgp.html

Attachment: signature.asc
Description: OpenPGP digital signature


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