Re: Mount options for mostly-offline drives

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

 



On Tue, 2020-06-02 at 20:24 +0800, Ed Greshko wrote:
> On 2020-06-02 20:07, Ed Greshko wrote:
> > On 2020-06-02 19:29, Patrick O'Callaghan wrote:
> > > Doesn't seem to do anything. I've tested with this line in /etc/fstab:
> > > 
> > > UUID=6cb66da2-147a-4f3c-a513-36f6164ab581  /raid   ext4    rw,x-systemd.automount,x-systemd.device-timeout=1,x-systemd.idle-timeout=60     0 0
> > > 
> > > followed by 'mount -a' (using a 60-second timeout for testing) but it's
> > > not unmounting. I also ran 'journalctl -f' but it doesn't show
> > > anything.
> > It works fine for non USB connected file systems.
> > 
> > [egreshko@f31k ~]$ grep raid /etc/fstab
> > /dev/md0        /raid   ext4    rw,x-systemd.automount,x-systemd.device-timeout=1,x-systemd.idle-timeout=60       1 1
> > 
> > [egreshko@f31k ~]$ date ; df --exclude-type=tmpfs --exclude-type=devtmpfs ; ls /raid ; df --exclude-type=tmpfs --exclude-type=devtmpfs ; sleep 65 ; date ; df --exclude-type=tmpfs --exclude-type=devtmpfs
> > 
> [...]

> Oh, and journal should these (abbreviated output)
> 
> Jun 02 20:05:08 f31k.greshko.com systemd[1]: raid.automount: Got automount request for /raid, triggered by 1308 (ls)
> Jun 02 20:05:08 f31k.greshko.com systemd[1]: Mounting /raid...
> Jun 02 20:05:08 f31k.greshko.com systemd[1]: Mounted /raid.
> Jun 02 20:06:09 f31k.greshko.com systemd[1]: Unmounting /raid...
> Jun 02 20:06:09 f31k.greshko.com systemd[1014]: raid.mount: Succeeded.
> Jun 02 20:06:09 f31k.greshko.com systemd[1066]: raid.mount: Succeeded.
> Jun 02 20:06:09 f31k.greshko.com systemd[1]: raid.mount: Succeeded.
> Jun 02 20:06:09 f31k.greshko.com systemd[1]: Unmounted /raid.

No, still not working:

$ grep raid /etc/fstab
UUID=6cb66da2-147a-4f3c-a513-36f6164ab581               /raid   ext4    rw,x-systemd.automount,x-systemd.device-timeout=1,x-systemd.idle-timeout=60     1 1

$ findfs UUID=6cb66da2-147a-4f3c-a513-36f6164ab581
/dev/md127p1

(the only change is in the last two fields, where you had 1 1 rather
than my 0 0, but it made no difference, not that I thought it would). I
also did the daemon-reload thing just in case.

This is a USB system, so maybe that's at the root of the problem.

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



[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