LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-20-2012, 06:55 PM   #31
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,345

Rep: Reputation: Disabled

I would forget about /dev/md3 for now. You can revisit that problem if you get the server up and running. Otherwise, you'll need on-site support anyway.
 
Old 05-20-2012, 07:10 PM   #32
bigstack
LQ Newbie
 
Registered: Oct 2010
Distribution: CentOS 6.2
Posts: 25

Original Poster
Rep: Reputation: 0
md3 is where the data i need is .. crap Wonder what happens if I try to boot now
 
Old 05-20-2012, 07:15 PM   #33
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,345

Rep: Reputation: Disabled
Quote:
Originally Posted by bigstack View Post
md3 is where the data i need is .. crap Wonder what happens if I try to boot now
You should try that now. If it works, the "mkfs (- dump2fs) - fsck -b" procedure may actually fix your /dev/md3 file system.

(Assuming you don't actually run mkfs on /dev/md3, but use the -n option.)

Last edited by Ser Olmy; 05-20-2012 at 07:37 PM.
 
1 members found this post helpful.
Old 05-20-2012, 08:34 PM   #34
bigstack
LQ Newbie
 
Registered: Oct 2010
Distribution: CentOS 6.2
Posts: 25

Original Poster
Rep: Reputation: 0
OK because I am fearless at this point and seeing the light at the end of the tunnel I did you fsck.ext3 -b 7962624 -p -y /dev/md1 on the md3 (changing the ###### to one that was found by running mke2fs -n /dev/md1 and getting the list of super block locations

I added the -C to the line so i could see progress was happening. the end line was fsck -C -b 4096000 /dev/md3 i dont mind holding down the enter key i just feel safer not telling it to yes its way through anything. here is the current status

Code:
root@rescue:~# fsck -C -b 4096000 /dev/md3
fsck from util-linux-ng 2.17.2
e2fsck 1.41.12 (17-May-2010)
/var was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
/var: |=====================                                   \ 38.0%
 
Old 05-20-2012, 08:51 PM   #35
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,345

Rep: Reputation: Disabled
Quote:
Originally Posted by bigstack View Post
OK because I am fearless at this point and seeing the light at the end of the tunnel I did you fsck.ext3 -b 7962624 -p -y /dev/md1 on the md3 (changing the ###### to one that was found by running mke2fs -n /dev/md1 and getting the list of super block locations
I hope you mean the superblock location you found by running "mke2fs -n /dev/md3", but that's probably just a typo.
 
Old 05-20-2012, 08:53 PM   #36
bigstack
LQ Newbie
 
Registered: Oct 2010
Distribution: CentOS 6.2
Posts: 25

Original Poster
Rep: Reputation: 0
Yes that was a type

Anyway it finished this as end result

Code:
/var: ***** FILE SYSTEM WAS MODIFIED *****
/var: 46848/117620736 files (15.3% non-contiguous), 174370132/470457584 blocks
AND IT MOUNTS ... Starting Backup (need to find a place to send it)

Once i backup this 700GB of stuff should i try to reboot ? Now that we have disabled the bad drive it should boot? Also check ur PM.

Last edited by bigstack; 05-20-2012 at 08:54 PM.
 
Old 05-20-2012, 09:02 PM   #37
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,345

Rep: Reputation: Disabled
It should boot, but you never know; you've (ab)used the partition as swap space, albeit for a very short time and under extremely light load.

The system may have written data to the partition, but then again it may not. The kernel file and essential system binaries may be OK, or perhaps one or more of them are corrupt. GRUB may be able to find the config file, or it may find garbage and throw a fit.

There's only one way to find out, really.
 
Old 05-20-2012, 09:57 PM   #38
bigstack
LQ Newbie
 
Registered: Oct 2010
Distribution: CentOS 6.2
Posts: 25

Original Poster
Rep: Reputation: 0
OK I will update this thread tomorrow well like 12 hrs once the backup is done and I attempt to boot it from the normal HD instead of the netboot.

The waiting game
 
Old 05-21-2012, 04:09 AM   #39
bigstack
LQ Newbie
 
Registered: Oct 2010
Distribution: CentOS 6.2
Posts: 25

Original Poster
Rep: Reputation: 0
Update:

Booted Server and it came up just fine with the 1 drive. Now I just need to get that replaced? Will the Raid AUTO config / sync the data or will I need to do something? I set the last drive to fail do i need to enable?
 
Old 05-21-2012, 10:37 AM   #40
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,345

Rep: Reputation: Disabled
Once the drive has been replaced, you need to partition the new drive and add the new /dev/sdb1 and /dev/sdb3 partitions to md1 and md3 respectively. Then you should initiate a rebuild.

May I also suggest you create another md device out of /dev/sda2 and /dev/sdb2 for use as a swap partition? Your current setup with separate swap partitions on both drives is very vulnerable to disk failures. Should one of the drives fail, you're likely to get a server crash (kernel oops). I suspect that's exactly what happened in this case.
 
Old 05-21-2012, 11:56 AM   #41
bigstack
LQ Newbie
 
Registered: Oct 2010
Distribution: CentOS 6.2
Posts: 25

Original Poster
Rep: Reputation: 0
UPDATE about info below: I googled some more and found this guide: http://www.howtoforge.com/replacing_...#comment-31477 it tells me to use --Linux in the line i guess it foreces it? I believe this is the solution but want to bounce it off someone first.

OK im on the rebuild part.. however that guide seems to have a problem? it wants me to remove the working disk from the array?

OVH Directed me toward a guide which is here:
http://help.ovh.co.uk/RaidSoft
and then I found an even better guide HERE:
http://www.kernelhardware.org/replac...ed-raid-drive/

However when i run the copy partition line over i get

Code:
root@rescue:~# sfdisk -d /dev/sda | sfdisk /dev/sdb
Checking that no-one is using this disk right now ...
OK

Disk /dev/sdb: 243201 cylinders, 255 heads, 63 sectors/track

sfdisk: ERROR: sector 0 does not have an msdos signature
 /dev/sdb: unrecognized partition table type
Old situation:
No partitions found
New situation:
Units = sectors of 512 bytes, counting from 0

   Device Boot    Start       End   #sectors  Id  System
/dev/sdb1   *      4096  81922048   81917953  fd  Linux raid autodetect
/dev/sdb2      81922049 143360000   61437952  82  Linux swap / Solaris
/dev/sdb3     143360001 3907020800 3763660800  fd  Linux raid autodetect
/dev/sdb4             0         -          0   0  Empty
Warning: partition 1 does not end at a cylinder boundary

sfdisk: I don't like these partitions - nothing changed.
(If you really want this, use the --force option.)
B got replaced so were trying to clone A to B... Now In that readout there is sdb1 - 4 A only has 1-3 is something wrong? Should I use the force option? Or do i need to low lever format this disk before I can do that guide.

Last edited by bigstack; 05-21-2012 at 12:09 PM.
 
Old 05-21-2012, 07:21 PM   #42
bigstack
LQ Newbie
 
Registered: Oct 2010
Distribution: CentOS 6.2
Posts: 25

Original Poster
Rep: Reputation: 0
Ok so the raid has completed the rebuild. And Rebooted the Server in NORMAL mode and It is NOW WORKING !!!

Thanks for all the help Ser Olmy
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ASUS P3B-F with Sil3114(pci sata raid card) wont boot with connected hdd spq Linux - Hardware 4 10-12-2010 01:56 PM
Mounting a RAID-0 Ubuntu 9.10 [Windows 7 as dual boot] thursday Linux - Hardware 2 11-24-2009 05:45 PM
install Suse, xp wont boot, repair xp suse wont boot Tangz Linux - Newbie 10 07-16-2004 05:37 PM
problems mounting fastora raid 300 kkoster Red Hat 2 04-07-2004 05:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration