mdadm 建立raid时 No such file or directory

zuozhiji 2018-10-23 11:55:56
os版本:
[root@dev ~]# cat /etc/redhat-release
CentOS release 5.7 (Final)


这台机器需要增加一个raid,将/dev/sda5 /dev/sdb5做成md11

[root@dev]# fdisk -l

Disk /dev/sda: 1999.8 GB, 1999844147200 bytes
255 heads, 63 sectors/track, 243133 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 fd Linux raid autodetect
/dev/sda2 14 3929 31455270 fd Linux raid autodetect
/dev/sda3 3930 6540 20972857+ fd Linux raid autodetect
/dev/sda4 6541 243133 1900433272+ 5 Extended
/dev/sda5 6541 243133 1900433241 fd Linux raid autodetect

Disk /dev/sdb: 1999.8 GB, 1999844147200 bytes
255 heads, 63 sectors/track, 243133 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 13 104391 fd Linux raid autodetect
/dev/sdb2 14 3929 31455270 fd Linux raid autodetect
/dev/sdb3 3930 6540 20972857+ fd Linux raid autodetect
/dev/sdb4 6541 243133 1900433272+ 5 Extended
/dev/sdb5 6541 243133 1900433241 fd Linux raid autodetect

在建立的时候出错了,请大家帮忙看一下会是什么问题?

[root@dev]# mdadm -C /dev/md11 -a yes -l 1 -n 2 /dev/sda5 /dev/sdb5
mdadm: Cannot open /dev/sda5: No such file or directory
mdadm: Cannot open /dev/sdb5: No such file or directory
mdadm: create aborted


比较急,谢谢了!
...全文
671 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
zuozhiji 2018-10-23
  • 打赏
  • 举报
回复
重启一下就好了,晕
云山大侠 2018-10-23
  • 打赏
  • 举报
回复
强制刷新一下分区列表试试partprobe

19,610

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