Unions FS - mhddfs VS aufs

  • Hello,


    for my problem i tested mhddfs and aufs.
    At the end with mhddfs everythings works but aufs has some problems.


    My case:
    i have 3 disks with no Raid as the disks only contains movies, for that i dont need a secure backup (for private movies i would do that :) )
    i want to seperatly access those disks via smb but like to have all the movies together in one folder via smb.


    I tryed that befor with gentoo and unionfs witch works great.


    Now with omv i did the following:


    1. System->Plugins INSTALL "OMV-extras plugin" (google for it)
    2. System->Plugins INSTALL "unionsfilesystem 1.7"
    3. Storage->FileSystems CREATE filesystem for all disks (daten22 daten23 daten24)
    4. Storage->Aufs/Mhddfs ADD with type mhddfs and select all devices (daten22 daten23 daten24)
    capture1
    5. Access Rights Management->User ADD user / Priviliges read/write for that all filesystems (daten22 daten23 daten24)
    6. Access Rights Management->Shared Folders ADD all filesystems (daten22 daten23 daten24) AND "Aufs/Mhddfs" created in step 4. (IMPORTANT I decided to use / for path and NOT the default label=path whyever that is default)
    capture2
    7. Services->SMB/CIFS->Settings Enable
    8. Services->SMB/CIFS->Shares ADD all shared folders from step 6
    capture3


    You can do the same procedure with aufs it works the same


    Now you can connect to your OMV and mount all drives seperate (example \\127.0.0.1\daten22 or \\127.0.0.1\daten23 ...) or all together (example \\127.0.0.1\mergedmhddfs)


    I did mount all of them and tryed to create folders and files in all those mounts and see if you can see them merged in the \\127.0.0.1\mergedmhddfs folder.
    When you use mhddfs OR aufs you see INSTANTLY all of your created folders and files in the correlate mount point.
    For example when you create an folder like \\127.0.0.1\daten22\blurayimage\aliens you can see that folder in \\127.0.0.1\mergedmhddfs and vise versa.


    But when you create another folder like \\127.0.0.1\daten23\blurayimage\matrix (USE DATEN23 NOT 22) you can see that folder only with mhddfs automaticaly in the folder \\127.0.0.1\mergedmhddfs\blurayimage.
    When you use aufs you need to restart OMV then it works too (but obviously thats no option)


    I know that this is NOT the way it should be used and it works automatically when you only use \\127.0.0.1\mergedmhddfs but i want to decide by myself where to put the files :) !!!!


    So thats the reason why i use mhddfs


    perhaps this helps somebody :)


    best regards and good luck
    lantoeter

    • Offizieller Beitrag

    There is the problem and I know you stated what I am about to write... I specifically tell people not to write files on the individual drives in an aufs pool. aufs is designed to write the files on the drive with the most free space. mhddfs finds the files you added to the individual drive because it is constantly looking (which is why it is much slower than aufs).


    If you are deciding where to put the files, then there is no need to use aufs (or mhddfs for that matter). Just link the three drives together using symlinks (available in the openmediavault-downloader plugin). Much faster than mhddfs as well.

    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!

    Einmal editiert, zuletzt von ryecoaaron ()

  • Hello


    ok now i know the difference :)


    Where can i find the symlinks? I have Version 1.17 although i installed 1.9 ?
    Did they work like the symlink under linux "ln" ?
    Then this is not what im looking for.
    Because you have subfolders for each linked disk - right.


    best regards
    lantoeter

  • I have Version 1.17 although i installed 1.9 ?


    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20


    Do you count the same way? .17 newer than .9 - you just updated your system to the latest version. ;)


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

Jetzt mitmachen!

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