Questions and Answers : Unix/Linux : Ubuntu 18.04: cvmfs does not auto mount
Message board moderation

To post messages, you must log in.

AuthorMessage
lazlo_vii
Avatar

Send message
Joined: 20 Nov 19
Posts: 21
Credit: 1,074,330
RAC: 0
Message 40561 - Posted: 21 Nov 2019, 1:43:11 UTC

As the title says, cvmfs does not auto mount any filesystems. As a work around I manually created the mount points in /cvmfs and then added the following lines to /etc/fstab:

atlas.cern.ch /cvmfs/atlas.cern.ch cvmfs defaults,_netdev,nodev 0 0
atlas-condb.cern.ch /cvmfs/atlas-condb.cern.ch cvmfs defaults,_netdev,nodev 0 0
grid.cern.ch /cvmfs/grid.cern.ch cvmfs defaults,_netdev,nodev 0 0
sft.cern.ch /cvmfs/sft.cern.ch cvmfs defaults,_netdev,nodev 0 0
cernvm-prod.cern.ch /cvmfs/cernvm-prod.cern.ch cvmfs defaults,_netdev,nodev 0 0
alice.cern.ch /cvmfs/alice.cern.ch cvmfs defaults,_netdev,nodev 0 0
alice-ocdb.cern.ch /cvmfs/alice-ocdb.cern.ch cvmfs defaults,_netdev,nodev 0 0
cms.cern.ch /cvmfs/cms.cern.ch cvmfs defaults,_netdev,nodev 0 0
geant4.cern.ch /cvmfs/geant4.cern.ch cvmfs defaults,_netdev,nodev 0 0
na61.cern.ch /cvmfs/na61.cern.ch cvmfs defaults,_netdev,nodev 0 0
boss.cern.ch /cvmfs/boss.cern.ch cvmfs defaults,_netdev,nodev 0 0


I am currently 3.3% of the way through of a native_theory WU. While having to mount the filesystems through fstab is not ideal it is better than always doing it by hand and better than having to install Virtualbox. I hope this info helps someone else if they run into the issue.
ID: 40561 · Report as offensive     Reply Quote
computezrmle
Volunteer moderator
Volunteer developer
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 15 Jun 08
Posts: 2411
Credit: 226,243,314
RAC: 130,491
Message 40562 - Posted: 21 Nov 2019, 6:47:24 UTC - in response to Message 40561.  

... mount the filesystems through fstab is ... better...

Sorry to be direct. It's a very bad idea to do this via fstab.
Did you try the hints on this page?
https://cvmfs.readthedocs.io/en/stable/cpt-quickstart.html#configure-autofs
https://cvmfs.readthedocs.io/en/stable/cpt-quickstart.html#troubleshooting


In addition ensure the servise is enabled:
systemctl enable autofs.service

Some systems require a reboot to activate the automounter.



Why did you config geant4, na61, boss...?
At least 1 required repo is not in your list:
atlas-nightlies.cern.ch
It's usually configured automatically by the ATLAS scripts but this requires a working automounter...


Keep your configuration lean and use this list in /etc/cvmfs/default.local:
CVMFS_REPOSITORIES="atlas.cern.ch,atlas-condb.cern.ch,grid.cern.ch,cernvm-prod.cern.ch,sft.cern.ch,alice.cern.ch"
ID: 40562 · Report as offensive     Reply Quote
lazlo_vii
Avatar

Send message
Joined: 20 Nov 19
Posts: 21
Credit: 1,074,330
RAC: 0
Message 40565 - Posted: 21 Nov 2019, 9:04:57 UTC - in response to Message 40562.  

... mount the filesystems through fstab is ... better...

Sorry to be direct. It's a very bad idea to do this via fstab.
Did you try the hints on this page?
https://cvmfs.readthedocs.io/en/stable/cpt-quickstart.html#configure-autofs
https://cvmfs.readthedocs.io/en/stable/cpt-quickstart.html#troubleshooting


In addition ensure the servise is enabled:
systemctl enable autofs.service

Some systems require a reboot to activate the automounter.



Why did you config geant4, na61, boss...?
At least 1 required repo is not in your list:
atlas-nightlies.cern.ch
It's usually configured automatically by the ATLAS scripts but this requires a working automounter...


Keep your configuration lean and use this list in /etc/cvmfs/default.local:
CVMFS_REPOSITORIES="atlas.cern.ch,atlas-condb.cern.ch,grid.cern.ch,cernvm-prod.cern.ch,sft.cern.ch,alice.cern.ch"


The autofs.service was enabled. It just isn't working with cvmfs. Why did I add the mount points that I did? Because I pulled the list from another guide in this forum. It was either that or wait for a job to download and fail and then check the log of the task on this site and see what needed to be mounted. That would have wasted my time and CERN's.

I would love to have "lean config" but I don't want to chase down the cause of a problem that shouldn't be happening at all. Especially since the docs and trouble shooting info are spread out all over this site instead of being maintained in a central location and curated to prune obsolete information. Maybe tomorrow I'll try to get cvmfs to write to syslog. That would be a nice thing to have if it actually logs anything useful.
ID: 40565 · Report as offensive     Reply Quote
computezrmle
Volunteer moderator
Volunteer developer
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 15 Jun 08
Posts: 2411
Credit: 226,243,314
RAC: 130,491
Message 40568 - Posted: 21 Nov 2019, 10:37:11 UTC - in response to Message 40565.  

... instead of being maintained in a central location and curated to prune obsolete information...

The links given in my last post are exactly what you need to get the automounter running.
I don't see how this could be explained in shorter words.
Just check if the opensuse hint also applies for your system.

Configure AutoFS

For the basic setup, run cvmfs_config setup. This ensures that the file /etc/auto.master.d/cvmfs.autofs exists containing /cvmfs /etc/auto.cvmfs and that the autofs service is running. Reload the autofs service in order to apply an updated configuration.

NB: For OpenSUSE uncomment the line #+dir:/etc/auto.master.d/ in the file /etc/auto.master and restart the autofs service.

Troubleshooting

In order to check for common misconfigurations in the base setup, run

cvmfs_config chksetup

CernVM-FS gathers its configuration parameter from various configuration files that can overwrite each others settings (default configuration, domain specific configuration, local setup, …). To show the effective configuration for repository.cern.ch, run

cvmfs_config showconfig repository.cern.ch

In order to exclude autofs/automounter as a source of problems, you can try to mount repository.cern.ch manually with the following

mkdir -p /mnt/cvmfs
mount -t cvmfs repository.cern.ch /mnt/cvmfs

In order to exclude SELinux as a source of problems, you can try mounting after SELinux has been disabled by

/usr/sbin/setenforce 0

Once the issue has been identified, ensure that the changes are taken by restarting autofs

systemctl restart autofs

If it doesn't work, post the output of
cvmfs_config showconfig

... I pulled the list from another guide in this forum...

I'm curious to know who suggested to include that repos (geant4, na61, boss...).
Do you have a link to that guide/post?


... or wait for a job to download and fail and then check the log of the task...

The task log will not tell you why CVMFS fails.
ID: 40568 · Report as offensive     Reply Quote

Questions and Answers : Unix/Linux : Ubuntu 18.04: cvmfs does not auto mount


©2024 CERN