Beiträge von johndoe123

    Hi, I just had the same problem and solved it the following way:


    My host interface is not etho.
    Execute ip a on your server and look for the entry that contains the local IP adress of your server.
    For me it looks like this:

    Code
    2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
        link/ether xy ff:ff:ff:ff:ff:ff
        inet my.ip.adress.here/24 brd 192.168.0.255 scope global enp3s0
           valid_lft forever preferred_lft forever

    Afterwards I was able to access the openvpn configuration page at https://my-ip:943/admin


    Strangely though, the openvpn-as logs accessed via docker logs -tf openvpn-as point me to a wrong IP address to access the admin and client gui.
    The address is in the 172.18.0.x range. ip a shows a network device with a name starting with br- and than a hexadecimal number.
    Does anyone know what that is?

    I found the problem!


    It was in hindsight ofc logical and simple. My boot device is using a GPT instead of a MBR partition table, which occupies a bigger block of data at the start of my devices.


    Following this advice, I calculated the size of my partition table as follows
    size=(128*N)+1024,
    where N is the number of partitions on the device.


    In my case I have three partitions and thus can backup my partition table using


    sudo dd if=/dev/sdd of=partition-table.grubparts bs=1 count=1408
    and restore it using
    sudo dd if=partition-table.grubparts of=/dev/sdb bs=1 count=1408


    Do you think it would be a good idea to expand the backup script to detect GPT and backup accordingly?
    As I'm still on vacation I haven't tested the complete backup yet and will report as soon as I've recovered a complete backup successfully.

    I'm sorry. I also ran sudo partprobe but lsblk didn't show any changes in the partition layout.


    I will try to get my hands on another usb stick than. I checked the usb stick running omv and the stick used to restore the backup with f3write though, which didn't show any problems.


    Can the previous filesystem or partition table of the usb stick influence dd?

    /dev/sde is not mounted.
    sudo partprobe -s /dev/sde returns
    /dev/sde: loop partitions 1


    lsblk still shows

    So, you removed any text from the root device field, took another backup, and tried writing the file to another drive?

    Correct.


    And you're also correct about the plugin not being at fault.
    If I understand correctly
    sudo dd if=/dev/sdd of=/dev/sde bs=512 count=1
    should copy the partition layout from my root device to sde.
    That doesn't happen as you can see below.

    Unfortunately I don't have another ≥16 GB drive at hand to test the command. I tried to copy the partition layout to another 4 GB but that didn't work either.


    As long as the command should do what I believe it should, I don't know what external condition could prevent it from working.


    Copying the devicefile afterwards with
    sudo dd if=/dev/sdd2 bs=1M conv=sync,noerror status=progress of=/dev/sde2
    does not work either.

    cat /proc/self/mountinfo cont

    Did you change the Root device field to /dev/sdb in the plugin? I can't think of any other way this happening.

    Thank you! That was indeed the mistake I made.


    Strangely though
    sudo dd if=backup-omv-12-Aug-2019_23-34-12.grubparts of=/dev/sdf bs=512 count=1
    still does not create the partitions properly

    cat /proc/self/mountinfo cont

    Code
    191 25 0:58 / /var/lib/docker/containers/4929dbc6f4ec13fcd09124992c82af2dc2787bab3240dd15926e82b323f1dd9a/mounts/shm rw,nosuid,nodev,noexec,relatime shared:46 - tmpfs shm rw,size=65536k
    193 25 0:59 / /var/lib/docker/containers/30163f8a94ec20254d41c7c3c670d1dd4b49a1d7dd1931d0f74d18472d4a1aaf/mounts/shm rw,nosuid,nodev,noexec,relatime shared:47 - tmpfs shm rw,size=65536k
    195 25 0:60 / /var/lib/docker/containers/c6fc57190d6027b7212079c9f755a82c6b2f1a5b6d4a50bf51708b05ac2bab08/mounts/shm rw,nosuid,nodev,noexec,relatime shared:48 - tmpfs shm rw,size=65536k
    197 25 0:61 / /var/lib/docker/containers/898606b63f21c78cf13f1608422b87769544590a511c79b28c35a3bed55baebd/mounts/shm rw,nosuid,nodev,noexec,relatime shared:49 - tmpfs shm rw,size=65536k
    199 25 0:62 / /var/lib/docker/containers/9ffe64d396cc90ab93bb157ccbd1c414d43b5b5c48fa86936e8377827ccf0f12/mounts/shm rw,nosuid,nodev,noexec,relatime shared:50 - tmpfs shm rw,size=65536k
    659 24 0:3 net:[4026532596] /run/docker/netns/8ba5b2d3e0ac rw shared:51 - nsfs nsfs rw
    666 24 0:3 net:[4026532522] /run/docker/netns/7f7f159cebf6 rw shared:52 - nsfs nsfs rw
    673 24 0:3 net:[4026532666] /run/docker/netns/5ff3085183dd rw shared:53 - nsfs nsfs rw
    680 24 0:3 net:[4026532331] /run/docker/netns/4950eebfae11 rw shared:54 - nsfs nsfs rw
    687 24 0:3 net:[4026532345] /run/docker/netns/42039efe3218 rw shared:55 - nsfs nsfs rw

    You're right! I completely overlooked that. Thank you :)


    findmnt -n /

    Code
    /      /dev/sdd2 ext4   rw,relatime,errors=remount-ro

    cat /proc/self/mountinfo


    This is strange. I tried again and checked the log of omv-backup.


    The detected root drive seems correct:


    Do you have an idea what I could be doing wrong? Thank you for your help

    Hello,


    I made a DD backup of my system running on a usb stick using the Openmediavault-Backup plugin.
    Unfortunately I fail to restore the created backup to a second usb stick.


    Similar to this this thread I successfully created and restored backups of the entire block device using the following method.
    To backup:
    dd if=/dev/sdb of=/mnt/backupcopy.iso bs=4MB


    To restore:


    dd if=/mnt/backupcopy.iso of=/dev/sdc bs=4MB



    From what I understand the mbr and partition table are stored in the .grubparts backup file and can be restored with


    dd if=backup-omv-09-Aug-2019_15-46-32.grubparts of=/dev/sdg bs=512 count=1
    creating the mbr and partition table.


    After running the above command, sudo fdisk -l /dev/sdg displays the following output:


    Which is different from my original system drive:


    I tried to restore the system backup using
    gunzip -c backup-omv-09-Aug-2019_15-46-32.dd.gz | sudo dd of=dev/sdg1 bs=1M
    which crashes with the error
    dd: failed to open 'dev/sdg1': No such file or directory



    I would be grateful for any advice on how to restore the backup properly :)


    Edit:
    I am using OMV4.
    Editing the thread label and tags results in the following error:


    The server encountered an unresolvable problem, please try again later.


    Exception ID: 93d04f09014b98263e88391a166c94ddd535d4c7

    Hello,


    I'm looking for advice on the selection of storage devices for the NAS I'm planning.


    Currently I have 3 TB of movies and series, 16 GB of data stored in cloud services, 30 GB of archived documents and 65 GB of private pictures which I'd like to store in the NAS.
    At the moment the bulk of the data is stored on one internal 3 TB HDD and one external 3 TB HDD.
    In the future I'd like to attach the external HDD to a Raspberry Pi at another location to backup my cloud data, documents and pictures.


    For the NAS I'm planning to go with a Asrock J4105-ITX board and a Fractal Design Node 304 case—providing four SATA ports and six 2.5"/3.5" bays.
    I've planned to buy two used WD Red 6 TB drives from different batches and use them together with the 3 TB drive I already have as storage drives with snapRAID and mergerFS.
    They would store my movies and series as well as the archived documents and private picture, because they are all changed and accessed infrequently.


    My question is which hardware for the boot drive and cloud data would be best for my use case.
    Because I'd like to minimize the usage of my mechanical drives and snapRAID dislikes frequently changed data, I prefer to not store the cloud data on the storage drives.
    Instead I have thought about using a partitioned SSD for boot drive and cloud data as well as running OMV from a flash drive with a separate SSD or second flash drive for the data.


    With my initial setup I'd have the SATA port for the SSD available—leaving me with only the PCI-E slot with a SATA adapter for future storage expansion.
    Could such an adapter cause problems if I connect the cloud data SSD or a snapRaid-managed HDD to it?


    The flash drive is often recommended as a boot drive because of the ease to backup and restore the system.
    What possibilities would I have with a partitionened boot/data drive in that regard?


    Which of the proposed setups would you recommend?
    I'd be grateful for any other suggestions to improve my proposed plans as well.


    Thank you for your help! :)