Skip to content

Fileserver (and Mediaserver & Torrentserver) failing to boot under LXC #1139

@JedMeister

Description

@JedMeister

The Fileserver (and Mediaserver & Torrentserver) containers are failing to successfully complete the boot process. The relevant lines from the journal:

Jul 05 01:39:05 test-fileserver systemd[1]: Reached target Local File Systems (Pre).
Jul 05 01:39:05 test-fileserver systemd[1]: Mounting /srv/homes...
Jul 05 01:39:05 test-fileserver systemd[1]: srv-homes.mount: Mount process exited, code=exited status=32
Jul 05 01:39:05 test-fileserver systemd[1]: Failed to mount /srv/homes.
Jul 05 01:39:05 test-fileserver systemd[1]: Dependency failed for Local File Systems.
Jul 05 01:39:05 test-fileserver systemd[1]: local-fs.target: Job local-fs.target/start failed with result 'dependency'.
Jul 05 01:39:05 test-fileserver systemd[1]: local-fs.target: Triggering OnFailure= dependencies.

The dependency that is failing is srv-homes.mount:

root@test-fileserver ~# systemctl status srv-homes.mount
* srv-homes.mount - /srv/homes
   Loaded: loaded (/etc/fstab; generated; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2018-07-05 02:42:28 UTC; 2min 27s ago
    Where: /srv/homes
     What: /home
     Docs: man:fstab(5)
           man:systemd-fstab-generator(8)
  Process: 209 ExecMount=/bin/mount /home /srv/homes -t bind -o 0 (code=exited, status=32)

Jul 05 02:42:28 test-fileserver systemd[1]: Mounting /srv/homes...
Jul 05 02:42:28 test-fileserver systemd[1]: srv-homes.mount: Mount process exited, code=exited status=32
Jul 05 02:42:28 test-fileserver systemd[1]: Failed to mount /srv/homes.
Jul 05 02:42:28 test-fileserver systemd[1]: srv-homes.mount: Unit entered failed state.

So the issue is that it's failing to mount /home /srv/homes bind -o 0 (i.e. mount bind /home to /srv/homes). However, I'm not really clear how/where that is being configured?!

FWIW:

root@test-fileserver ~# cat /etc/fstab 
# UNCONFIGURED FSTAB FOR BASE SYSTEM
/home /srv/homes bind 0 0

It certainly doesn't seem to be the case within the ISO install:

root@fileserver ~# systemctl status srv-homes.mount
Unit srv-homes.mount could not be found.
root@fileserver ~# 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>
/dev/mapper/turnkey-root /               ext4    errors=remount-ro 0       1
/dev/mapper/turnkey-swap_1 none            swap    sw              0       0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions