![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
|
|
Absolute Beginner Talk The perfect starting place to find out more about computers, Linux and Ubuntu. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
First Cup of Ubuntu
![]() Join Date: Jan 2007
Beans: 10
Kubuntu 7.10 Gutsy Gibbon
|
How to disable/uninstall software raid-1 using mdadm?
Hello,
Here's my 'cat /proc/mdstat' at the moment: Code:
Personalities : [raid1]
md2 : active raid1 sdb4[1]
1927680 blocks [2/1] [_U]
md1 : active raid1 sda3[0]
259859328 blocks [2/1] [U_]
md0 : active raid1 sdb2[1]
9767424 blocks [2/1] [_U]
By reading the bash man page on mdadm, I thought I can do uninstalling of raid-1 by first marking both active devices faulty, (i.e. sda2&sdb2) and then remove them from the array. I tried: Code:
sudo mdadm /dev/md0 --fail /dev/sdb2 mdadm: set /dev/sdb2 faulty in /dev/md0 tuomas@velvetGreen:~$ sudo mdadm /dev/md0 --remove /dev/sdb2 mdadm: hot remove failed for /dev/sdb2: Device or resource busy Here's also the output of 'sudo mdadm --query --detail /dev/md0 /dev/md1 /dev/md2' if it helps: Code:
/dev/md0:
Version : 00.90.03
Creation Time : Mon Mar 26 02:37:01 2007
Raid Level : raid1
Array Size : 9767424 (9.31 GiB 10.00 GB)
Device Size : 9767424 (9.31 GiB 10.00 GB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Tue Mar 27 01:53:11 2007
State : active, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
UUID : 22646411:3f10a9df:923160d0:bc6e7288
Events : 0.20697
Number Major Minor RaidDevice State
0 0 0 0 removed
1 8 18 1 active sync /dev/sdb2
/dev/md1:
Version : 00.90.03
Creation Time : Mon Mar 26 02:37:13 2007
Raid Level : raid1
Array Size : 259859328 (247.82 GiB 266.10 GB)
Device Size : 259859328 (247.82 GiB 266.10 GB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 1
Persistence : Superblock is persistent
Update Time : Tue Mar 27 01:52:18 2007
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
UUID : c14b9d4c:ab12a019:3c4666a8:a28a9752
Events : 0.12826
Number Major Minor RaidDevice State
0 8 3 0 active sync /dev/sda3
1 0 0 1 removed
/dev/md2:
Version : 00.90.03
Creation Time : Mon Mar 26 02:37:23 2007
Raid Level : raid1
Array Size : 1927680 (1882.82 MiB 1973.94 MB)
Device Size : 1927680 (1882.82 MiB 1973.94 MB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 2
Persistence : Superblock is persistent
Update Time : Tue Mar 27 00:53:44 2007
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
UUID : fb144aae:22959a86:39cae05e:7ee37161
Events : 0.36
Number Major Minor RaidDevice State
0 0 0 0 removed
1 8 20 1 active sync /dev/sdb4
Edit: I also tried doing: 'sudo /etc/init.d/mdadm stop; sudo mdadm --stop --scan' but that gave: Code:
* Stopping RAID monitoring service mdadm --monitor [ ok ] mdadm: fail to stop array /dev/md2: Device or resource busy mdadm: fail to stop array /dev/md1: Device or resource busy mdadm: fail to stop array /dev/md0: Device or resource busy
__________________
Asus P5B Deluxe, Core 2 Duo E6300 1,86GHz, 2 GB DDR2 Ram, Asus GeForce 7600 GT 256 MB PCI-E Last edited by velvetGreen; March 26th, 2007 at 07:05 PM.. Reason: adding more info |
|
|
|
|
|
#2 |
|
First Cup of Ubuntu
![]() Join Date: Apr 2007
Beans: 1
|
Alright,
I had the exact same problem today and finally figured out how to solve this. I'll write up a n00b from the beginning in case I have to go back and find my solution later How to remove an MDADM Raid Array 1. Find out your arrays (md0, md1, etc..) using Code:
sudo fdisk -l Code:
sudo mdadm --detail /dev/md0 (or md1 or whatever) Code:
sudo mdadm --stop /dev/md0 Code:
sudo mdadm --zero-superblock /dev/sda (or hda) sudo mdadm --zero-superblock /dev/sdX... Keep Rockin! ![]() |
|
|
|
|
|
#3 |
|
5 Cups of Ubuntu
![]() Join Date: Jan 2006
Beans: 27
|
Re: How to disable/uninstall software raid-1 using mdadm?
3. Shut down the array using
Code:
sudo mdadm --stop /dev/md0 Code:
sudo umount /dev/md0 |
|
|
|
|
|
#4 |
|
First Cup of Ubuntu
![]() Join Date: May 2007
Beans: 8
|
Re: How to disable/uninstall software raid-1 using mdadm?
Great tip, thank you mate
|
|
|
|
|
|
#5 |
|
First Cup of Ubuntu
![]() Join Date: Sep 2007
Beans: 1
|
Re: How to disable/uninstall software raid-1 using mdadm?
After remove software raid should I update grub with grub-install?
|
|
|
|
|
|
#6 |
|
5 Cups of Ubuntu
![]() Join Date: Apr 2006
Beans: 32
|
Re: How to disable/uninstall software raid-1 using mdadm?
thanks this is great info.
__________________
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|