RapidFX
CREATE RAID LEVEL 6: mdadm --create /dev/md0 --chunk=64 --force --level=6 --raid-devices=10 /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg /dev/sdh /dev/sdi /dev/sdj /dev/sdk mdadm --create /dev/md1 --chunk=64 --force --level=6 --raid-devices=10 /dev/sdl /dev/sdm /dev/sdn /dev/sdo /dev/sdp /dev/sdq /dev/sdr /dev/sds /dev/sdt /dev/sdu mdadm --create /dev/md2 --chunk=64 --force --level=6 --spare-devices=2 --raid-devices=5 /dev/sdv /dev/sdw /dev/sdx /dev/sdy /dev/sdz /dev/sdaa /dev/sda b ---------------------------------------------- FORMAT: mkfs.ext3 -v /dev/md0 mkfs -t xfs /dev/md2 ---------------------------------------------- MOUNT: mount /dev/md0 /media/raid6_1 mount /dev/md1 /media/raid6_2 ---------------------------------------------- UNMOUNT RAID DEVICE: umount /dev/md0 ---------------------------------------------- STOP RAID DEVICE: mdadm -S /dev/md0 ---------------------------------------------- MONITOR RAID DEVICE: mdadm --monitor -f --mail=alert@example.com --delay=1800 /dev/md2 mdadm --monitor --mail=alert@example.com --delay=1800 /dev/md2 The -f switch tells mdadm to run as a deamon. The delay parameter means that polling will be done in intervals of 1800 seconds. Finally, critical event s and fatal errors should be e-mailed to alert@example.com ---------- mdadm --detail /dev/md0 This will show the state and other usefull information about the array. ---------- watch cat /proc/mdstat This will show the state of arrays ---------------------------------------------- REMOVE A DRIVE FROM ARRAY: mdadm --manage --set-faulty /dev/md1 /dev/sdc2 Must fail drive before remove mdadm /dev/md1 -r /dev/sdc2 This will remove sdc2 from array md1 mdadm /dev/md1 -a /dev/sdc2 This will add sdc2 to array md1 ---------------------------------------------- INSTALL XFS SUPPORT: yum install dmapi dmapi-2.2.8-1.el5.centos.x86_64.rpm yum install dmapi-devel dmapi-devel-2.2.8-1.el5.centos.x86_64.rpm yum install kmod-xfs kmod-xfs-0.4-1.2.6.18_8.1.6.el5.centos.plus.x86_64.rpm yum install xfsprogs xfsprogs-2.8.20-1.el5.centos.x86_64.rpm yum install xfsprogs-devel xfsprogs-devel-2.8.20-1.el5.centos.x86_64.rpm [greg@stewie Desktop]$
Main
Main Page
Stable Versions
Apache Server
Apache Links
Default installation layouts
Apache 2.2.x
How To
RAID CentOS
fail2ban CentOS
KVM CentOS
chmod
crontab
tail
CentOS FAQ
FreeBSD FAQ
FreeBSD Portupgrade
vi editor
Permission
Owner
Group
Other
Read
Write
Execute