NOTICE: This tutorial is old and obsolete. It will soon be removed. Please follow this newer tutorial on installing FlexRAID RAID-F on OMV: http://wiki.flexraid.com/2017/11/28/flexraid-raid-f-on-openmediavault/
============================================= OLD =========================================
This tutorial covers the integration of FlexRAID into OpenMediaVault (OMV).
Specifically, we are integrating FlexRAID 2.0u6 with OMV 0.2.7 (with 0.3 currently in beta as of April, 30th 2012).
Do check both projects for their latest releases.
For brevity, the test bed used as example in this document will have 2 DRUs and 1 PPU.
Although OMV mandates a plugin system for its integrations, there is no plugin to configure when it comes to FlexRAID as all configurations can be done through FlexRAID WebUI.
As a prerequisite, download and install OMV as documented on the product’s setup pages.
Configuring OMV and preparing it for FlexRAID
Part I. Enabling remote access and formatting your drives (configurations done through OMV’s GUI):
- Update your OMV system OS using the update manager
- Enable SSH in the “Service/SSH” configuration section
- In the “Storage/Filesystems” section, format and label your drives (BUT DO NOT MOUNT THEM! – OMV mounting options may cause issues with FlexRAID). For this example we are using ext4 for filesystem format and labels DATA1, DATA2, PARITY1 for the DRUs and PPU respectively.
Part II. Preliminary system wide configurations (SSH to your OMV server as root):
- In a shell prompt, execute: apt-get update
- Then, execute (ia32-libs is required only for the x64 version of OMV): apt-get install default-jre fuse-utils ia32-libs
- Change to /media (cd /media) and “mkdir DATA1 DATA2 PARITY1” (1 directory for each HDD to be managed).
- Edit /etc/fstab and add the entries as shown below:
- Edit /etc/fuse.conf and uncomment “user_allow_other”
- Execute “chmod g+w” on /etc/fuse.conf
- Edit /etc/sudoers and add the lines as shown below if missing:
- Reboot your system
Part III. Creating a “flexraid” user account:
- Open OMV’s GUI and ensure that the drives you formatted and labelled in Part I are visible in the “Storage/Filesystems” section.
- In “Access Right management / User”, create a new user (“flexraid” in this example). Although this can be done through the shell using the “adduser” or “useradd” commands, you won’t be able to see your user in the OMV Access right management interface. So, it is best to do this configuration through the UI.
Part IV. System configuration for the “flexraid” account:
- Execute “sudo usemod -G fuse flexraid” to add the “flexraid” user to Fuse group (Fuse group doesn’t appear in OMV UI)
- Execute “sudo usemod -G fuse root” to add the “root” user to Fuse group
- Change to /media (cd /media)
- Execute “sudo chown -R flexraid:fuse DATA1 DATA2 PARITY1” to make the user “flexraid” owner of mounted volumes
- Execute “sudo chmod -R g+w DATA1 DATA2 PARITY1” to give writing rights to Fuse group on mounted volumes
- Change to the “flexraid” user’s home directory
- Execute “mkdir flx” to create an installation directory named “flx” in /home/flexraid (better for right management issues)
- “wget <release download url>” (consult http://wiki.flexraid.com/2011/04/05/flexraid-lastest-download-links/ for the latest release links)
- After downloading, you can optionally check the hash of the downloaded file (you will need to install md5sum under OMV)
- Make the downloaded file executable by typing “chmod a+x FlexRAID-*”
- Execute the downloaded file (./FlexRAID-*)
- When prompted, specify your desired installation directory (for this example, we are using /home/flexraid/flx)
- Note: FlexRAID comes with FUSE libraries compiled for its runtime. Do not symbolically link those libraries to your system FUSE libraries.
- Reboot your system
- Remote into your OMV system under the “flexraid” account
- Start FlexRAID (cd /home/flexraid/flx && ./FlexRAID)
* It’s possible with scripts used for Ubuntu or Zyental to force FlexRAID running at boot.
* It’s also possible to login with the “flexraid” user at boot (Google: “autologin linux console mode”).
* YOU CAN’T RUN FlexRAID with the OMV UI user (“admin”). You need to start a local session on physical OMV server with the “flexraid” user.
- Connect to the FlexRAID WebUI (http://<host>:8080)
- Activate your installation or import your registration key
- Ensure that the sudo password has been set and is reflected in the System Control Panel (if not, set it)
- Create your RAID configuration (See http://wiki.flexraid.com/2011/12/03/getting-started-creating-your-first-flexraid-configuration/)
For our example, will create a simple CruiseControl Snapshot RAID:
- Initialize your RAID and enjoy!
- November 28, 2017 @ 21:04:59 [Current Revision] by Brahim
- November 28, 2017 @ 21:04:59 by Brahim
- November 28, 2017 @ 21:04:30 [Autosave] by Brahim
- April 30, 2012 @ 18:19:34 by Brahim
- April 30, 2012 @ 18:18:01 by Brahim
- April 30, 2012 @ 18:15:27 by Brahim
- April 30, 2012 @ 15:31:59 by Brahim
- April 30, 2012 @ 15:31:23 by Brahim
- April 30, 2012 @ 14:40:10 by Brahim
- April 30, 2012 @ 14:39:45 by Brahim
- April 30, 2012 @ 14:24:10 by Brahim
- April 30, 2012 @ 13:25:59 by Brahim
- April 30, 2012 @ 13:22:50 by Brahim
- April 30, 2012 @ 13:20:11 by Brahim
- April 30, 2012 @ 13:19:26 by Brahim
- April 30, 2012 @ 13:18:54 by Brahim
- April 30, 2012 @ 13:01:50 by Brahim
- April 30, 2012 @ 13:01:35 by Brahim