Beiträge von rowie

    Hi Didier,


    - sata controller = ahci
    - dit you set the pointers with vmkvstools ? (https://kb.vmware.com/selfserv…playKC&externalId=1017530)
    - is your gen8 up to date?
    - du you have activated a valid esx license?
    - and last but not least .. please make automatic backups! ;)


    If one if the discs failed .. you have to reboot the gen8 because there is no hotpluf feature.
    Hope you doing well.


    Best regards,
    Ronald


    Ps: please excuse the delay ... i am in vienna on a security symposium ... writing on my mobilphone .. ;)




    Gesendet von meinem SM-G935F mit Tapatalk

    hi,


    do you have rsync server enabled on QNAP?




    i ´m using a small bash-script on my omv for that.
    it makes:


    - first of all check if qnap is online with wget
    - when its online


    rsync the hole raid5 to QNAP
    - when its offline .. wake it up and wait 5 minutes then check again with wget
    - when its online
    rsync the .....


    - after this send email with:
    success
    or
    failed


    copy the script if you like it to your omv ... make it executeable ... and create a crontab entry:


    like:


    00 22 * * * /bin/bash /root/nas2nas_sync.sh


    Script will start at 22 o´clock


    On the qnap i have run another script who is checking the discs every 5 minutes. if all discs in sleep ... send qnap to sleep (think S3) :D


    OMV Script:


    QNAP Script:



    Bash: send_nas_to_sleep_if_idle.sh
    #!/bin/bash
    lines=`hdparm -C /dev/sd[a-f]|grep "active/idle"|wc -l|tr -d ' '|cut -f1 -d' '`
    if [ $lines == "0" ]; then
       cat /etc/config/sleepmail.txt|sendmail -t
       ntpdate time.euro.apple.com 2>/dev/null >/dev/null
       hwclock --systohc
       sleep 30
       echo mem >/sys/power/state
    fi


    crontab on QNAP:


    */5 * * * * /etc/config/send_nas_to_sleep_if_idle.sh




    the scripts are certainly not perfect ... but they work! :)


    br,
    rowie

    Hi omavoss,


    Also ich nutze den pxs bei mir zuhause hautsächlich wenn ich eine neue vm erstele oder den rechner eines freundes neu install. Hauptgrund ist, ich will mir die ständige usb-stick flasherei ersparen.
    Bei debian oder fedora nehme ich dazu immer die netinstall x86_64. 32bit braucht eh kein mensch mehr.
    zum festplattenlöschen boote ich eine partedmagic-vm und reiche die Platte per usb3 durch an die vm.
    Ich hab auch ein paar kleine kleine alix und minisysteme die ich gerne mit livedistris wie tails oder kali betreibe. Entweder mit oder oder persistenter datenträuger die ich per nfs automatisch einbinde..


    Kali2017.1 und der netinstaller von stretch wollen ums verrecken nicht booten .. drum mein post! ;)


    Ich hab schon einige images damals erstellt aber die sind halt leider nicht frei. Wie zb. Acronis und eben die bezahlversion von partedmagic.




    Gesendet von meinem SM-G935F mit Tapatalk

    Zitat von tkaiser

    Well, since wasting disks to implement the R in RAID is only about providing availability I would say this simply sucks and is pretty insufficient since the specific implementation thwarts the whole technology


    in many things the implementation is flawed but, without raid i had lost data, right! ;)


    the mdadm softraid exist since ... lets say 10 years ... maybe longer. From an old Dell server to a miniITX board with ipfire as OS ... from 500GB Disk up to 1TB and now 3TB. ext3 to ext4 and so on
    Everthing works fine the last years and i never ever lost any bit of data.


    in my castle there are many many things working 24/7 so therefore it is very important to find the right balance between energy consumption, stability and speed.
    every day at 2 am omv-vm send wol to my qnap and when its up rsync makes the rest. ;)


    in worstcase i stop automatic shutdown of the qnap. bamm! :)



    Zitat von tkaiser

    I had the same already 18 years ago when I learned why hardware RAID controllers are so dangerous. Moved a whole internal 8 disk RAID (RAID5 back then since we couldn't do better with one configured hotspare) to another host. RAID controller an insanely expensive thing from AMI (IIRC MegaRAID) sitting in an own 5.25" drive bay and refusing to boot the new server. Since 'hotspare missing' (8 drive bays, one internally damaged). So all the money spent on 'business contuinity' was simply wasted since the RAID controller could not be convinced from forgetting about the 'additional availability guarantee' and we had only two alternatives: exchanging the hotspare with an array member to boot with a degraded array (since I tested a rebuild and measured array performance before that was not an option since +36 hours crappy performance, full restore from tapes would have lasted even longer in case something went wrong) so we moved everything back into the old server (5 in the morning). Lesson learned...


    i spend a lot of time in fixing problems on our dell servers and megaraid illness so i know what you mean! ;)






    Zitat von tkaiser

    It's 2017, every cheap ARM toy with Gigabit Ethernet can do this. That's not a number any more


    yes, i know! :)
    but for me was only important to reach the borders of my 1gb network and have a reason to upgrade the whole over the next years to 10gb :D


    maybe I should take a closer look at zfs .. :P

    Nice one!


    yesterday was the day! ;)
    Backup of 6,4TB data to my qnap finished.
    i have simple removed the disk and guess what! :)


    the hypervisor has stopped the openmediavault vm instantly.
    The gen8 doesn´t support hotplug so i have to reboot the whole system.
    Back online the openmediavault vm starts with one missing disk but clean raid5 and health filesystem.
    i added the disk with
    mdadm --manage /dev/md127 --add /dev/sdd
    and now the raid5 is recovering ... should take a while ..


    summary i would say ... it works after a disk failure ... but it is not perfect because the ESX stoped the vm and only a reboot of the whole system brings it back to normal.


    at first appearance i would say .. Performace is better then before (native OMV).


    SMB write speed 112MB/sec
    After raid recover i will make the tests with iozone! ;)


    thx

    Zitat von tkaiser

    If the VMs were on a RAID5 before and now are on a SSD you gave the answer why already. Easy to test with iozone and '-i 2 -I' (this tests for random IO using direct IO which pretty much simulates what happens in virtualized environments).

    OMV3 and the datastore for the 4 virtualbox vm´s was stored on den samsung 850 pro.. but with no seperate partition for the "datastore". Maybe ext4 is not so fine for that..


    please could you explain how to test with ".. iozone and '-i 2 -I' .. " ? :)


    Maybe i go back to Gen8 with ESXi6.5 and the SSD for the VM´s and the N40L with OMV3 for the Data or i replace the N40L with a Qnap and enable iSCSi for the VM´s. :)


    Good luck with your storage expansion! ;)

    @tkaiser


    I agree with you 100% in all! ;)
    Let me backup the raid5 to an external drive and then i will try to simulate (or real) a disk fail.



    the possibility to cover everything with one box is of course very tempting ... but I want at least two things:


    keep it simple as possible
    und secure!




    before I had openmediavault natively on the hp n40l and virtualbox for the vm´s with a very low performance ...

    hi subzero79,


    did you read my first post? :)
    i have that entry in /etc/nginx/openmediavault-nginx.d/syncthing.conf
    And i have uses the entrys from you and then from the synthing-team. But it is still not working!


    1. you have to disable "admin over secure connection" in synthing - because you can t you 2 different certs
    2. then it should be possible to terminate the tsl on the nginx and talk http with the synthing
    ...but it doesnt work ... :(



    PS: I think it should be default to enable https on all "open web client" bookmarks (and the webinterface too) in OMV3 because its contemporay.
    And with Letsencrypt it would be an easy one to serve services halfway "secure" to the internet if required.


    br,
    rowie

    hi subzero79,


    i have a working .conf for sabnzbd. Only the syncthing thing doesn t work.
    I m connecting over https://nas.xxxx.xxx (https only) with a trusted public Certificate to my nas. And all links should open in this context.



    Code
    location /sabnzbd {
            proxy_pass        http://localhost:8080/sabnzbd;
            proxy_set_header  Host nas.xxx.xxx;
            proxy_set_header X-Forwarded-Host $host:$server_port;
            proxy_set_header X-Forwarded-Server $host;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto https;
            proxy_redirect    default;
    }

    br,
    rowie

    hi,


    there are some other entry´s but they are very old ... so i start a new one. :)


    Plan is to have one url to bind them all ... with one cert. :P


    https://nas.bla.bla/synthing
    https://nas.bla.bla/sabnzbd (works)
    ....


    i ve found this but the config doesn t work:
    https://docs.syncthing.net/users/reverseproxy.html



    openmediavault-webgui_eror.log:



    2016/11/16 17:29:03 [error] 2588#0: *12163 open() "/var/www/openmediavault/syncthing" failed (2: No such file or directory), client: 10.10.2.101, server: openmediavault-webgui, request: "GET /syncthing HTTP/1.1", host: "nas.bla.bla"



    It would be soooo nice if this automaticly works on openmediavault because ... http is BAD! **pls dont hate me**



    PS: Where can i change the url s for example "open Webinterface" in the omv-webgui for sabnzbd?


    PPS: this Simple fast daemon host webgui access [Nginx] doesn t solve my problem!!! ;)



    br,


    rowie

    Errorlog:




    Hab die Lösung!


    Vorher:


    LANG=de_AT.UTF-8
    LANGUAGE=de_AT:de


    Jetzt:


    LANG=en_US.utf8
    + service sabnzbd restart


    :D


    Gibts ne saubere Lösung auch?