Ryan

解决Lustre故障:unrecognized mount option
背景一套高性能计算平台,使用Lustre作为文件系统。用户报IO节点无法挂载文件系统,联系我紧急处理。分析1、首先...
扫描右侧二维码阅读全文
07
2019/08

解决Lustre故障:unrecognized mount option

背景

一套高性能计算平台,使用Lustre作为文件系统。用户报IO节点无法挂载文件系统,联系我紧急处理。

分析

1、首先尝试挂载

# mount.lustre /dev/mapper/mdt /lustre/mdt
mount.lustre: mount /dev/mapper/mdt at /lustre/mdt failed: Invalid argument
This may have multiple causes.
Are the mount options correct?
Check the syslog for more info.

2、看一下多路径状态,没问题

# multipath -ll
mdt (36806933100bb4d490009ab5e00000001) dm-4 HUAWEI  ,XSG1            
size=100G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=30 status=active
  |- 11:0:0:1 sdc 8:32  active ready running
  `- 12:0:0:1 sdb 8:16  active ready running
ost4 (36806933100bb4d490009fc3d00000005) dm-6 HUAWEI  ,XSG1            
size=3.0T features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=30 status=active
  |- 12:0:0:5 sdk 8:160 active ready running
  `- 11:0:0:5 sdj 8:144 active ready running
ost3 (36806933100bb4d490009fbe500000004) dm-3 HUAWEI  ,XSG1            
size=3.0T features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=30 status=active
  |- 11:0:0:4 sdi 8:128 active ready running
  `- 12:0:0:4 sdh 8:112 active ready running
ost2 (36806933100bb4d490009fbb000000003) dm-5 HUAWEI  ,XSG1            
size=3.0T features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=30 status=active
  |- 11:0:0:3 sdg 8:96  active ready running
  `- 12:0:0:3 sdf 8:80  active ready running
ost1 (36806933100bb4d490009fb6400000002) dm-2 HUAWEI  ,XSG1            
size=3.0T features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=30 status=active
  |- 11:0:0:2 sde 8:64  active ready running
  `- 12:0:0:2 sdd 8:48  active ready running

3、看一下日志,原来是mount option不识别

# tial -7 /var/log/messages
Aug  6 16:16:57 parastor1 kernel: LDISKFS-fs (dm-4): Unrecognized mount option "context="unconfined_u:object_r:user_tmp_t:s0"" or missing value
Aug  6 16:16:57 parastor1 kernel: LustreError: 23045:0:(osd_handler.c:6994:osd_mount()) dtfs-MDT0000-osd: can't mount /dev/mapper/mdt: -22
Aug  6 16:16:57 parastor1 kernel: LustreError: 23045:0:(obd_config.c:558:class_setup()) setup dtfs-MDT0000-osd failed (-22)
Aug  6 16:16:57 parastor1 kernel: LustreError: 23045:0:(obd_mount.c:203:lustre_start_simple()) dtfs-MDT0000-osd setup error -22
Aug  6 16:16:57 parastor1 kernel: LustreError: 23045:0:(obd_mount_server.c:1845:server_fill_super()) Unable to start osd on /dev/mapper/mdt: -22
Aug  6 16:16:57 parastor1 kernel: LustreError: 23045:0:(obd_mount.c:1582:lustre_fill_super()) Unable to mount  (-22)

处理

1、使用--dryrun参数预览一下修改mount option

# tunefs.lustre --dryrun --mountfsoptions="user_xattr,errors=remount-ro" /dev/mapper/mdt
checking for existing Lustre data: found
Reading CONFIGS/mountdata

   Read previous values:
Target:     dtfs-MDT0000
Index:      0
Lustre FS:  dtfs
Mount type: ldiskfs
Flags:      0x5
              (MDT MGS )
Persistent mount opts: user_xattr,errors=remount-ro,context="unconfined_u:object_r:user_tmp_t:s0"
Parameters:


   Permanent disk data:
Target:     dtfs-MDT0000
Index:      0
Lustre FS:  dtfs
Mount type: ldiskfs
Flags:      0x5
              (MDT MGS )
Persistent mount opts: user_xattr,errors=remount-ro
Parameters:

exiting before disk write.

2、正式修改mount option

# tunefs.lustre --mountfsoptions="user_xattr,errors=remount-ro" /dev/mapper/mdt
checking for existing Lustre data: found
Reading CONFIGS/mountdata

   Read previous values:
Target:     dtfs-MDT0000
Index:      0
Lustre FS:  dtfs
Mount type: ldiskfs
Flags:      0x5
              (MDT MGS )
Persistent mount opts: user_xattr,errors=remount-ro,context="unconfined_u:object_r:user_tmp_t:s0"
Parameters:


   Permanent disk data:
Target:     dtfs-MDT0000
Index:      0
Lustre FS:  dtfs
Mount type: ldiskfs
Flags:      0x5
              (MDT MGS )
Persistent mount opts: user_xattr,errors=remount-ro
Parameters:

Writing CONFIGS/mountdata

3、重新挂载

# mount.lustre /dev/mapper/mdt /lustre/mdt
搬瓦工年付$187机房套餐补货了,电信联通优化,512M内存/500G流量/1G带宽,建站稳定,优惠码:BWH1ZBPVK,【点击购买】!
搬瓦工年付$28CN2高速线路,512M内存/500G流量/1G带宽,电信联通优化,延迟低,速度快,建站稳定,优惠码同上,【点击购买】!
Last modification:August 7th, 2019 at 09:10 am
If you think my article is useful to you, please feel free to appreciate

Leave a Comment

One comment

  1. 张波博客

    真心看不懂