Beiträge von kentish

    When I upgraded ny OMV from 4 to 5 it kept deleting the /etc/resolv.conf file which broke DNS resolution. Check that file on your machine and see what's inside it. If it's empty or missing try populating it like this and see what happens:


    Eventually after some system updates I stopped having problems, and I am unsure whether this file is even needed anymore. On my machine it exists as a symbolic link to /run/systemd/resolve/resolv.conf

    Sorry to jump in on a thread - wanted to say thanks as this fixed my issue

    Morning or Afternoon All


    I'm looking for a bit of advice on my next upgrade as I'm not sure on the amount of hardware resources I'll need. Bit of background, been using OMV since release and the forum helped me with the last hardware purchases six years ago :) The NAS has been pretty much rock solid apart from a few user errors on my part, which we won't go into!!


    My employer has told me I'll be working from home from the forthcoming year and I'll like to change my NAS from just being a Filestore / Media Server and a Minecraft server for the kids into a host for a couple of VM's. As I need to try and separate work from personal life and I'm hoping if I can leave work stuff on the VM I can shut it down and walk away - fingers crossed. At the moment I'm using my gaming PC as a workstation, so I tend to look at my emails and work stuff when I shouldn't it's a bad habit!!!

    My current set up is

    • Fractal Design R3 Case
    • Intel i3-4130 @ 3.40GHz
    • OMV 5.5.3-1
    • RAM: 4 Gig
    • ASRock Z87 PRO3
    • Storage: SnapRaid
      • 3 x 2tb (2 Data and 1 Parity)
      • 3 x 3tb (2 Data and 1 Parity)
    • Wired Gigabit Network

    The NAS streams DVD, BluRay, 4k and Music content to Samsung TV's and PC's around the house and runs the following dockers


    Docker

    1. Minecraft Bedrock - 4 users
    2. Minecraft Java - 4 users
    3. Sonarr
    4. NZBGet
    5. Heimdell
    6. Emby

    Would like add two VM to this, which I'll remote desktop into from a Windows 10 PC.


    Virtual Machines


    1. Windows 10 - Skype, Office and general work stuff
    2. Linux Mint - Development box - help me to learn some additional tech skills


    So finally the questions

    • As the Motherboard and CPU is quite old, is it really worth attempting to upgrade
    • Should I go for a new Motherboard, CPU and RAM - budget about £100 to £200
      • Local PC shop has this AMD Ryzen 3 3200G 3.6GHz +8GB HyperX DDR4 Memory for £179.99 , feels bit over powered but I'm bit out of touch of specs I need for the NAS.


    Cheers for any advice



    Kentish

    Good. That's what I was looking for. The extra space on your boot drive is a good location for Dockers and other utility purposes. Docker containers do not like being stored on the fused mount point of mergerfs.

    Splendid, glad I'm on the right track :)

    The boot drive is 240 Gig SSD, which I've partitioned into 40G for OpediaMediaVault and 200G for Applications - basically all of the config file for docker. I do plan to switch this back to separate drives in the future but as I only had the SSD available it will make do.


    Currently running the following dockers :-


    • Minecraft - 3 LAN users
    • Sonarr
    • Emby
    • Heimdall & Organizr- finding out which one i like most
    • NZBGet

    Thanks, I suspect that at some point I did these things out of order!


    Still it's a learning curve and I'm copying data back and creating the docker containers! My son is asking for a minecraft one, so at least I can do that now.

    So update, thought I'd try and take the install back to as close to fresh as I could.. checking the plugins I noticed that I'd installed diskstats 5.0.2.1, so uninstalled that and tried the process again. This time everything completed with out error!


    I now have a working 5.2-1.1 install :)

    Hmmm, so wiping the drives generated this error...




    Interestingly reverting still allows the drive to be mounted and mergeFS to be created but then fails when you have to revert


    Bash
    Error #0:
    OMV\Config\DatabaseException: Failed to execute XPath query '/config/services/unionfilesystems/filesystem[uuid='c76b3d70-c8e9-42a6-a50c-a47f7abe77e0']'. in /usr/share/php/openmediavault/config/database.inc:78
    Stack trace:
    #0 /usr/share/openmediavault/engined/rpc/unionfilesystems.inc(166): OMV\Config\Database->get('conf.service.un...', 'c76b3d70-c8e9-4...')
    #1 [internal function]: OMV\Engined\Rpc\UnionFilesystems->get(Array, Array)
    #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
    #3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('get', Array, Array)
    #4 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('UnionFilesystem...', 'get', Array, Array, 1)
    #5 {main}


    So I think, it's time to drag the server from out under the stars and start again....

    SNAPRAID and MergerFS (know as the UnionFS plugin) can be applied with data on storage drives, and in any order. (But it does make sense to cleanly format parity drives and use EXT4 as the file format.) Similarly, you can back out of either one and not lose any data.


    Since OMV5 and it's plugins are works in progress, perhaps you might consider OMV4.
    The data on your drives can stay in place, but you'll have to setup the UnionFS plugin again, and setup SNAPRAID again, being careful to reuse the correct drives for parity, so that you don't overwrite your data.


    With that setup, you can reconnect to your data when setting up shared folders.

    Thanks that's good to know...


    I'll wipe the drives and try EXT3 rather than the current XFS and see what happens!.


    If this doesn't do the trick then I think it's time to redo with OMV 4, still learnt a fair bit on this build, mainly around using cockpit and portainer.

    Sorry no, based upon the error output I'm still using OMV4, did you wipe the drives before trying MergerFS

    I just purged the SNAP Raid data, didn't actually try that but can do and see if that works?


    Just looked and the FSTAB and it seems that the mergeFS has created an entry

    Code
    # >>> [openmediavault]
    /dev/disk/by-label/Applications         /srv/dev-disk-by-label-Applications    e                                                                                                                  xt4     defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota                                                                                                                  .group,jqfmt=vfsv0,acl  0 2
    /dev/disk/by-label/Data01               /srv/dev-disk-by-label-Data01   xfs    d                                                                                                                  efaults,nofail,noexec,usrquota,grpquota,inode64 0 2
    /dev/disk/by-label/Data02               /srv/dev-disk-by-label-Data02   xfs    d                                                                                                                  efaults,nofail,noexec,usrquota,grpquota,inode64 0 2
    /dev/disk/by-label/Data03               /srv/dev-disk-by-label-Data03   xfs    d                                                                                                                  efaults,nofail,noexec,usrquota,grpquota,inode64 0 2
    /dev/disk/by-label/Data05               /srv/dev-disk-by-label-Data05   xfs    d                                                                                                                  efaults,nofail,noexec,usrquota,grpquota,inode64 0 2
    /dev/disk/by-label/Data04               /srv/dev-disk-by-label-Data04   xfs    d                                                                                                                  efaults,nofail,noexec,usrquota,grpquota,inode64 0 2
    /dev/disk/by-label/Data06               /srv/dev-disk-by-label-Data06   xfs    d                                                                                                                  efaults,nofail,noexec,usrquota,grpquota,inode64 0 2
    /srv/dev-disk-by-label-Data01:/srv/dev-disk-by-label-Data02:/srv/dev-disk-by-lab                                                                                                                  el-Data04:/srv/dev-disk-by-label-Data05         /srv/8ba16f15-49a3-44d1-809e-6ff                                                                                                                  3cab5cbe7       fuse.mergerfs   defaults,allow_other,direct_io,use_ino,category.                                                                                                                  create=epmfs,minfreespace=4G,x-systemd.requires=/srv/dev-disk-by-label-Data01,x-                                                                                                                  systemd.requires=/srv/dev-disk-by-label-Data02,x-systemd.requires=/srv/dev-disk-                                                                                                                  by-label-Data04,x-systemd.requires=/srv/dev-disk-by-label-Data05        0 0
    # <<< [openmediavault]

    running mount-a gives me a non-empty error

    Code
    mount -a
    fuse: mountpoint is not empty
    fuse: if you are sure this is safe, use the 'nonempty' mount option

    not sure if I should try and and use the nonempty or specifically try an mount the fuse entry - just not sure on the syntax

    So a little bit delayed bu the festival spirit...


    Tried the following and still no joy!


    • Removed SNAP Raid
    • Deleted SNAP Raid data from the drives
    • Uninstalled UnionFS/MergeFS
    • Rebooted
    • Reinstalled MergeFS


    Added four of the six drives to the merge, the other two are going to be parity drives...get this error




    Any one got any ideas?


    Ideally I want the data drives to be available as a single location that I can then use to store all the media on

    Morning from the UK


    Just done a fresh install of OMV 5 on the NAS, previously been running OMV 3 and felt I should really clean the NAS and start a fresh as was moving all services into Docker containers. Everything has been going smoothly apart from setting up the MergeFS and this could (is?) my fault as I might of done it out of order, so to speak.


    OMV is running on 256 SSD which has been partitioned into two OS and Applications then I have 3 x 2TB and 3 x 3TB Western Digital Red. The data drives are formatted as XFS.


    So far I have SNAP Raid set up



    All well so far, so I sync and scrubbed the SNAPRaid and then created the MergeFS using just the Data drives 01,02, 04 and 05


    Here's the error message MergeFSError.txt



    and the output of fstab fstab.txt



    and of BLKID blikid.txt




    When I try and edit the MergeFS, i get this error


    Code
    Error #0:
    OMV\Config\DatabaseException: Failed to execute XPath query '/config/services/unionfilesystems/filesystem[uuid='0ed06412-2810-4472-8dbd-195cda91af69']'. in /usr/share/php/openmediavault/config/database.inc:78
    Stack trace:
    #0 /usr/share/openmediavault/engined/rpc/unionfilesystems.inc(166): OMV\Config\Database->get('conf.service.un...', '0ed06412-2810-4...')
    #1 [internal function]: OMV\Engined\Rpc\UnionFilesystems->get(Array, Array)
    #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
    #3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('get', Array, Array)
    #4 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('UnionFilesystem...', 'get', Array, Array, 1)
    #5 {main}


    What the best course of action here?


    Should I have installed OMV 4 instead?


    Did I make a mistake by setting up MergeFS on a non-empty SNAPRaid drive?


    Should reboot the NAS?


    Any advice will be warmly received, thanks.




    Kentish

    If you want DLNA or similar services you should have a look at using the macvlan network driver in docker. It allows you to give a container its own ip. Support for macvlan should be coming "soon" to the docker plug-in.

    Swapping the docker to host mode resolved the DLNA issue but I am interested in looking a Macvlan. I'd also consider just installing emby via apt-get but it's working now so have to resist the temptation to mess as I'll only break it ;)

    Yes I thought it was a security thing and for some reason I forgot that you could use symlinks to link to the binaries :whistling:


    That would be nice as I had some issues with emby in docker, DLNA only works in host mode and for some reason I can't seem to access it outside my lan. Saying that I'm not hijacking an old thread and asking for help just passing comment ;)

    Hi


    I've had a similar issue and posted it on the Emby Forums, seems that Emby has a local copy of ffmpeg which needs suitable permissions to execute. If you have put the /config folder on a OMV Share then this execution is denied as the FSTAB record is set to NOEXEC.


    Does that make sense?


    I have an separate SSD which holds docker and all the application data, so just remove noexec from the fstab entry for that drive.

    sorry about the delay, I had to go back through my history and i got it wrong. :(


    try installing ncmpc


    Code
    sudo apt-get update
    sudo apt-get install ncmpc


    how are you getting on, is working how you expected?

    Have you added the folder and run a database up date. There is a mpd client that you can run from the terminal which is handy to check things are working.


    Try apt-cache search mpd | grep client


    As I forgotten it's name!


    Sent from my SM-G935F using Tapatalk