nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

problem in starting a RAID device

This is a discussion on problem in starting a RAID device within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; hi, I have created /dev/md0 with two partions /dev/sda5 and /dev/sda6. Now, i have set /dev/sda6 as faulty and removed ...


Go Back   nixCraft Linux Forum > Linux Distribution > CentOS / RHEL / Fedora

Linux answers from nixCraft.


CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 25-02-2009, 04:21 PM
Junior Member
User
 
Join Date: Dec 2008
OS: Redhat
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
knvpavan is on a distinguished road
Default problem in starting a RAID device

hi,
I have created /dev/md0 with two partions /dev/sda5 and /dev/sda6. Now, i have set /dev/sda6 as faulty and removed the device (using -f and -r options). Now i typed
mdadm --detail /dev/md0 it is showing /dev/sda5 is active. Now,i want to remove /dev/sda5 also so i have set /dev/sda5 as faulty. but i am unable to remove the device so i have stopped the /dev/md0 ( mdadm -S /dev/md0). Here are my questions for you :
1)How to start /dev/md0 device (Note: The device is currently stopped)
2)How to remove /dev/md0 completely from the system.

Any help in this regard is appreciated.....
Thanks,
Pavan.
Reply With Quote
  #2 (permalink)  
Old 13-05-2009, 10:10 AM
Member
User
 
Join Date: Jul 2007
Location: Hyderabad
OS: Redhat RHEL, Solaris
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 3
vaibhav.kanchan is on a distinguished road
Default

Hi,

The answers for your questions are gioven below:

1)How to start /dev/md0 device (Note: The device is currently stopped)

You have to start the raid device /dev/md0 with only one current active device /dev/sda5 by using the command

#mdadm --assemble /dev/md0 /dev/sda5 -m0 --run
it will throw an error like raid device will not work properly as it needs min 2 devices.

But when you do mdadm --detail /dev/mdadm
it will show /dev/sda5 as active device in /dev/md0

Please try the above step and let us know.

2)How to remove /dev/md0 completely from the system.

now set /dev/sda5 as faulty and remove the device using the below commands:

mdadm -f /dev/md0 /dev/sda5
mdadm -r /dev/md0 /dev/sda5

mdadm --detail /dev/md0
mdadm --stop /dev/md0
Reply With Quote
  #3 (permalink)  
Old 13-05-2009, 05:40 PM
Junior Member
User
 
Join Date: Dec 2008
OS: Redhat
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
knvpavan is on a distinguished road
Default

hi,
Thanks for your help and sorry for the dealyed response.
I have tried in the following way

mdamd -Af /dev/md0 /dev/sda{5,6} and raid is started.

-A for assembling
-f for forcefully.

This worked fine for me.

Thanks
Pavan.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Jeos 8.04 starting problem immediate after installation satimis Linux software 0 11-08-2008 05:14 PM
Process Killing -9 vs -10 and RAID 0+1 vs RAID 1+0 amsreeku Linux software 1 07-07-2008 03:44 PM
Starting MySQL problem satimis Databases servers 6 30-06-2008 12:59 PM
RAID Problem asim.mcp Linux software 4 17-09-2007 05:49 PM
Difference between Linux RAID 0, RAID 1 and RAID 5 jerry Linux software 3 26-06-2006 06:48 PM


All times are GMT +5.5. The time now is 08:48 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38