Installing FlexRAID on Zentyal Server


Offline version of this file: FlexRAID_on_Zentyal PDF
Courtesy of atiinola.


Zentyal Server is a small business server based on Ubuntu’s LTS server version 10.04 and the ebox platform. It also has the LXDE desktop installed with Firefox web browser and PCMAN File manager. There are some things that cannot be easily manipulated with Zentyal. Certain configuration files such as the samba configuration file and others cannot be directly edited, as they are overwritten at boot by a master configuration file. These files can be modified at boot by placing scripts in designated files, but that is beyond my comprehension at this point.

This setup was done on a Virtualbox machine with one disk for the operating system and three attached virtual hard drives.

Install Zentyal Server

Input full User Name. For this I am using a test user.


Accept or input a username for the account. I have used testuser as the user account name.


Choose a password for the user account.


After a reboot, Zentyal will start with the web interface ready for login.


Login to the web interface in order to finish the configuration. Scroll down until the Office Icon shows. I am only installing the Office portion which includes the file sharing portion of the server.


Click on the Office Icon in order to select it. The ring around the Icon will turn green when selected. Click the Install button.


The installation will begin and you should see the screen below


Next, the installation will prompt you to set up the network interfaces.


I have selected standalone server, as my home router handles all DHCP assignments and I only have one server.


Next, save changes.


There were components installed during the Office setup that I won’t need, so I removed them. Click on Software management and then Zentyal Components. Click the Delete Tab
I selected the following for removal:

– VPN Service
– Zentyal Cloud Client
– Groupware (Zarafa)
– Web Server
– Mail Service


After these modules were removed, I performed a system update. Click on Software Management and then System Updates. Scroll to the bottom and check the Update all Packages box. Then click the Upgrade Button.


The upgrade will begin.


If you are wanting to test your configuration in VirtualBox prior to putting it into production, it is a good idea to install the Virtual Box Guest additions. This will allow the screen to stretch inside the Virtualbox window. Without this, it will be difficult to configure Flexraid because part of the web interface will be cut off and inaccessible. To install the guest additions, follow these steps:
1. Install dkms: From the user console type – sudo apt-get install dkms
2. Attach Vbox Guest additions to the Virtual CD Drive
3. From the PCMan File manager, Open the Guest additions as root
4. Right click and execute I think or

I tend to like graphical interfaces for performing certain tasks. For this reason I installed synaptic and from synaptic, installed gparted.

To install synaptic package manager, type: sudo apt-get install synaptic

I then installed gparted partition manager using synaptic.


Partition Disks

Open the Administrator Console from the Desktop


In console Type:
sudo fdisk –l

This will give a list of Disks attached to the system.
sda contains the system and swap partitions
sdb is the first disk which will be used as a dru
sdc is the second disk that will be used as a dru
sdd is the third disk which will be used for parity


Open gparted and create a primary partition on each of the disks sdb, sdc,sdd. I created these with an ext4 file system. It is not necessary at this point to provide a volume label or mount point, as this will be done in the following steps.


Next, Open the PCMan File Manager
At the bottom left, click on the folder icon. This will provide a directory tree. Navigate to media and click once on this folder in the directory tree. In the top menu, click on tools, and then open this folder as root. This will allow you to create folders and change permissions for those folders. The second screen shows the media folder opened in superuser mode.



Right click in the empty space to bring up the context menu and create folders in /media for the three disks. I used Disk1, Disk2 and Parity.



I edited the permissions for these folders and changed the username to my username, changed the group to fuse, and gave full permissions to all. This may not be necessary, but i didn’t want any problems writing to the folders from flexraid. Right Click on each folder, select properties and then the permissions tab.



Close the media folder superuser window. Navigate in the directory tree to etc and open this folder as root. Scroll down and find the file called fstab. Right click on the file and select open with leafpad.


This is the original fstab


Add the following lines to the end of fstab
/dev/sdb /media/Disk1 ext4 defaults 0 2
/dev/sdc /media/Disk2 ext4 defaults 0 2
/dev/sdd /media/Parity ext4 defaults 0 2


Save the fstab file and exit leafpad.

While the folder etc is still in superuser mode, find the file fuse.conf and open it with leafpad.


Edit the last line to remove the # symbol.



Next add the user to the fuse group.
Open the user terminal and type: sudo adduser testuser fuse


Install FlexRAID

Everything up to this point was to prepare for the flexraid installation. REBOOT before continuing. This should insure that the disks are mounted in the /media folder.
Open firefox web browser, navigate to the openegg site and download the latest FlexRAID version. In this case I am using Version 2.0 release 12 revision 2. The file should be saved to /home/testuser/Downloads.


Open a user console.

Change to the download directory: cd /home/testuser/Downloads

To list the files type: ls

Make the file executable:

Type: sudo chmod +x FlexRAID-2.0-Preview12r2-Setup.bin


Run the setup file: ./FlexRAID-2.0-Preview12r2-Setup.bin


Accept the EULA


Enter path for installation folder. I used /home/testuser/.flexraid. Putting the period in front of the flexraid folder will make it hidden.


FlexRaid will then install. The prompt at the end indicates success.


Open the PCman file manager. Create some test folders and files under /media/Disk1 and /media/Disk2. These are required in order to create a snapshot raid.



Open the user console and start flexraid by typing:
./FlexRAID &


The resulting screen


Give FlexRAID a minute to make sure it is started and then navigate to the installation folder in PCman file manager. Navigate to /home/testuser. In the menu, select view and then select show hidden files. The flexraid installation folder should then show up as .flexraid under the testuser folder. Open the .flexraid folder and right click on FlexRAID.html and select open with firefox web browser.


This will open the web interface as http://localhost:8080. The web interface could be accessed from another machine on the network by typing in http://ipaddress:8080 as well. Finally you should see the FlexRAID web interface.


Be Sociable, Share!

4 Responses to “Installing FlexRAID on Zentyal Server”

  1. hvilppola September 6, 2011 at 5:16 AM #

    Very nice tutorial! Thanks for putting it together, we are sure that it will be very useful for many Zentyal users! Perhaps you were interested in adding it to the Zentyal Community Documentation repository at ?

    • atiinola September 7, 2011 at 9:16 AM #

      Thank you for the kind words. The guide is posted as a word document in the Installation and Tutorials section of the FlexRaid forums. I assume there would be no problem with you getting it there and posting it at the Zentyal wiki as well. In the future, i plan to update the tutorial when the next stable version of Zentyal is released and the final version of FlexRaid is available. I’d like to verify that the two final releases work well together.

  2. xliv September 9, 2011 at 1:43 AM #

    The guide is also available here as a PDF, I can put the word doc in addition. Please also note that the PDF (and doc) contain far more information than what is posted here.

    Also, do not hesitate to have the Zentyal community documentation pointing here!

  3. Brahim May 7, 2012 at 11:22 AM #

    I have set up my first Zentyal install over the weekend, and I have to say the distro is pretty impressive.
    I use Zentyal for firewall, gateway, DNS, LDAP, DHCP, and Samba services.
    The interface is super easy and it is extremely powerful. Once of my favorite is the ability to manage multiple WAN addresses. I will try to post more on that later.

Leave a Reply