免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3140 | 回复: 6
打印 上一主题 下一主题

[RAID与磁盘阵列] RHEL-AS4.0下做raid 0后少了几块硬盘?不能格式化md0? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-04-13 21:28 |只看该作者 |倒序浏览
RHEL-AS4.0系统,火箭404RAID卡,接8块硬盘,ide接2块硬盘,总计10块250G硬盘.
先用raid卡做硬raid0 (8块硬盘).
进入系统后fdisk -l
显示
Disk /dev/hda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 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         523     4096575   83  Linux
/dev/hda3             524         778     2048287+  82  Linux swap
/dev/hda4             779       30401   237946747+   5  Extended
/dev/hda5             779       30401   237946716   fd  Linux raid autodetect

Disk /dev/hdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1               1       30401   244196001   fd  Linux raid autodetect

Disk /dev/hde: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/hde doesn't contain a valid partition table

Disk /dev/hdf: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/hdf doesn't contain a valid partition table

Disk /dev/hdg: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/hdg doesn't contain a valid partition table

Disk /dev/hdh: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/hdh doesn't contain a valid partition table

Disk /dev/hdi: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/hdi doesn't contain a valid partition table

Disk /dev/hdj: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/hdj doesn't contain a valid partition table

Disk /dev/hdk: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/hdk doesn't contain a valid partition table

Disk /dev/hdl: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/hdl doesn't contain a valid partition table

在windows下应该是合成了一块大硬盘,AS4下是没有分区,不知是为什么??
我对8块硬盘逐一分区成FD格式后,建立RAID0
[root@ftpserver ~]# mdadm -C /dev/md0 -l0 -n9 /dev/hda5 /dev/hd[e,f,g,h,i,j,k,l]1
mdadm: /dev/hda5 appears to contain an ext2fs file system
    size=128K  mtime=Tue Jan  1 02:48:36 2002
mdadm: /dev/hda5 appears to be part of a raid array:
    level=0 devices=10 ctime=Tue Jan  1 02:32:02 2002
mdadm: /dev/hde1 appears to be part of a raid array:
    level=0 devices=10 ctime=Tue Jan  1 02:32:02 2002
mdadm: /dev/hdf1 appears to be part of a raid array:
    level=0 devices=10 ctime=Tue Jan  1 02:32:02 2002
mdadm: /dev/hdg1 appears to be part of a raid array:
    level=0 devices=10 ctime=Tue Jan  1 02:32:02 2002
mdadm: /dev/hdh1 appears to contain an ext2fs file system
    size=1465175424K  mtime=Thu Apr 13 05:36:06 2006
mdadm: /dev/hdh1 appears to be part of a raid array:
    level=0 devices=10 ctime=Tue Jan  1 02:32:02 2002
mdadm: /dev/hdi1 appears to be part of a raid array:
    level=0 devices=10 ctime=Tue Jan  1 02:32:02 2002
mdadm: /dev/hdj1 appears to be part of a raid array:
    level=0 devices=10 ctime=Tue Jan  1 02:32:02 2002
mdadm: /dev/hdk1 appears to be part of a raid array:
    level=0 devices=10 ctime=Tue Jan  1 02:32:02 2002
mdadm: /dev/hdl1 appears to be part of a raid array:
    level=0 devices=10 ctime=Tue Jan  1 02:32:02 2002
Continue creating array?y
mdadm: array /dev/md0 started.

一切做完后,现在fdisk -l查看分区发现只有4块硬盘,这是为什么呢???
用 # more /proc/mdstat    #查看md0状态如下
Personalities : [raid0]
md0 : active raid0 hdl1[8] hdk1[7] hdj1[6] hdi1[5] hdh1[4] hdg1[3] hdf1[2] hde1[1] hda5[0]
      2191513856 blocks 64k chunks

unused devices: <none>

显示都正常呀?     接着格式化MD0   显示如下
#mkfs -t ext3 /dev/md0
mke2fs 1.35 (28-Feb-2004)
max_blocks 65536, rsv_groups = 8, rsv_gdb = 0
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
16 inodes, 64 blocks
3 blocks (4.69%) reserved for the super user
First data block=1
1 block group
8192 blocks per group, 8192 fragments per group
16 inodes per group

Writing inode tables: done

Filesystem too small for a journal
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 21 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.


请高手指教,我头晕的很~~~

论坛徽章:
0
2 [报告]
发表于 2006-04-14 00:03 |只看该作者
RAID是底层的东西。你的OS应该把8块盘看成一块。估计你做的RAID有问题

论坛徽章:
0
3 [报告]
发表于 2006-04-14 18:43 |只看该作者
原帖由 shiqiaoliang 于 2006-4-14 00:03 发表
RAID是底层的东西。你的OS应该把8块盘看成一块。估计你做的RAID有问题



你是说我的硬raid 有问题吗?
我昨晚试出来RAID卡第二个接口有问题,不能接2块硬盘。

就是不明白,我做2个raid阵列(md0,md1)一个4块一6块,就一切正常。是不是linux下raid只能认到硬盘容量1.5T 吗?

论坛徽章:
0
4 [报告]
发表于 2006-04-14 19:27 |只看该作者
原帖由 云胡不喜 于 2006-4-13 21:28 发表
RHEL-AS4.0系统,火箭404RAID卡,接8块硬盘,ide接2块硬盘,总计10块250G硬盘.
先用raid卡做硬raid0 (8块硬盘).
进入系统后fdisk -l
显示
Disk /dev/hda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/t ...


说句实话我都看着都有点头晕,问一下啊,你的意思是不是说在windows下能看到由raid卡做的raid的几块盘做成raid后的一块大盘而在linux下却看成了每个盘,是不是你的linux不能正常识别这块raid卡而只将它看成了一快普通的scsi卡。然后你在linux下那些所有的md之类的我没看到任何错误信息啊,你在linux下做的任何操作都与硬raid无关啊,都是软raid也没看到任何不正常的地方啊。

论坛徽章:
0
5 [报告]
发表于 2006-04-14 21:10 |只看该作者
请教4nai 下,
怎么样才能知道是RAID卡还是scsi卡呢?

为什么我做4块硬盘软raid0和6块硬盘软raid0就可以,可做9块硬盘的raid0就不行呢?

论坛徽章:
0
6 [报告]
发表于 2006-04-15 18:48 |只看该作者
看来是驱动没有加载对哦,OS识别不到正确的RAID信息哦。。。。。。。。

论坛徽章:
0
7 [报告]
发表于 2006-04-17 14:09 |只看该作者
原帖由 david5337 于 2006-4-15 18:48 发表
看来是驱动没有加载对哦,OS识别不到正确的RAID信息哦。。。。。。。。


RAID型号是HPT374
AS4.0启动时自认了,就没装驱动.不知david5337兄有什么好办法帮帮我吗?
困惑了好几天了,机子也用不成,访问raid卡上硬盘的数据,老有读取错误.

[ 本帖最后由 云胡不喜 于 2006-4-17 14:21 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP