Beiträge von wltdbetter

    If /srv/empty existed and was an empty directory, then snapraid sync -E should have worked and removing the disk 4tbdata01 entry in snapraid.conf should have been the end of it.



    Yes. I'm puzzled. The chances are that i've been fat fingered or distracted.

    I think I could probarbly re-add the drive and try the procedure again, but having gotten this far, is there another way of telling OMV that the drive is no longer part of Snapraid which would allow me to run the maintenance commands on the rest of the array?

    OMV 4 - Removing a disk - I've been loosing files (Not folder it seems, just the contents) off my WD 4TB drive which is part of my snapraid setup.

    To try to pin down the cause I decided to remove the drive from snapraid and run it as a single HDD without influence from any plugins.


    I'd like to think I used this method, but it hasn't really worked as I 'd imagined :o(


    "How can I remove a data disk from an existing array?

    To remove a data disk from the array do:

    • Change in the configuration file the related "disk" option to point to an empty directory - (Created /empty)
    • Remove from the configuration file any "content" option pointing to such disk - (Deleted the line)
    • Run a "sync" command with the "-E, --force-empty" option:
      Code
      snapraid sync -E
      The "-E" option tells at SnapRAID to proceed even when detecting an empty disk.
    • When the "sync" command terminates, remove the "disk" option from the configuration file. - (Duly Deleted)

    Your array is now without any reference to the removed disk. "


    I deleted the drive in the GUI and rebooted for good measure.


    Tested - snapraid check, and I got;


    Disk '4tbdata01' with uuid '2f54d155-695d-48e5-a50b-d13f39f6d0e8' not present in the configuration file!

    If you have removed it from the configuration file, please restore it

    If you have renamed it, run 'sync' to update the new name


    Diff and sync give the same response.


    The configuration file looks like this after the procedure, which is what I might expect.


    # this file was automatically generated from

    # openmediavault Arrakis 4.1.35-1

    # and 'openmediavault-snapraid' 3.7.7



    block_size 256

    autosave 0

    #####################################################################

    # OMV-Name: 4tbparity01 Drive Label: 40tbsdb

    parity /srv/dev-disk-by-label-40tbsdb/snapraid.parity



    #####################################################################

    # OMV-Name: 2tbdata01 Drive Label: 2tbsdc

    content /srv/dev-disk-by-label-2tbsdc/snapraid.content

    disk 2tbdata01 /srv/dev-disk-by-label-2tbsdc



    #####################################################################

    # OMV-Name: 2tbdata02 Drive Label: 2tbsde

    content /srv/dev-disk-by-label-2tbsde/snapraid.content

    disk 2tbdata02 /srv/dev-disk-by-label-2tbsde



    #####################################################################

    # OMV-Name: 1tbdata01 Drive Label: 1tbsdd

    content /srv/dev-disk-by-label-1tbsdd/snapraid.content

    disk 1tbdata01 /srv/dev-disk-by-label-1tbsdd



    exclude /snapraid.conf*

    exclude *.unrecoverable

    exclude lost+found/

    exclude aquota.user

    exclude aquota.group

    exclude /tmp/

    exclude .content

    exclude *.bak


    1 x Parity and 3 x data drives minus the previous data drive.


    Where did I go wrong?

    OK, I've got a load to chew on.


    Things are never as straight forward as they seem, are they? :o)


    Last question, I'd like to understand the technical reasons for docker not playing nicely with unionfs, I looked earlier, but failed, do you have a link or something?


    I'll try the various workaround scripts, starting with the timer script and then look at gderf's method.


    As I understand it, at the moment, I'll need to put dockers on a separate disk outside of unionfs where I can still use snapraid. I can try to remove unionfs then reinstall the dockers without it, and perhaps see if I can use an external drive.


    Sadly I don't have the spare capacity at the moment and the two services together would have made full use of my rag tag bundle of disks.The possible combination of docker, unionfs and snapraid is what attracted me to OMV.


    All the best

    Thx for the reply.


    Nextcloud is firmly stuck on SQLite.


    Is this what you mean? (Issues with UnionFS - See links in post 4 (here here here)), that the docker container is starting before unionfs? Some of the posts contain script workarounds and gdef's method.



    How can I test for this and see whether its happening?


    Is it possible to check logs with terminal or install the docker containers (and or the sharedfolders) on an external usb drive for example?


    If I could remove remove unionfs, would it then work?


    All these questions :0)

    yes, 1000 and 100 obtained by
    root@openmediavault:/# id user1
    uid=1000(user1) gid=100(users) groups=100(users)


    How to obtain the puid and pgid was provided in another video.


    I feel like I missed an important step or misunderstood the instructions. If this is the case I'll wash, rinse, repeat until I get it.


    How would I check to see if the docker saved its config data?


    Building OMV as a homeserver is a bit of a journey for me, I have little in the way of a feel for this stuff and progress has been achieved so far by repetitive instals, the server has CIFS, snapraid and unionFS. I've got shared folders with data and have managed to get docker running which allowed me to try Mariadb and nextcloud. When these work together, the next step will be letsencrypt and then nextcloud talk. I eventually want to upgrade my old odd sized disks without loosing data. After that try and move everything to another server. At least thats the roadmap. The motivation for setting up OMV was the small footprint and seeming flexibility. AMD Phenom II x4 965 cpu, 8gb ddr3 and gigabyte mb. Seems quite stable.

    Hi


    This is the second time this has happened to me, I used TechnoDadLife's method to install Mariadb and Nextcloud docker.


    When it was running, I installed a couple of apps, added new folders and all looked good, so I shut the server down to come back to the build the next day.


    24 hours later I switched on my server and logged back onto Nextcloud not noticing the 'setup database' text underneath the logon fields.


    Nextcloud defaulted to SQLite.


    Why would Nextcloud default to SQLite and not keep already configured Mariadb?


    How do I tell Nextcloud to use Mariadb instead of SQLite?


    Thank you for looking.

    I'll probs need a hint as to how to hide this so as not to go over the character count :o(


    root@openmediavault:~# apt-get purge openmediavault-docker-gui
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
    imagemagick-6-common libcurl3 libfftw3-double3 libgomp1 liblcms2-2
    liblqr-1-0 libmagickcore-6.q16-3 libmagickwand-6.q16-3 omvextras-common
    php-curl php-imagick php-symfony-class-loader php-symfony-polyfill-apcu
    php7.0-curl
    Use 'apt autoremove' to remove them.
    The following packages will be REMOVED:
    openmediavault-docker-gui*
    0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
    2 not fully installed or removed.
    After this operation, 685 kB disk space will be freed.
    Do you want to continue? [Y/n] y
    (Reading database ... 45309 files and directories currently installed.)
    Removing openmediavault-docker-gui (4.1.3) ...
    Setting up docker-ce (5:18.09.3~3-0~debian-stretch) ...
    update-alternatives: warning: forcing reinstallation of alternative /usr/bin/dockerd-ce because link group dockerd is broken
    Job for docker.service failed because the control process exited with error code.
    See "systemctl status docker.service" and "journalctl -xe" for details.
    invoke-rc.d: initscript docker, action "start" failed.
    ● docker.service - Docker Application Container Engine
    Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
    Active: activating (auto-restart) (Result: exit-code) since Mon 2019-03-11 20:48:40 GMT; 11ms ago
    Docs: https://docs.docker.com
    Process: 19898 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
    Main PID: 19898 (code=exited, status=1/FAILURE)
    CPU: 161ms
    Mar 11 20:48:40 openmediavault systemd[1]: docker.service: Unit entered fail…te.
    Mar 11 20:48:40 openmediavault systemd[1]: docker.service: Failed with resul…e'.
    Hint: Some lines were ellipsized, use -l to show in full.
    dpkg: error processing package docker-ce (--configure):
    subprocess installed post-installation script returned error exit status 1
    Processing triggers for openmediavault (4.1.19-1) ...
    Restarting engine daemon ...
    Errors were encountered while processing:
    docker-ce
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    root@openmediavault:~# apt-get install docker-ce
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    docker-ce is already the newest version (5:18.09.3~3-0~debian-stretch).
    The following packages were automatically installed and are no longer required:
    imagemagick-6-common libcurl3 libfftw3-double3 libgomp1 liblcms2-2
    liblqr-1-0 libmagickcore-6.q16-3 libmagickwand-6.q16-3 omvextras-common
    php-curl php-imagick php-symfony-class-loader php-symfony-polyfill-apcu
    php7.0-curl
    Use 'apt autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    1 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Do you want to continue? [Y/n] y
    Setting up docker-ce (5:18.09.3~3-0~debian-stretch) ...
    update-alternatives: warning: forcing reinstallation of alternative /usr/bin/dockerd-ce because link group dockerd is broken
    Job for docker.service failed because the control process exited with error code.
    See "systemctl status docker.service" and "journalctl -xe" for details.
    invoke-rc.d: initscript docker, action "start" failed.
    ● docker.service - Docker Application Container Engine
    Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
    Active: activating (auto-restart) (Result: exit-code) since Mon 2019-03-11 20:50:51 GMT; 17ms ago
    Docs: https://docs.docker.com
    Process: 20412 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
    Main PID: 20412 (code=exited, status=1/FAILURE)
    CPU: 187ms
    Mar 11 20:50:51 openmediavault systemd[1]: docker.service: Unit entered fail…te.
    Mar 11 20:50:51 openmediavault systemd[1]: docker.service: Failed with resul…e'.
    Hint: Some lines were ellipsized, use -l to show in full.
    dpkg: error processing package docker-ce (--configure):
    subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
    docker-ce
    Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7f320cdba7b8>
    Traceback (most recent call last):
    File "/usr/lib/python3.5/weakref.py", line 117, in remove
    TypeError: 'NoneType' object is not callable
    Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7f320cdba7b8>
    Traceback (most recent call last):
    File "/usr/lib/python3.5/weakref.py", line 117, in remove
    TypeError: 'NoneType' object is not callable
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    root@openmediavault:~# apt-get install openmediavault-docker-gui
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following NEW packages will be installed:
    openmediavault-docker-gui
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    1 not fully installed or removed.
    Need to get 0 B/61.4 kB of archives.
    After this operation, 685 kB of additional disk space will be used.
    (Reading database ... 45230 files and directories currently installed.)
    Preparing to unpack .../openmediavault-docker-gui_4.1.3_all.deb ...
    Unpacking openmediavault-docker-gui (4.1.3) ...
    Setting up docker-ce (5:18.09.3~3-0~debian-stretch) ...
    update-alternatives: warning: forcing reinstallation of alternative /usr/bin/dockerd-ce because link group dockerd is broken
    Job for docker.service failed because the control process exited with error code.
    See "systemctl status docker.service" and "journalctl -xe" for details.
    invoke-rc.d: initscript docker, action "start" failed.
    ● docker.service - Docker Application Container Engine
    Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
    Active: activating (auto-restart) (Result: exit-code) since Mon 2019-03-11 20:52:17 GMT; 15ms ago
    Docs: https://docs.docker.com
    Process: 20797 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
    Main PID: 20797 (code=exited, status=1/FAILURE)
    CPU: 182ms
    Mar 11 20:52:17 openmediavault systemd[1]: docker.service: Unit entered fail…te.
    Mar 11 20:52:17 openmediavault systemd[1]: docker.service: Failed with resul…e'.
    Hint: Some lines were ellipsized, use -l to show in full.
    dpkg: error processing package docker-ce (--configure):
    subprocess installed post-installation script returned error exit status 1
    dpkg: dependency problems prevent configuration of openmediavault-docker-gui:
    openmediavault-docker-gui depends on docker-ce (>= 5:18.09); however:
    Package docker-ce is not configured yet.
    openmediavault-docker-gui depends on docker-ce (<< 5:18.10); however:
    Package docker-ce is not configured yet.
    dpkg: error processing package openmediavault-docker-gui (--configure):
    dependency problems - leaving unconfigured
    Processing triggers for openmediavault (4.1.19-1) ...
    Restarting engine daemon ...
    Errors were encountered while processing:
    docker-ce
    openmediavault-docker-gui
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    As you can see I've had a few cracks at this, but the repetitive errors that I've had previously are in the text, such as " File "/usr/lib/python3.5/weakref.py", line 117, in remove", I looked at a fix on a previous post but failed to find the file to try to change it. The other one is the docker service failing to start. Are they related?


    omv-changerepo "Docker CE" enable
    Previous values:
    ===================================
    OMV-Extras.org = 1
    OMV-Extras.org Testing = 0
    Plexmediaserver = 0
    Sync = 0
    HWRaid = 0
    Docker CE = 1
    Teamviewer = 0
    Current values:
    ===================================
    OMV-Extras.org = 1
    OMV-Extras.org Testing = 0
    Plexmediaserver = 0
    Sync = 0
    HWRaid = 0
    Docker CE = 1
    Teamviewer = 0
    Now execute: apt-get update
    omv-mkconf apt
    root@openmediavault:~# apt-get update
    Get:1 file:/var/cache/openmediavault/archives InRelease
    Ign:1 file:/var/cache/openmediavault/archives InRelease
    Get:2 file:/var/cache/openmediavault/archives Release
    Ign:2 file:/var/cache/openmediavault/archives Release
    Get:3 file:/var/cache/openmediavault/archives Packages
    Ign:3 file:/var/cache/openmediavault/archives Packages
    Get:4 file:/var/cache/openmediavault/archives Translation-en_GB
    Ign:4 file:/var/cache/openmediavault/archives Translation-en_GB
    Get:5 file:/var/cache/openmediavault/archives Translation-en
    Ign:5 file:/var/cache/openmediavault/archives Translation-en
    Get:3 file:/var/cache/openmediavault/archives Packages
    Ign:3 file:/var/cache/openmediavault/archives Packages
    Get:4 file:/var/cache/openmediavault/archives Translation-en_GB
    Ign:4 file:/var/cache/openmediavault/archives Translation-en_GB
    Get:5 file:/var/cache/openmediavault/archives Translation-en
    Ign:5 file:/var/cache/openmediavault/archives Translation-en
    Get:3 file:/var/cache/openmediavault/archives Packages
    Ign:3 file:/var/cache/openmediavault/archives Packages
    Get:4 file:/var/cache/openmediavault/archives Translation-en_GB
    Ign:4 file:/var/cache/openmediavault/archives Translation-en_GB
    Get:5 file:/var/cache/openmediavault/archives Translation-en
    Ign:5 file:/var/cache/openmediavault/archives Translation-en
    Get:3 file:/var/cache/openmediavault/archives Packages
    Ign:3 file:/var/cache/openmediavault/archives Packages
    Get:4 file:/var/cache/openmediavault/archives Translation-en_GB
    Ign:4 file:/var/cache/openmediavault/archives Translation-en_GB
    Get:5 file:/var/cache/openmediavault/archives Translation-en
    Ign:5 file:/var/cache/openmediavault/archives Translation-en
    Get:3 file:/var/cache/openmediavault/archives Packages
    Ign:3 file:/var/cache/openmediavault/archives Packages
    Get:4 file:/var/cache/openmediavault/archives Translation-en_GB
    Ign:4 file:/var/cache/openmediavault/archives Translation-en_GB
    Get:5 file:/var/cache/openmediavault/archives Translation-en
    Ign:5 file:/var/cache/openmediavault/archives Translation-en
    Get:3 file:/var/cache/openmediavault/archives Packages
    Get:4 file:/var/cache/openmediavault/archives Translation-en_GB
    Ign:4 file:/var/cache/openmediavault/archives Translation-en_GB
    Get:5 file:/var/cache/openmediavault/archives Translation-en
    Ign:5 file:/var/cache/openmediavault/archives Translation-en
    Hit:6 http://security.debian.org/debian-security stretch/updates InRelease
    Hit:7 https://download.docker.com/linux/debian stretch InRelease
    Hit:8 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease
    Hit:9 https://openmediavault.github.io/packages arrakis InRelease
    Ign:10 https://dl.bintray.com/openmed…plugin-developers/arrakis stretch InRelease
    Ign:11 https://dl.bintray.com/openmed…developers/arrakis-docker stretch InRelease
    Get:12 https://dl.bintray.com/openmed…plugin-developers/arrakis stretch Release [4,389 B]
    Hit:12 https://dl.bintray.com/openmed…plugin-developers/arrakis stretch Release
    Get:14 https://dl.bintray.com/openmed…developers/arrakis-docker stretch Release [3,540 B]
    Hit:14 https://dl.bintray.com/openmed…developers/arrakis-docker stretch Release
    Ign:16 http://mirror.ox.ac.uk/debian stretch InRelease
    Hit:17 http://mirror.ox.ac.uk/debian stretch-updates InRelease
    Hit:18 http://mirror.ox.ac.uk/debian stretch Release
    Hit:19 http://packages.openmediavault.org/public arrakis InRelease
    Reading package lists... Done


    see next post pls.