LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-19-2007, 12:31 PM   #1
Complicated Disaster
LQ Newbie
 
Registered: Jan 2007
Posts: 25

Rep: Reputation: 15
Software Raid Question


Dear Experts,

In a question related to my ongoing problem in this thread: http://www.linuxquestions.org/questi...covery-592956/

I am wondering if it is possible to mount one of a pair of RAID1 partitions individually. ie, I have two partitions hde1 and hdg1 that are normally part of an MD raid one set. Can I mount hde1 on its own?

Ta

CD
 
Old 10-20-2007, 05:42 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i think you can explicitly mount a single device, but you don't need to break the array as such... you can just start the array in a degraded state anyway with the --missing option to mdadm:

# mdadm --create /dev/md0 --level 1 --raid-devices=2 missing /dev/hde1
 
Old 10-21-2007, 01:19 PM   #3
Complicated Disaster
LQ Newbie
 
Registered: Jan 2007
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by acid_kewpie View Post
i think you can explicitly mount a single device, but you don't need to break the array as such... you can just start the array in a degraded state anyway with the --missing option to mdadm:
# mdadm --create /dev/md0 --level 1 --raid-devices=2 missing /dev/hde1
Thanks. Progress has been made, but I must have done something wrong as I have now got this...

>cat /proc/mdstat

Personalities : [raid1]
md0 : active raid1 hdg1[1] hde1[2]
156288256 blocks [2/1] [_U]

>mdadm --detail /dev/md0

/dev/md0:
Version : 00.90.01
Creation Time : Sat Sep 9 15:13:06 2006
Raid Level : raid1
Array Size : 156288256 (149.05 GiB 160.04 GB)
Device Size : 156288256 (149.05 GiB 160.04 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Sun Oct 21 19:33:15 2007
State : clean, degraded
Active Devices : 1
Working Devices : 2
Failed Devices : 0
Spare Devices : 1

UUID : 2a8effcf:f73a3d5f:e3f917e6:7f631a25
Events : 0.3370076

Number Major Minor RaidDevice State
0 0 0 - removed
1 34 1 1 active sync /dev/hdg1

2 33 1 0 spare rebuilding /dev/hde1




How do I go about getting hde1 back to being device 0?

CD
 
  


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
software raid 10 (yes, another raid question) aunquarra Linux - Server 3 06-15-2007 05:28 PM
software RAID 1 Fedora 2 question jabaker707 Linux - Software 0 10-04-2004 10:06 AM
linux software raid question drolic Linux - Software 0 08-15-2004 01:40 AM
software raid question hondaman Linux - Software 0 05-03-2004 10:27 PM
Software RAID question Vlad_M Linux - Hardware 3 10-08-2002 09:28 PM

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

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