OpenMediaVault-Plugin-Developers / openmediavault-unionfilesystems

OpenMediaVault plugin for union filesystems
9 stars 6 forks source link

Couldn't extract an UUID from the provided path #24

Closed u1735067 closed 2 years ago

u1735067 commented 6 years ago

Hello,

I'm using OMV in a VM, with VirtIO-SCSI drives (which seems the recommended way now), and I cannot save the UnionFS config:

Couldn't extract an UUID from the provided path '/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-1'.

Error #0:
exception 'OMV\Exception' with message 'Couldn't extract an UUID from the provided path '/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-1'.' 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-id...')
#1 /usr/share/php/openmediavault/system/filesystem/filesystem.inc(845): OMV\System\Filesystem\Backend\Mergerfs->getImpl('/dev/disk/by-id...')
#2 /usr/share/openmediavault/engined/rpc/unionfilesystems.inc(96): OMV\System\Filesystem\Filesystem::getImpl('/dev/disk/by-id...')
#3 [internal function]: OMV\Engined\Rpc\UnionFilesystems->enumerateCandidates(Array, Array)
#4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
#5 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('enumerateCandid...', Array, Array)
#6 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('UnionFilesystem...', 'enumerateCandid...', Array, Array, 1)
#7 {main}

I'm using OMV v3.0.94 with UnionFS 3.1.17.

Some informations:

root@omv3:/etc/openmediavault# ls -la /dev/disk/
total 0
drwxr-xr-x  5 root root  100 Dec 16 02:16 .
drwxr-xr-x 20 root root 3420 Dec 16 16:33 ..
drwxr-xr-x  2 root root  180 Dec 16 16:33 by-id
drwxr-xr-x  2 root root  160 Dec 16 16:33 by-path
drwxr-xr-x  2 root root  160 Dec 16 16:33 by-uuid
root@omv3:/etc/openmediavault# ls -la /dev/disk/by-*
/dev/disk/by-id:
total 0
drwxr-xr-x 2 root root 180 Dec 16 16:33 .
drwxr-xr-x 5 root root 100 Dec 16 02:16 ..
lrwxrwxrwx 1 root root   9 Dec 16 14:07 ata-QEMU_DVD-ROM_QM00001 -> ../../sr0
lrwxrwxrwx 1 root root   9 Dec 16 16:33 scsi-0LVM_Tests-1_drive-scsi0-0-0-3 -> ../../sdc
lrwxrwxrwx 1 root root   9 Dec 16 16:33 scsi-0LVM_Tests-2_drive-scsi0-0-0-4 -> ../../sdd
lrwxrwxrwx 1 root root   9 Dec 16 16:33 scsi-0LVM_Tests-3_drive-scsi0-0-0-5 -> ../../sde
lrwxrwxrwx 1 root root   9 Dec 16 16:33 scsi-0LVM_Tests-4_drive-scsi0-0-0-6 -> ../../sdf
lrwxrwxrwx 1 root root   9 Dec 16 14:07 scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-0 -> ../../sda
lrwxrwxrwx 1 root root   9 Dec 16 16:21 scsi-0VMS_OMV3_drive-scsi0-0-0-1 -> ../../sdb

/dev/disk/by-path:
total 0
drwxr-xr-x 2 root root 160 Dec 16 16:33 .
drwxr-xr-x 5 root root 100 Dec 16 02:16 ..
lrwxrwxrwx 1 root root   9 Dec 16 14:07 pci-0000:00:04.0-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx 1 root root   9 Dec 16 16:21 pci-0000:00:04.0-scsi-0:0:0:1 -> ../../sdb
lrwxrwxrwx 1 root root   9 Dec 16 16:33 pci-0000:00:04.0-scsi-0:0:0:3 -> ../../sdc
lrwxrwxrwx 1 root root   9 Dec 16 16:33 pci-0000:00:04.0-scsi-0:0:0:4 -> ../../sdd
lrwxrwxrwx 1 root root   9 Dec 16 16:33 pci-0000:00:04.0-scsi-0:0:0:5 -> ../../sde
lrwxrwxrwx 1 root root   9 Dec 16 16:33 pci-0000:00:04.0-scsi-0:0:0:6 -> ../../sdf

/dev/disk/by-uuid:
total 0
drwxr-xr-x 2 root root 160 Dec 16 16:33 .
drwxr-xr-x 5 root root 100 Dec 16 02:16 ..
lrwxrwxrwx 1 root root   9 Dec 16 16:21 05250b26-c232-4fb6-96a1-f67f4068d6e2 -> ../../sdb
lrwxrwxrwx 1 root root   9 Dec 16 16:33 74a1650d-c0c4-4630-a826-74fde4455026 -> ../../sdf
lrwxrwxrwx 1 root root   9 Dec 16 16:33 9818fc53-c433-44d9-b828-4f95ea3f9343 -> ../../sdd
lrwxrwxrwx 1 root root   9 Dec 16 16:33 a3e1e4c9-288f-4f19-be83-607d129e93c4 -> ../../sde
lrwxrwxrwx 1 root root   9 Dec 16 16:33 cf00dd39-4595-4f5c-a428-8918e9f9935b -> ../../sdc
lrwxrwxrwx 1 root root   9 Dec 16 14:07 d9d677ca-ddaa-44bb-ba64-84c9cc1f26d0 -> ../../sda

I'm trying to setup an union between all Tests-[1-4] drives.

Anyway, thanks for this plugin :) I'm using it in OMV2 and the switch from AUFS to MergerFS stopped my issue of ghosted files without perf issue (at least not with a few simultaneous writes).

u1735067 commented 6 years ago

Ok never mind, the mentionned disk was a leftover after I played with hot removal of SCSI disk. It was referenced in a share, and ever after removing it & rebooting I couldn't delete it, I had to edit OMV xml config manually to get ride of it. I let you close if you think there's nothing to do here.