Moxa V2616A-C8-CT-W7E [60/111] Software raid mdadm

Moxa V2616A-C7-CT-T-W7E [60/111] Software raid mdadm
V2616A Linux Manaing Disks
5-2
Software RAID --- mdadm
mdadm is a Linux utility used to manage software RAID devices. The name is derived from the “md” (multiple
device) device nodes it “administers or manages, and it replaced a previous utility mdctl. The original name
was "Mirror Disk", but was changed as the functionality increased. The RAID volume is built in Linux, not in
BIOS.
Create Software RAID Volume
The V2616A-LX computers come with 2 SATA disk slots. Users can manage linear, RAID0, RAID1 volume on
these two SATA disks. Follow these steps.
1. If the RAID device is created, you should stop it and create your own RAID devices.
2. Unmount the disks if they are mounted by mxhtspd, stop the mxhtspd service and remove the run level.
3. Because the mxhtspd hotswap daemon only supports the general disk hotswap management, the RAID
management features is not included. We suggest you disable it with RAID management features. You can
use this command to remove the mxhtspd service from run-level:
moxa@Moxa:~# insserv -r mxhtspd.sh
4. Create the partitions on the disk.
5. Create the RAID volume. mdadm options are using for the RAID volume creation. You can choose to create
a linear mode, striping mode or mirror mode in RAID volume.
6. Create a linear mode software RAID.
Or create a striping mode software RAID 0.
root@Moxa:~# cat /proc/mdstat
Personalities: [raid0]
md0: active raid0 sdc[0] sdb[1]
195371008 blocks super 1.2 512k chunks
root@Moxa:~# mdadm –stop /dev/md0
root@Moxa:~# cat /proc/mdstat
Personalities : [raid0]
Unused devices: <none>
root@Moxa:~#
root@Moxa:~# umount /media/disk1p1
root@Moxa:~# umount /media/disk2p1
root@Moxa:~# /etc/init.d/mxhtspd.sh stop
root@Moxa:~# fdisk /dev/sdb1
root@Moxa:~# fdisk /dev/sdc1
-C: create
-v: verbose
-l: RAID level, options are: linear, raid0, 0, stripe, raid1, 1, mirror, raid4, 4, raid5, 5, raid6, 6, raid10, 10, multipath,
mp, faulty. Obviously some of these are synonymous.
-n: the number of disks
root@Moxa:~# mdadm -Cv -llinear -n2 /dev/md0 /dev/sd{b,c}1
root@Moxa:~# mdadm -Cv –l0 -n2 /dev/md0 /dev/sd{b,c}1

Содержание

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

Скачать