You are not logged in.

#1 2012-08-15 10:10:33

student975
Member
From: Russian Federation
Registered: 2011-03-05
Posts: 616

[solved] autofs-for-samba replacing under systemd

I'm on the way from initsctipts to systemd, and autofs is one of the service not moved yet. The aim is to mount-when-needed few samba shares from local network. In fact I'm not absolutely happy with autofs (from time to time I have problems like freezing during shutdown process). Has anybody experience with this or that autofs-for-samba replacement providing the same functionality (in terms of systemd-managed environment)?

Last edited by student975 (2012-08-15 19:11:34)


"I exist" is the best myth I know..

Offline

#2 2012-08-15 15:00:14

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: [solved] autofs-for-samba replacing under systemd

https://wiki.archlinux.org/index.php/Systemd#Automount

should work just as well for remote shares.

Offline

#3 2012-08-15 15:31:45

student975
Member
From: Russian Federation
Registered: 2011-03-05
Posts: 616

Re: [solved] autofs-for-samba replacing under systemd

65kid wrote:

https://wiki.archlinux.org/index.php/Systemd#Automount

should work just as well for remote shares.

Thanks, I have already looked at the article. But I'd want to use mount and automount systemd units (still can not make them work) and, well, I'm looking for real experience of samba share using.


"I exist" is the best myth I know..

Offline

#4 2012-08-15 15:33:55

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: [solved] autofs-for-samba replacing under systemd

student975 wrote:

But I'd want to use mount and automount systemd units (still can not make them work) and, well, I'm looking for real experience of samba share using.

there is no reason to create mount/automount units yourself, systemd generates them automatically from /etc/fstab (see /run/systemd/generator/).

Offline

#5 2012-08-15 15:43:15

student975
Member
From: Russian Federation
Registered: 2011-03-05
Posts: 616

Re: [solved] autofs-for-samba replacing under systemd

65kid wrote:

there is no reason to create mount/automount units yourself, systemd generates them automatically from /etc/fstab (see /run/systemd/generator/).

I have thought it is possible to create the units by hand, and the units take precedence of fstab. In fact, I haven't fstab records for cifs mount at all smile


"I exist" is the best myth I know..

Offline

#6 2012-08-15 15:46:34

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: [solved] autofs-for-samba replacing under systemd

student975 wrote:

I have thought it is possible to create the units by hand, and the units take precedence of fstab. In fact, I haven't fstab records for cifs mount at all smile

yes, it's possible - but imho pointless. An fstab entry is just way simpler than creating a mount/automount file yourself. Also, systemd's fstab generator automatically takes care of options you might miss when creating the units yourself (like remote-fs.target ordering for remote shares).

Offline

#7 2012-08-15 16:14:52

student975
Member
From: Russian Federation
Registered: 2011-03-05
Posts: 616

Re: [solved] autofs-for-samba replacing under systemd

65kid wrote:

yes, it's possible - but imho pointless. An fstab entry is just way simpler than creating a mount/automount file yourself. Also, systemd's fstab generator automatically takes care of options you might miss when creating the units yourself (like remote-fs.target ordering for remote shares).

OK, thanks, have tried - seems to work.


"I exist" is the best myth I know..

Offline

Board footer

Powered by FluxBB