Simon, if you're talking about the occasional crash, I don't know, since
it
happens only occasionally. If I can make it thru six months without seeing
it, then I'll declare it fixed.
Thanks!
On Wed, Jan 6, 2021 at 1:23 PM Simon Matter <simon.matter at invoca.ch>
wrote:
> Have you been able to fix the issue?
>
> Regards,
> Simon
>
> > OK, here's where I stand now:
> > 1. I stopped and disabled autofs. (I have 2 SMB filesystems out on the
> LAN
> > that have also been automounting with autofs, do I need to do similar
> > changes in fstab for them?)
> > 2. yes it has.
> > 3. none I can see.
> > 4. nothing that leaps out at me. there are a couple about /mnt/backup
not
> > existing but they appear to be old ones, aren't happening anymore.
> >
> > So, I've made a minor tweak to /etc/fstab, nothing that should
matter.
> > rebooted, and when it comes up /mnt/backup is mounted. TWICE,
according
> to
> > the output of mount:
> >
> > $ mount | grep backup
> > systemd-1 on /mnt/backup type autofs
> >
>
(rw,relatime,fd=25,pgrp=1,timeout=900,minproto=5,maxproto=5,direct,pipe_ino=9840)
> > /dev/sdc1 on /mnt/backup type ext4
> > (rw,relatime,seclabel,stripe=8191,data=ordered)
> >
> > is this really a double mount, or is this what I'm supposed to be
seeing?
> >
> > doesn't seem to timeout and auto umount.
> >
> > Thanks again for your assistance!
> >
> > Fred
> >
> > On Mon, Jan 4, 2021 at 7:48 AM Strahil Nikolov via CentOS
> > <centos at centos.org>
> > wrote:
> >
> >> Verify that:
> >> 1. Autofs is not running
> >> 2. Systemd has created '.mount' and '.automount'
units
> >> systemctl status mnt-backup.mount mnt-backup.automount
> >> systemctl cat mnt-backup.mount mnt-backup.automount
> >>
> >> 3. Verify that there are no errors in local-fs.target
> >> systemctl status local-fs.target
> >>
> >> 4. Check for errors via:
> >> mount -a
> >> journalctl -e
> >>
> >> Best Regards
> >> Strahil Nikolov
> >>
> >>
> >>
> >>
> >>
> >> ? ??????????, 4 ?????? 2021 ?., 01:29:25 ???????+2, Fred <
> >> fred.fredex at gmail.com> ??????:
> >>
> >>
> >>
> >>
> >>
> >> OK, I think I've got it set up as described here, while fixing
the
> >> misplaced fields in /etc/fstab:
> >>
> >> UUID=259ec5ea-e8a4-465a-9263-1c06217b9aaf /mnt/backup ext4
> >> x-systemd.automount,x-systemd.idle-timeout=15min,noauto 0 2
> >>
> >> now when I do, e.g., "ls /mnt/backup"
> >>
> >> I get:
> >>
> >> $ sudo !!
> >> sudo ls /mnt/backup
> >> ls: cannot open directory /mnt/backup: No such file or directory
> >>
> >> if I do:
> >>
> >> ls /mnt
> >>
> >> I see:
> >>
> >> backup
> >>
> >> use su to become root, then:
> >> ls -l /mnt shows:
> >>
> >> # ls -al
> >> total 4
> >> drwxr-xr-x. 3 root root 0 Jan 2 13:24 .
> >> dr-xr-xr-x. 21 root root 4096 Jan 2 09:22 ..
> >> dr-xr-xr-x. 2 root root 0 Jan 2 13:24 backup
> >>
> >> ls backup shows:
> >>
> >> # ls -al backup
> >> ls: cannot open directory backup: No such file or directory
> >>
> >> why? it clearly appears to exist ????
> >>
> >> the FS isn't mounted, but /mnt/backup exists, so it should be
visible as
> >> an
> >> entry directory. also, I can mount it manually:
> >>
> >> mount UUID=259ec5ea-e8a4-465a-9263-1c06217b9aaf /mnt/backup
> >>
> >> and then access it. but it doesn't automount with, e.g.
"ls /mnt/backup"
> >> or
> >> "ls /mnt/backup/backups".
> >>
> >> I must still be doing something wrong but maybe I'm too stupid
to see
> >> it.
> >> (Please don't agree with me publicly...! :=) )
> >>
> >> Fred
> >>
> >> On Sun, Jan 3, 2021 at 4:36 PM Pete Biggs <pete at
biggs.org.uk> wrote:
> >>
> >> > >
> >> > > I commented out those entries in /etc/auto.master before
modifying
> >> the
> >> > > fstab entry:
> >> > >
> >> > > UUID=259ec5ea-e8a4-465a-9263-1c06217b9aaf
/mnt/backup
> >> > > ext4,x-systemd.automount,x-systemd.idle-timeout=15min
noauto 0
> >> 2
> >> >
> >> > That's not correct. See 'man fstab'. It should
be
> >> >
> >> > device mount-point filesystem-type options dump fsck
> >> >
> >> > So you should have:
> >> >
> >> > UUID=259ec5ea-e8a4-465a-9263-1c06217b9aaf /mnt/backup ext4
> >> > x-systemd.automount,x-systemd.idle-timeout=15min,noauto 0 2
> >> >
> >> >
> >> > >
> >> > > which is exactly as it was before except for the
x-systemd entries
> >> as
> >> you
> >> > > described.
> >> >
> >> > Yeah, you put them in the wrong place.
> >> >
> >> >
> >> > P.
> >> >
> >> >
> >> > _______________________________________________
> >> > CentOS mailing list
> >> > CentOS at centos.org
> >> > https://lists.centos.org/mailman/listinfo/centos
> >>
> >> >
> >> _______________________________________________
> >> CentOS mailing list
> >> CentOS at centos.org
> >> https://lists.centos.org/mailman/listinfo/centos
> >> _______________________________________________
> >> CentOS mailing list
> >> CentOS at centos.org
> >> https://lists.centos.org/mailman/listinfo/centos
> >>
> > _______________________________________________
> > CentOS mailing list
> > CentOS at centos.org
> > https://lists.centos.org/mailman/listinfo/centos
> >
>
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> https://lists.centos.org/mailman/listinfo/centos
>