| [root@RHEL4 ~]# fdisk
-l Disk /dev/sdb: 536 MB, 536870912 bytes 64 heads, 32 sectors/track, 512 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Device Boot /dev/sdb1 Disk /dev/sdc: 536 MB, 536870912 bytes 64 heads, 32 sectors/track, 512 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes /dev/sdc1 Disk /dev/sdd: 536 MB, 536870912 bytes 64 heads, 32 sectors/track, 512 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Device Boot /dev/sdd1 Disk /dev/sde: 536 MB, 536870912 bytes 64 heads, 32 sectors/track, 512 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Device Boot /dev/sde1 |
| [root@RHEL4 ~]#
mdadm --create /dev/md0
--level=5 --raid-devices=3 --spare-devices=1
/dev/sd[b-e]1 |
| [root@RHEL4
~]mkfs
–t ext3 -c
/dev/md0 |
| [root@RHEL4
~]mdadm
–detail
/dev/md0 |
| [root@RHEL4 ~]# mount /dev/md0
/media/md0 [root@RHEL4 ~]# cd /media/md0 [root@RHEL4 md0]# ls lost+found |
| [root@RHEL4
~]#mdadm /dev/md0 --fail
/dev/sdc1 |
| [root@RHEL4
~]#mdadm /dev/md0
--remove /dev/sdc1 |
| [root@RHEL4
~]#mdadm /dev/md0 --add
/dev/sde1 |