心力交瘁,没有写下去的欲望了。
把历史记录扔上来吧。
Raid10
fdisk /dev/sdk
fdisk /dev/sdl
fdisk /dev/sdm
fdisk /dev/sdn
partx -a /dev/sdf1 /dev/sdk
partx -a /dev/sdf1 /dev/sdl
partx -a /dev/sdf1 /dev/sdm
partx -a /dev/sdf1 /dev/sdn
fdisk -l /dev/sdk /dev/sdl /dev/sdm /dev/sdn
mdadm -C /dev/md1 -ayes -l1 -n2 /dev/sd[k,l]1
mdadm -C /dev/md2 -ayes -l1 -n2 /dev/sd[m,n]1
mdadm -C /dev/md10 -ayes -l0 -n2 /dev/md[1,2]
cat /proc/mdstat
mdadm -D /dev/md10
echo DEVICE /dev/sd{k,l,m,n}1 >> /etc/mdadm.conf
mdadm -Ds >> /etc/mdadm.conf
mkfs.ext4 /dev/md10
mkdir /raid10
mount /dev/md10 /mnt/raid10/
Raid5
fdisk /dev/sdf
fdisk /dev/sdg
fdisk /dev/sdh
fdisk /dev/sdi
fdisk /dev/sdj
partx -a /dev/sdf1 /dev/sdf
partx -a /dev/sdg1 /dev/sdg
partx -a /dev/sdh1 /dev/sdh
partx -a /dev/sdi1 /dev/sdi
partx -a /dev/sdj1 /dev/sdj
fdisk -l /dev/sdf /dev/sdg /dev/sdh /dev/sdi /dev/sdj
mdadm -C /dev/md5 -ayes -l5 –n3 -x1
mdadm -C /dev/md5 -ayes -l5 -n3 -x1 /dev/sd[f,g,h,i]1
cat /proc/mdstat
mdadm -D /dev/md5
echo DEVICE /dev/sd{f,g,h,i}1 >> /etc/mdadm.conf
mdadm -Ds >> /etc/mdadm.conf
vim /etc/mdadm.conf
level=raido num-devices=2 spares=1
mkfs.ext4 /dev/md5
mkdir /raid5
mount /dev/md5 /raid5/