TLDR & the issue: physically swapped a 1Tb hard drive (label data3) in my machine running omv for a 4Tb (label data4). ever since getting tons of errors in web gui about how it cant find data3 and was repeatedly unable to delete data3 as a filesystem even tho it was unmounted and not connected. as part of trying to resolve that issue, i deleted my unionFS data pool (that all my currently referenced shared folders point to) and am unable to add/edit/delete any shared folders to resolve the issue, even after making shared folders unreferenced.
i suspect i have solved my original issue of my machine yelling at me that it cant find disk-by-label/data3 by editing the config.xml file; additionally i have been successful in deleteing the data3 file system in the GUI, but I'm still having lots of issues with my shared folders' devices' showing up as "n/a"
any pointers or things to check next would be greatly appreciated!
also - is there a way to change the device of a shared folder in the config.xml directly? i tried to do so but either missed something or the config doesn't actually do what i had surmised.
the following are what this machine has as far as drives:
data1
data2
data3 = 1Tb disk physically swapped with data4
data4 = new 4Tb disk physically swapped with data3
parity1
dataPool = original unionFS data pool deleted as part of troubleshooting below.
hot_tub1 = unionFS data pool recreated in troubleshooting below
all shared folders are pointed to the *now deleted* dataPool "device"
troubleshooting done:
> file system shows a disk-by-label that is unable to be deleted.
> verified that no shared folders were using it
> restarted the machine
> tried to delete dataPool, the original unionfs, that i had previously edited from data3 to data4
> now getting errors trying to build any new unionfs
Couldn't extract an UUID from the provided path '/dev/disk/by-label/data3'.
Error #0:
OMV\Exception: Couldn't extract an UUID from the provided path '/dev/disk/by-label/data3'. in /usr/share/php/openmediavault/system/filesystem/backend/mergerfs.inc:87
Stack trace:
#0 /usr/share/php/openmediavault/system/filesystem/backend/mergerfs.inc(64): OMV\System\Filesystem\Backend\Mergerfs::extractUuidFromMountPoint('/dev/disk/by-la...')
#1 /usr/share/php/openmediavault/system/filesystem/filesystem.inc(844): OMV\System\Filesystem\Backend\Mergerfs->getImpl('/dev/disk/by-la...')
#2 /usr/share/openmediavault/engined/module/fstab.inc(68): OMV\System\Filesystem\Filesystem::getImpl('/dev/disk/by-la...')
#3 /usr/share/openmediavault/engined/rpc/config.inc(194): OMVModuleFsTab->startService()
#4 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
#5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
#7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(565): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatustb...', '/tmp/bgoutputUT...')
#8 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#9 /usr/share/openmediavault/engined/rpc/config.inc(213): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
#10 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
#11 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#12 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
#13 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
#14 {main}
Alles anzeigen
> uninstalled & reinstalled unionFS, still getting the same error
> also had installed reset permissions plugin and verified there nothing in use
> all of my shared folders show "n/a" under devices
Failed to execute XPath query '//system/fstab/mntent[uuid='5a499066-8eac-4b77-8bda-1ae3e04bb31a']'.
Error #0:
OMV\Config\DatabaseException: Failed to execute XPath query '//system/fstab/mntent[uuid='5a499066-8eac-4b77-8bda-1ae3e04bb31a']'. in /usr/share/php/openmediavault/config/database.inc:78
Stack trace:
#0 /usr/share/openmediavault/engined/rpc/sharemgmt.inc(231): OMV\Config\Database->get('conf.system.fil...', '5a499066-8eac-4...')
#1 [internal function]: OMVRpcServiceShareMgmt->get(Array, Array)
#2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('get', Array, Array)
#4 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('ShareMgmt', 'get', Array, Array, 1)
#5 {main}
Alles anzeigen
> removed all four shared folders from apple filing (media, downloads, personal & timemachine-optiplex)
> went into shared folders, and tried to delete shared folder (NOT shared + content)
> was able to click thru the gui window to do so, but when clicking apply get this error:
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; systemctl restart 'sharedfolders-downloads.mount' 2>&1' with exit code '1': Assertion failed on job for sharedfolders-downloads.mount.
Error #0:
OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; systemctl restart 'sharedfolders-downloads.mount' 2>&1' with exit code '1': Assertion failed on job for sharedfolders-downloads.mount. in /usr/share/php/openmediavault/system/process.inc:182
Stack trace:
#0 /usr/share/php/openmediavault/system/systemctl.inc(86): OMV\System\Process->execute(Array, 1)
#1 /usr/share/php/openmediavault/system/systemctl.inc(160): OMV\System\SystemCtl->exec('restart', NULL, false)
#2 /usr/share/openmediavault/engined/module/sharedfolders.inc(66): OMV\System\SystemCtl->restart()
#3 /usr/share/openmediavault/engined/rpc/config.inc(194): OMVModuleSharedfolders->startService()
#4 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
#5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
#7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(565): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusmj...', '/tmp/bgoutputIM...')
#8 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#9 /usr/share/openmediavault/engined/rpc/config.inc(213): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
#10 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
#11 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#12 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
#13 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
#14 {main}
Alles anzeigen
> one forum post indicated they fixed it by editing /etc/openmediavault/config.xml
> found a section listing disks by UUID
> found this section referencing disk-by-label
<mntent>
<uuid>9302b78b-d3bc-4bea-b6b1-2cf8336d5db1</uuid>
<fsname>/dev/disk/by-label/data3</fsname>
<dir>/srv/dev-disk-by-label-data3</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>
> deleted this in config.xml after making backup config.xml.bak
> web interface errored and had me sign in again
> after signing back in Storage > File Systems > Devices still was listing /dev/disk/by-label/data3
> deleted it again, applied change successfully!
> went into unionFS and tried to add a new pool (hot_tub1) with data1, data2, and data4 - applied successfully!!
> shared folders dont look like they will let me edit location