[리눅스]SoftWare RAID10
02.서버-Linux / 2013. 3. 18. 11:47
fdisk on all device and create Software RAID partition same size (E.g. 500GB). For RAID 10 you need to 4 disks. I'm assuming that server is booting from ssd or ide disk called /dev/sda
Code:
fdisk /dev/sdb fdisk /dev/sdc fdisk /dev/sdd fdisk /dev/sde
At this point you may need to reboot the system so that kernel will update and sync table. Once rebooted type the following command to create the mdadm RAID set using 4 paritions:
Code:
mdadm --create /dev/md0 -v --raid-devices=4 --level=raid10 /dev/sdb1 /dev/sdc1 /dev/sde1 /dev/sde1
Watch raid building process
Code:
watch cat /proc/mdstat
Once completed format and use /dev/md0:
Code:
fdisk /dev/md0
Format as ext3 or ext4
Code:
mkfs.ext3 /dev/md0p1
OR
Code:
mkfs.ext4 /dev/md0p1
Mount it:
Code:
mkdir /data mount /dev/md0p1 /data
'02.서버-Linux' 카테고리의 다른 글
[리눅스]RPM Failed dependencies (0) | 2013.03.28 |
---|---|
[리눅스]NDD & TCPDUMP (0) | 2013.03.25 |
[리눅스]LVM with Software RAID (0) | 2013.03.18 |
[리눅스]패스워드 쉽게 변경하기(실수하지 않게) (0) | 2013.03.08 |
[리눅스]Handy Tools for Linux admins (0) | 2013.02.18 |