Moxa V2616A-C5-CT-W7E [61/111] Check software raid status

Moxa V2616A-C8-W7E [61/111] Check software raid status
V2616A Linux Manaing Disks
5-3
Or create a mirror mode software RAID 1.
7. Then you can check the RAID device information from /proc/mdstat.
8. Format the RAID
9. Mount the RAID device manually
10. Start the RAID volume automatically in next booting. If you need to start the array automatically, you
should edit /etc/mdadm/mdadm.conf.
11. Edit /etc/mdadm/mdadm.conf.
12. Add to mount the RAID volume in /etc/fstab.
13. Unmount the root file system and reboot. The array should be started and mount at /mnt/raid.
Check Software RAID Status
The software RAID status can check via reading /proc/mdstat. Reading the arrays status if array is running.
If the array is not running, the status will be like this:
root@Moxa:~# mdadm -Cv –l1 -n2 /dev/md0 /dev/sd{b,c}1
root@Moxa:~# cat /proc/mdstat
Personalities: [raid0] [linear]
md0: active raid0 sdb1[1] sdc1[0]
195369504 blocks super 1.2 OK rounding
Unused devices: <none>
root@Moxa:~# mkfs.ext4 /dev/md0
root@Moxa:~# mount /dev/md0 /mnt/raid
root@Moxa:~# mdadm --detail --scan >> /etc/mdadm/mdadm.conf
DEVICE /dev/sdb1 /dev/sdc1
CREATE owner=root group=disk mode=0660 auto=yes
HOMEHOST <system>
MAILADDR your_email@xxx.com
ARRAY /dev/md0 metadata=1.2 name=Moxa:0
UUID=45ae9dbe:f30741ec:b22eff98:2dadb12d
/dev/md0 /mnt/raid ext4 defaults 0 2
root@Moxa:~# umount /
root@Moxa:~# cat /proc/mdstat
Personalities : [linear]
md0 : active linear sdb1[1] sdc1[0]
23436724 blocks super 1.2 0k rounding

Содержание

Похожие устройства

Скачать