In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
Editor to share with you what is the use of Linux disk array, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Linux disk array is used to protect system data, so let's start with disk array, and then describe in detail how to complete the configuration of Linux disk array on Linux system. I believe you must have gained a lot after reading this article. I hope this article can teach you more.
Configure disk arrays: function: prevent data loss
RAID: redundant Array:
Save multiple data at the same time: mirror:
While saving the data (only one copy), save some additional information (parity information), which can be used to recover the source data.
RAID1: mirroring volum
RAID5: stripe volume with parity information
RAID1: 50% utilization of 2 disks
RAID5 must have at least 3 disks, disk utilization (NMMI 1) / N
As the hard disk in the disk array, it has the same specification and the same capacity.
The tool used is MDADM
The role of the mdadm.conf file: controls the automatic generation of configured RAID devices when the system starts
Echo "DEVICE / dev/hd* [0-9] / dev/sd* [0-9]" > / etc/mdadm.conf
Mdadm-detail-scan > > / etc/mdadm.conf
Partition: FDISK / DEV/SDG
Create a RAID:
Mdadm-- create / dev/md0-- level=1-- raid-devices=2 / dev/sdg [56]
View RAID status: cat / proc/mdstat
Format RAID devices: MKFS-T EXT3 / DEV/MD0
Create a directory: MKDIR-P / DISK/MD0
Load: MOUTN / DEV/MD0 / DISK/MD0
Generate MDADM.CONF file by command
This completes the configuration of the Linux disk array. There may also be some questions, and I would like to say:
Configure boot to load automatically, restart difficulty
Vi w.c
# include "stdio.h" main () {printf ("hehe\ n");}
Compile command: gcc-o W.O W.C
These are all the contents of the article "what is the use of Linux disk arrays?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.