Re: Automount occasionally failing to auto-unmount

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2021-04-21 at 19:30 +0000, old sixpack13 wrote:
> ...
> > .... The drive is normally only used at 3am to run a backup
> > script, ...
> 
> > When I mount the drive manually, the timeout always succeeds (though
> > again after 300 seconds rather than 120).
> > 
> > Any ideas?
> > 
> not for btrfs-automount-case.
> but you {s,c]ould check with your script if the drive is mounted
> *before* backup starts.
> And I would check if the mount point is still clean (in case the backup
> blindy backuped to the mount point without mounted drive) 

Any access to the filesystem triggers the automount, i.e. the same
sequence of events will happen even if I just touch the mount point
rather than running the actual backup. This works correctly. The
automount also triggers a watchdog script which I can see running (via
'systemctl status'). The watchdog is there to spin down the drive when
the filesystem is eventually unmounted. It does this by running
inotifywait on an 'unmount' event and works correctly if I manually
unmount the filesystem.

On the occasions when the the *automatic* unmount fails, I can see that
the watchdog is still running and the filesystem is still mounted even
though no process is accessing it (according to ´fuser´), i.e. systemd
should unmount the filesystem but sometimes doesn't.

As a workaround, I've modified the backup script to run 'umount'
explicitly after the backup has finished, as long as the filesystem was
in the unmounted state beforehand. This is admittedly a kludge.

If I can get a repeatable error I'll BZ this, but I'm not hopeful.

poc

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux