earlier today i removed all the disks (physically) from the machine, purchased a new 80gb drive and installed suse 11 on ready to re-create the environment from scratch.
I then figured I would give it one last go before crying myself to sleep … this time, the system still reported errors but allowed / to be mounted read-write (previously it had only let me read /)
Anyway, I changed my /etc/fstab, commented out the line to mount the LVM and rebooted.
The system started up as expected.
Now it allows me to SSH into it from a remote PC (ie be able to copy/paste outputs) and go into YAST > LVM and Partitioner.
I firstly went into partitioner, it saw all the drives and the FS (Ie “Linux LVM”); I then went into Yast > LVM and it no longer tried to run the “first run”; instead, there were all my disks allocated to the volume group “system”.
I clicked apply and rebooted; unfortunately, it’s made no difference.
Here are some other things I tried:-
dumpe2fs /dev/system/home | grep superblock
Primary superblock at 0, Group descriptors at 1-186
Backup superblock at 32768, Group descriptors at 32769-32954
Backup superblock at 98304, Group descriptors at 98305-98490
Backup superblock at 163840, Group descriptors at 163841-164026
Backup superblock at 229376, Group descriptors at 229377-229562
Backup superblock at 294912, Group descriptors at 294913-295098
Backup superblock at 819200, Group descriptors at 819201-819386
Backup superblock at 884736, Group descriptors at 884737-884922
Backup superblock at 1605632, Group descriptors at 1605633-1605818
Backup superblock at 2654208, Group descriptors at 2654209-2654394
Backup superblock at 4096000, Group descriptors at 4096001-4096186
Backup superblock at 7962624, Group descriptors at 7962625-7962810
Backup superblock at 11239424, Group descriptors at 11239425-11239610
Backup superblock at 20480000, Group descriptors at 20480001-20480186
Backup superblock at 23887872, Group descriptors at 23887873-23888058
Backup superblock at 71663616, Group descriptors at 71663617-71663802
Backup superblock at 78675968, Group descriptors at 78675969-78676154
Backup superblock at 102400000, Group descriptors at 102400001-102400186
Backup superblock at 214990848, Group descriptors at 214990849-214991034
Backup superblock at 512000000, Group descriptors at 512000001-512000186
Backup superblock at 550731776, Group descriptors at 550731777-550731962
Backup superblock at 644972544, Group descriptors at 644972545-644972730
I tried for each entry “e2fsck -b nnnnnn /dev/system/home”
but each one failed with the same error:-
bgrsvrx:/ # e2fsck -b 2654208 /dev/system/home
e2fsck 1.40.2 (12-Jul-2007)
e2fsck: Bad magic number in super-block while trying to open /dev/system/home
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
bgrsvrx:/ #
However, I noticed that the higher numbers said “invalid argument”:-
bgrsvrx:/ # e2fsck -b 644972544 /dev/system/home
e2fsck 1.40.2 (12-Jul-2007)
e2fsck: Invalid argument while trying to open /dev/system/home
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
bgrsvrx:/ #
I browsed the web and asked google and some sites suggested readin the block using ‘dumpfs’:-
bgrsvrx:/ # dumpe2fs -h /dev/system/home
dumpe2fs 1.40.2 (12-Jul-2007)
Filesystem volume name: <none>
Last mounted on: <not available>
Filesystem UUID: d5146357-8880-48b2-88d4-c31c349a9f78
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype sparse_super large_file
Filesystem flags: signed directory hash
Default mount options: (none)
Filesystem state: clean with errors
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 389234688
Block count: 778463232
Reserved block count: 38913232
Free blocks: 221451596
Free inodes: 387041694
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 838
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 16384
Inode blocks per group: 512
Filesystem created: Sat Mar 29 21:18:44 2008
Last mount time: Sun Nov 30 12:06:18 2008
Last write time: Sat Dec 6 20:50:04 2008
Mount count: 9
Maximum mount count: 500
Last checked: Fri Oct 31 09:37:54 2008
Check interval: 5184000 (2 months)
Next check after: Tue Dec 30 09:37:54 2008
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 128
Journal inode: 8
Default directory hash: tea
Directory Hash Seed: f294e4c9-0bf4-490f-9251-17790af199c5
Journal backup: inode blocks
Journal size: 128M
I was surprised it read it to be honest!
Anyway, I also managed to get a decent output to some commands suggested earlier:-
bgrsvrx:/ # lvdisplay
--- Logical volume ---
LV Name /dev/system/home
VG Name system
LV UUID tkTEnV-0PE6-AZuY-dSWy-2izA-2cDd-2vzaRw
LV Write Access read/write
LV Status available
# open 0
LV Size 2.90 TB
Current LE 760218
Segments 8
Allocation inherit
Read ahead sectors 0
Block device 253:0
Oh, I also tried to mount an individual partition to see if that would work (it didn’t!):-
bgrsvrx:/ # mount /dev/sdc1 /bgr
mount: unknown filesystem type 'LVM2_member'
For information (if it helps) I ran ‘dumpe2fs /dev/system/home’, it produced a LOT of information, I won’t c/p it all here but here is a snippet
Group 0: (Blocks 0-32767)
Primary superblock at 0, Group descriptors at 1-186
Reserved GDT blocks at 187-1024
Block bitmap at 1025 (+1025), Inode bitmap at 1026 (+1026)
Inode table at 1027-1538 (+1027)
0 free blocks, 16373 free inodes, 2 directories
Group 1: (Blocks 32768-65535)
Backup superblock at 32768, Group descriptors at 32769-32954
Reserved GDT blocks at 32955-33792
Block bitmap at 33793 (+1025), Inode bitmap at 33794 (+1026)
Inode table at 33795-34306 (+1027)
0 free blocks, 16384 free inodes, 0 directories
Group 2: (Blocks 65536-98303)
Block bitmap at 65536 (+0), Inode bitmap at 65537 (+1)
Inode table at 65538-66049 (+2)
0 free blocks, 16384 free inodes, 0 directories
…
Group 23755: (Blocks 778403840-778436607)
Block bitmap at 778403840 (+0), Inode bitmap at 778403841 (+1)
Inode table at 778403842-778404353 (+2)
32254 free blocks, 16384 free inodes, 0 directories
Group 23756: (Blocks 778436608-778463231)
Block bitmap at 778436608 (+0), Inode bitmap at 778436609 (+1)
Inode table at 778436610-778437121 (+2)
26110 free blocks, 16384 free inodes, 0 directories
dumpe2fs: /dev/system/home: error reading bitmaps: Can't read an block bitmap
Anyway, I doubt anyone will be able to help even with all that info but I’m still clinging onto a little bit of hope that even though ALL my superblocks appear to be dead, someone can help me rebuild just one!!
I was also wondering if I removed a disk from the LVM but didn’t format it, as it’s originally EXT3, would I then be able to mount that disk “as normal” and read the contents? Or would removing it from the LVM move the data off of it too?
Thanks to all who read this by the way, especially those who are trying to help, I really do appreciate it!!!