User Tools

Site Tools


linux:linux_error_lvm

This is an old revision of the document!


Problem with LVM

A filesystem is automaticaly unmounted after 15 min

I got the problem, when moving an LV to a new VG (/var/log/messages)

Aug 19 16:53:44 xxxxxxx systemd: Removed slice User Slice of root.
Aug 19 16:57:03 xxxxxxx rsyslogd: -- MARK --
Aug 19 16:57:27 xxxxxxx systemd: Stopped target Local File Systems.
Aug 19 16:57:27 xxxxxxx systemd: Unmounting /ispd1/db/arclog...
Aug 19 16:57:28 xxxxxxx kernel: XFS (dm-25): Unmounting Filesystem
Aug 19 16:57:28 xxxxxxx systemd: Unmounted /ispd1/db/arclog.
Aug 19 16:57:28 xxxxxxx systemd: Stopped File System Check on /dev/mapper/vg_ispd1db-lv_ispd1arc.
Aug 19 17:00:01 xxxxxxx systemd: Created slice User Slice of root.
Aug 19 17:00:01 xxxxxxx systemd: Started Session 5395 of user root.

solution: systemd is not aware of the change of logical volume/volume group
Reload the systemd daemon

[root@xxxxxxx] ~ # systemctl daemon-reload
[root@xxxxxxx] ~ # systemctl status ispd1-db-arclog.mount
● ispnprd1-db-arclog.mount - /ispd1/db/arclog
   Loaded: loaded (/etc/fstab; bad; vendor preset: disabled)
   Active: active (mounted) since Wed 2020-08-19 17:33:21 CEST; 19h ago
    Where: /ispd1/db/arclog
     What: /dev/mapper/vg_ispd1arc-lv_ispd1arc
     Docs: man:fstab(5)
           man:systemd-fstab-generator(8)
[root@xxxxxxx]) ~ # systemctl show ispd1-db-arclog.mount
Where=/ispd1/db/arclog
What=/dev/mapper/vg_ispd1arc-lv_ispd1arc
...

you can also check using

systemctl show dev-mapper-vg_ispd1arc.lv_ispd1arc.device
systemctl show dev-mapper-vg_ispd1arc
linux/linux_error_lvm.1609532711.txt.gz · Last modified: 2021/01/01 21:25 by 127.0.0.1