ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

mount挂载目录失败

2021-12-23 23:05:02  阅读:309  来源: 互联网

标签:monitor 23 18 mount action 挂载 Dec 目录 nm05


背景

        因为此次规划的裸设备与之前裸设备重名,/etc/fstab中加载的还是旧的逻辑卷信息,导致mount挂载目录不成功。

问题处理

操作系统版本

[root@guizhou_hp-pop-10-150-57-13 ~]# cat /etc/redhat-release 
CentOS Linux release 7.5.1804 (Core) 

 

挂载/data目录,前台不报错,目录也未挂载

[root]# mount /dev/datavg/datavg-lv /data

[root]# df -h
Filesystem                     Size  Used Avail Use% Mounted on
/dev/sdm1                       50G   14G   37G  27% /
devtmpfs                        94G     0   94G   0% /dev
tmpfs                           94G     0   94G   0% /dev/shm
tmpfs                           94G   75M   94G   1% /run
tmpfs                           94G     0   94G   0% /sys/fs/cgroup
/dev/sdm2                      397G  220M  397G   1% /var
tmpfs                           19G     0   19G   0% /run/user/0

 

查看messages日志

[root]# tail -200 /var/log/messages
Dec 23 18:42:30 nm05-monitor-10e5e65e16 kernel: XFS (dm-0): Mounting V5 Filesystem
Dec 23 18:42:30 nm05-monitor-10e5e65e16 kernel: XFS (dm-0): Mounting V5 Filesystem
Dec 23 18:42:30 nm05-monitor-10e5e65e16 rsyslogd: action 'action 8' resumed (module 'builtin:omfwd') [v8.24.0-34.el7 try http://www.rsyslog.com/e/2359 ]
Dec 23 18:42:30 nm05-monitor-10e5e65e16 rsyslogd: action 'action 8' resumed (module 'builtin:omfwd') [v8.24.0-34.el7 try http://www.rsyslog.com/e/2359 ]
Dec 23 18:42:30 nm05-monitor-10e5e65e16 rsyslogd: action 'action 8' resumed (module 'builtin:omfwd') [v8.24.0-34.el7 try http://www.rsyslog.com/e/2359 ]
Dec 23 18:42:30 nm05-monitor-10e5e65e16 rsyslogd: action 'action 8' resumed (module 'builtin:omfwd') [v8.24.0-34.el7 try http://www.rsyslog.com/e/2359 ]
Dec 23 18:42:30 nm05-monitor-10e5e65e16 rsyslogd: action 'action 8' resumed (module 'builtin:omfwd') [v8.24.0-34.el7 try http://www.rsyslog.com/e/2359 ]
Dec 23 18:42:30 nm05-monitor-10e5e65e16 rsyslogd: action 'action 8' resumed (module 'builtin:omfwd') [v8.24.0-34.el7 try http://www.rsyslog.com/e/2359 ]
Dec 23 18:42:30 nm05-monitor-10e5e65e16 rsyslogd: action 'action 8' resumed (module 'builtin:omfwd') [v8.24.0-34.el7 try http://www.rsyslog.com/e/2359 ]
Dec 23 18:42:30 nm05-monitor-10e5e65e16 rsyslogd: action 'action 8' resumed (module 'builtin:omfwd') [v8.24.0-34.el7 try http://www.rsyslog.com/e/2359 ]
Dec 23 18:42:30 nm05-monitor-10e5e65e16 rsyslogd: action 'action 8' resumed (module 'builtin:omfwd') [v8.24.0-34.el7 try http://www.rsyslog.com/e/2359 ]
Dec 23 18:42:30 nm05-monitor-10e5e65e16 rsyslogd: action 'action 8' resumed (module 'builtin:omfwd') [v8.24.0-34.el7 try http://www.rsyslog.com/e/2359 ]
Dec 23 18:42:30 nm05-monitor-10e5e65e16 rsyslogd: action 'action 8' suspended, next retry is Thu Dec 23 18:43:00 2021 [v8.24.0-34.el7 try http://www.rsyslog.com/e/2007 ]
Dec 23 18:42:30 nm05-monitor-10e5e65e16 kernel: XFS (dm-0): Ending clean mount
Dec 23 18:42:30 nm05-monitor-10e5e65e16 kernel: XFS (dm-0): Ending clean mount
Dec 23 18:42:30 nm05-monitor-10e5e65e16 systemd: Unit data.mount is bound to inactive unit dev-datavg-lv\x2ddata.device. Stopping, too.
Dec 23 18:42:30 nm05-monitor-10e5e65e16 systemd: Unmounting /data...
Dec 23 18:42:30 nm05-monitor-10e5e65e16 kernel: XFS (dm-0): Unmounting Filesystem
Dec 23 18:42:30 nm05-monitor-10e5e65e16 kernel: XFS (dm-0): Unmounting Filesystem
Dec 23 18:42:30 nm05-monitor-10e5e65e16 systemd: Unmounted /data.

 

查看/etc/fstab,存在一条旧的挂载信息,将此自动挂载信息删除,然后重新加载systemctl

[root]# cat /etc/fstab 
/dev/datavg/datavg-lv                     /data                   xfs     defaults        0 0

 

重新加载systemctl

[root]# systemctl damon-reload 

 

 重新挂载/data目录,目录已成功挂载

[root@nm05-monitor-10e5e65e16 /]# mount /dev/datavg/datavg-lv /data

[root@nm05-monitor-10e5e65e16 /]# df -h
Filesystem                     Size  Used Avail Use% Mounted on
/dev/sdm1                       50G   14G   37G  27% /
devtmpfs                        94G     0   94G   0% /dev
tmpfs                           94G     0   94G   0% /dev/shm
tmpfs                           94G   75M   94G   1% /run
tmpfs                           94G     0   94G   0% /sys/fs/cgroup
/dev/sdm2                      397G  220M  397G   1% /var
tmpfs                           19G     0   19G   0% /run/user/0
/dev/mapper/datavg-datavg--lv  6.3T   33M  6.3T   1% /data

 

查看messages日志,无异常信息

[root]# tail -200 /var/log/messages
Dec 23 18:43:39 nm05-monitor-10e5e65e16 systemd: Reloading.
Dec 23 18:43:39 nm05-monitor-10e5e65e16 rsyslogd: action 'action 8' resumed (module 'builtin:omfwd') [v8.24.0-34.el7 try http://www.rsyslog.com/e/2359 ]
Dec 23 18:43:39 nm05-monitor-10e5e65e16 rsyslogd: action 'action 8' resumed (module 'builtin:omfwd') [v8.24.0-34.el7 try http://www.rsyslog.com/e/2359 ]
Dec 23 18:43:39 nm05-monitor-10e5e65e16 rsyslogd: action 'action 8' resumed (module 'builtin:omfwd') [v8.24.0-34.el7 try http://www.rsyslog.com/e/2359 ]
Dec 23 18:43:39 nm05-monitor-10e5e65e16 rsyslogd: action 'action 8' resumed (module 'builtin:omfwd') [v8.24.0-34.el7 try http://www.rsyslog.com/e/2359 ]
Dec 23 18:43:39 nm05-monitor-10e5e65e16 rsyslogd: action 'action 8' resumed (module 'builtin:omfwd') [v8.24.0-34.el7 try http://www.rsyslog.com/e/2359 ]
Dec 23 18:43:39 nm05-monitor-10e5e65e16 rsyslogd: action 'action 8' resumed (module 'builtin:omfwd') [v8.24.0-34.el7 try http://www.rsyslog.com/e/2359 ]
Dec 23 18:43:39 nm05-monitor-10e5e65e16 rsyslogd: action 'action 8' resumed (module 'builtin:omfwd') [v8.24.0-34.el7 try http://www.rsyslog.com/e/2359 ]
Dec 23 18:43:39 nm05-monitor-10e5e65e16 rsyslogd: action 'action 8' resumed (module 'builtin:omfwd') [v8.24.0-34.el7 try http://www.rsyslog.com/e/2359 ]
Dec 23 18:43:39 nm05-monitor-10e5e65e16 rsyslogd: action 'action 8' resumed (module 'builtin:omfwd') [v8.24.0-34.el7 try http://www.rsyslog.com/e/2359 ]
Dec 23 18:43:39 nm05-monitor-10e5e65e16 rsyslogd: action 'action 8' resumed (module 'builtin:omfwd') [v8.24.0-34.el7 try http://www.rsyslog.com/e/2359 ]
Dec 23 18:43:39 nm05-monitor-10e5e65e16 rsyslogd: action 'action 8' suspended, next retry is Thu Dec 23 18:44:09 2021 [v8.24.0-34.el7 try http://www.rsyslog.com/e/2007 ]
Dec 23 18:43:57 nm05-monitor-10e5e65e16 kernel: XFS (dm-0): Mounting V5 Filesystem
Dec 23 18:43:57 nm05-monitor-10e5e65e16 kernel: XFS (dm-0): Mounting V5 Filesystem
Dec 23 18:43:57 nm05-monitor-10e5e65e16 kernel: XFS (dm-0): Ending clean mount
Dec 23 18:43:57 nm05-monitor-10e5e65e16 kernel: XFS (dm-0): Ending clean mount

 

标签:monitor,23,18,mount,action,挂载,Dec,目录,nm05
来源: https://www.cnblogs.com/haha029/p/15725569.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有