[HowTo] SnapRAID in OMV

    • Re: [HowTo] SnapRAID in OMV

      I'm new in the OMV but I want to use SnapRaid plugin.

      Until this time, I used mdadm with raid5 in an Intel Atom A330 based server.
      I use a Highpoint Rocket Raid 1820 8port PCI-X fake raid card, which is working flawless in the machine. (I tried earlyer with other linux distros woth no luck)

      At this time I try to set up OMV with SnapRaid on VM.
      I have already created 3 drives (1 for parity)
      But I stucked.
      I"ve formatte them to EXT4 and mounted as HDDB HDDC HDDD (HDDA -->sda is for OS) .
      HDDD is the parity disk. I already added HDDB and HDDC to Data.
      I added all the 3 driver to content and I ran the sync command.
      My problem is that, I can't see the 3 drives in a pool (together) .
      I checked the "ENABLE POOL" setting named as VIRTUAL but it doesn't shown nowhere.
      What did I missed ? I guess there is no pool created or, just not mounted properly ?

      Please give me some instructions! (As to a new user. I can type in CLI with SSH) :)
      Thanks!
    • Re: [HowTo] SnapRAID in OMV

      What is the output of:

      ls -al /media/
      cat /etc/samba/smb.conf
      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!
    • Re: [HowTo] SnapRAID in OMV

      Source Code

      1. root@OMV2:~# ls -al /media/
      2. összesen 28
      3. drwxr-xr-x 7 root root 4096 jan 15 15.32 .
      4. drwxr-xr-x 22 root root 4096 jan 12 07.22 ..
      5. drwxr-xr-x 3 root root 4096 jan 15 15.33 129ded72-61df-47d3-9787-9257e3413952
      6. drwxr-xr-x 3 root root 4096 jan 15 15.33 62a96191-410f-4df0-a041-c2fe57617a09
      7. lrwxrwxrwx 1 root root 6 jan 12 07.21 cdrom -> cdrom0
      8. drwxr-xr-x 2 root root 4096 jan 12 07.21 cdrom0
      9. drwxr-xr-x 3 root root 4096 jan 15 15.33 d1e5543f-d8d8-4bad-9a11-b35b7176616f
      10. drwxrwxrwx 2 root root 4096 jan 15 15.32 pool
      11. root@OMV2:~# cat /etc/samba/smb.conf
      12. #======================= Global Settings =======================
      13. [global]
      14. workgroup = WORKGROUP
      15. server string = %h server
      16. include = /etc/samba/dhcp.conf
      17. dns proxy = no
      18. log level = 0
      19. syslog = 0
      20. log file = /var/log/samba/log.%m
      21. max log size = 1000
      22. syslog only = yes
      23. panic action = /usr/share/samba/panic-action %d
      24. encrypt passwords = true
      25. passdb backend = tdbsam
      26. obey pam restrictions = yes
      27. unix password sync = no
      28. passwd program = /usr/bin/passwd %u
      29. passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
      30. pam password change = yes
      31. socket options = TCP_NODELAY IPTOS_LOWDELAY
      32. guest account = nobody
      33. load printers = no
      34. disable spoolss = yes
      35. printing = bsd
      36. printcap name = /dev/null
      37. unix extensions = yes
      38. wide links = no
      39. create mask = 0777
      40. directory mask = 0777
      41. use sendfile = yes
      42. aio read size = 16384
      43. aio write size = 16384
      44. null passwords = no
      45. local master = yes
      46. time server = no
      47. wins support = no
      48. #======================= Snapraid Settings =======================
      49. [global]
      50. unix extensions = no
      51. #======================= Share Definitions =======================
      52. #======== Snapraid Pool ========
      53. [VIRTUAL]
      54. comment = VIRTUAL
      55. path = /media/pool
      56. read only = yes
      57. guest ok = yes
      58. wide links = yes
      Display All


      The problem is that, I don't see any wirtual share in SMB, I can't select it (the whole pool)
    • Re: [HowTo] SnapRAID in OMV

      Everything looks ok. Can you manually type it in in explorer and access by: \\servername\virtual
      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!
    • Re: [HowTo] SnapRAID in OMV

      Thanks!
      Yes, Now I can see it on the local network, but I can't acces it.
      Becouse there is no created SMB shared folder or Shared folder, where can I set up the privileges ?? (I have a user with pass, but no privileges)
      And hogy can I write to this pool ? (I don't want to use that way, when I have to manage all drive separetely)
    • Re: [HowTo] SnapRAID in OMV

      May be a dumb question, but do you only have SMB enabled or do you already have created some shared folders via OMV WebUI?
      (on the left side) "User Rights Management" >> "Shared Folders" >> "Add".
      If you have created them here, you can add them under "SMB/CIFS" >> "Shares"
      OMV stoneburner | HP Microserver | 256GB Samsung 830 SSD for system | 4x 2TB in a RAID5
      OMV erasmus| Odroid XU4 | 5TB Data drive | 500GB Backup drive
    • Re: [HowTo] SnapRAID in OMV

      The pool is always read only and doesn't have any options for privileges. I think its purpose is for pooling media drives for a media player. If you want a read write pool, use aufs or greyhole.
      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!
    • Re: [HowTo] SnapRAID in OMV

      I know the pool which is created by the snapraid is read only.
      I've seen as option to write to the whole poole is the following:
      -Mhddfs - acoording to forums its stable but slow 30-40MB/s
      -Aufs - fast but generates error
      -LVM - heavy load

      Greyhole?? I haven't heard about it.
      This is why i would like to use mhddfs.
      Or can someone tell me which to use why, and how to install and set is up??
      Thanks
    • Re: [HowTo] SnapRAID in OMV

      I have copied over 20 TB of data with aufs with no error and it is fast. I've been using it on my media server for a couple weeks now.
      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!
    • Re: [HowTo] SnapRAID in OMV

      Please tell me how to set it up, to be able to see in Shared Folders setting.
      I would like to use a couple share, for movies, pictures, work files, music with different privilege settings.
      The only problem is now when I try to adda shared folder, and I have to select a volume I see just the 3 vHDD, not the pool.
      This is my main goal.

      And I have another question with SnapRAID, what should I add in "content" ? all the drivers ?
      As far as I know in Data disks I have to add the disk without parity drive.
      I select the parity driver on the main sceen (on settings tab)
      I don't realy understand how can this plugin make parity ? For example what if I lose a data disk ? Will it be able the browse online (as mdadm degraded array still work with 1 disk fail.) or should I do somethig immediatly?

      Sorry for the noob questions but I'm new with SnapRAID, until now I used just mdadm.
    • Re: [HowTo] SnapRAID in OMV

      Newbie here with my first install of OMV and SnapRaid...

      I created a SnapRaid pool and accessed the share from Windows. I tried copying files to the share, but don't have permissions. Other posts mentioned the pool is read only, and I presume that's why I can't write to the pool, or maybe I don't understand the purpose of OMV + SnapRaid?

      Ideally I want a NAS for my media and files, with extra features for antivirus, torrent, ftp, user quota limits, and someday a plugin to Amazon S3/Glacier for offsite backup.
      The NAS's drives would be pooled (a bunch of physical drives seen as 1 huge logical drive), and using snapshot parity for redundancy/recoverability.
      I want the NAS to serve my family, and accessible over the Internet, our personal/private cloud.

      Why is the SnapRaid read only?
      What do I do need to do or use so I can get writeable storage?

      If I can get this to work, I'm going to be REAL HAPPY and thankful.

      Jake
    • Re: [HowTo] SnapRAID in OMV

      SnapRAID has no function to allocate the files to the HDDs. Maybe "aufs" or "greyhole" are better. There are plugins for this. You can use snapraid for parity with this plugins, too
      "Glowing days. Don't cry because they are over. Smile because they happened." - Confucius

      Server: 1x 32GB SSD (system) - 5x 2TB Data - 1x 2TB Snapraid-Parity - latest OMV 1.x
      No Support through PM
      Tutorials --- Howto install OMV-Extras --- Upgrade/Update-Problems --- If autoshutdown doesn' -work
    • Re: [HowTo] SnapRAID in OMV

      I'm doing some experimentation pooling the drives (Greyhole), and hoping to use SnapRaid to do a parity snapshot of my Greyhole pools. Hopefully I get the configuration right.

      Not sure of the difference between Content and Data. To me they mean the same thing.

      So far the install, configuration, and learning process isn't too bad; the developers have done a great job on the interface. The confusion is from all the different parts (OMV->Physical Disks->FileSystems->Samba Shares->Greyhole Pools-> Greyhole Samba Shares->SnapRaid Data->SnapRaid Content(?). I need a configuration wizard to tie it all together :)

      Once I get this part done, I can simulate failures and adding new drives for storage expansion.
    • Re: [HowTo] SnapRAID in OMV

      Data drives are where parity is calculated from.
      Content is a list and checksums of your files on the data drives put into a content file. You need this list to rebuild if a drive fails. You never know which drive will fail. So, the more places you can put this list, the better. Hope that helps :)

      We definitely need and are working on better documentation for the plugins.
      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!
    • Re: [HowTo] SnapRAID in OMV

      What's the difference between a "Content File" and a "Parity Volume"?

      The parity/content configurations are on different tabs, so I'm assuming they aren't strongly related. If they are related, I'd like to see the parity configuration on one tab. A UI that sets up the parity file, and telling it which drive to physically live.

      I'd also prefer not to call the same thing by two names (presuming, or perhaps I don't understand). If it is a "parity" file, then call it a parity file instead of "content". To me content = data, or too generic of a term.

      As for the documentation...there's a great community forum to ask the questions and get satisfying answers.

      Thank you,
      Jake
    • Re: [HowTo] SnapRAID in OMV

      The parity file is large and is the data (parity) you need to restore in case of failure. You need one for the equivalent of raid 5. Two for raid 6.

      The content file is small and is the list (list of files and their checksums) you need to verify that restore. It doesn't hurt to have a content file on every drive. You can't restore a file from its checksum but it does help verify that the file is the same. I suppose you technically wouldn't need a content file but then you have no way to if all files were recovered and verify that their integrity (before and after checksums are the same).
      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!
    • Re: [HowTo] SnapRAID in OMV

      Thanks for the explanation.

      Duplicate content (checksum) file seems important in case the file becomes corrupted. If data corruption does occur, I want to know if the corruption is in the data, the checksum, or the parity.

      Thanks for the tip.


      "ryecoaaron" wrote:

      The parity file is large and is the data (parity) you need to restore in case of failure. You need one for the equivalent of raid 5. Two for raid 6.

      The content file is small and is the list (list of files and their checksums) you need to verify that restore. It doesn't hurt to have a content file on every drive. You can't restore a file from its checksum but it does help verify that the file is the same. I suppose you technically wouldn't need a content file but then you have no way to if all files were recovered and verify that their integrity (before and after checksums are the same).