RAID and LVM and mounting issues

  • First a bit of background. I'm trying really hard to get omv working on a netgear readynas ultra 6. I've come so close, but yet, every sollution somehow at some point seems to wanna backfire.

    1. Install omv on a thumbdrive: this went great, until the uptime was longer than 24 hours at wich point the system just crashed. Since you have to manually intervean to reboot propperly, this is not really a workable sollution. Other than that, I did get jellyfin up and running after recreating the log directory and adding a firewall rule for port 8096 (i think)

    2. Use a debian 11 netinstall with raid and lvm. Great, since I don't have to offer up a disk, I thought, more diskspace to store backups, I thought... But the moment I add "/dev/dm-2

    XFS

    -

    -

    -


    Online"

    the web UI spits out a fancy error... It seems I'm not the only person having this, and as of yet, it also seems there's no sollution for it...

    the error:

    "

    500 - Internal Server Error

    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; omv-salt deploy run --no-color fstab 2>&1' with exit code '100': ERROR: The state 'fstab' does not exist

    "


    At this point I'm getting both frustrated and desperate, since the nas itself is working just fine, the original firmware won't work due to something on the flash being corrupted, unraid seemed stable but performance wasn't all that great. So, what do I do now... I just want to mount the data volume somehow so omv can create shared folders on it, I first changed everything from /dev/dm-xx to uuids, then saved and systemctl daemon-reload to then reboot, I then removed the line the installer created and replaced it with "#UUID=688911d5-2270-4150-a71d-001de0c9e1ea /srv/disk-by-uid-688911d5-2270-4150-a71d-001de0c9e1ea xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,sunit=1024,swidth=5120,noquota"

    after making the propper directory on /srv ... but still nothing...

  • macom

    Approved the thread.
    • Official Post

    500 - Internal Server Error

    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; omv-salt deploy run --no-color fstab 2>&1' with exit code '100': ERROR: The state 'fstab' does not exist

    Looks like your installation is broken somehow.

  • I'm not yet sure on how it could be broken, when the debian 11 system before it was omv'ed was doing just fine. It is also worth noting that all things like the volume group, the volumes themselves, as well as the /dev/md0 created by the installer, were defenately showing up in the webui after installing the lvm2 plugin and all of that. And, I could defenately change other settings without this fstab thing popping up... But, as soon as I tryed adding the data volume from within the filesystems tab, all hell just broke loose...

    So, did some digging, to solve it by force rather than having the ui do it for me [and yes I know, better don't do that and all of that, but frankly there was just no other option...]

    is where I found the sollution... So, first, I created a directory under /srv with disk-by-uuid-[id], then I mounted the volume without specifying any option so that the system would figure it out, hence the long list of options you can find in

    [fstab snipet]

    #UUID=688911d5-2270-4150-a71d-001de0c9e1ea /srv/disk-by-uid-688911d5-2270-4150-a71d-001de0c9e1ea xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,sunit=1024,swidth=5120,noquota"

    Then, I just filled in all the options in the config.xml file, rebooted, et voila. I seriously wish I didn't have to mess around with the xml file, that's why there's a ui after all, but there's seemingly something between lvm's and ovm not playing along very well.

  • just for completeness sake:

    mount output goes here:

    sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)

    proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)

    udev on /dev type devtmpfs (rw,nosuid,relatime,size=1508308k,nr_inodes=377077,mode=755)

    devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)

    tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=303724k,mode=755)

    /dev/mapper/MultiDisk0-SysVol on / type ext4 (rw,relatime,errors=remount-ro,stripe=640)

    securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)

    tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)

    tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)

    cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)

    pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)

    none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)

    systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=12572)

    hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)

    mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)

    debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)

    tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)

    configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)

    fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)

    sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)

    tmpfs on /tmp type tmpfs (rw,relatime)

    /dev/mapper/MultiDisk0-data on /srv/disk-by-uid-688911d5-2270-4150-a71d-001de0c9e1ea type xfs (rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,sunit=1024,swidth=5120,noquota)

    /dev/sdh1 on /boot type ext4 (rw,relatime)

    /dev/mapper/MultiDisk0-SysVol on /var/folder2ram/var/log type ext4 (rw,relatime,errors=remount-ro,stripe=640)

    folder2ram on /var/log type tmpfs (rw,relatime)

    /dev/mapper/MultiDisk0-SysVol on /var/folder2ram/var/tmp type ext4 (rw,relatime,errors=remount-ro,stripe=640)

    folder2ram on /var/tmp type tmpfs (rw,relatime)

    /dev/mapper/MultiDisk0-SysVol on /var/folder2ram/var/lib/openmediavault/rrd type ext4 (rw,relatime,errors=remount-ro,stripe=640)

    folder2ram on /var/lib/openmediavault/rrd type tmpfs (rw,relatime)

    /dev/mapper/MultiDisk0-SysVol on /var/folder2ram/var/spool type ext4 (rw,relatime,errors=remount-ro,stripe=640)

    folder2ram on /var/spool type tmpfs (rw,relatime)

    /dev/mapper/MultiDisk0-SysVol on /var/folder2ram/var/lib/rrdcached type ext4 (rw,relatime,errors=remount-ro,stripe=640)

    folder2ram on /var/lib/rrdcached type tmpfs (rw,relatime)

    /dev/mapper/MultiDisk0-SysVol on /var/folder2ram/var/lib/monit type ext4 (rw,relatime,errors=remount-ro,stripe=640)

    folder2ram on /var/lib/monit type tmpfs (rw,relatime)

    /dev/mapper/MultiDisk0-SysVol on /var/folder2ram/var/cache/samba type ext4 (rw,relatime,errors=remount-ro,stripe=640)

    folder2ram on /var/cache/samba type tmpfs (rw,relatime)

    tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=303720k,nr_inodes=75930,mode=700)


    Here's 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).

    #

    # systemd generates mount units based on this file, see systemd.mount(5).

    # Please run 'systemctl daemon-reload' after making changes here.

    #

    # <file system> <mount point> <type> <options> <dump> <pass>

    UUID=3ddf6037-9f2e-4b95-9eb2-dcd4615f3ca6 / ext4 errors=remount-ro 0 1

    # /boot was on /dev/sde1 during installation

    UUID=2fedd9ac-a15c-4055-be95-93e9a402fe18 /boot ext4 defaults 0 2

    UUID=a0b8d757-a7f5-4baa-9a45-90e9e6109807 none swap sw 0 0

    UUID=688911d5-2270-4150-a71d-001de0c9e1ea /srv/disk-by-uid-688911d5-2270-4150-a71d-001de0c9e1ea xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,sunit=1024,swidth=5120,noquota


    and last but not least, here's blkid:

    /dev/sda1: UUID="932b72c4-9db3-39d2-47f4-a1196644c089" UUID_SUB="801eedf1-9301-e9df-a863-bd76296bc803" LABEL="nasmans:0" TYPE="linux_raid_member" PARTUUID="02ea94bb-8808-48d4-bdd5-8bb969b1ba5b"

    /dev/sdf1: UUID="932b72c4-9db3-39d2-47f4-a1196644c089" UUID_SUB="b5d1ddb7-f280-22f6-66b6-3c34150b028b" LABEL="nasmans:0" TYPE="linux_raid_member" PARTUUID="457b6da9-e230-48ab-862e-ae33f452572d"

    /dev/sdb1: UUID="932b72c4-9db3-39d2-47f4-a1196644c089" UUID_SUB="2d39477e-1642-cbf2-f8e2-68986a72423d" LABEL="nasmans:0" TYPE="linux_raid_member" PARTUUID="0857e5e1-2d5d-4585-b811-6aec3e1a506e"

    /dev/sde1: UUID="932b72c4-9db3-39d2-47f4-a1196644c089" UUID_SUB="7ac7967d-bbf5-a3d0-ad76-05ceef280c1f" LABEL="nasmans:0" TYPE="linux_raid_member" PARTUUID="741080f9-474d-47df-b4de-d19b8433b2a6"

    /dev/sdd1: UUID="932b72c4-9db3-39d2-47f4-a1196644c089" UUID_SUB="d9014164-e359-a0dd-5733-379faf2f3c1c" LABEL="nasmans:0" TYPE="linux_raid_member" PARTUUID="5c4b6d51-989f-4fed-ba01-e4700e5f3223"

    /dev/sdc1: UUID="932b72c4-9db3-39d2-47f4-a1196644c089" UUID_SUB="1380d52e-dc62-ad56-0ccb-02279afd8eb0" LABEL="nasmans:0" TYPE="linux_raid_member" PARTUUID="eff16bca-aaf6-4028-b1cd-42564b66c943"

    /dev/md0: UUID="oQPqsH-00DK-hf0Z-UNom-2JZm-oI4O-9hV0js" TYPE="LVM2_member"

    /dev/mapper/MultiDisk0-SysVol: UUID="3ddf6037-9f2e-4b95-9eb2-dcd4615f3ca6" BLOCK_SIZE="4096" TYPE="ext4"

    /dev/mapper/MultiDisk0-swap: UUID="a0b8d757-a7f5-4baa-9a45-90e9e6109807" TYPE="swap"

    /dev/mapper/MultiDisk0-data: UUID="688911d5-2270-4150-a71d-001de0c9e1ea" BLOCK_SIZE="512" TYPE="xfs"

    /dev/sdg1: LABEL="DEBIAN 11_7" UUID="AAB9-E8CC" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="16bb88d7-01"

    /dev/sdh1: UUID="2fedd9ac-a15c-4055-be95-93e9a402fe18" BLOCK_SIZE="1024" TYPE="ext4" PARTUUID="8b7360c8-01"


    And this is what I ended up adding in the config.xml

    <fstab>

    <mntent>

    <uuid>688911d5-2270-4150-a71d-001de0c9e1ea</uuid>

    <fsname>/dev/disk/by-uuid/688911d5-2270-4150-a71d-001de0c9e1ea</fsname>

    <dir>/srv/disk-by-uid-688911d5-2270-4150-a71d-001de0c9e1ea</dir>

    <type>xfs</type>

    <opts>rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,sunit=1024,swidth=5120</opts>

    <usagewarnthreshold>95</usagewarnthreshold>

    <passno>2</passno>

    <hidden>0</hidden>

    <comment>manual config edit</comment>

    </mntent>

    </fstab>

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!