|
Mã:
|
mdadm --create --verbose /dev/md0 --level=1 /dev/sda1 /dev/sdb2 |
|
|
Mã:
|
mdadm -Cv /dev/md0 -l1 -n2 /dev/sd[ab]1 |
|
|
Mã:
|
mdadm --detail --scan >> /etc/mdadm.conf |
|
|
Mã:
|
mdadm --detail --scan >> /etc/mdadm/mdadm.conf |
|
|
Mã:
|
mdadm --fail /dev/md0 /dev/sda1 |
|
|
Mã:
|
mdadm --remove /dev/md0 /dev/sda1 |
|
|
Mã:
|
mdadm /dev/md0 --fail /dev/sda1 --remove /dev/sda1 |
|
|
Mã:
|
mdadm --add /dev/md0 /dev/sdb1 |
|
|
Mã:
|
cat /proc/mdstat |
|
|
Mã:
|
mdadm --detail /dev/md0 |
|
|
Trích dẫn:
|
cat /proc/mdstat Personalities : [raid1] md0 : active raid1 sdb1[1] sda1[0] 104320 blocks [2/2] [UU] md1 : active raid1 sdb3[1] sda3[0] 19542976 blocks [2/2] [UU] md2 : active raid1 sdb4[1] sda4[0] 223504192 blocks [2/2] [UU] |
|
|
Mã:
|
watch cat /proc/mdstat |
|
|
Mã:
|
mdadm --stop /dev/md0 mdadm --remove /dev/md0 |
|
|
Mã:
|
mdadm --zero-superblock /dev/sda |
|
Các bài viết khác