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 > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Note: raid5 must be in three hard disks or more and the capacity should be the same raid5 hard disk utilization rate of n-1
Add 3 hard disks to the virtual machine and the capacity is 0.2G
Open the virtual machine after adding to view the added hard disks
fdisk -l
Create partition format as raid separately
fdisk /dev/sdbfdisk/dev/sdc fdisk /dev/sddn //Create partition p //Create primary partition 1 //Create partition 1 Enter Default//Start sector and Last sector Select Default Press Enter t //Convert partition format fd //Convert to raid p //View partition results created w //Save Exit
view results
fdisk -l | grep fd
Start creating disk arrays
mdadm -C /dev/md0 -a yes -l 5 -n 3 /dev/sd{b,c,d} //parameter l is raid level n is number of disks
Create a file system of type xfs for the newly created/dev/md0
mkfs.xfs /dev/md0
View Created Results
mdadm -D /dev/md0
Creating a folder requires mounting raid5 into this folder
vim /etc/fstab
Add at the end
/dev/md0 /mnt/raid5 xfs defaults 0 0
mdadm.conf was created to enable soft raid automatically after a reboot
mdadm -D -s > /etc/mdadm.conf //This step is important or it will cause mount failure
Restart Verification
rebootdf -h
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.