免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1711 | 回复: 1

[Lustre] luster1.8.3,安装重新格式化的ost出错 [复制链接]

论坛徽章:
1
IT运维版块每日发帖之星
日期:2016-02-22 06:20:00
发表于 2016-10-01 17:35 |显示全部楼层
我的lustre(这里挂了个swfs的壳)版本是1.8.3。有32个oss, 每个oss上挂载4个ost,每两个oss之间做failover。

现在的问题是:oss17的4个ost物理坏了,换了新盘后,格式化后无法正确加载。

具体现象如下:
在mds上,看到oss17对应的4个ost是inactive。
# cat /proc/fs/swgfs/lov/swgfs1-mdtlov/target_obd | grep -i inactive
64: swgfs1-OST0040_UUID INACTIVE
65: swgfs1-OST0041_UUID INACTIVE
66: swgfs1-OST0042_UUID INACTIVE
67: swgfs1-OST0043_UUID INACTIVE

在oss17上格式化新盘。
# mkfs.swgfs --reformat --fsname=swgfs1 --ost --mgsnode=18.0.4.1@o2ib --mgsnode=18.0.4.2@o2ib --param=failover.mode=failout --

mountfsoptions=errors=remount-ro,mballoc,extents --failnode=18.0.3.18@o2ib --index=64 /dev/mapper/lun1p1

在oss17上挂载该盘,出错,信息如下:
# mount -t swgfs -o abort_recovery  /dev/mapper/lun1p1 /mnt/ost1

mount.swgfs: mount /dev/mapper/lun1p1 at /mnt/ost1 failed: Address already in use
The target service's index is already in use. (/dev/mapper/lun1p1)

在oss17上/var/log/message上显示的信息如下:
Oct  1 17:53:33 SWIO17 kernel: Swgfs: server umount swgfs1-OST0040 complete
Oct  1 17:53:33 SWIO17 kernel: SwgfsError: 23724:0obd_mount.c:2045:swgfs_fill_super()) Unable to mount  (-9

请问此问题如何解决?


论坛徽章:
1
IT运维版块每日发帖之星
日期:2016-02-22 06:20:00
发表于 2016-10-04 23:36 |显示全部楼层
问题解决:

# tunefs.swgfs --writeconf /dev/mapper/lun1p1  (应该是将lun1p1对应的数据写入到mds中)

# mount -t swgfs -o abort_recovery  /dev/mapper/lun1p1 /mnt/ost1 (成功)
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP