Unions FS - mhddfs VS aufs

    • OMV 1.0
    • Unions FS - mhddfs VS aufs


      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)
      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)
      7. Services->SMB/CIFS->Settings Enable
      8. Services->SMB/CIFS->Shares ADD all shared folders from step 6

      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 \\\daten22 or \\\daten23 ...) or all together (example \\\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 \\\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 \\\daten22\blurayimage\aliens you can see that folder in \\\mergedmhddfs and vise versa.

      But when you create another folder like \\\daten23\blurayimage\matrix (USE DATEN23 NOT 22) you can see that folder only with mhddfs automaticaly in the folder \\\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 \\\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
    • 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 4.1.14 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!

      The post was edited 1 time, last by 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 wrote:

      I have Version 1.17 although i installed 1.9 ?


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

      "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!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.