Page MenuHomeSoftware Heritage
Paste P479

mounting annex issues
ActivePublic

Authored by ardumont on Jul 22 2019, 11:41 AM.
ardumont@pergamon:~% cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/vda1 during installation
UUID=8cd19ce5-3995-475c-a4a8-38957263766a / ext4 errors=remount-ro 0 1
# swap was on /dev/vdb1 during installation
UUID=93910aea-ce19-458a-8e50-abd3f06589e1 none swap sw 0 0
#/dev/vdc1 /mnt ext4 errors=remount-ro 0 0
/dev/vdc1 /var/lib/prometheus ext4 errors=remount-ro 0 0
#uffizi:/srv/softwareheritage/annex /srv/softwareheritage/annex/annexroot nfs ro,soft,intr,noauto,x-systemd.automount,x-systemd.device-timeout=10 0 0
uffizi:/srv/softwareheritage/annex/public /srv/softwareheritage/annex/annexroot/public nfs ro,soft,intr,noauto,x-systemd.automount,x-systemd.device-timeout=10 0 0
uffizi:/srv/softwareheritage/annex/private /srv/softwareheritage/annex/annexroot/private nfs ro,soft,intr,noauto,x-systemd.automount,x-systemd.device-timeout=10 0 0
ardumont@pergamon:~% mount | tail -2
tmpfs on /run/user/1020 type tmpfs (rw,nosuid,nodev,relatime,size=817916k,mode=700,uid=1020,gid=1020)
uffizi:/srv/softwareheritage/annex on /srv/softwareheritage/annex/annexroot type nfs (ro,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,soft,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.100.101,mountvers=3,mountport=40744,mountproto=udp,local_lock=none,addr=192.168.100.101)
ardumont@pergamon:~% sudo umount /srv/softwareheritage/annex/annexroot
ardumont@pergamon:~% mount | tail -2
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
tmpfs on /run/user/1020 type tmpfs (rw,nosuid,nodev,relatime,size=817916k,mode=700,uid=1020,gid=1020)
ardumont@pergamon:~% sudo mount /srv/softwareheritage/annex/annexroot/public
ardumont@pergamon:~% mount | tail -2
uffizi:/srv/softwareheritage/annex on /srv/softwareheritage/annex/annexroot type nfs (ro,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,soft,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.100.101,mountvers=3,mountport=40744,mountproto=udp,local_lock=none,addr=192.168.100.101)
uffizi:/srv/softwareheritage/annex on /srv/softwareheritage/annex/annexroot/public type nfs (ro,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,soft,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.100.101,mountvers=3,mountport=40744,mountproto=udp,local_lock=none,addr=192.168.100.101)
ardumont@pergamon:~% ls /srv/softwareheritage/annex/annexroot/public
private public README

Event Timeline

So turns out an automount unit was mounting back silently the mount point.
So there was a slight misunderstanding of what actually happened:

This command helped

$ systemctl list-units | grep automount
$ systemclt stop srv-softwareheritage-annex-annexroot.automount
$ systemctl daemon-reload