You are not logged in.

#1 2017-05-23 08:14:16

patlabor
Member
Registered: 2017-04-08
Posts: 3

need help mounting a mergerfs pool at startup

Hello everyone,

i am just trying to set up a homeserver with arch linux using mergerfs for disk pooling. while everything is working fine and as expectet when i boot the server and them mount the pool by hand at each start up, i just cant get the pool mounted via fstab.

my fs tab looks like this:

#
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>       <dump>  <pass>
# /dev/sde1 LABEL=Boot
UUID=94dd2cf0-66ea-4bd3-8b04-cf76458d3b8c       /               ext4            rw,relatime,data=ordered        0 1
# /dev/sda1 LABEL=Platte1
UUID=016ba9aa-99a1-48e9-b5d3-b28ab37b7869       /data/platte1   ext4            rw,relatime,data=ordered        0 2
# /dev/sdb1 LABEL=Platte2
UUID=0522076c-c99e-40ca-89b1-9ceee6b2e712       /data/platte2   ext4            rw,relatime,data=ordered        0 2
# /dev/sdc1 LABEL=Platte3
UUID=00b69b42-51ec-4442-8420-785d75e0d32b       /data/platte3   ext4            rw,relatime,data=ordered        0 2
# /dev/sdd1 LABEL=Platte4
UUID=7b493d11-bd6f-46ee-96ea-cd3c0ec1e968       /data/platte4   ext4            rw,relatime,data=ordered        0 2
# /dev/sdf1 LABEL=Platte5
UUID=31fbc255-09a5-49b4-a313-1a4ae403a8f9       /data/platte5   ext4            rw,relatime,data=ordered        0 2
# /dev/sdg1 LABEL=Parity1
UUID=ec1ad727-677c-4161-9d10-f331060bb9e6       /data/parity1   ext4            rw,relatime,data=ordered        0 2
/data/platte1:/data/platte2:/data/platte3:/data/platte4:/data/platte5   /data/pool      fuse.mergerfs   x-systemd.requires=/data/platte1,x-systemd.requires=/data/platte2,x-systemd.requires=/data/platte3,x-systemd.requires=/data/platte4x-systemd.requires=/data/platte5,defaults,allow_others,use_ino                       0 0

when i boot, i end up in an emergency shell but i can continue booting, after that /data/pool is, not surprisingly, not mounted.

journalctl -xb just gives me:

May 23 09:27:41 openmediavault systemd-vconsole-setup[235]: Invalid font metadata - width: 39124224 (max 32), height: 4294953216 (max 32), count: 2166468276 (
May 23 09:27:41 openmediavault systemd-vconsole-setup[235]: Fonts will not be copied to remaining consoles
May 23 09:27:41 openmediavault systemd[1]: data-pool.mount: Mount process exited, code=exited status=1
May 23 09:27:41 openmediavault systemd[1]: Failed to mount /data/pool.
-- Subject: Unit data-pool.mount has failed
-- Defined-By: systemd
-- Support: [url]http://lists.freedesktop.org/mailman/li[/url] … temd-devel
-- 
-- Unit data-pool.mount has failed.
-- 
-- The result is failed.

also systemctl status data-pool.mount is not helping me any more:

● data-pool.mount - /data/pool
   Loaded: loaded (/etc/fstab; generated; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2017-05-23 09:28:14 CEST; 13min ago
    Where: /data/pool
     What: /data/platte1:/data/platte2:/data/platte3:/data/platte4:/data/platte5
     Docs: man:fstab(5)
           man:systemd-fstab-generator(8)
  Process: 360 ExecMount=/usr/bin/mount /data/platte1:/data/platte2:/data/platte3:/data/platte4:/data/platte5 /data/pool -t fuse.mergerfs -o x-systemd.require
May 23 09:28:13 openmediavault systemd[1]: Mounting /data/pool...
May 23 09:28:13 openmediavault systemd[1]: Mounted /data/pool.
May 23 09:28:14 openmediavault systemd[1]: data-pool.mount: Mount process exited, code=exited status=1
May 23 09:28:14 openmediavault systemd[1]: data-pool.mount: Unit entered failed state.

i also tried to mount the pool via systemd using:

[Unit]
Description = mergerfs pool mounten
Requires = data-platte1.mount
Requires = data-platte2.mount
Requires = data-platte3.mount
Requires = data-platte4.mount
Requires = data-platte5.mount
After = data-platte1.mount
After = data-platte2.mount
After = data-platte3.mount
After = data-platte4.mount
After = data-platte5.mount
[Mount]
What = /data/platte*
Where = /data/pool
Type = fuse.mergerfs
Options = defaults,allow_other,direct_io,use_ino,fsname=pool
[Install]
WantedBy = multi-user.target

but that is just giving me the same error as when using the fstab


any suggestions?

Last edited by patlabor (2017-05-23 08:43:01)

Offline

#2 2017-05-23 08:36:14

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: need help mounting a mergerfs pool at startup

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Co … s_and_code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB