Bug 708869 - Automount units don't work at all
Summary: Automount units don't work at all
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-29 23:31 UTC by Rudd-O DragonFear
Modified: 2012-02-01 09:33 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-01 09:33:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
hell yeah my dmesg output (203.89 KB, text/plain)
2011-06-26 09:50 UTC, Rudd-O DragonFear
no flags Details
latest systemd debug dmesg output (121.92 KB, text/plain)
2011-11-03 03:00 UTC, Rudd-O DragonFear
no flags Details

Description Rudd-O DragonFear 2011-05-29 23:31:59 UTC
After bootup:

/home/rudd-o/Shared Ω:
systemctl --all | grep shared
var-shared.automount      loaded inactive dead          var-shared.automount
var-shared.mount          loaded inactive dead          /var/shared

/home/rudd-o/Shared Ω:
grep //paola.local/shared  /etc/fstab
//paola.local/shared     /var/shared    cifs    comment=systemd.automount,noserverino,_netdev,actimeo=60,credentials=/home/rudd-o/.sharedpassword   0   0

/home/rudd-o/Shared Ω:
cd /var/shared

/var/shared Ω:
ls

/var/shared Ω:
mount | grep shared

/var/shared Ω:

/var/shared Ω:
rpm -q systemd
systemd-26-2.fc15.x86_64

Comment 1 Rudd-O DragonFear 2011-05-29 23:33:57 UTC
I have to manually START the automount unit:

/var Ω:
systemctl start var-shared.automount

/var Ω:
mount | grep shared
systemd-1 on /var/shared type autofs (rw,relatime,fd=20,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)

otherwise it does not work.

It is thus completely pointless to have an automount unit that does not really get automounted at all on boot.

only then it gets "automounted":


/var Ω:
cd /var/shared
ls
/var/shared Ω:
ls
Entertainment  Incoming  Knowledge  Software

/var/shared Ω:

Comment 2 Harald Hoyer 2011-05-30 08:16:58 UTC
add "noauto" to the options

Comment 3 Rudd-O DragonFear 2011-05-30 21:18:29 UTC
?  How would adding noauto make the automounter work.  This, if it works, should be documented too.

Comment 4 Rudd-O DragonFear 2011-05-30 21:22:11 UTC
Added the option.  Rebooted.  As *expected*, it did not work: 


/home/rudd-o Ω:
systemctl --all | grep shared
var-shared.automount      loaded inactive dead          var-shared.automount
var-shared.mount          loaded inactive dead          /var/shared

Comment 5 Rudd-O DragonFear 2011-05-30 22:57:21 UTC
/home/rudd-o Ω:
systemctl show var-shared.automount
Id=var-shared.automount
Names=var-shared.automount
Requires=-.mount
RequiredBy=remote-fs.target
Conflicts=umount.target
Before=remote-fs.target var-shared.mount basic.target umount.target
After=-.mount
Description=var-shared.automount
LoadState=loaded
ActiveState=inactive
SubState=dead
InactiveExitTimestampMonotonic=0
ActiveEnterTimestampMonotonic=0
ActiveExitTimestampMonotonic=0
InactiveEnterTimestampMonotonic=0
CanStart=yes
CanStop=yes
CanReload=no
CanIsolate=no
StopWhenUnneeded=no
RefuseManualStart=no
RefuseManualStop=no
AllowIsolate=no
DefaultDependencies=yes
OnFailureIsolate=no
IgnoreOnIsolate=yes
NeedDaemonReload=no
JobTimeoutUSec=0
ConditionTimestampMonotonic=0
ConditionResult=no
Where=/var/shared
DirectoryMode=0755


/home/rudd-o Ω:
systemctl show remote-fs.target
Id=remote-fs.target
Names=remote-fs.target
Requires=var-shared.automount
Conflicts=shutdown.target
Before=systemd-user-sessions.service pcscd.service rabbitmq-server.service rabbit.service preload.service hsqldb.service postgresql.service postfix.service svnserve.service httpd.service mysq
After=network.target var-shared.automount
Description=Remote File Systems
LoadState=loaded
ActiveState=inactive
SubState=dead
FragmentPath=/lib/systemd/system/remote-fs.target
InactiveExitTimestampMonotonic=0
ActiveEnterTimestampMonotonic=0
ActiveExitTimestampMonotonic=0
InactiveEnterTimestampMonotonic=0
CanStart=yes
CanStop=yes
CanReload=no
CanIsolate=no
StopWhenUnneeded=no
RefuseManualStart=no
RefuseManualStop=no
AllowIsolate=no
DefaultDependencies=yes
OnFailureIsolate=no
IgnoreOnIsolate=no
NeedDaemonReload=no
JobTimeoutUSec=0
ConditionTimestampMonotonic=0
ConditionResult=no

Comment 6 Harald Hoyer 2011-05-31 08:13:27 UTC
Oh, this is rawhide... Right, I experience the same here... automount does not work for network shares for me, too.

Comment 7 Rudd-O DragonFear 2011-05-31 19:22:05 UTC
Sorry, no, this is in F15, not in rawhide.  Fedora 15.  My mistake initially for misreporting the version.

