- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Software Raid device destruct/remove
Operating System - Linux
1819804
Members
3308
Online
109607
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2006 02:43 AM
тАО05-01-2006 02:43 AM
I was playing around with raidtools/mdadm. I created a raid 1 device "/dev/md0" using two partitions (hda1,hda2).
Now, I am done playing and I want to get rid of any notion of /dev/md0. After, I plan to put hda1 and hda2 back into service as regular partitions.
If I do a "raidstop /dev/md0" and then a "lsraid -p", I see that the raid device is "offline".
How do I "rmraid /dev/md0"?... i.e. I want to erase my toying and get rid of /dev/md0... how do I do this?
Seems there are plenty of docs for building a raid set (Suse 9.3), but nothing about how to undo/remove your raid sets once you've decided that you don't want to use software raid.
Now, I am done playing and I want to get rid of any notion of /dev/md0. After, I plan to put hda1 and hda2 back into service as regular partitions.
If I do a "raidstop /dev/md0" and then a "lsraid -p", I see that the raid device is "offline".
How do I "rmraid /dev/md0"?... i.e. I want to erase my toying and get rid of /dev/md0... how do I do this?
Seems there are plenty of docs for building a raid set (Suse 9.3), but nothing about how to undo/remove your raid sets once you've decided that you don't want to use software raid.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2006 06:23 AM
тАО05-01-2006 06:23 AM
Re: Software Raid device destruct/remove
Shalom Adam,
You can use the tools to break the raid, then rmsf should remove the device. If not, you may have to live with it sitting out there. It won't do anything.
SEP
You can use the tools to break the raid, then rmsf should remove the device. If not, you may have to live with it sitting out there. It won't do anything.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2006 07:29 PM
тАО05-01-2006 07:29 PM
Solution(SEP: you gave a HPUX answer to a Linux question... :-)
When you created the RAID1 device, you probably set the partition type of /dev/hda1 and /dev/hda2 to 0xfd (Linux raid autodetect), right?
When the RAID1 device is offline, you can use fdisk to modify the partition type of /dev/hda1 and /dev/hda2 to any value you prefer. Then you can mkfs the partition(s) if necessary. After that they will no longer be detected as RAID at next reboot.
If you have the RAID1 functionality as a kernel module and all software RAID1 devices are offline, you can make the system forget the RAID1 device without a reboot by just unloading the kernel module:
rmmod raid1
If your kernel has RAID1 functionality statically built in (not as a module), you cannot do that. In that case, booting is unavoidable.
There is also mdadm -r (remove) command, which might help. The "raidstart/raidstop" commands are the old way of handling software RAID on Linux, while "mdadm" is the new way. If your distribution is old enough to have the raid* commands, it might not have the newest mdadm with all the options.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2006 01:40 AM
тАО05-02-2006 01:40 AM
Re: Software Raid device destruct/remove
Matt nailed it.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP