You are not logged in.

#1 2017-08-15 07:00:48

novist
Member
Registered: 2014-03-14
Posts: 47

[SOLVED] systemd fails to mount one disk

I have two disks that are supposed to be mounted by systemd on first access:

/dev/mapper/bkp                              /mnt/bkp             btrfs       noauto,x-systemd.automount,rw,noatime,nofail,compress=lzo,space_cache                                           0 1
/dev/mapper/storage                          /mnt/storage         ext4        noauto,x-systemd.automount,rw,noatime,nofail,data=ordered                                                       0 1

Up until recently everything worked fine, but something changed at some point. /mnt/bkp disk can no longer be mounted by systemd. For example "strace ls /mnt/bkp" shows it deadlocks at "open()" call. If i attempted to ls then to recover i have to "umount -l /mnt/bkp; mount /dev/mapper/bkp /mnt/bkp". If i did not touch bkp disk after boot i can mount it using "mount /dev/mapper/bkp /mnt/bkp" and it works just fine. I did not notice any issues with disk itself other than mounting.

Any idea where problem could be here? Can it be bad hardware? Or systemd bug? Or kernel bug? Any idea what i could try to fix this?

Last edited by novist (2017-08-18 10:13:01)

Offline

#2 2017-08-18 10:12:51

novist
Member
Registered: 2014-03-14
Posts: 47

Re: [SOLVED] systemd fails to mount one disk

Removing x-systemd.automount fixed issue. It still mounts automatically though.

Offline

Board footer

Powered by FluxBB