Comment 8 Harald Hoyer 2011-06-01 09:31:36 UTC
(In reply to comment #6)
> Oh, this is rawhide... Right, I experience the same here... automount does not
> work for network shares for me, too.

I also found out, that nfs mounts need the "remote_fs.service" which is
provided by the "netfs" initscript.

# chkconfig netfs on

Comment 9 Rudd-O DragonFear 2011-06-03 00:18:55 UTC
netfs is unnecessary.  It does not provide the automounting services.  I located the source of the problem.  For some reason the postinstall scriptlet that does systemctl enable remote-fs.target (the REAL unit that pulls all the _netdev automounts), FAILED.  When I ran it manually, it started working upon boot.

The netfs initscript is unrelated to my woes.  I don't want the drives to mount upon boot.  I want the drives to mount upon FIRST ACCESS.  This is why I want systemd.automount to work.

I found a way to fix this.  Nevertheless, someone should check that this actually works on vanilla F15 installs and on upgrades from F14 to F15.  Nobody bothered to check.

Comment 10 Michal Schmidt 2011-06-03 14:35:46 UTC
(In reply to comment #9)
> For some reason the postinstall scriptlet
> that does systemctl enable remote-fs.target (the REAL unit that pulls all the
> _netdev automounts), FAILED.

How did you find this out?

> Nevertheless, someone should check that this actually works on vanilla F15
> installs and on upgrades from F14 to F15.

Worked for me. Yours was a fresh install, or an upgrade?

Comment 11 Rudd-O DragonFear 2011-06-04 01:10:29 UTC
I found this out by reading the postinstall scripts and seeing that the symlinks for remote-fs.target weren't in /etc/systemd/system.  Call me crazy, but I do that kind of stuff for fun LOL.

It was a F14 -> rawhide systemd package + deps downloaded manually -> F15 upgrade affair.  I can see how the postinstall script in the rawhide package would have missed the remote-fs.target enablement, and then the F15 package would not have done it for the upgrade because the scriptlet has a conditional to make it only run on first install.

Still, it'd be great if F14-F15 upgrade was verified formally.

Comment 12 Rudd-O DragonFear 2011-06-04 23:51:41 UTC
I have more info to add.  Even when remote-fs.target is enabled, it does NOT work, despite the fact that systemctl show clearly shows it is wanted by multi-user.target.  More importantly, it does not work on boot, whether the default target is multi-user.target or graphical.target.

BUT

BUT

If I start with the default target multi-user.target, and THEN I log in, and systemctl isolate graphical.target... then it WORKS.

I am completely baffled by this.  It's like systemd KNOWS it has to start remote-fs.target, but it still does not do it except when explicitly told to isolate to a target that wants remote-fs.target.

Halp?

Comment 13 Rudd-O DragonFear 2011-06-04 23:56:54 UTC
/home/rudd-o Ω:
systemctl --all | cat
dev-hugepages.automount   loaded active   waiting       Huge Pages File System Automount Point
dev-mqueue.automount      loaded active   waiting       POSIX Message Queue File System Automount Point
proc-sys...misc.automount loaded active   running       Arbitrary Executable File Formats File System Automount Point
sys-kern...ebug.automount loaded active   waiting       Debug File System Automount Point
sys-kern...rity.automount loaded active   waiting       Security File System Automount Point
var-shar...okes.automount loaded active   waiting       var-shared-Entertainment-Jokes.automount
var-shar...Miro.automount loaded active   waiting       var-shared-Entertainment-Miro.automount
var-shar...vies.automount loaded active   waiting       var-shared-Entertainment-Movies.automount
var-shar...usic.automount loaded active   waiting       var-shared-Entertainment-Music.automount
var-shar...t-TV.automount loaded active   waiting       var-shared-Entertainment-TV.automount
var-shar...ment.automount loaded active   waiting       var-shared-Entertainment.automount
var-shar...ming.automount loaded active   waiting       var-shared-Incoming.automount
var-shar...edge.automount loaded active   waiting       var-shared-Knowledge.automount
var-shar...ware.automount loaded active   waiting       var-shared-Software.automount
var-shared.automount      loaded active   waiting       var-shared.automount
dev-cdrom.device          loaded active   plugged       TSSTcorp_CDDVDW_TS-L633Y
dev-cdrw.device           loaded active   plugged       TSSTcorp_CDDVDW_TS-L633Y
dev-disk...9330919.device loaded active   plugged       Corsair_CMFSSD-128D1
dev-disk...2dpart1.device loaded active   plugged       Corsair_CMFSSD-128D1
dev-disk...2dpart2.device loaded active   plugged       Corsair_CMFSSD-128D1
dev-disk...2dpart3.device loaded active   plugged       Corsair_CMFSSD-128D1
dev-disk...Z413345.device loaded active   plugged       TSSTcorp_CDDVDW_TS-L633Y
dev-disk...9330919.device loaded active   plugged       Corsair_CMFSSD-128D1
dev-disk...2dpart1.device loaded active   plugged       Corsair_CMFSSD-128D1
dev-disk...2dpart2.device loaded active   plugged       Corsair_CMFSSD-128D1
dev-disk...2dpart3.device loaded active   plugged       Corsair_CMFSSD-128D1
dev-disk...\x2d0:0.device loaded active   plugged       Multi-Card
dev-disk...el-boot.device loaded active   plugged       Corsair_CMFSSD-128D1
dev-disk...el-root.device loaded active   plugged       Corsair_CMFSSD-128D1
dev-disk...el-swap.device loaded active   plugged       Corsair_CMFSSD-128D1
dev-disk...0:0:0:0.device loaded active   plugged       Multi-Card
dev-disk...1:0:0:0.device loaded active   plugged       Corsair_CMFSSD-128D1
dev-disk...2dpart1.device loaded active   plugged       Corsair_CMFSSD-128D1
dev-disk...2dpart2.device loaded active   plugged       Corsair_CMFSSD-128D1
dev-disk...2dpart3.device loaded active   plugged       Corsair_CMFSSD-128D1
dev-disk...5:0:0:0.device loaded active   plugged       TSSTcorp_CDDVDW_TS-L633Y
dev-disk...78a489e.device loaded active   plugged       Corsair_CMFSSD-128D1
dev-disk...28d89ef.device loaded active   plugged       Corsair_CMFSSD-128D1
dev-disk...5154090.device loaded active   plugged       Corsair_CMFSSD-128D1
dev-dvd.device            loaded active   plugged       TSSTcorp_CDDVDW_TS-L633Y
dev-dvdrw.device          loaded active   plugged       TSSTcorp_CDDVDW_TS-L633Y
dev-root.device           loaded active   plugged       Corsair_CMFSSD-128D1
dev-scd0.device           loaded active   plugged       TSSTcorp_CDDVDW_TS-L633Y
dev-sda.device            loaded active   plugged       Corsair_CMFSSD-128D1
dev-sda1.device           loaded active   plugged       Corsair_CMFSSD-128D1
dev-sda2.device           loaded active   plugged       Corsair_CMFSSD-128D1
dev-sda3.device           loaded active   plugged       Corsair_CMFSSD-128D1
dev-sdb.device            loaded active   plugged       Multi-Card
dev-sr0.device            loaded active   plugged       TSSTcorp_CDDVDW_TS-L633Y
dev-tty0.device           loaded active   plugged       /dev/tty0
dev-tty1.device           loaded active   plugged       /dev/tty1
dev-tty10.device          loaded active   plugged       /dev/tty10
dev-tty11.device          loaded active   plugged       /dev/tty11
dev-tty12.device          loaded active   plugged       /dev/tty12
dev-tty2.device           loaded active   plugged       /dev/tty2
dev-tty3.device           loaded active   plugged       /dev/tty3
dev-tty4.device           loaded active   plugged       /dev/tty4
dev-tty5.device           loaded active   plugged       /dev/tty5
dev-tty6.device           loaded active   plugged       /dev/tty6
dev-tty7.device           loaded active   plugged       /dev/tty7
dev-tty8.device           loaded active   plugged       /dev/tty8
dev-tty9.device           loaded active   plugged       /dev/tty9
dev-ttyS0.device          loaded active   plugged       /dev/ttyS0
dev-ttyS1.device          loaded active   plugged       /dev/ttyS1
dev-ttyS2.device          loaded active   plugged       /dev/ttyS2
dev-ttyS3.device          loaded active   plugged       /dev/ttyS3
sys-devi...ock-sdb.device loaded active   plugged       Multi-Card
sys-devi...d-card0.device loaded active   plugged       82801I (ICH9 Family) HD Audio Controller
sys-devi...et-eth0.device loaded active   plugged       AR8152 v1.1 Fast Ethernet
sys-devi...t-wlan0.device loaded active   plugged       AR9285 Wireless Network Adapter (PCI-Express)
sys-devi...da-sda1.device loaded active   plugged       Corsair_CMFSSD-128D1
sys-devi...da-sda2.device loaded active   plugged       Corsair_CMFSSD-128D1
sys-devi...da-sda3.device loaded active   plugged       Corsair_CMFSSD-128D1
sys-devi...ock-sda.device loaded active   plugged       Corsair_CMFSSD-128D1
sys-devi...ock-sr0.device loaded active   plugged       TSSTcorp_CDDVDW_TS-L633Y
sys-devi...y-ttyS0.device loaded active   plugged       /sys/devices/platform/serial8250/tty/ttyS0
sys-devi...y-ttyS1.device loaded active   plugged       /sys/devices/platform/serial8250/tty/ttyS1
sys-devi...y-ttyS2.device loaded active   plugged       /sys/devices/platform/serial8250/tty/ttyS2
sys-devi...y-ttyS3.device loaded active   plugged       /sys/devices/platform/serial8250/tty/ttyS3
sys-devi...et-tun0.device loaded active   plugged       /sys/devices/virtual/net/tun0
sys-devi...ty-tty0.device loaded active   plugged       /sys/devices/virtual/tty/tty0
sys-devi...ty-tty1.device loaded active   plugged       /sys/devices/virtual/tty/tty1
sys-devi...y-tty10.device loaded active   plugged       /sys/devices/virtual/tty/tty10
sys-devi...y-tty11.device loaded active   plugged       /sys/devices/virtual/tty/tty11
sys-devi...y-tty12.device loaded active   plugged       /sys/devices/virtual/tty/tty12
sys-devi...ty-tty2.device loaded active   plugged       /sys/devices/virtual/tty/tty2
sys-devi...ty-tty3.device loaded active   plugged       /sys/devices/virtual/tty/tty3
sys-devi...ty-tty4.device loaded active   plugged       /sys/devices/virtual/tty/tty4
sys-devi...ty-tty5.device loaded active   plugged       /sys/devices/virtual/tty/tty5
sys-devi...ty-tty6.device loaded active   plugged       /sys/devices/virtual/tty/tty6
sys-devi...ty-tty7.device loaded active   plugged       /sys/devices/virtual/tty/tty7
sys-devi...ty-tty8.device loaded active   plugged       /sys/devices/virtual/tty/tty8
sys-devi...ty-tty9.device loaded active   plugged       /sys/devices/virtual/tty/tty9
-.mount                   loaded active   mounted       /
boot.mount                loaded active   mounted       /boot
dev-hugepages.mount       loaded inactive dead          Huge Pages File System
dev-mqueue.mount          loaded inactive dead          POSIX Message Queue File System
home-rud...do-.gvfs.mount loaded active   mounted       /home/rudd-o/.gvfs
media.mount               loaded active   mounted       Media Directory
proc-sys...fmt_misc.mount loaded active   mounted       Arbitrary Executable File Formats File System
sys-fs-f...nections.mount loaded active   mounted       /sys/fs/fuse/connections
sys-kernel-debug.mount    loaded inactive dead          Debug File System
sys-kernel-security.mount loaded inactive dead          Security File System
tmp.mount                 loaded active   mounted       /tmp
var-lib-...c_pipefs.mount loaded active   mounted       /var/lib/nfs/rpc_pipefs
var-lock.mount            loaded active   mounted       Lock Directory
var-run.mount             loaded active   mounted       Runtime Directory
var-shar...nt-Jokes.mount loaded active   mounted       /var/shared/Entertainment/Jokes
var-shar...ent-Miro.mount loaded active   mounted       /var/shared/Entertainment/Miro
var-shar...t-Movies.mount loaded active   mounted       /var/shared/Entertainment/Movies
var-shar...nt-Music.mount loaded active   mounted       /var/shared/Entertainment/Music
var-shar...nment-TV.mount loaded active   mounted       /var/shared/Entertainment/TV
var-shar...tainment.mount loaded active   mounted       /var/shared/Entertainment
var-shared-Incoming.mount loaded active   mounted       /var/shared/Incoming
var-shar...nowledge.mount loaded active   mounted       /var/shared/Knowledge
var-shared-Software.mount loaded active   mounted       /var/shared/Software
var-shared.mount          loaded active   mounted       /var/shared
systemd-...d-console.path loaded inactive dead          Dispatch Password Requests to Console Directory Watch
systemd-...-plymouth.path loaded active   waiting       Forward Password Requests to Plymouth Directory Watch
systemd-...word-wall.path loaded active   waiting       Forward Password Requests to Wall Directory Watch
abrt-ccpp.service         loaded active   exited        LSB: Installs coredump handler which saves segfault data
abrtd.service             loaded active   running       ABRT Automated Bug Reporting Tool
accounts-daemon.service   loaded active   running       Accounts Service
alsa-restore.service      loaded inactive dead          Restore Sound Card State
alsa-store.service        loaded inactive dead          Store Sound Card State
atd.service               loaded active   running       Job spooling tools
atop.service              loaded active   running       SYSV: atop is advanced interactive monitor
auditd.service            loaded active   running       SYSV: This starts the Linux Auditing System Daemon, which collects security related events in a dedicated audit log. If this daemon is turned off, audit events will be sent to syslog.
avahi-daemon.service      loaded active   running       Avahi mDNS/DNS-SD Stack
bluetooth.service         loaded active   running       Bluetooth Manager
cachefilesd.service       loaded inactive dead          SYSV: Starts user-level daemon that manages the caching files used by Network Filsystems
console-...daemon.service loaded active   running       Console Manager
console-...-start.service loaded active   exited        Console System Startup Logging
crond.service             loaded active   running       Command Scheduler
dbus.service              loaded active   running       D-Bus System Message Bus
dkms_aut...taller.service loaded active   exited        LSB: Automatically install DKMS modules for new kernels
dnsmasq.service           loaded active   running       SYSV: This script starts your DNS caching server
emergency.service         loaded inactive dead          Emergency Shell
fedora-a...l-mark.service loaded inactive dead          Mark the need to relabel after reboot
fedora-a...elabel.service loaded inactive dead          Relabel all filesystems, if necessary
fedora-autoswap.service   loaded active   exited        Enable all detected swap partitions
fedora-configure.service  loaded inactive dead          Reconfigure the system on administrator request
fedora-l...odules.service loaded active   exited        Load legacy module configuration
fedora-readonly.service   loaded active   exited        Configure read-only root support
fedora-s...t-late.service loaded active   exited        Initialize storage subsystems (RAID, LVM, etc.)
fedora-s...e-init.service loaded active   exited        Initialize storage subsystems (RAID, LVM, etc.)
fedora-s...t-hack.service loaded active   exited        Bootup hack
fedora-s...unhack.service loaded active   exited        Bootup unhack
fedora-w...torage.service loaded active   exited        Wait for storage scan
fsck-root.service         loaded inactive dead          File System Check on Root Device
fsck     loaded inactive dead          File System Check on /dev/sda1
getty        loaded inactive dead          Getty on tty1
getty        loaded active   running       Getty on tty2
getty        loaded active   running       Getty on tty3
getty        loaded active   running       Getty on tty4
getty        loaded active   running       Getty on tty5
getty        loaded active   running       Getty on tty6
gpm.service               loaded active   running       Console Mouse manager
gpsd.service              loaded inactive dead          LSB: Service daemon for mediating access to a GPS
halt-local.service        loaded inactive dead          /sbin/halt.local Compatibility
halt.service              loaded inactive dead          Halt
hwclock-load.service      loaded active   exited        Apply System Clock UTC Offset
hwclock-save.service      loaded inactive dead          Update RTC With System Clock
ipmi.service              error  inactive dead          ipmi.service
ipmievd.service           loaded inactive dead          LSB: ipmievd daemon to send events to syslog
iptables.service          loaded active   exited        LSB: start and stop iptables firewall
killall.service           loaded inactive dead          killall.service
ksm.service               loaded active   exited        LSB: start and stop ksm
ksmtuned.service          loaded active   running       LSB: tune the speed of ksm
laptop-mode.service       loaded inactive dead          SYSV: Starts and stops "laptop-mode" - tweaks system behavior
lirc.service              loaded inactive dead          LSB: Linux Infrared Remote Control daemon
livesys-late.service      error  inactive dead          livesys-late.service
lm_sensors.service        loaded active   exited        lm_sensors for monitoring motherboard sensor values
lvm2-monitor.service      loaded active   exited        LSB: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
mcstrans.service          loaded inactive dead          SYSV: This starts the SELinux Context Translation System Daemon
mdmonitor.service         loaded active   exited        LSB: Start and stop the MD software RAID monitor
mysqld.service            loaded active   running       LSB: start and stop MySQL server
netconsole.service        loaded inactive dead          SYSV: Initializes network console logging
netplugd.service          loaded active   running       LSB: start and stop network plug daemon
NetworkManager.service    loaded active   running       Network Manager
nfs.service               loaded inactive dead          LSB: Start up the NFS server sevice
nfslock.service           loaded active   running       LSB: Start up the NFS file locking sevice
nmb.service               loaded active   running       SYSV: Starts and stops the Samba smbd and nmbd daemons used to provide SMB network services.
nxsensor.service          loaded active   exited        nxsensor.service
nxserver.service          loaded active   exited        nxserver.service
oidentd.service           loaded active   running       LSB: RFC 1413 identification server
openct.service            loaded active   exited        LSB: Middleware framework for smart card terminals
openvpn.service           loaded inactive dead          LSB: start and stop openvpn
plymouth...t-wait.service loaded inactive dead          Wait for Plymouth Boot Screen to Quit
plymouth-quit.service     loaded inactive dead          Terminate Plymouth Boot Screen
plymouth...-write.service loaded inactive dead          Tell Plymouth To Write Out Runtime Data
plymouth-start.service    loaded inactive dead          Show Plymouth Boot Screen
portreserve.service       loaded active   exited        LSB: Port reservation utility
postfix.service           loaded active   running       LSB: start and stop postfix
poweroff.service          loaded inactive dead          Power-Off
prefdm.service            loaded active   running       Display Manager
preload.service           loaded active   running       LSB: Adaptive readahead daemon
pulseaudio.service        loaded active   running       PulseAudio system daemon
rc-local.service          loaded active   running       /etc/rc.local Compatibility
reboot.service            loaded inactive dead          Reboot
remount-rootfs.service    loaded active   exited        Remount Root FS
rescue.service            loaded inactive dead          Rescue Shell
rpcbind.service           loaded active   running       SYSV: The rpcbind utility is a server that converts RPC program numbers into universal addresses. It must be running on the host to be able to make RPC calls on a server on that machine.
rpcgssd.service           loaded active   exited        LSB: Starts the RPCSEC GSS client daemon
rpcidmapd.service         loaded active   running       LSB: Starts the NFSv4 id mapping daemon
rpcsvcgssd.service        loaded inactive dead          LSB: Starts the RPCSEC GSS server daemon
rsyslog.service           loaded active   running       System Logging Service
saslauthd.service         loaded inactive dead          LSB: Start/Stop the SASL authentication daemon
smb.service               loaded active   running       SYSV: Starts and stops the Samba smbd daemon used to provide SMB network services.
snmpd.service             loaded inactive dead          LSB: start and stop Net-SNMP daemon
snmptrapd.service         loaded inactive dead          LSB: start and stop Net-SNMP trap daemon
speech-d...tcherd.service loaded inactive dead          SYSV: provides a high-level device independent layer for speech synthesis
sshd.service              loaded active   running       LSB: Start up the OpenSSH server daemon
svnserve.service          loaded inactive dead          LSB: start and stop the svnserve daemon
sysstat.service           loaded active   exited        LSB: reset the system activity logs
systemd-...onsole.service loaded inactive dead          Dispatch Password Requests to Console
systemd-...ymouth.service loaded inactive dead          Forward Password Requests to Plymouth
systemd-...d-wall.service loaded inactive dead          Forward Password Requests to Wall
systemd-binfmt.service    loaded active   exited        Set Up Additional Binary Formats
systemd-initctl.service   loaded inactive dead          /dev/initctl Compatibility Daemon
systemd-...yslogd.service loaded active   running       Syslog Kernel Log Buffer Bridge
systemd-logger.service    loaded active   running       Stdio Syslog Bridge
systemd-...s-load.service loaded inactive dead          Load Kernel Modules
systemd-...d-load.service loaded inactive dead          Load Random Seed
systemd-...d-save.service loaded inactive dead          Save Random Seed
systemd-...ollect.service loaded active   exited        Collect Read-Ahead Data
systemd-...d-done.service loaded inactive dead          Stop Read-Ahead Data Collection
systemd-...replay.service loaded active   exited        Replay Read-Ahead Data
systemd-...pi-vfs.service loaded active   exited        Remount API VFS
systemd-shutdownd.service loaded inactive dead          Delayed Shutdown Service
systemd-sysctl.service    loaded active   exited        Apply Kernel Variables
systemd-...-clean.service loaded inactive dead          Cleanup of Temporary Directories
systemd-...-setup.service loaded active   exited        Recreate Volatile Files and Directories
systemd-...nlevel.service loaded inactive dead          Notify Audit System and Update UTMP about System Runlevel Changes
systemd-...utdown.service loaded inactive dead          Notify Audit System and Update UTMP about System Shutdown
systemd-...ssions.service loaded active   exited        Permit User Sessions
systemd-...-setup.service loaded active   exited        Setup Virtual Console
udev-settle.service       loaded active   exited        udev Wait for Complete Device Initialization
udev-trigger.service      loaded active   exited        udev Coldplug all Devices
udev.service              loaded active   running       udev Kernel Device Manager
vboxball...ervice.service loaded active   exited        LSB: VirtualBox balloon control daemon
vboxdrv.service           loaded active   exited        LSB: VirtualBox Linux kernel module
vboxweb-service.service   loaded active   exited        LSB: VirtualBox web service API
wpa_supplicant.service    loaded inactive dead          LSB: start and stop wpa_supplicant
yum-updatesd.service      loaded active   exited        LSB: Update notification daemon
zvbid.service             loaded inactive dead          SYSV: Proxy daemon to share a v4l vbi device between applications.
avahi-daemon.socket       loaded active   listening     Avahi mDNS/DNS-SD Stack Activation Socket
dbus.socket               loaded active   running       D-Bus System Message Bus Socket
syslog.socket             loaded active   running       Syslog Socket
systemd-initctl.socket    loaded active   listening     /dev/initctl Compatibility Named Pipe
systemd-logger.socket     loaded active   running       Stdio Syslog Bridge Socket
systemd-shutdownd.socket  loaded active   listening     Delayed Shutdown Socket
udev.socket               loaded active   running       udev Kernel Device Manager Socket
dev-disk...\x2dpart3.swap loaded active   active        /dev/disk/by-id/ata-Corsair_CMFSSD-128D1_1035220801FF09330919-part3
dev-disk...\x2dpart3.swap loaded active   active        /dev/disk/by-id/scsi-SATA_Corsair_CMFSSD-1035220801FF09330919-part3
dev-disk...abel-swap.swap loaded active   active        /dev/disk/by-label/swap
dev-disk...\x2dpart3.swap loaded active   active        /dev/disk/by-path/pci-0000:00:1f.2-scsi-1:0:0:0-part3
dev-disk...5928d89ef.swap loaded active   active        /dev/disk/by-uuid/7ffc1cb7-c4d4-4288-92e4-4605928d89ef
dev-sda3.swap             loaded active   active        /dev/sda3
abrtd.target              error  inactive dead          abrtd.target
basic.target              loaded active   active        Basic System
cryptsetup.target         loaded active   active        Encrypted Volumes
emergency.target          loaded inactive dead          Emergency Mode
final.target              loaded inactive dead          Final Step
getty.target              loaded active   active        Login Prompts
graphical.target          loaded active   active        Graphical Interface
local-fs.target           loaded active   active        Local File Systems
mail-tra...r-agent.target loaded active   active        Mail Transfer Agent
multi-user.target         loaded active   active        Multi-User
network.target            loaded active   active        Network
nss-lookup.target         loaded inactive dead          Name Lookups
remote-fs.target          loaded active   active        Remote File Systems
rescue.target             loaded inactive dead          Rescue Mode
rpcbind.target            loaded inactive dead          RPC Port Mapper
shutdown.target           loaded inactive dead          Shutdown
sockets.target            loaded active   active        Sockets
sound.target              loaded inactive dead          Sound Card
swap.target               loaded active   active        Swap
sysinit.target            loaded active   active        System Initialization
syslog.target             loaded active   active        Syslog
time-sync.target          loaded active   active        System Time Synchronized
umount.target             loaded inactive dead          Unmount All Filesystems
systemd-...ead-done.timer loaded active   elapsed       Stop Read-Ahead Data Collection 10s After Completed Startup
systemd-...es-clean.timer loaded active   waiting       Daily Cleanup of Temporary Directories

Comment 14 Rudd-O DragonFear 2011-06-05 01:25:07 UTC
Additional bug, when systemctl stop an automount or mount unit tha thas been mounted, systemd (pid 1, verified by strace) stays in an endless umount() loop.

This thing has issues.

Comment 15 Michal Schmidt 2011-06-14 09:50:37 UTC
(In reply to comment #12)
> I have more info to add.  Even when remote-fs.target is enabled, it does NOT
> work, despite the fact that systemctl show clearly shows it is wanted by
> multi-user.target.  More importantly, it does not work on boot, whether the
> default target is multi-user.target or graphical.target.

Alright, this should be investigated. Please boot with "log_buf_len=1M systemd.log_level=debug systemd.log_target=kmsg" and attach the output of "dmesg".

Comment 16 Brad Watson 2011-06-21 10:28:34 UTC
I am having the same problem I think. CIFS shares that are in fstab don't get mounted on boot, but "mount -a" gets them mounted fine. Also if I start with a '3' on the kernel line, the shares are mounted (not sure if runlevel is still supported this way, but it seems to work).

Should I provide the information requested in comment 15?

Comment 17 Rudd-O DragonFear 2011-06-26 09:50:37 UTC
Created attachment 509952 [details]
hell yeah my dmesg output

hell yeah

Comment 18 Rudd-O DragonFear 2011-06-26 10:20:42 UTC
ODD!


/home/rudd-o Ω:
find /*/systemd | grep remote-fs
/etc/systemd/system/multi-user.target.wants/remote-fs.target
/lib/systemd/system/remote-fs.target

/home/rudd-o Ω:
systemctl --all | grep remote-fs
remote-fs.service         error  inactive dead          remote-fs.service
remote-fs.target          loaded inactive dead          Remote File Systems

/home/rudd-o Ω:
rpm -Va systemd*


What is this remote-fs.service doing in systemctl --all output?  File does not exist anywhere.

Comment 19 Harald Hoyer 2011-06-30 13:26:40 UTC
(In reply to comment #18)
> ODD!
> 
> 
> /home/rudd-o Ω:
> find /*/systemd | grep remote-fs
> /etc/systemd/system/multi-user.target.wants/remote-fs.target
> /lib/systemd/system/remote-fs.target
> 
> /home/rudd-o Ω:
> systemctl --all | grep remote-fs
> remote-fs.service         error  inactive dead          remote-fs.service
> remote-fs.target          loaded inactive dead          Remote File Systems
> 
> /home/rudd-o Ω:
> rpm -Va systemd*
> 
> 
> What is this remote-fs.service doing in systemctl --all output?  File does not
> exist anywhere.

see my comment #8

Comment 20 Rudd-O DragonFear 2011-08-27 21:22:46 UTC
Continues to be a problem, updates applied three days ago.

Comment 21 Rudd-O DragonFear 2011-08-27 21:24:29 UTC
Will try the netfs thing.

Comment 22 Rudd-O DragonFear 2011-08-27 23:08:02 UTC
Adding netfs fixes the problem (filesystems mount), but:

1. causes /var/shared.... busy or already mounted errors on boot
2. the whole point of systemd is that mounting network filesystems ought not be done by a dumb sysv script

Comment 23 Rudd-O DragonFear 2011-08-27 23:16:50 UTC
The automount units never got mounted.  I got a couple file system automount units in systemadm, they all say inactive / dead. so no, netfs does not fix the problem.  The problem was always that AUTOMOUNT units don't work at all -- netfs does not set up automount maps.

The netfs suggestion does not fix the bug.

Comment 24 Fedora Admin XMLRPC Client 2011-10-20 16:27:48 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 25 Rudd-O DragonFear 2011-11-03 02:31:51 UTC
If netfs is not registered with chkconfig, this bug persists.  The filesystems aren't even kernel-automounted.

All I want is to understand this.

- If var-shared.automount is  RequiredBy=remote-fs.target
- and remote-fs.target is WantedBy=multiuser.target
- and multiuser.target is active,

...why is remote-fs.target inactive/dead and var-shared.automount is inactive/dead after boot?

BUG STILL NOT FIXED.

Comment 26 Rudd-O DragonFear 2011-11-03 02:47:25 UTC
Now it's even WORSE.  If, after boot, I issue systemctl start remote-fs.target:

------------------------------------------------


systemd-1 on /var/shared type autofs (rw,relatime,fd=20,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
10.254.102.1:/export/shared/ on /var/shared type nfs4 (rw,noatime,vers=4,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=10.254.102.5,minorversion=0,local_lock=none,addr=10.254.102.1)
10.254.102.1:/export/shared/Entertainment/ on /var/shared/Entertainment type nfs4 (rw,noatime,vers=4,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=10.254.102.5,minorversion=0,local_lock=none,addr=10.254.102.1)
systemd-1 on /var/shared/Entertainment type autofs (rw,relatime,fd=23,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
10.254.102.1:/export/shared/Software/ on /var/shared/Software type nfs4 (rw,noatime,vers=4,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=10.254.102.5,minorversion=0,local_lock=none,addr=10.254.102.1)
systemd-1 on /var/shared/Software type autofs (rw,relatime,fd=24,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
10.254.102.1:/export/shared/Knowledge/ on /var/shared/Knowledge type nfs4 (rw,noatime,vers=4,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=10.254.102.5,minorversion=0,local_lock=none,addr=10.254.102.1)
systemd-1 on /var/shared/Knowledge type autofs (rw,relatime,fd=25,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
10.254.102.1:/export/shared/Incoming/ on /var/shared/Incoming type nfs4 (rw,noatime,vers=4,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=10.254.102.5,minorversion=0,local_lock=none,addr=10.254.102.1)
systemd-1 on /var/shared/Incoming type autofs (rw,relatime,fd=27,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
systemd-1 on /var/shared/Entertainment/Jokes type autofs (rw,relatime,fd=29,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
systemd-1 on /var/shared/Entertainment/Miro type autofs (rw,relatime,fd=31,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
systemd-1 on /var/shared/Entertainment/TV type autofs (rw,relatime,fd=32,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
systemd-1 on /var/shared/Entertainment/Movies type autofs (rw,relatime,fd=33,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
systemd-1 on /var/shared/Entertainment/Music type autofs (rw,relatime,fd=34,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
10.254.102.1:/export/shared/Entertainment/ on /var/shared/Entertainment type nfs4 (rw,noatime,vers=4,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=10.254.102.5,minorversion=0,local_lock=none,addr=10.254.102.1)

/home/rudd-o Ω:
ls /var/shared
Entertainment  Incoming  Knowledge  Software

/home/rudd-o Ω:
cd /var/shared

/var/shared Ω:
c^C

/var/shared Ω:
find
.
./Incoming
^C

/var/shared Ω:
ls
^Cls: cannot access Incoming: Interrupted system call
Entertainment

/var/shared Ω:

----------------------------------

Look at the ordering of the mounts.  It's *insane* and it's causing the kernel to enter a loop that I can only exit with Ctrl+C.

Comment 27 Rudd-O DragonFear 2011-11-03 03:00:06 UTC
Created attachment 531480 [details]
latest systemd debug dmesg output

Comment 28 Rudd-O DragonFear 2011-11-03 03:18:23 UTC
Good news.  automount DOES work.  With this in /etc/fstab:

nfsserver:/path    /path   nfs4    comment=systemd.automount,noauto

BUT, IF THIS is in fstab


nfsserver:/path        /path         nfs4    comment=systemd.automount,noauto
nfsserver:/path/child  /path/child   nfs4    comment=systemd.automount,noauto


THEN it doesn't work.

Check the latest file I attached to see how remote-fs.target is being REMOVED from the dependency list by systemd, to break some supposed "cycle".

And that "solves" the mystery: systemd has a bug in which it removes units such as remote-fs.target.

Comment 29 Rudd-O DragonFear 2011-11-03 03:19:07 UTC
For the record: with ONE filesystem, no nested filesystems:


[    3.993227] systemd[1]: Installed new job var-shared.automount/start as 92
[    3.993230] systemd[1]: Installed new job fedora-sysinit-unhack.service/start as 93


Now I will collect the output of nested filesystems.

Comment 30 Rudd-O DragonFear 2011-11-03 03:29:19 UTC
Ahaha!  With a filesystem and a child filesystem in fstab:


[    3.989999] systemd[1]: Found ordering cycle on basic.target/start
[    3.991791] systemd[1]: Walked on cycle path to var-shared-Incoming.automount/start
[    3.993579] systemd[1]: Walked on cycle path to var-shared.mount/start
[    3.995332] systemd[1]: Walked on cycle path to network.target/start
[    3.997044] systemd[1]: Walked on cycle path to NetworkManager.service/start
[    3.998731] systemd[1]: Walked on cycle path to basic.target/start
[    4.000407] systemd[1]: Breaking ordering cycle by deleting job var-shared-Incoming.automount/start
[    4.002076] systemd[1]: Deleting job remote-fs.target/start as dependency of job var-shared-Incoming.automount/start


TADAAA!  systemd is creating these cycles, and systemd is breaking them by breaking boot.  As such, the filesystems are no longer automounted.

tsk tsk.

Comment 31 Rudd-O DragonFear 2011-11-03 03:33:47 UTC
I have upstreamed this bug: https://bugs.freedesktop.org/show_bug.cgi?id=42539

Comment 32 Jóhann B. Guðmundsson 2012-01-24 13:43:41 UTC
Is this still a problem or can this bug be closed?

Comment 33 Rudd-O DragonFear 2012-01-25 03:00:46 UTC
This continues to be a problem.  I am not sure when I will be able to provide more debugging info, but specific questions may help.

Comment 34 Jóhann B. Guðmundsson 2012-01-27 19:22:32 UTC
Please enable the relevant services on startup and boot with 'log_buf_len=1M systemd.log_level=debug systemd.log_target=kmsg' then save the output of the dmesg command and attach it here.

Thanks

Comment 35 Rudd-O DragonFear 2012-02-01 01:26:29 UTC
I reinstalled from scratch, automount units work as advertised if I specify them like this in the fstab:


10.254.102.1:/export/shared/Incoming             /var/shared/Incoming                nfs     noauto,comment=systemd.automount 0 0

Comment 36 Rudd-O DragonFear 2012-02-01 01:27:16 UTC
Someone should document the noauto trick along with the docs for systemd.automount.

I will leave the bug open because nested automounts don't work just yet.

Comment 37 Jóhann B. Guðmundsson 2012-02-01 09:33:19 UTC
(In reply to comment #36)
> Someone should document the noauto trick along with the docs for
> systemd.automount.

The noauto trick is already documented in the man page for fstab and systemd.automount already has a man page


> I will leave the bug open because nested automounts don't work just yet.

You will need to file a new bug against autofs for the nested problem and when doing so follow what's outlined here http://people.redhat.com/jmoyer/ even thou this is old I think the debugging methods are still more or less valid 

Closing this bug 

Thanks


Note You need to log in before you can comment on or make changes to this bug.