Run the raid1 array in linux-Linux Enterprise Application-Linux server application information. For more information, see. Hardware:
There is a hard disk on the machine connected through ide, two connected through sata, hda is used to install the system, sda and sdb group raid1.
Hda: 160 GB
Sda: 160 GB
Sdb: 160 GB
Software:
Use mdadm to manage soft array devices in linux
The following operations can be completed:
Create an md Device
Mdadm -- create/dev/md0 -- level = 1 -- raid-devices = 2/dev/sda/dev/sdb
View device status
If cat/proc/mdstat is normal, the output is similar:
Personalities: [raid1]
Md0: active raid1 sdb [1] sda [0]
156290816 blocks [2/2] [UU]
[=>.] Resync = 9.9% (15526336/156290816) finish = 74.9 min speed = 31293 K/sec
Format the Array (ext3 ):
Mkfs. ext3/dev/md0
Create a mount point:
Mkdir/data
Add the following to/etc/fstab:
/Dev/md0/data ext3 defaults 0 0
Make the mounting take effect immediately:
Mount/data
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service