In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to use mdadm to delete software RAID completely". In daily operation, I believe many people have doubts about how to use mdadm to delete software RAID completely. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "how to use mdadm to delete software RAID completely". Next, please follow the editor to study!
Experimental environment
After using mdadm to install softwareRAID, use mdadm-D / dev/md0p1 to view the status of RAID:
[root@localhost /] # mdadm-D/dev/md0p1
/ dev/md0p1:
Version: 1.2
Creation Time: Sun Jun 19 14:19:592016
Raid Level: raid0
Array Size: 41907200 (39.97 GiB 42.91 GB)
Raid Devices: 2
Total Devices: 2
Persistence: Superblock ispersistent
Update Time: Sun Jun 1914:19:59 2016
State: clean
Active Devices: 2
Working Devices: 2
Failed Devices: 0
Spare Devices: 0
Chunk Size: 512K
Name: bogon:0
UUID: 3f55f4f4:db83ffc5:96c1168d:f1706990
Events: 0
Number Major Minor RaidDevice State
0 8 17 0 active sync / dev/sdb1
1 8 33 1 active sync / dev/sdc1
You can see that this is a RAID0 made up of two partitions.
Then we will delete the RAID0 completely. Make sure that the RAID is not mounted to a directory, otherwise uninstall it first, uninstall the format: umount / dev/md0p1 directory path.
Delete proc
1. Stop running RAID
Command:mdadm-S / dev/md0p1
Mdadm:stopped / dev/md0p1, indicating that the md0p1 array has stopped running.
two。 Delete automatic profile
There are many ways to delete the configuration information about the md0 in the / etc/mdadm.conf file. Since there is only one RAID in my configuration information, I chose to empty the file.
Command:cat / dev/null > / etc/mdadm.conf
3. Delete metadata
I used to think that deleting the configuration file would be a complete end, but if I reboot, I can still find the md device under / dev, but I later found that the metadata in the RAID partition was not deleted.
Command:mdadm-zero-superblock / dev/sdb1
Command:mdadm-zero-superblock / dev/sdc1
If there are other partitions, the same is true for other partition formats.
At this point, the study on "how to use mdadm to delete software RAID completely" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.