LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 858|回复: 3

mdadm创建RAID5显示0MB(己解决)

[复制链接]
发表于 2007-9-23 19:03:56 | 显示全部楼层 |阅读模式
mdadm -C -v /dev/md0 -l5 -n8 /dev/sd[abcdefgh]
mdadm: layout defaults to left-symmetric
mdadm: chunk size defaults to 64K
mdadm: /dev/sda appears to be part of a raid array:
    level=raid5 devices=8 ctime=Sun Sep 23 18:42:55 2007
mdadm: /dev/sdb appears to be part of a raid array:
    level=raid5 devices=8 ctime=Sun Sep 23 18:42:55 2007
mdadm: /dev/sdc appears to be part of a raid array:
    level=raid5 devices=8 ctime=Sun Sep 23 18:42:55 2007
mdadm: /dev/sdd appears to be part of a raid array:
    level=raid5 devices=8 ctime=Sun Sep 23 18:42:55 2007
mdadm: /dev/sde appears to be part of a raid array:
    level=raid5 devices=8 ctime=Sun Sep 23 18:42:55 2007
mdadm: /dev/sdf appears to be part of a raid array:
    level=raid5 devices=8 ctime=Sun Sep 23 18:42:55 2007
mdadm: /dev/sdg appears to be part of a raid array:
    level=raid5 devices=8 ctime=Sun Sep 23 18:42:55 2007
mdadm: /dev/sdh appears to be part of a raid array:
    level=raid5 devices=8 ctime=Sun Sep 23 18:42:55 2007
mdadm: size set to 488386496K
Continue creating array? y
mdadm: array /dev/md0 started.
movie ~ # mdadm -Ds
ARRAY /dev/md0 level=raid5 num-devices=8 spares=1 UUID=7d9bc579:80c3bd77:a286911e:262f3e99
movie ~ # mdadm -Ds /dev/md0
/dev/md0:
        Version : 00.90.03
  Creation Time : Sun Sep 23 18:56:03 2007
     Raid Level : raid5
     Array Size : 3418705472 (3260.33 GiB 3500.75 GB)
  Used Dev Size : 488386496 (465.76 GiB 500.11 GB)
   Raid Devices : 8
  Total Devices : 8
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Sun Sep 23 18:56:03 2007
          State : clean, degraded, recovering
Active Devices : 7
Working Devices : 8
Failed Devices : 0
  Spare Devices : 1

         Layout : left-symmetric
     Chunk Size : 64K

Rebuild Status : 0% complete

           UUID : 7d9bc579:80c3bd77:a286911e:262f3e99
         Events : 0.1

    Number   Major   Minor   RaidDevice State
       0       8        0        0      active sync   /dev/sda
       1       8       16        1      active sync   /dev/sdb
       2       8       32        2      active sync   /dev/sdc
       3       8       48        3      active sync   /dev/sdd
       4       8       64        4      active sync   /dev/sde
       5       8       80        5      active sync   /dev/sdf
       6       8       96        6      active sync   /dev/sdg
       8       8      112        7      spare rebuilding   /dev/sdh
movie ~ # fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          13      104391   83  Linux
/dev/hda2              14         138     1004062+  82  Linux swap / Solaris
/dev/hda3             139        9729    77039707+  83  Linux

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System

Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System

Disk /dev/sdd: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System

Disk /dev/sde: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System

Disk /dev/sdf: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System

Disk /dev/sdg: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System

Disk /dev/sdh: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
You must set cylinders.
You can do this from the extra functions menu.

Disk /dev/md0: 0 MB, 0 bytes
2 heads, 4 sectors/track, 0 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

    Device Boot      Start         End      Blocks   Id  System
 楼主| 发表于 2007-9-23 20:29:10 | 显示全部楼层
我用5块盘就可以了.多了就不显示容量了..好象不能起过2T容量!

我使用的是Gentoo 2007.0 内核2.6.22-r6
回复 支持 反对

使用道具 举报

发表于 2007-9-23 23:39:51 | 显示全部楼层
Rebuild Status : 0% complete
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-9-26 23:08:17 | 显示全部楼层
原来是32位系统的问题。换成64位就可以了!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表