Solved

EXT3 RAID1 "Please Repair The FileSystem Manually" How ?

Posted on 2008-10-30
2
1,658 Views
Last Modified: 2013-12-16
Hi All..here is the problem..

I have a Hardy Server..
Originally /dev/hda1 was 80Gb O/s & Swap.. /dev/hdb was 122Gb single partition../dev/hdc is a 250Gb drive was partitioned to match 122Gb.
Both 122Gb drives were configured as a mdadm software RAID 1 on /dev/md0 .. As the raid was 97% full I needed to replace the

122Gb drive so here is what I did..

I purchased a SATA PCI controller & I had a 320Gb SATA drive. The kernel picked up the controller & saw the new drive no

problems. So now i have 1xIDE 250Gb & 1x320Gb SATA drives

1st.. I used mdadam to --fail the 122Gb drive.
2nd.I used mdadm to --remove the drive..
3rd. I used mdadm to --stop /dev/md0
4th.I issued umount /dev/md0
5. I issude --zero-superblock on the 122Gb drive..
6. I then shut down & removed the old 122 drive so I should have a safe copy of my data.
7. I used Gparted to resize the 250Gb drive into a single partition..
8. I rebooted & mounted the 250 Gb all seemed fine & data all appears intact on this resized drive..
9.I must mention I did at some point use  fdisk to change the filesystem type (why I can not now remember ! Sorry..)
10 finally I fdisked the new drive to create an identical partition size (in cylinders) to the 250Gb drive .
11 I then used mdadm to --create /dev/md0, it did inform me that it appears an ext2 fs was on the drive & did I want to continue.. I

selected yes & it continued to create /dev/md0..After the syncing process I turned off the PC
This morning I rebooted & got the following messages.

fsck.ext3: Invalid argument while trying to open /dev/md0 /dev/md0:
The superblock could not be read or does not describe a correct ext2 filesystem. If the device is vaild and it really contains an ext2

filesystem (and now 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>
fsck died with exit status 8.
File system check failed.

Please Repair The FileSystem Manually.... HOW ! I have no idea !!
If anyone can guide me on what to do now I would be MORE than appreciative.. When i did an fdisk -l this morning I could b=not see

the /dev/md0 drive... HELP please, please remember Im a newbie so if you can hold me by the hand & guide me that would be

fantastic !!

0
Comment
Question by:mrmad1966
2 Comments
 
LVL 10

Assisted Solution

by:MadShiva
MadShiva earned 100 total points
ID: 22848862
Hi !

Try :

e2fsck -b 8193 /dev/md0

Best Regards
0
 
LVL 1

Accepted Solution

by:
mrmad1966 earned 0 total points
ID: 22875971
Thank you for your response.. Unfortunatley it did not work as I was getting not more possible solutions & time was critical I had no other option than to reinstall the whole system..
Thanks
John
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question