Score:1

Alpine Linux 3.17 does not mount CephFS during boot

de flag

I have configured a CephFS fuse mount in fstab on my Alpine Linux 3.17 as follows:

none /data fuse.ceph ceph.id=filer,ceph.client_mds_namespace=files,_netdev 0 0

When I issue a mount -a the filesystem is mounted properly to /data as expected. However when booting the system the filesystem is not mounted but the netmount service seems to be active:

~# rc-update add netmount boot
 * rc-update: netmount already installed in runlevel `boot'; skipping
~#

Any ideas? I'm also wondering why I'm not able to see the netmount service on an rc-status boot:

~# rc-status boot
Runlevel: boot
 bootmisc                         [  started  ]
 networking                       [  started  ]
 syslog                           [  stopped  ]
~#
Neppomuk avatar
am flag
An "installed" service does not necessarily mean an "active" service. Have you looked into your process list by using `ps` or `top` and found a running `netmount` there? Please search for entries from `netmount` in your syslog, too.
Score:0
de flag

My Alpine Linux is running as a LXC container and /etc/init.d/netmount contains the following line in the depend() section:

keyword -docker -lxc -jail -prefix -systemd-nspawn -vserver

This makes netmount a no-op in my case according to https://github.com/OpenRC/openrc/blob/master/service-script-guide.md#the-depend-function

Removing the -lxc parameter did the trick.

However, I'm wondering why netmount should be a no-op in an LXC container. A properly working network setup is also needed there and this is properly in most cases the reason to defer network-dependend mounts.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.