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
>
> Tue 02 Jun 2020 08:05:08 PM CST
>
> Filesystem                   1K-blocks     Used Available Use% Mounted on
> /dev/mapper/fedora_f31k-root  27663300 14113656  12121372  54% /
> /dev/vda1                       999320   263772    666736  29% /boot
>
> lost+found  x
>
> Filesystem                   1K-blocks     Used Available Use% Mounted on
> /dev/mapper/fedora_f31k-root  27663300 14113656  12121372  54% /
> /dev/vda1                       999320   263772    666736  29% /boot
> /dev/md0                      51310048    53272  48620644   1% /raid
>
> Tue 02 Jun 2020 08:06:13 PM CST
>
> Filesystem                   1K-blocks     Used Available Use% Mounted on
> /dev/mapper/fedora_f31k-root  27663300 14113664  12121364  54% /
> /dev/vda1                       999320   263772    666736  29% /boot
>


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.

-- 
The key to getting good answers is to ask good questions.
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
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@lists.fedoraproject.org

Reply via email to