LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-06-2010, 09:46 AM   #1
omgimdrunk
LQ Newbie
 
Registered: Mar 2010
Posts: 2

Rep: Reputation: 0
Raid5 HD acquired swap space cause raid to fail


The weirdest thing I have ever saw happened today after i rebooted my server.
I have an IDE drive with fedora core 12 installed.

I have 4 500g sata drives that I made a FD partition on.

Created the raid using mdadm and had a sh script that assembled and mounted

Code:
mdadm --assemble /dev/md0 /dev/sdb /dev/sdc /dev/sdd /dev/sde 
mount /dev/md0 -O /storage
This worked just fine for 4 days and about 6 reboots.
then the other day I noticed an odd amount of net traffic coming in and out of the box and took it down to do some router configuring.

After I brought it back up and ran the sh script, I got a weird error, /dev/sdc device was busy. . . . so I did an fdisk /dev/sdc, and sure enough it had a swap space and boot partition.

so . . .I deleted em, rebooted and now I'm stuck at the grub screen.
Somehow my drive names got fubared and I don't know how to recover my system.
Any ideas?
 
Old 03-07-2010, 10:08 PM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
From which disk did you boot originally? sda?

Must have been, you can't boot from a RAID5.

Boot from a live CD, find out which drive holds your boot and swap. Find the UUID's, and change GRUB's menu.lst to use UUID's instead of device names.

http://www.unixtutorial.org/2008/05/ubuntu-uuid-how-to/

Chances are that sda became sdc, and you deleted boot and swap from your boot disk thinking it was one of your RAID disks.

Reinstall, use udev to identify your disk correctly, and use UUID's as explained above.

jlinkels
 
  


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
how to reduce swap space and reclaim the space grantm Linux - Newbie 7 08-16-2012 07:05 AM
Multi Layer RAID50 fail (Intel SRCS14L RAID5 + 3ware 9550SX-4LP RAID5)+Linux RAID 0 BaronVonChickenPants Linux - Server 4 09-27-2009 04:06 AM
Swap space and raid h725 Linux - Server 4 10-18-2008 12:01 AM
how much swap space is needed; how to increase swap space? johnpaulodonnell Linux - Newbie 5 03-23-2007 03:20 AM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 01:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:35 AM.

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