07 Using RAID and LVM disk array technology

07 Using RAID and LVM disk array technology

Redundant Disk Array RAID

Chapter 7 Using LVM and RAID disk array technology.  Chapter 7 Using LVM and RAID disk array technology.

Under the circumstances, doubling the speed of the fastest

Reduced safety

Chapter 7 Using LVM and RAID disk array technology.  Chapter 7 Using LVM and RAID disk array technology.

Two were written to disk

Increased safety

Costs

Chapter 7 Using LVM and RAID disk array technology.  Chapter 7 Using LVM and RAID disk array technology.

Parity and

compression

60-75% speed increase

There are certain security guarantees

Cost will enhance

Chapter 7 Using LVM and RAID disk array technology.  Chapter 7 Using LVM and RAID disk array technology.

Security Improvements 2 times

2 times faster

Table 7-1 mdadm common parameters and action command

parameter effect
-a Testing equipment Name
-n Specifies the number of devices
-l Assign a RAID level
-C create
-v Display process
-f Simulation equipment damage
-r Remove Device
-Q View summary information
-D check the detail information
-S Stop RAID disk array

ls -l / dev / sd *

mdadm -Cv /dev/md0 -n 4 -l 10 /dev/sd[b-e]

mdadm -Q /dev/md0

View information mdadm -D / dev / md0

Format mkfs.xfs / dev / md0

mkdir / xiaoniu

Mount mount / dev / md0 / xiaoniu

vim /etc/fstab

/dev/md0 /xiaoniu xfs defaults 0 0

mdadm -D /dev/md0

mdadm /dev/md0 -f /dev/sde

mdadm /dev/md0 -r /dev/sde

mdadm -D /dev/md0

Add a new hard disk

mdadm /dev/md0 -a /dev/sde

Hot spare

To create the array group mdadm -Cv / dev / md0 -n 3 -l 5 -x 1 / dev / sd [be]

mdadm -D /dev/md0

mkfs.ext4 /dev/md0

mkdir / xiaoniu

mount /dev/md0 /xiaoniu

vim /etc/fstab

/dev/md0 /xiaoniu ext4 defaults 0 0



Guess you like

Origin www.cnblogs.com/gerenboke/p/12597791.html