Doporučuji:
Galerie fotek
Notebooky
Webdesign Praha
www.eprdel.cz
www.root.cz
Lumimont
A
# fdisk -l
Disk /dev/hda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 38913 312568641 fd Linux raid autodetect
Disk /dev/hdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 1 38913 312568641 fd Linux raid autodetect
Disk /dev/hdc: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 1 38913 312568641 fd Linux raid autodetect
Disk /dev/hdd: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdd1 1 38913 312568641 fd Linux raid autodetect
mdadm -Cv /dev/md0 -l5 -n4 -c128 /dev/hd{a,b,c,d}1
# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 hdd1[4] hdc1[2] hdb1[1] hda1[0]
937705728 blocks level 5, 128k chunk, algorithm 2 [4/3] [UUU_]
[>....................] recovery = 0.0% (89768/312568576) finish=289.9min speed=17953K/sec
unused devices: <none>
mdadm --detail --scan >> /etc/mdadm.conf
# cat /etc/mdadm.conf
ARRAY /dev/md0 level=raid5 num-devices=4 spares=1 UUID=9a90b885:d72dbe3a:04b023de:12a1728e
# mdadm --query /dev/md0
/dev/md0: 894.27GiB raid5 4 devices, 1 spare. Use mdadm --detail for more detail.
mdadm --detail /dev/md0
Monitorovani raidoveho pole:
mdadm --monitor --mail=root@localhost --delay=1800 /dev/md0
nohup mdadm --monitor --mail=root@localhost --delay=1800 /dev/md0 &
# mdadm --fail /dev/md0 /dev/hdc1
# mdadm --remove /dev/md0 /dev/hdc1
# mdadm --zero-superblock /dev/hdc1
# mdadm --add /dev/md0 /dev/hdc1