LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-23-2009, 03:55 PM   #1
seaking1
LQ Newbie
 
Registered: Jan 2009
Posts: 21

Rep: Reputation: 16
mdadm and lvm removed hard drive


Fedora core 10 - 2.6.27.5-117.fc10.x86_64
mdadm - v2.6.7.1

I have removed a hard drive from my system (broken) which was /dev/sdb. I have an array set up with mdadm using /dev/sd[cdef]1 but now that I have removed the drive the device names have all shifted. (sdf=sde, sdc=sdb, etc...)

Now when I mount my array it starts using 3/4 drives.
I tried to add /dev/sdb1 to the array with
mdadm --manage /dev/md0 --add /dev/sdb1

That works but it wants to rebuild the array (because that is basically what I was doing with that comand).

Is there a way that I can have the drive names changed and have no effect on the array, or just not have the drive names changed or some way in which I may avoid this problem in the future?

my /proc/mdstat file:
> Personalities : [raid6] [raid5] [raid4]
> md0 : active raid5 sdb1[4] sdc1[1] sde1[3] sdd1[2]
> 1465151808 blocks level 5, 64k chunk, algorithm 2 [4/3] [_UUU]
> [=>...................] recovery = 6.0% (29483812/488383936)
> finish=190.9min speed=40048K/sec
>
> unused devices: <none>

my /dev/mdadm/mdadm.conf file: () new [] removed
> DEVICES /dev/md0 (/dev/sdb1) /dev/sdc1 /dev/sdd1 /dev/sde1 [/dev/sdf1]
> ARRAY /dev/md0 level=raid5 num-devices=4 metadata=0.90
> UUID=665cd099:7ae19af3:87cb1de4:fe062f1b

Last edited by seaking1; 01-23-2009 at 03:57 PM.
 
Old 01-25-2009, 07:53 AM   #2
mhearne
Member
 
Registered: Nov 2004
Location: Amarillo, TX
Distribution: Mandriva
Posts: 91

Rep: Reputation: 15
Yes, edit /etc/fstab. I hope you are using device names rather than uuid's, because that can be a pain in the arse.

With fstab, you can pretty much set the boot order and all, but mdadm (that is, software RAID) can be a serious problem if you like to sleep. Also, if you are striping, you can't recover.

I would install a real RAID card and not use software RAID, because it can really cost you, especially if you are striping. The uuid is the real problem. Even if you try to use "uuidgen" it isn't going to match.

I haven't tried it yet, but I have been thinking about skipping uuid and simply going the old way with ex. /dev/hda1 /, /dev/hda2 /var, etc.

I think that security has gone too far if I can't control my own farm, and I am in control of a lot of gig's.

Good Luck,

Michael
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
MDADM screws up the LVM partitions? Can't mount the LVMs after mdadm stopped alirezan1 Linux - Newbie 3 11-18-2008 05:42 PM
Removed bad hard drive from computer, now flash drive won't mount. checkmate3001 Linux - Hardware 6 08-15-2008 01:03 AM
using LVM for single hard drive csfalcon Linux - Hardware 2 02-17-2005 12:17 PM
Hard drive recovery, LVM Fonce Linux - Hardware 3 12-30-2004 10:47 PM
New Linux Install removed secondary hard drive partition suderfield Linux - Newbie 7 06-26-2003 05:15 PM


All times are GMT -5. The time now is 03:10 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration