1、现象:
(1)执行下列操作,无任何反映,且前端不报错,且df -h看不到挂载信息
#mount /dev/vg_backup/lv_backup /backup
#df -h
(2)进入/var/log/messages,报如下错误:
Aug 26 08:48:08 localhost dbus[15725]: [system] Activating service name='org.freedesktop.problems' (using servicehelper) Aug 26 08:48:08 localhost dbus[15725]: [system] Successfully activated service 'org.freedesktop.problems' Aug 26 08:48:09 localhost kernel: XFS (dm-2): Mounting V4 Filesystem Aug 26 08:48:09 localhost kernel: XFS (dm-2): Ending clean mount Aug 26 08:48:09 localhost systemd: Unit backup.mount is bound to inactive unit dev-vg_data-lv_backup.device. Stopping, too. Aug 26 08:48:09 localhost systemd: Unmounting /backup... Aug 26 08:48:09 localhost kernel: XFS (dm-2): Unmounting Filesystem Aug 26 08:48:09 localhost systemd: Unmounted /backup.
2、原因:
经分析,之前这个/backup被挂载到dev-vg_data-lv_backup.device的卷中,现在更改后,说已经被绑定
Aug 26 08:48:09 localhost systemd: Unit backup.mount is bound to inactive unit dev-vg_data-lv_backup.device. Stopping, too.
3、解决方案
执行命令:
#systemctl daemon-reload
Aug 26 08:49:05 localhost systemd: Reloading. Aug 26 08:49:05 localhost systemd: [/usr/lib/systemd/system/bolt.service:11] Unknown lvalue 'MemoryDenyWriteExecute' in section 'Service' Aug 26 08:49:05 localhost systemd: [/usr/lib/systemd/system/bolt.service:13] Unknown lvalue 'ProtectControlGroups' in section 'Service' Aug 26 08:49:05 localhost systemd: [/usr/lib/systemd/system/bolt.service:15] Unknown lvalue 'ProtectKernelModules' in section 'Service' Aug 26 08:49:05 localhost systemd: [/usr/lib/systemd/system/bolt.service:18] Unknown lvalue 'RestrictRealtime' in section 'Service' Aug 26 08:49:05 localhost systemd: [/usr/lib/systemd/system/bolt.service:19] Unknown lvalue 'ReadWritePaths' in section 'Service'
4、重新挂载成功
mount /dev/vg_backup/lv_backup /backup