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...)
ZitatAlles anzeigen================================================================================
= 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.
Zitatroot@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.
ZitatAlles anzeigenError
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
Zitatomv-mkconf fstab
but it doesn't help me in any way.
Here is some background info...
ZitatAlles anzeigenroot@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...
Zitatcat /etc/openmediavault/config.xml | awk '/<fstab>/,/<\/fstab>/'
and get this...
ZitatAlles anzeigen<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...
ZitatAlles anzeigenroot@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...
ZitatAlles anzeigenroot@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.
ZitatAlles anzeigenFailed 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}
ZitatAlles anzeigenroot@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:~#
ZitatAlles anzeigen<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.