Tuesday, 10 May 2011

Manage software RAID and LVM to provide

#create raid 1
 [root@localhost ~]# mdadm --create /dev/md0 -l 1 -n 2 /dev/sdb1 /dev/sdb2

#create raid 1 with write-intent bitmap
[root@localhost ~]# mdadm --create /dev/md1 -l 1 -n 2 --bitmap=internal /dev/sdb3 /dev/sdb5

#Create mdadm.conf
[root@localhost ~]# mdadm --examine --scan > /etc/mdadm.conf

#start the monitor service

[root@localhost dev]# service mdmonitor start
#turn the autostart on
[root@localhost dev]# chkconfig mdmonitor on

No comments:

Post a Comment