LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-18-2009, 08:36 AM   #1
newbuyer17
Member
 
Registered: Sep 2006
Posts: 38

Rep: Reputation: 15
RAID sata drive identification and other issues


I'm hoping to set up software raid (raid 1) on my linux box and so am doing a bit of testing first using vmware.

I have set up opensuse 11.1 on vmware machine with two disks A and B.
/dev/md0 is sda/b0 as swap
/dev/md1 is sda/b1 as /

Once installed I upgraded and then rebuilt both images with mkinitrd.
I then installed grub on both drives:
grub
root (hd0,1)
setup (hd0)
root (hd1,1)
setup (hd1)

All booting and working so I take a backup before testing.

If I shutdown machine and delete Disk A in vmware, all boots OK. /proc/mdstat shows that the /dev/md disks are made up of /dev/sda?, so that is what I would expect.

I then restore, and repeat deleting Disk B instead.
Again, all is OK on boot, but /proc/mdstat shows that it again thinks the MD volumes are made up with partitions from /dev/sda, but that was the drive I deleted. I'd have expected it to show /dev/sdb

Now I add another disk to replace Disk A. The result is the system will not boot, possibly because VMware will only try to boot from the first disk. Can anyone confirm if this would work on a real PC?

To get it to boot I switch the boot order in vmware bios, and it boots, but this is no good in a real failure, I'd want it to boot automatically. Can anyone confirm if this is just the way vmware works? If not, how can I get it to try booting from both drives?

ANyway, now it is working I look at /proc/mdstat I actually see that it now thinks /dev/sdb disks make up the mds, which what I'd expect, as disk A is just a blank unformatted disk.

Now my question. Is there a way to get mdadm to keep the same physical drive as /dev/sda and the same physical drive as /dev/sdb

One of the things I'd like to do is to break the mirror whenever I do a critical upgrade, and rebuild it once it is succesful. This is going to be really difficult when I dont know if I should be adding sda back into md or adding sdb into the md, and would give scope for error.

Now in reality I'd probably just mdadm to fail the drive, then mdadm to put it back in. Perhaps I wont see this movement of drive numbering in that case?

Maybe I'm getting confused about nothing, but can anyone explain if it is possible to have /dev/sda stay as the same physical drive, or with SATA will it just move all the time. Or again, am I not going to see this with a real machine.

I know you can use UUIDs in fstab, but mdstat doesn't use these does it?
Hope this makes sense.
Thanks

Last edited by newbuyer17; 06-18-2009 at 08:38 AM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SUSE10 SP2 OES2 SP1 server with Sata Raid Rebuild Causes boot issues tekygirl SUSE / openSUSE 0 05-27-2009 03:59 PM
hard drive advice (raid 1 sata) rblampain Linux - Hardware 2 09-15-2007 12:19 AM
Sata Raid 1 and Single Sata drive drive order issue Kvetch Linux - Hardware 5 03-19-2007 06:50 PM
Mount SATA drive (not RAID) EcceVery Debian 3 08-31-2004 05:47 PM
Reading from RAID 0 SATA NTFS Drive fizgigtiznalkie Linux - Hardware 5 08-29-2004 03:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:07 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