Chinaunix首页 | 论坛 | 博客
  • 博客访问: 544887
  • 博文数量: 114
  • 博客积分: 5611
  • 博客等级: 大校
  • 技术积分: 1027
  • 用 户 组: 普通用户
  • 注册时间: 2007-04-19 08:55
文章分类

全部博文(114)

文章存档

2011年(29)

2010年(20)

2009年(1)

2008年(11)

2007年(53)

分类: LINUX

2007-04-29 13:11:57

gentoo docache
 
net-setup eth0
 
          eth1暂时不设置
 
 
ifconfig eth0 up
 
 
环境3硬盘 sda 160G sdb 250G  sdc 250G
 
 
 
fdisk /dev/sda
      /dev/sda1             83   linux
      /dev/sda2             82   linux swap
      /dev/sda3              5   extended
      /dev/sda5             83   linux
      /dev/sda6             83   linux
      /dev/sda7             83   linux
 
fdisk /dev/sdb
      /dev/sdb1            fd    linux raid autodetect     120G
      /dev/sdb2            fd    linux raid autodetect     其余空间
 
 
fdisk /dev/sdc
      /dev/sdc1            fd    linux raid autodetect     120G
      /dev/sdc2            fd    linux raid autodetect     其余空间
 
修改/etc/mdadm.conf
DEVICE /dev/[b,c]1
ARRAY /dev/md0 devices=/dev/sdb1,/dev/sdc1
 
DEVICE /dev/[b,c]2
ARRAY /dev/md1 devices=/dev/sdb2,/dev/sdc2
 
 
ctrl+x 保存、退出
 
mdadm -C --auto=yes /dev/md0 --level=raid1 --raid-device=2 /dev/sdb1 /dev/sdc1
mdadm -C --auto=yes /dev/md1 --level=raid1 --raid-device=2 /dev/sdb2 /dev/sdc2
 
more /proc/mdstat
 
会看到系统正在构架相关的raid 或则称为 同步操作
 
如果是手工同步(array /dev/md0 started)
 
阅读(1198) | 评论(0) | 转发(0) |
0

上一篇:netfiler iptables

下一篇:Samba配制中文对照..

给主人留下些什么吧!~~