NOTE: This guide has been written for Ubuntu Lucid Lynx 10.04 although it may work equally well on earlier or later version of Ubuntu.
In the how to install FlexRAID guide I explained how to install the FlexRAID Server and how to launch it. However, each time you reboot your server you will need to re-launch it again. You can either do this manually each time (by issuing the relevant command) or you can get a script to do it for you. We'll use a script. The script will run automatically each time the server boots and so all we'll need to do going forward is to launch the FlexRAID Web Client itself when we want to administer FlexRAID.
So, type the following command in your Putty Session to create and open the script:
Toggle back to your Putty Session and press the [Insert] key once and add a couple of blank lines by pressing the [Enter] key. Next right click and the whole script you've just highlighted will be pasted into the screen.
Now press the [Esc] key once and type :wq to save and quit out of the script. If you make a mistake editing the file then issue :q! instead of :wq to abort your changes.
We now need to make this script executable. So:
sudo chmod a+x /etc/init.d/FlexRAID
Now we need to make sure this script runs on start-up. To do this type the following command:
sudo update-rc.d FlexRAID defaults
If you have a pre-existing FlexRAID configuration
If you've already configured your FlexRAID array(s) before finding this page then the "config database" may be stored under your home directory. Once you've followed this guide FlexRAID will now be looking for the config database under root. So, check whether the config database (FlexRAID-Config.db) exists under your home folder and if it does then issue the following two commands to fix this: