Beiträge von smudger

    Managed to get a backup system working through scheduled jobs


    At 2am daily the system will be imaged to a backup folder on my media drive. Takes about 12 mins for the 128GB image SSD to HDD


    dd if=/dev/disk/by-id/usb-SPCC_Sol_id_State_Dis_30041266761-0:0 of=/srv/dev-disk-by-uuid-89a60400-d732-45a9-8576-715d5e4f42b6/BACKUP/OMVbackup.img bs=1M status=progress




    At 3am daily the system will be cloned from the master SSD to the backup SSD using by-id to hopefully remove the chance of the system booting from the wrong SSD. Takes about 6.5 mins for the 128GB clone SSD to SSD


    dd if=/dev/disk/by-id/usb-SPCC_Sol_id_State_Dis_30041266761-0:0 of=/dev/disk/by-id/usb-ATA_SPCC_Solid_State_0123456789ABCDE-0:0 bs=1M status=progress


    Have booted from the cloned SSD and it seems to work fine. Might alter the image scheduled task to weekly and just have the clone daily


    Bit of a novice at this so not sure how to setup scripts using web interface.

    Would this work as a scheduled nightly task to clone without confusing the system ?


    dd if=/dev-disk-by-label-OMV_MASTER of=/dev-disk-by-label-OMV_COPY bs=1M


    Then if master goes bad you could boot from the copy and do a once off to restore the master


    dd if=/dev-disk-by-label-OMV_COPY of=/dev-disk-by-label-OMV_MASTER bs=1M


    How would you label the master disk? OS drive is sda


    root@openmediavault6:/# lsblk -o name,mountpoint,label,size

    NAME MOUNTPOINT LABEL SIZE

    sda 119.2G

    ├─sda1 /boot/efi 512M

    ├─sda2 / 8G

    ├─sda3 [SWAP] 977M

    └─sda4 /srv/dev-disk-by-uuid-879f1672-ba5f-42a4-b966-c4c5e2bf680d 109.8G


    If you label sda2 the OS partition and use DD with dev-disk-by-label would it clone all 4 partitions?

    In doing nightly backups for more than six years I have never had a problem with this and I test the resulting backups by restoring them every six weeks or so.

    Would something like this run as a scheduled task do the job

    Code
    dd if=/dev/sda of=/dev/sdb bs=1M

    Or do you recommend any other dd options other than block size?

    The idea of a live nightly backup appeals to me.

    I can still do an offline backup once a week/month to another ssd

    Do you ever run into problems with DD backing up the live system.


    Some people say it can lead to data corruption as the system is live but I dont know if its scaremongering on their part

    I might get another 128GB SSD (They are quite cheap) and have one offline backup and then try DD on a seperate SSD. As a scheduled nightly backup would be good.

    Thanks gderf

    I used clonezilla on another machine to clone to an identical size disk. Clone worked.

    Have the disk in a usb caddy so easy to swap over if need be.


    backup plugin has not been ported at the moment.

    does dd maintain UUID so that mountpoints are not different for the backup?


    Also got caught out with the login page loop as my docker containers maxed out the OS partition

    moved docker to the data partition.

    Manged to get pretty much everything i wanted working.

    OMV 6 installed plus docker containers for MQTT, Home assistant, Jellyfin and TVheadend.


    Last piece of the puzzle is how to clone the OMV OS

    I have it on a 128gb SSD partioned like this OMV / DATA (for docker data / SWAP

    System is headless, I have an identical SSD for the backup


    Is there a way to clone a live system? OMV5 had the option to boot to clonezilla but OMV6 doesnt have that.

    The cloned OS would need identical UUIDs Then clone using another computer) just wondering if it can be cloned in place/headless

    Finally got the rig built

    So hard to get some components at the moment (in my case CPU)

    Got all my docker containers going again like they were on the PN50


    OMV5 installer would not detect my wired NIC but did detect the wireless NIC


    Went with OMV6 testing which detected both NICs fine, maybe OMV 6 has a newer kernel?

    Is it possible to move from testing to stable when OMV6 stable releases?

    Or does it require a complete reinstall?

    Thanks for everyones replies. Have ordered the ms04 case (has to come from supplier) and two 128gb Silicon Power SSDS.

    One for the OS and to store the docker container data. The other to backup. Already have external usb to sata cases on hand.

    Will order the Motherboard, CPU and RAM when the case arrives. Didnt want to lock myself to mini itx in the event that i cant get the ms04 for whatever reason.

    Looking for some advice on a DIY build

    Previously had OMV running on a Gen 1 WD Mycloud

    System fried during recent electrical problem (no big deal as i didnt really have anything on that was not recoverable from elsewhere)


    Decide to try OMV5 on an ASUS PN50 to see how it would handle docker containers (Jellyfin, tvheadend, pyload, home assistant)

    Working well so now thinking of building a system.


    Looking for as low power usage as I can get but powerful enough to run the dockers mentioned.

    Settled on an inwin MS04 case so system need to be mini itx


    Cant seem to get any embedded CPU mini itx motherboards in Australia (such as J4125 onboard)


    Was wondering if anyone has used a Pentium Gold G6400 ?


    Suggested build is below


    Motherboard (ASRock H510M-ITX/ac Mini ITX LGA1200 Motherboard)
    CPU (Intel Pentium Gold G6400 4 GHz Dual-Core)
    CPU Cooler (ARCTIC Alpine 12 LP)
    Case (InWin MS04-01 Mini-ITX Server Chassis w/315W PSU)
    Memory 8GB (GeIL 8GB Kit (2x4GB) DDR4 EVO SPEAR C16 2400MHz)
    SSD 250GB (Crucial P2 250GB NVMe M.2 SSD)

    Can i ask where you got tour xbox tuner so cheap?


    I may buy another as I borrowed the one I used for this Rpi3 project
    from my daily tvheadend setup (amlogic tvbox, play tv tuner and xbox tuner)

    Wonder why it won't work in docker

    Im a complete novice with docker, but I think it has something to do with the docker user not having access rights to the DVB tuner.
    I don't think there is anyway around updating the kernel as only 4.16 and above support DVB tuners.


    My thinking behind using librelec as the server with OMV installed is that the libreelec works with DVB out of the box (kernels and drivers support dvb)
    I see that there is a docker plugin within librelec.
    I might have a play if I get the chance, will have to check if librelec has remote webui as my rpi3 is headless

    Success got it working.
    Not using Docker for tvheadend anymore
    installing it direct


    Here are the steps I used with links



    SSH into OMV (ssh root@192.168.1.XXX)


    Upgrade Kernel above 4.16
    sudo apt-get install rpi-update
    sudo BRANCH=next rpi-update


    Copy 2 firmware files reference below to /lib/firmware
    https://linuxtv.org/wiki/index.php/Xbox_One_Digital_TV_Tuner
    USB interface: DiBcom DiB7000
    Demodulator: Panasonic MN88472


    Using SSH follow the three steps on this page
    https://tvheadend.org/projects…dend/wiki/AptRepositories



    I already have tv headend setup on an android tv box
    Home assistant on the Rpi3
    WDmycloud for my NAS


    My hope is to roll all three into one device


    looks like its doable, recording a program on it now and can view channels using MrMC on my android tablet.


    Im not sure if a OMV can be installed on top of libreelec
    as librelec has the required kernel and drivers for DVB tuners
    It may be "Easier"
    I might image it on a card and try when i get the chance.

    would be interested to know if you get this working

    Managed to get a little further
    Upgraded kernel to 4.19.13-v7+


    used
    sudo apt-get install rpi-update
    sudo BRANCH=next rpi-update


    copied the two firmware files referenced here
    https://linuxtv.org/wiki/index.php/Xbox_One_Digital_TV_Tuner
    to
    /lib/firmware


    dmesg shows the DVB adapter and firmware is loaded


    ran the tvheadend docker image


    docker run -d \
    --name=tvheadend \
    --net=host \
    -v /sharedfolders/appdata/tvheadend:/config \
    -v /sharedfolders/appdata/recordings:/recordings \
    -e PGID=100 -e PUID=1000 \
    --device=/dev/dvb --privileged lsioarmhf/tvheadend


    but the dvd adapter doesnt appear in tvheadend.
    Kind of at a loss but maybe you can have a go and see if it works for you.


    Im a real noob with docker so maybe i'm missing something obvious

    So I have been messing about with docker on my Rpi3 with attached usb portable drive.
    After some stumbling I have the following containers setup and running


    Home Assistant
    and
    Pyload


    I am having problems though with tvheadend
    I can get the container to run but it does not have access to my DVB tuner (xbox one digital tuner)


    lsusb gives me


    root@raspberrypi:~# lsusb
    Bus 001 Device 005: ID 2537:1068
    Bus 001 Device 004: ID 045e:02d5 Microsoft Corp. Xbox One Digital TV Tuner
    Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
    Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


    but there is no DVB folder in /dev


    I think perhaps I need to install a package with drivers.


    Could you give any advice please.


    EDIT
    Got the firmware files for this usb tuner and put them in /lib/firmware
    rebooted but obviously im missing something else as still no dev/dvb


    EDIT
    So it seems that I need a kernel 4.16 or above for native xbox dvb tuner support
    tried
    apt-get install linux-image-4.18.0-0.bpo.1-armmp
    rebooted but the kernel still reports 4.14.79-v7+
    if i try to install 4.18 again, it says
    linux-image-4.18.0-0.bpo.1-armmp is already the newest version (4.18.6-1~bpo9+1).

    Ended up taking the raspberry pi 3 that I was using for home assistant and installing OMV on another microSD card.
    Fumbled about and mange to get Tvheadend and home assistant working with docker. (just running briefly, not fully configured)


    If i can get home assistant configured as it was on the other sd card then I can use it as a little test rig until I learn a bit more.
    Will give me time to sort out what arm board to use and which enclosure(s).

    Thanks for the reply


    https://hub.docker.com/r/homeassistant/aarch64-homeassistant
    https://hub.docker.com/r/lsioarmhf/tvheadend-aarch64


    Are these the ones i would be after?


    I have zero experience with docker.
    Perhaps I should have a play with it on my macbook.


    Do you think its feasible to have OMV, Tvheadend and Home Assistant running on the Nanopi M4 attached to a 3.5" HDD


    Leaning toward the Nanopi M4 due to the number of USB ports and the possibility of a HAT for SATA ports


    I would also have a play TV dual tuner and Xbox one single DVB tuner hanging off it for Tv headend.

    Hi Guys
    I have been using OMV 1.19 Kralizec installed on a WD Mycloud for some time.
    I also have tvheadend running on an android tv box and home assistant running on a raspberry pi.


    I am looking at the possibility of building a NAS with OMV on a Nanopi M4 or Neo4 and the drive from the Mycloud in a USB enclosure.
    As these Nanopi's are 64 bit would docker work?
    If I could have all three services NAS, TvHeadend and Homeassistant on one device it would be great


    I installed OMV 4.1 on top of Debian 9 today on an old Dell Mini 9 netbook.
    I couldnt get docker to install though.
    I think its because the atom processor in the mini is 32bit.


    Thanks