分页: 1 / 1

[转贴]用softraid安装OPENB 4.8

发表于 : 2011-06-12 11:33
hyaska
出自:http://verb.bz/2011/03/06/software-raid-on-openbsd-4-8/

1、启动4.8系统盘

代码: 全选

(I)nstall, (U)pgrade or (S)hell? S(RETURN)
2、设置RAID盘

代码: 全选

# cd /dev && sh /dev/MAKEDEV wd1 && cd /
 # for i in wd0 wd1; do fdisk -yi $i; done
 Writing MBR at offset 0.
 Writing MBR at offset 0.
 # disklabel -E wd0
 Label editor (enter '?' for help at any prompt
 > a a
 offset: [63] (RETURN)
 size: [2097152] (RETURN)
 FS type: [4.2BSD] (RETURN)
 > a b
 offset: [2097215] (RETURN)
 size: [2598016] (RETURN)
 FS type: [swap] (RETURN)
 > a d
 offset: [2097215] (RETURN)
 size: [2097215] (RETURN)
 FS type: [4.2BSD] RAID(RETURN)
 > q
 Write new label?: [y] (RETURN)
 # disklabel wd0 > disklabel.wd1
 # disklabel -R wd1 disklabel.wd1
3、设置卷标

代码: 全选

# bioctl -c 1 -l /dev/wd0d,/dev/wd1d softraid0
 # dd if=/dev/zero of=/dev/rsd0c bs=1m count=1
RAID设置完成,名为sd0,开始正常的安装
4、安装正常安装

代码: 全选

# exit
(I)nstall, (U)pgrade or (S)hell? I(RETURN)
 
注意选择磁盘时选sd0
5、重启后,设置每天同步

代码: 全选

# echo "/dev/wd1a /altroot ffs xx 0 0" >> /etc/fstab
# echo "ROOTBACKUP=1" >> /etc/daily.local
# sh /etc/daily
# mount /dev/wd1a /altroot
# /usr/mdec/installboot -v /altboot/boot /usr/mdec/biosboot wd1
# umount /altroot
完成。:D

回复: [转贴]用softraid安装OPENB 4.8

发表于 : 2011-06-16 0:38
unreal
看得不是很明白,是两块硬盘做Raid0?那为何要做每天同步?