Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1128076
  • 博文数量: 414
  • 博客积分: 10030
  • 博客等级: 上将
  • 技术积分: 4440
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-05 21:42
文章分类

全部博文(414)

文章存档

2011年(1)

2009年(1)

2008年(412)

我的朋友

分类: 服务器与存储

2008-10-12 10:19:29

[root@test25 /]# fdisk -l

Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        3818    30668053+  83  Linux
/dev/hda2            3819        4863     8393962+  82  Linux swap

Disk /dev/hdc: 40.0 GB, 40007761920 bytes
16 heads, 63 sectors/track, 77520 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdc1               1       19377     9765976+  8e  Linux LVM
/dev/hdc2           19378       77520    29304072    5  Extended
/dev/hdc5           19378       29066     4883224+  fd  Linux raid autodetect
/dev/hdc6           29067       38755     4883224+  fd  Linux raid autodetect
/dev/hdc7           38756       48444     4883224+  fd  Linux raid autodetect
[root@test25 /]# cat /proc/mdstat
Personalities :
unused devices:
[root@test25 /]# mdadm -Cv /dev/md0 -l5 -n3 -c128 /dev/hdc{5,6,7}
mdadm: layout defaults to left-symmetric
mdadm: size set to 4883136K
mdadm: array /dev/md0 started.
[root@test25 /]# cat /proc/mdstat
Personalities : [raid5]
md0 : active raid5 hdc7[3] hdc6[1] hdc5[0]
      9766144 blocks level 5, 128k chunk, algorithm 2 [3/2] [UU_]
      [>....................]  recovery =  1.1% (57856/4883072) finish=13.8min speed=5785K/sec
unused devices:
[root@test25 /]# cat /proc/mdstat
Personalities : [raid5]
md0 : active raid5 hdc7[3] hdc6[1] hdc5[0]
      9766144 blocks level 5, 128k chunk, algorithm 2 [3/2] [UU_]
      [>....................]  recovery =  2.2% (109440/4883072) finish=13.0min speed=6080K/sec
unused devices:
[root@test25 /]# cat /proc/mdstat
Personalities : [raid5]
md0 : active raid5 hdc7[3] hdc6[1] hdc5[0]
      9766144 blocks level 5, 128k chunk, algorithm 2 [3/2] [UU_]
      [=>...................]  recovery =  8.2% (405248/4883072) finish=12.4min speed=5980K/sec
unused devices:
[root@test25 /]# mkfs.ext3 /dev/md0
[root@test25 /]# mkdir /media/raid5
[root@test25 /]# mount /dev/md0 /media/raid5
[root@test25 /]# vi /etc/fstab
[root@test25 /]# cat /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/                 /                       ext3    defaults        1 1
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
LABEL=SWAP-hda2         swap                    swap    defaults        0 0
/dev/md0                /media/raid5            ext3    defaults        0 0

阅读(465) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~