Linux / UNIX Tech Support Forum
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 ...
|
|||||||
| CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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. |
| Sponsored Links | ||
|
|
|
|||
|
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 |
|
|||
|
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. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| 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 |