Can't create SharedFolder with same Path with OMV3 but with OMV2 yes

  • Hello,


    I migrate my OMV2 to OMV3 and all works fine except 1 shared folder.


    I have many HDD with the same folder inside, all my HDD are in a pool with mhddfs.
    I want have an acces of folder for a specific HDD.


    I'm not good in english, a small diagram can help ^^
    HDD_1 2To => myFolder
    HDD_2 2To => myFolder


    myMHDDFSPool => 4To => myFolder (combination of myFolder HDD_1 and myFolder HDD_2)



    Shared Folders
    => myFolder ; myMHDDFSPool\myFolder
    => myFolder_HDD_1 ; HDD_1\myFolder



    This configuration works fine with OMV2 but not with OMV3 ;(



    You can this message in attachments.



    Please can you say me if it's normal (so I lose a functionality) or if it's a bug/regression?


    Thanks for help

  • Yes,
    I found the same problem today.
    I tried to share the root (/)of different hard disks, and got the same error.
    Why?
    Because: An object with the property 'reldirpath' and value '/' already exists.'
    It's not allowed to create more than 1 share with the same relative path?


    // Check uniqueness:
    // - The share name must be global unique because the name
    // is also used when exporting a shared folder via NFS
    // for example.
    OK, this I understand, for sure.
    // - The mount directory must be unique, too.
    Sorry, I don't understand why. For NFS? No.


    root@ThecusN5550-OMV:~# showmount -e 192.168.1.88
    Export list for 192.168.1.88:
    /export *
    /export/WDGreen1TB-1 *
    /export/3TB_1-Daten *
    ("WDGreen1TB-1" and "3TB_1-Daten" are the "share names")


    My Solution:
    I commented out line 274 in /usr/share/openmediavault/engined/rpc/sharemgmt.inc to
    // $db->assertIsUnique($object, "reldirpath");


    I can't see why this should be a bad idea, anyone of you can tell me?


    Regards from Germany
    tha-frog

    Running OMV 3.0.32 (Erasmus) with default kernel (Linux 3.16.0.4-0-amd64),
    with omvextrasorg 3.3.10 from a 32GB Sata-DOM on a Thecus N5550:
    Intel(R) Atom(TM) CPU D2550 @ 1.86GHz // 2 x 2GB DDR3 1333 // 4 x WD Red NAS Hard Drive 3 TB

    • Offizieller Beitrag

    If you can't share the root of more than one drive, that is a bug. File at bugtracker

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Hellp
    ryecoaaron


    when you see what say


    votdev:


    OMV3 is more restrictive with shared folders, their names and relativ paths. See github.com/openmediavault/open…ed/rpc/sharemgmt.inc#L267


    Than it's not a bug, it's a more restrictive feature.
    But if nobody knows why, than it's better to change.

    Running OMV 3.0.32 (Erasmus) with default kernel (Linux 3.16.0.4-0-amd64),
    with omvextrasorg 3.3.10 from a 32GB Sata-DOM on a Thecus N5550:
    Intel(R) Atom(TM) CPU D2550 @ 1.86GHz // 2 x 2GB DDR3 1333 // 4 x WD Red NAS Hard Drive 3 TB

    • Offizieller Beitrag

    That @ symbol is causing the code to fail. That is a bug. Not being able to use the same path on multiple shares, that is a restrictive feature. There is still a bug in that code as well since you can't have shared folders created that use the same path even if on different drives.


    Either way, someone needs to file a bug report. I would prefer if it wasn't me doing that.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I can't understand what you mean.


    You say
    "That @ symbol is causing the code to fail. That is a bug."
    -> Which @ symbol? Where? Which file, which line?


    You say
    "Not being able to use the same path on multiple shares, that is a restrictive feature."
    -> With "path" you mean the name of the share?
    Thats correct, each share has to have a unique name.


    You say
    "There is still a bug in that code as well since you can't have shared folders created that use the same path even if on different drives."
    -> This will be done by line 274 in /usr/share/openmediavault/engined/rpc/sharemgmt.inc
    $db->assertIsUnique($object, "reldirpath");
    -> And this themes to be a feature, not a bug.
    "reldirpath" is "/" for the root of a drive
    Thats why I have uncommented this line.

    Running OMV 3.0.32 (Erasmus) with default kernel (Linux 3.16.0.4-0-amd64),
    with omvextrasorg 3.3.10 from a 32GB Sata-DOM on a Thecus N5550:
    Intel(R) Atom(TM) CPU D2550 @ 1.86GHz // 2 x 2GB DDR3 1333 // 4 x WD Red NAS Hard Drive 3 TB

    • Offizieller Beitrag

    I didn't debug the code to figure out where the problem is. There are definitely a couple of bugs. The @ symbol seems to be causing the data model verification routine to fail hence the error. I'm sure @votdev would know right where the problem is.


    With path, I did not mean the share name. If you create a shared folder named test3 on drive1 with a path of test/ and then try to create a shared folder named test4 on drive2 with a path of test/, it fails. It is just looking at short path (not full path) for uniqueness.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!