Backup Plugin fails - /dev/root is not a valid block device (Raspberry Pi 3)

    • OMV 4.x
    • Backup Plugin fails - /dev/root is not a valid block device (Raspberry Pi 3)

      Setting up a new/replacement Raspberry Pi 3 for my utility device and running into a problem with the backup plugin. Trying to use fsarchiver or dd as the options fails to work, indicating /dev/root is not a valid device. Error output below.

      Source Code

      1. Error #0:
      2. OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; omv-mkconf backup 2>&1': Method: fsarchiver
      3. Device file: /dev/root
      4. Root drive: /dev/mmcblk0p2
      5. 1+0 records in
      6. 1+0 records out
      7. 446 bytes copied, 0.00100912 s, 442 kB/s
      8. 1+0 records in
      9. 1+0 records out
      10. 512 bytes copied, 0.000934012 s, 548 kB/s
      11. Using FSArchiver...
      12. oper_save.c#1195,oper_save(): /dev/root is not a valid block device in /usr/share/openmediavault/engined/rpc/backup.inc:72
      13. Stack trace:
      14. #0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(565): OMVRpcServiceBackup->{closure}('/tmp/bgstatusAV...', '/tmp/bgoutputG0...')
      15. #1 /usr/share/openmediavault/engined/rpc/backup.inc(74): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
      16. #2 [internal function]: OMVRpcServiceBackup->doBackup(NULL, Array)
      17. #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      18. #4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('doBackup', NULL, Array)
      19. #5 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Backup', 'doBackup', NULL, Array, 1)
      20. #6 {main}
      Display All
      That's for fsarchiver; dd is similar (still giving the /dev/root not valid block device). When I look in /dev, there is no /dev/root device, but I do see it if I do df -h, and it's mounted as the root partition. I've tried adding the actual partition as the root partition, but that only helps with the MBR portion.

      I can use rsync, but I'd feel much better about it if I could have an actual image file instead. I couldn't find anything about this on the forums at all, so posting about it.

      This is a fresh install using the OMV_4_Raspberry_Pi_2_3_3Plus.img.xz image, installed about 4 hours ago and upgraded to OMV 4.1.9. All other packages are current as of a couple of hours ago except hostapd which I'm not using and can't see how it'd impact. Let me know if anyone needs more detail.

      Thanks!
    • I don't see this problem on my two running arm boards. What is the output of awk '$5 == "/" { print $10 }' /proc/self/mountinfo

      I'm guessing it will be /dev/root. If it is, post the output of cat /proc/self/mountinfo
      omv 4.1.11 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.11
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • ryecoaaron wrote:

      I don't see this problem on my two running arm boards. What is the output of awk '$5 == "/" { print $10 }' /proc/self/mountinfo

      I'm guessing it will be /dev/root. If it is, post the output of cat /proc/self/mountinfo
      It is indeed /dev/root. Here's the output of /proc/self/mountinfo:

      Source Code

      1. wolfstar@rcubed:~$ awk '$5 == "/" { print $10 }' /proc/self/mountinfo
      2. /dev/root
      3. wolfstar@rcubed:~$ cat /proc/self/mountinfo
      4. 15 0 179:2 / / rw,noatime shared:1 - ext4 /dev/root rw,commit=600
      5. 16 15 0:6 / /dev rw,relatime shared:2 - devtmpfs devtmpfs rw,size=495484k,nr_inodes=123871,mode=755
      6. 17 15 0:15 / /sys rw,nosuid,nodev,noexec,relatime shared:5 - sysfs sysfs rw
      7. 18 15 0:4 / /proc rw,relatime shared:8 - proc proc rw
      8. 19 16 0:16 / /dev/shm rw,nosuid,nodev shared:3 - tmpfs tmpfs rw
      9. 20 16 0:17 / /dev/pts rw,nosuid,noexec,relatime shared:4 - devpts devpts rw,gid=5,mode=620,ptmxmode=000
      10. 21 15 0:18 / /run rw,nosuid,nodev shared:9 - tmpfs tmpfs rw,mode=755
      11. 22 21 0:19 / /run/lock rw,nosuid,nodev,noexec,relatime shared:10 - tmpfs tmpfs rw,size=5120k
      12. 23 17 0:20 / /sys/fs/cgroup ro,nosuid,nodev,noexec shared:6 - tmpfs tmpfs ro,mode=755
      13. 24 23 0:21 / /sys/fs/cgroup/systemd rw,nosuid,nodev,noexec,relatime shared:7 - cgroup cgroup rw,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd
      14. 25 23 0:22 / /sys/fs/cgroup/cpu,cpuacct rw,nosuid,nodev,noexec,relatime shared:11 - cgroup cgroup rw,cpu,cpuacct
      15. 26 23 0:23 / /sys/fs/cgroup/freezer rw,nosuid,nodev,noexec,relatime shared:12 - cgroup cgroup rw,freezer
      16. 27 23 0:24 / /sys/fs/cgroup/net_cls rw,nosuid,nodev,noexec,relatime shared:13 - cgroup cgroup rw,net_cls
      17. 28 23 0:25 / /sys/fs/cgroup/devices rw,nosuid,nodev,noexec,relatime shared:14 - cgroup cgroup rw,devices
      18. 29 23 0:26 / /sys/fs/cgroup/blkio rw,nosuid,nodev,noexec,relatime shared:15 - cgroup cgroup rw,blkio
      19. 30 23 0:27 / /sys/fs/cgroup/cpuset rw,nosuid,nodev,noexec,relatime shared:16 - cgroup cgroup rw,cpuset
      20. 31 18 0:28 / /proc/sys/fs/binfmt_misc rw,relatime shared:17 - autofs systemd-1 rw,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct
      21. 32 17 0:7 / /sys/kernel/debug rw,relatime shared:18 - debugfs debugfs rw
      22. 33 21 0:29 / /run/rpc_pipefs rw,relatime shared:19 - rpc_pipefs sunrpc rw
      23. 34 16 0:13 / /dev/mqueue rw,relatime shared:20 - mqueue mqueue rw
      24. 35 18 0:30 / /proc/fs/nfsd rw,relatime shared:21 - nfsd nfsd rw
      25. 36 17 0:14 / /sys/kernel/config rw,relatime shared:22 - configfs configfs rw
      26. 60 15 0:31 / /tmp rw,relatime shared:23 - tmpfs tmpfs rw
      27. 62 15 179:1 / /boot rw,relatime shared:24 - vfat /dev/mmcblk0p1 rw,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro
      28. 99 15 179:2 /var/log /var/folder2ram/var/log rw,noatime - ext4 /dev/root rw,commit=600
      29. 102 15 0:33 / /var/log rw,nosuid,nodev,noexec,relatime shared:25 - tmpfs folder2ram rw
      30. 107 15 179:2 /var/tmp /var/folder2ram/var/tmp rw,noatime - ext4 /dev/root rw,commit=600
      31. 110 15 0:34 / /var/tmp rw,nosuid,nodev,noexec,relatime shared:64 - tmpfs folder2ram rw
      32. 115 15 179:2 /var/lib/openmediavault/rrd /var/folder2ram/var/lib/openmediavault/rrd rw,noatime - ext4 /dev/root rw,commit=600
      33. 118 15 0:35 / /var/lib/openmediavault/rrd rw,nosuid,nodev,noexec,relatime shared:68 - tmpfs folder2ram rw
      34. 123 15 179:2 /var/spool /var/folder2ram/var/spool rw,noatime - ext4 /dev/root rw,commit=600
      35. 126 15 0:36 / /var/spool rw,nosuid,nodev,noexec,relatime shared:72 - tmpfs folder2ram rw
      36. 131 15 179:2 /var/lib/rrdcached /var/folder2ram/var/lib/rrdcached rw,noatime - ext4 /dev/root rw,commit=600
      37. 134 15 0:37 / /var/lib/rrdcached rw,nosuid,nodev,noexec,relatime shared:76 - tmpfs folder2ram rw
      38. 139 15 179:2 /var/lib/monit /var/folder2ram/var/lib/monit rw,noatime - ext4 /dev/root rw,commit=600
      39. 142 15 0:38 / /var/lib/monit rw,nosuid,nodev,noexec,relatime shared:80 - tmpfs folder2ram rw
      40. 147 15 179:2 /var/lib/php /var/folder2ram/var/lib/php rw,noatime - ext4 /dev/root rw,commit=600
      41. 150 15 0:39 / /var/lib/php rw,nosuid,nodev,noexec,relatime shared:84 - tmpfs folder2ram rw
      42. 155 15 179:2 /var/lib/netatalk/CNID /var/folder2ram/var/lib/netatalk/CNID rw,noatime - ext4 /dev/root rw,commit=600
      43. 158 15 0:40 / /var/lib/netatalk/CNID rw,nosuid,nodev,noexec,relatime shared:88 - tmpfs folder2ram rw
      44. 163 15 179:2 /var/cache/samba /var/folder2ram/var/cache/samba rw,noatime - ext4 /dev/root rw,commit=600
      45. 166 15 0:41 / /var/cache/samba rw,nosuid,nodev,noexec,relatime shared:92 - tmpfs folder2ram rw
      46. 283 15 0:44 / /srv/2098ab12-5fe6-443a-8217-0df42315fcf0 rw,relatime shared:204 - nfs 10.90.0.45:/export/Datastore rw,vers=3,rsize=8192,wsize=8192,namlen=255,hard,proto=tcp,timeo=14,retrans=2,sec=sys,mountaddr=10.90.0.45,mountvers=3,mountport=37077,mountproto=udp,local_lock=none,addr=10.90.0.45
      47. 288 15 0:44 / /sharedfolders/Off-device rw,relatime shared:204 - nfs 10.90.0.45:/export/Datastore/recovery rw,vers=3,rsize=8192,wsize=8192,namlen=255,hard,proto=tcp,timeo=14,retrans=2,sec=sys,mountaddr=10.90.0.45,mountvers=3,mountport=37077,mountproto=udp,local_lock=none,addr=10.90.0.45
      48. 222 21 0:43 / /run/user/1000 rw,nosuid,nodev,relatime shared:144 - tmpfs tmpfs rw,size=100016k,mode=700,uid=1000,gid=100
      49. wolfstar@rcubed:~$
      Display All
      Note that I had shut it down overnight (dnsmasq is installed and duplicate DHCP servers are bad, mmkay), so that is about 3 minutes after boot. I did confirm that I'm still getting the error after the bootup.
    • I guess I will have to use a workaround for systems that have /dev/root in /proc/self/mounts. What is the output of: readlink /dev/root
      omv 4.1.11 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.11
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • ryecoaaron wrote:

      I guess I can't go with the easy solution. How about cat /proc/cmdline
      Yep, that's got it:

      Source Code

      1. wolfstar@rcubed:/proc/self$ cat /proc/cmdline
      2. 8250.nr_uarts=0 bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708_fb.fbdepth=16 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3f000000 vc_mem.mem_size=0x3f600000 dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet
    • Shit. That is a different format than I was expecting as well. How about: findmnt /
      omv 4.1.11 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.11
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!