In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to build linux system on RAID floppy disk array". In daily operation, I believe many people have doubts about how to build linux system on RAID floppy disk array. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "how to build linux system on RAID floppy disk array". Next, please follow the editor to study!
Equipped with a new computer, ready to install a dual system, windows used to play games, linux used to write code. Specially bought two 1T hard drives, want to use to build RAID0, use parallel Imax O to improve the performance of the computer.
When choosing the motherboard, I deliberately chose the motherboard that supports RAID, msi B85-G43 GAMING, which can use msi's super raid technology, but after buying it, I found that the driver of this thing is the exe program, hehe, the motherboard supports only a pseudo-raid, which can only be used under windows. I thought about it or decided to give up using raid in windows, after all, it was just a daily leisure system, and linux had to pursue performance, so soft RAID was used on linux to achieve.
First of all, install windows 8 on the first disk, give the main partition of 100g as disk C, leave the rest of the hard disk still, and wait for the system to be installed before planning the hard disk.
After the system is installed, use MiniTool Partition Wizard Home Edition 7.0to plan the hard drive. Go straight to the picture and explain later.
Total 1.86T
Windows:
100g system partition, primary partition
231.5g game installation
200g download file
200g download games
150G installation software
150G tool
Shared hard drives:
100g document
331.5g all kinds of music, movies, pictures
Linux: use the latest fedora20
300m boot partition, primary partition, does not use raid, because grub2 visual inspection does not support raid, so separate boot
300m boot backup partition, primary partition, back up a boot partition, you can use this partition to boot in case of an accident
3.6g swap partition, swap0 + swap1, 1.8g each, distributed on two hard drives
20g mount to /, sys0 + sys1, 10g each
50g / usr, usr0 + usr1, 25g each
25g / home,home0 + home1, 12.5g each
50g / var, var0 + var1, 25g each
20g / opt, opt0 + opt1, 10g each
230.8G / data, data0 + data1, 115.4G each, used to store all kinds of downloaded software, compressed packages, virtual machines
At this point, the partition scheme is completed. MiniTool Partition Wizard divides the windows partition and converts the 400G of linux into an ext4 file system according to the above partition plan format. Then start to install the system with live cd.
Carve the fedora live cd installation system on the USB disk
Since the installer for fedora does not have the option to select RAID directly when partitioning, I use console to do RAID.
The tool used here is mdadm.
First, use su root to switch to the root user, and use fdisk-l to see the current partition.
/ dev/sda
/ dev/sdb
It can be observed that / dev/sda3 and / dev/sdb1 are boot and bootbak, respectively. These two partitions are ignored.
/ dev/sda5-11 is the same size as / dev/sdb5-11, so this part is the hard drive we use to make RAID.
Make swap Partition
$mdadm-Cv / dev/md0-10-N2 / dev/sd {aforme b} 5$ mkfs.ext4 / dev/md0 this step must be done, otherwise the hard drive md0 cannot be seen in the installation program, and the unknown command can also be written as $mdadm-- create-- verbose / dev/md0-- level=0-- raid-devices=2 / dev/sd {Azob} 5$ mkfs.ext4 / dev/md0
According to the above, make the remaining partitions into RAID partitions, restart the system, and enter the live cd installation interface again. When you partition the hard disk, you can see these RAID hard disk partitions.
Select a partition, fill in the mount point in the details on the right, click re-partition, select ext4 or swap, and then click Update Settings. When you are finished, click start to install the system, and everything will be all right.
After the system is installed, you can check it with df-h.
Use cat / proc/mdstat to view the running status of the RAID partition
Finally, let's test the speed of RAID0
First install the hdparm test tool, yum install hdparm.x86_64
Use the hdparm-tT device name to test / dev/sda and / dev/md0, respectively. The test results are as follows
The speed of RAID0 has nearly tripled, and it's a very good result.
At this point, the study on "how to build a linux system on RAID floppy disk array" 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.