OMV Config vs FSTAB, FSTAB looses every single time even with external help.

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • OMV Config vs FSTAB, FSTAB looses every single time even with external help.

      Hi,
      I have re-installed OMV on the latest Debian.
      When I say i re-installed omv, i mean I created a new virtual disk and installed Debain and OMV. The 4 Data disks (Raid 5) were not touched so the data stays. (Had to re-install because after a dist upgrade on XENSERVER, it broke...)
      ================================================================================
      = OS/Debian information
      ================================================================================
      Distributor ID: debian
      Description: Debian GNU/Linux 8 (jessie)
      Release: 8.1
      Codename: jessie

      ================================================================================
      = openmediavault information
      ================================================================================
      Release: 2.1.11
      Codename: Stone burner)




      It has detected my RAID no problem and as attached it.
      ​root@OMV:~# cat /proc/mdstat
      Personalities : [raid6] [raid5] [raid4]
      md127 : active raid5 xvdb[0] xvde[2] xvdf[3] xvdc[1]
      5860538880 blocks super 1.2 level 5, 512k chunk, algorithm 2 [4/4] [UUUU]

      unused devices: <none>


      When I try to mount the volume that was previously created in a previous install, it throws this error.



      Error

      Failed to mount '6c372ef3-fc63-48bb-bed9-1dc6e9664dfe': mount: can't find /media/6c372ef3-fc63-48bb-bed9-1dc6e9664dfe in /etc/fstab

      Error #6000:
      exception 'OMVException' with message 'Failed to mount '6c372ef3-fc63-48bb-bed9-1dc6e9664dfe': mount: can't find /media/6c372ef3-fc63-48bb-bed9-1dc6e9664dfe in /etc/fstab' in /usr/share/openmediavault/engined/rpc/filesystemmgmt.inc:921
      Stack trace:
      #0 [internal function]: OMVRpcServiceFileSystemMgmt->mount(Array, Array)
      #1 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      #2 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('mount', Array, Array)
      #3 /usr/sbin/omv-engined(500): OMVRpc::exec('FileSystemMgmt', 'mount', Array, Array, 1)
      #4 {main}



      I run
      omv-mkconf fstab
      but it doesn't help me in any way.
      Here is some background info...
      ​root@OMV:~# blkid
      /dev/xvdc: UUID="efba594c-1171-66f6-7aa9-227fcb6ca0ca" UUID_SUB="cd77ad91-aefa-8e07-d221-008bddab579c" LABEL="OMV1:BidData" TYPE="linux_raid_member"
      /dev/xvdf: UUID="efba594c-1171-66f6-7aa9-227fcb6ca0ca" UUID_SUB="63538295-1b17-6e38-9433-67a953267432" LABEL="OMV1:BidData" TYPE="linux_raid_member"
      /dev/xvde: UUID="efba594c-1171-66f6-7aa9-227fcb6ca0ca" UUID_SUB="8f507fe8-ff27-1cc0-e383-44bab9515dcb" LABEL="OMV1:BidData" TYPE="linux_raid_member"
      /dev/xvda1: UUID="8f1850bd-53d2-4f15-b6d2-ec1b2a37ca64" TYPE="ext4" PARTUUID="0003e58f-01"
      /dev/xvda5: UUID="3b5f2b50-393c-4f1f-ac85-52ee9181d92b" TYPE="swap" PARTUUID="0003e58f-05"
      /dev/md127: LABEL="Data" UUID="6c372ef3-fc63-48bb-bed9-1dc6e9664dfe" TYPE="ext4"
      /dev/xvdb: UUID="efba594c-1171-66f6-7aa9-227fcb6ca0ca" UUID_SUB="b12a2688-3722-9922-9401-59bb338447c6" LABEL="OMV1:BidData" TYPE="linux_raid_member"



      So this is what I try now...
      ​ cat /etc/openmediavault/config.xml | awk '/<fstab>/,/<\/fstab>/'

      and get this...
      ​ <mntent>
      <uuid>6c372ef3-fc63-48bb-bed9-1dc6e9664dfe</uuid>
      <fsname>6c372ef3-fc63-48bb-bed9-1dc6e9664dfe</fsname>
      <dir>/media/6c372ef3-fc63-48bb-bed9-1dc6e9664dfe</dir>
      <type>ext4</type>
      <opts>defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl</opts>
      <freq>0</freq>
      <passno>2</passno>
      <hidden>0</hidden>
      </mntent>


      So i give /etc/fstab a helping hand... Add the entries by hand...
      ​root@OMV:~# cat /etc/fstab
      # /etc/fstab: static file system information.
      #
      # Use 'blkid' to print the universally unique identifier for a
      # device; this may be used with UUID= as a more robust way to name devices
      # that works even if disks are added and removed. See fstab(5).
      #
      # <file system> <mount point> <type> <options> <dump> <pass>
      # / was on /dev/xvda1 during installation
      UUID=8f1850bd-53d2-4f15-b6d2-ec1b2a37ca64 / ext4 errors=remount-ro 0 1
      # swap was on /dev/xvda5 during installation
      UUID=3b5f2b50-393c-4f1f-ac85-52ee9181d92b none swap sw 0 0
      /dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
      # >>> [openmediavault]
      UUID=6c372ef3-fc63-48bb-bed9-1dc6e9664dfe /media/6c372ef3-fc63-48bb-bed9-1dc6e9664dfe ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
      # <<< [openmediavault]


      Now the mount works...
      root@OMV:~# df -h
      Filesystem Size Used Avail Use% Mounted on
      /dev/xvda1 61G 2.4G 55G 5% /
      udev 10M 0 10M 0% /dev
      tmpfs 402M 5.8M 396M 2% /run
      tmpfs 1003M 0 1003M 0% /dev/shm
      tmpfs 5.0M 0 5.0M 0% /run/lock
      tmpfs 1003M 0 1003M 0% /sys/fs/cgroup
      tmpfs 201M 0 201M 0% /run/user/0
      /dev/md127 5.4T 2.4T 3.1T 44% /media/6c372ef3-fc63-48bb-bed9-1dc6e9664dfe


      But as soon as I create an folder, NFS share and save my config again, look at error message i get and the output of the fstab.


      Failed to mount '/media/6c372ef3-fc63-48bb-bed9-1dc6e9664dfe/CIFSShare/Documents': mount: can't find /export/Documents in /etc/fstab

      Error #6000:
      exception 'OMVException' with message 'Failed to mount '/media/6c372ef3-fc63-48bb-bed9-1dc6e9664dfe/CIFSShare/Documents': mount: can't find /export/Documents in /etc/fstab' in /usr/share/openmediavault/engined/module/fstab.inc:90
      Stack trace:
      #0 /usr/share/openmediavault/engined/rpc/config.inc(206): OMVModuleFsTab->startService()
      #1 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
      #2 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      #3 /usr/share/php/openmediavault/rpcservice.inc(158): OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)
      #4 /usr/share/openmediavault/engined/rpc/config.inc(224): OMVRpcServiceAbstract->callMethodBg('applyChanges', Array, Array)
      #5 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
      #6 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      #7 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('applyChangesBg', Array, Array)
      #8 /usr/sbin/omv-engined(500): OMVRpc::exec('Config', 'applyChangesBg', Array, Array, 1)
      #9 {main}



      ​root@OMV:~# cat /etc/fstab
      # /etc/fstab: static file system information.
      #
      # Use 'blkid' to print the universally unique identifier for a
      # device; this may be used with UUID= as a more robust way to name devices
      # that works even if disks are added and removed. See fstab(5).
      #
      # <file system> <mount point> <type> <options> <dump> <pass>
      # / was on /dev/xvda1 during installation
      UUID=8f1850bd-53d2-4f15-b6d2-ec1b2a37ca64 / ext4 errors=remount-ro 0 1
      # swap was on /dev/xvda5 during installation
      UUID=3b5f2b50-393c-4f1f-ac85-52ee9181d92b none swap sw 0 0
      /dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
      # >>> [openmediavault]
      # <<< [openmediavault]
      root@OMV:~#


      ​ <mntent>
      <uuid>6c372ef3-fc63-48bb-bed9-1dc6e9664dfe</uuid>
      <fsname>6c372ef3-fc63-48bb-bed9-1dc6e9664dfe</fsname>
      <dir>/media/6c372ef3-fc63-48bb-bed9-1dc6e9664dfe</dir>
      <type>ext4</type>
      <opts>defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl</opts>
      <freq>0</freq>
      <passno>2</passno>
      <hidden>0</hidden>
      </mntent>
      <mntent>
      <uuid>5bd8e545-3f40-469e-bf1f-fabf25954c41</uuid>
      <fsname>/media/6c372ef3-fc63-48bb-bed9-1dc6e9664dfe/CIFSShare/Documents</fsname>
      <dir>/export/Documents</dir>
      <type>none</type>
      <opts>bind</opts>
      <freq>0</freq>
      <passno>0</passno>
      <hidden>0</hidden>
      </mntent>



      Any clue on what may be going on?
      Why does creating an nfs share erase the entries in the fstab? They remain in the config file though.
    • You are running OMV on Jessie (Debian 8). This is not supported nor works properly.
      omv 4.1.22 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.15
      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:

      You are running OMV on Jessie (Debian 8). This is not supported nor works properly.


      Very good point! (I know this because I followed this guide... [Guide] Howto install OpenMediaVault on Debian 8.x (Jessie) TESTING - EXPERIMENTAL )
      On the other hand, isn't it a good case to debug for the official supported version on Jessie? If I wanted real support, I would of get Nexenta with a support contract, or i would of atleast installed a supported OS / Software combination. :P
      If debugging this issue is a defiant "faux pas", then we can discard this tread... ||
    • The support issue isn't really that big of a deal. The fact that many things just don't work is a much larger issue. OMV 2.x is nowhere near ready for jessie. So, debugging is not really needed since changes haven't been made to work on Jessie. Is there a reason you need Jessie?
      omv 4.1.22 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.15
      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!