Difference between revisions of "FlexRAID"

From Amahi Wiki
Jump to: navigation, search
 
(23 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{NeedsUpdate}}
 +
{{MessageBox|
 +
backgroundcolor = #faa|
 +
image =Warning.png|
 +
heading =WARNING|
 +
message = This is recommended only for advanced users, proceed with caution.}}
 
===What is FlexRAID?===
 
===What is FlexRAID?===
 
[http://www.flexraid.com/ FlexRAID] is a highly scalable and smart storage system that turns independent hard drives of various sizes, makes, and models into storage pools and storage pools into storage clouds.
 
[http://www.flexraid.com/ FlexRAID] is a highly scalable and smart storage system that turns independent hard drives of various sizes, makes, and models into storage pools and storage pools into storage clouds.
Line 5: Line 11:
  
 
Furthermore, FlexRAID is not limited to hard disks as it can pool data from all accessible sources including removable media, external storage, network shares, LUNs, disk arrays, etc.
 
Furthermore, FlexRAID is not limited to hard disks as it can pool data from all accessible sources including removable media, external storage, network shares, LUNs, disk arrays, etc.
 +
 +
'''NOTE:'''  Ensure you turn off Greyhole and disable it permanently as shown in [[Greyhole#Disable_Greyhole|Greyhole Disable Section]].  THey <u>SHOULD NOT</u> been run together and could produce disastrous results.
 +
 +
CLI Client:
 +
<!--http://download.openegg.org/release/FlexRAID/Basic/1.4/b7/FlexRAID_Basic_Host_1.4_beta7.bin
 +
http://download.openegg.org/release/FlexRAID/Basic/1.4/b7/FlexRAIDWebUI_1.4.tar.gz-->
 +
<pre style="white-space: pre-wrap; word-break: keep-all;"><nowiki>http://download.openegg.org/release/FlexRAID/Basic/1.0/FlexRAID_Basic_CMD_Client_1.0_final.bin</nowiki></pre>
  
  
<!--Downloads:
 
{{Link|http://download.openegg.org/release/FlexRAID/Basic/1.4/b7/FlexRAID_Basic_Host_1.4_beta7.bin
 
http://download.openegg.org/release/FlexRAID/Basic/1.4/b7/FlexRAIDWebUI_1.4.tar.gz}}-->
 
 
Forums:
 
Forums:
{{Link|http://www.openegg.org/forums/forums/list.page}}
+
<nowiki>http://www.openegg.org/forums/forums/list.page</nowiki>
 +
 
 +
Tutorials:
 +
<nowiki>http://www.openegg.org/forums/posts/list/173.page
 +
http://www.openegg.org/forums/posts/list/167.page</nowiki>
  
 
===Installation===
 
===Installation===
 
* Create a web app called '''flexraid'''
 
* Create a web app called '''flexraid'''
 
* [[Open_Terminal_as_root|As root user]], do the following:
 
* [[Open_Terminal_as_root|As root user]], do the following:
{{Code|cd /var/hda/web-apps/flexraid
+
cd /var/hda/web-apps/flexraid
wget http://download.openegg.org/release/FlexRAID/Basic/1.4/b7/FlexRAID_Basic_Host_1.4_beta7.bin
+
wget <nowiki>http://download.openegg.org/release/FlexRAID/Basic/1.4/b7/FlexRAID_Basic_Host_1.4_beta7.bin</nowiki>
wget http://download.openegg.org/release/FlexRAID/Basic/1.4/b7/FlexRAIDWebUI_1.4.tar.gz
+
wget <nowiki>http://download.openegg.org/release/FlexRAID/Basic/1.4/b7/FlexRAIDWebUI_1.4.tar.gz</nowiki>
tar -xzpf FlexRAIDWebUI_1.4.tar.gz -d html
+
tar -xzpf FlexRAIDWebUI_1.4.tar.gz -d html
chmod +x ./FlexRAID_Basic_Host_1.4_beta7.bin
+
chmod +x ./FlexRAID_Basic_Host_1.4_beta7.bin
./FlexRAID_Basic_Host_1.4_beta7.bin}}
+
./FlexRAID_Basic_Host_1.4_beta7.bin
 
* Accept the EULA and when prompted for location, enter '''''/home/<USERNAME>/openegg'''''.
 
* Accept the EULA and when prompted for location, enter '''''/home/<USERNAME>/openegg'''''.
 
* Edit the web app .conf file:
 
* Edit the web app .conf file:
{{Code|vi /etc/httpd/conf.d/###-flexraid.conf}}
+
vi /etc/httpd/conf.d/###-flexraid.conf
 
* Add the following line after ServerAlias line:
 
* Add the following line after ServerAlias line:
{{Code|RedirectPermanent / http://localhost:8080}}
+
RedirectPermanent / <nowiki>http://localhost:8080</nowiki>
 
* Restart web server:
 
* Restart web server:
{{Code|service httpd restart}}
+
service httpd restart
 
* Start FlexRAID and WebUI:
 
* Start FlexRAID and WebUI:
{{Code|/home/user/FLEXRAID &
+
/home/user/FLEXRAID &
/var/hda/web-apps/flexraid/html/start.sh}}
+
/var/hda/web-apps/flexraid/html/start.sh
 
* Open web browser and navigate to:
 
* Open web browser and navigate to:
{{Link|http://localhost:8080.}}
+
<nowiki>http://localhost:8080</nowiki>
 
* Log in using admin/admin as user name and password.
 
* Log in using admin/admin as user name and password.
 +
<br />
  
 
=== Create Init Script (Not Working)===
 
=== Create Init Script (Not Working)===
 
* To enable FlexRAID to start on boot, create the file named '''flexraid''' and insert the following text:
 
* To enable FlexRAID to start on boot, create the file named '''flexraid''' and insert the following text:
  #! /bin/sh
+
<pre>#! /bin/sh
 
    
 
    
  # by wyld
+
# by wyld
  ### BEGIN INIT INFO
+
### BEGIN INIT INFO
  # Provides:          FlexRAID application instance
+
# Provides:          FlexRAID application instance
  # Required-Start:    $all
+
# Required-Start:    $all
  # Required-Stop:    $all
+
# Required-Stop:    $all
  # Default-Start:    2 3 4 5
+
# Default-Start:    2 3 4 5
  # Default-Stop:      0 1 6
+
# Default-Stop:      0 1 6
  # Short-Description: starts FlexRAID app
+
# Short-Description: starts FlexRAID app
  # Description:      starts instance of FlexRAID app using start-stop-daemon
+
# Description:      starts instance of FlexRAID app using start-stop-daemon
  ### END INIT INFO
+
### END INIT INFO
 
    
 
    
  PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/flexraid:/opt/flexraid/webui
+
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/flexraid:/opt/flexraid/webui
 
    
 
    
  ############### EDIT ME ##################
+
############### EDIT ME ##################
 
    
 
    
  # daemon  
+
# daemon  
  DAEMON=/home/amahi/openegg/FlexRAID
+
DAEMON=/home/amahi/openegg/FlexRAID
  DAEDIR=/home/amahi/openegg/
+
DAEDIR=/home/amahi/openegg/
  wDAEDIR=/var/hda/web-apps/flexraid/html
+
wDAEDIR=/var/hda/web-apps/flexraid/html
  NAME="flexraid"
+
NAME="flexraid"
  DESC="FlexRAID backend and webui"
+
DESC="FlexRAID backend and webui"
  USER="root"
+
USER="root"
 
    
 
    
  LOGDIR=/var/log
+
LOGDIR=/var/log
  RUNDIR=/var/run
+
RUNDIR=/var/run
  ARGS=""
+
ARGS=""
 
    
 
    
  ############### END EDIT ME ##################
+
############### END EDIT ME ##################
 +
 +
test -x $DAEMON || exit 0
 
    
 
    
  test -x $DAEMON || exit 0
+
set -e
 
    
 
    
  set -e
+
case "$1" in
 +
  start)
 +
        echo "Starting $DESC: "
 +
        start-stop-daemon --start --oknodo --background --chdir $DAEDIR --exec $DAEMON
 +
        start-stop-daemon --start --oknodo --chdir $wDAEDIR --name $NAME.web --startas /bin/sh $wDAEDIR/start.sh
 +
        echo "[ $NAME ]"
 +
        ;;
 +
  stop)
 +
        echo "Stopping $DESC: "
 +
        start-stop-daemon --stop --oknodo --exec $DAEMON
 +
        start-stop-daemon --start --oknodo --chdir $wDAEDIR --name $NAME.web --startas /bin/sh $wDAEDIR/stop.sh
 +
        echo "[ $NAME ]"
 +
        ;;
 
    
 
    
  case "$1" in
+
  restart)
    start)
+
        echo "Restarting $DESC: "
          echo "Starting $DESC: "
+
        start-stop-daemon --stop --oknodo --exec $DAEMON
          start-stop-daemon --start --oknodo --background --chdir $DAEDIR --exec $DAEMON
+
        start-stop-daemon --start --oknodo --chdir $wDAEDIR --name $NAME.web --startas /bin/sh $wDAEDIR/stop.sh
          start-stop-daemon --start --oknodo --chdir $wDAEDIR --name $NAME.web --startas /bin/sh $wDAEDIR/start.sh
+
        sleep 1
          echo "[ $NAME ]"
+
        start-stop-daemon --start --oknodo --background --chdir $DAEDIR --exec $DAEMON
          ;;
+
        start-stop-daemon --start --oknodo --chdir $wDAEDIR --name $NAME.web --startas /bin/sh $wDAEDIR/start.sh
    stop)
+
        echo "[ $NAME ]"
          echo "Stopping $DESC: "
+
        ;;
          start-stop-daemon --stop --oknodo --exec $DAEMON
+
  *)
          start-stop-daemon --start --oknodo --chdir $wDAEDIR --name $NAME.web --startas /bin/sh $wDAEDIR/stop.sh
+
        N=/etc/init.d/$NAME
          echo "[ $NAME ]"
+
        echo "Usage: $N {start|stop|restart}" >&2
          ;;
+
        exit 1
 +
        ;;
 +
esac
 
    
 
    
    restart)
+
exit 0</pre>
          echo "Restarting $DESC: "
+
 
          start-stop-daemon --stop --oknodo --exec $DAEMON
 
          start-stop-daemon --start --oknodo --chdir $wDAEDIR --name $NAME.web --startas /bin/sh $wDAEDIR/stop.sh
 
          sleep 1
 
          start-stop-daemon --start --oknodo --background --chdir $DAEDIR --exec $DAEMON
 
          start-stop-daemon --start --oknodo --chdir $wDAEDIR --name $NAME.web --startas /bin/sh $wDAEDIR/start.sh
 
          echo "[ $NAME ]"
 
          ;;
 
    *)
 
          N=/etc/init.d/$NAME
 
          echo "Usage: $N {start|stop|restart}" >&2
 
          exit 1
 
          ;;
 
  esac
 
 
 
  exit 0
 
 
* To enable the script to run on boot, do the following:
 
* To enable the script to run on boot, do the following:
{{Code|install -m 755 flexraid /etc/init.d/
+
install -m 755 flexraid /etc/init.d/
/sbin/chkconfig flexraid on
+
/sbin/chkconfig flexraid on
/sbin/service flexraid start}}
+
/sbin/service flexraid start
 
* To start/stop the service:
 
* To start/stop the service:
{{Code|service flexraid start
+
service flexraid start
service flexraid stop}}
+
service flexraid stop
 
* To check service status:
 
* To check service status:
{{Code|service flexraid status}}
+
service flexraid status
  
===Post Install Questions===
+
=== Post Install Questions ===
 
* Does Greyhole need to be disabled?
 
* Does Greyhole need to be disabled?
 
* Does this work with LVM disks?
 
* Does this work with LVM disks?
 +
 +
[[Category:Apps]]

Latest revision as of 03:49, 23 June 2020

Msgbox.update.png Update Needed
The contents of this page have become outdated or irrelevant. Please consider updating it.
Warning.png WARNING
This is recommended only for advanced users, proceed with caution.


What is FlexRAID?

FlexRAID is a highly scalable and smart storage system that turns independent hard drives of various sizes, makes, and models into storage pools and storage pools into storage clouds.

Additionally, FlexRAID provides both snapshot and real-time parity data protection with support for RAID4, RAID6, and RAIDX where X is any number of tolerances desired. Parity data protection can be configured at the storage pool level and/or at the storage cloud level.

Furthermore, FlexRAID is not limited to hard disks as it can pool data from all accessible sources including removable media, external storage, network shares, LUNs, disk arrays, etc.

NOTE: Ensure you turn off Greyhole and disable it permanently as shown in Greyhole Disable Section. THey SHOULD NOT been run together and could produce disastrous results.

CLI Client:

http://download.openegg.org/release/FlexRAID/Basic/1.0/FlexRAID_Basic_CMD_Client_1.0_final.bin


Forums:

http://www.openegg.org/forums/forums/list.page

Tutorials:

http://www.openegg.org/forums/posts/list/173.page
http://www.openegg.org/forums/posts/list/167.page

Installation

  • Create a web app called flexraid
  • As root user, do the following:
cd /var/hda/web-apps/flexraid
wget http://download.openegg.org/release/FlexRAID/Basic/1.4/b7/FlexRAID_Basic_Host_1.4_beta7.bin
wget http://download.openegg.org/release/FlexRAID/Basic/1.4/b7/FlexRAIDWebUI_1.4.tar.gz
tar -xzpf FlexRAIDWebUI_1.4.tar.gz -d html
chmod +x ./FlexRAID_Basic_Host_1.4_beta7.bin
./FlexRAID_Basic_Host_1.4_beta7.bin
  • Accept the EULA and when prompted for location, enter /home/<USERNAME>/openegg.
  • Edit the web app .conf file:
vi /etc/httpd/conf.d/###-flexraid.conf
  • Add the following line after ServerAlias line:
RedirectPermanent / http://localhost:8080
  • Restart web server:
service httpd restart
  • Start FlexRAID and WebUI:
/home/user/FLEXRAID &
/var/hda/web-apps/flexraid/html/start.sh
  • Open web browser and navigate to:
http://localhost:8080
  • Log in using admin/admin as user name and password.


Create Init Script (Not Working)

  • To enable FlexRAID to start on boot, create the file named flexraid and insert the following text:
#! /bin/sh
   
# by wyld
### BEGIN INIT INFO
# Provides:          FlexRAID application instance
# Required-Start:    $all
# Required-Stop:     $all
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: starts FlexRAID app
# Description:       starts instance of FlexRAID app using start-stop-daemon
### END INIT INFO
   
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/flexraid:/opt/flexraid/webui
   
############### EDIT ME ##################
   
# daemon 
DAEMON=/home/amahi/openegg/FlexRAID
DAEDIR=/home/amahi/openegg/
wDAEDIR=/var/hda/web-apps/flexraid/html
NAME="flexraid"
DESC="FlexRAID backend and webui"
USER="root"
   
LOGDIR=/var/log
RUNDIR=/var/run
ARGS=""
   
############### END EDIT ME ##################
 
test -x $DAEMON || exit 0
   
set -e
   
case "$1" in
  start)
        echo "Starting $DESC: "
        start-stop-daemon --start --oknodo --background --chdir $DAEDIR --exec $DAEMON
        start-stop-daemon --start --oknodo --chdir $wDAEDIR --name $NAME.web --startas /bin/sh $wDAEDIR/start.sh
        echo "[ $NAME ]"
        ;;
  stop)
        echo "Stopping $DESC: "
        start-stop-daemon --stop --oknodo --exec $DAEMON
        start-stop-daemon --start --oknodo --chdir $wDAEDIR --name $NAME.web --startas /bin/sh $wDAEDIR/stop.sh
        echo "[ $NAME ]"
        ;;
   
  restart)
        echo "Restarting $DESC: "
        start-stop-daemon --stop --oknodo --exec $DAEMON
        start-stop-daemon --start --oknodo --chdir $wDAEDIR --name $NAME.web --startas /bin/sh $wDAEDIR/stop.sh
        sleep 1
        start-stop-daemon --start --oknodo --background --chdir $DAEDIR --exec $DAEMON
        start-stop-daemon --start --oknodo --chdir $wDAEDIR --name $NAME.web --startas /bin/sh $wDAEDIR/start.sh
        echo "[ $NAME ]"
        ;;
  *)
        N=/etc/init.d/$NAME
        echo "Usage: $N {start|stop|restart}" >&2
        exit 1
        ;;
esac
   
exit 0
  • To enable the script to run on boot, do the following:
install -m 755 flexraid /etc/init.d/
/sbin/chkconfig flexraid on
/sbin/service flexraid start
  • To start/stop the service:
service flexraid start
service flexraid stop
  • To check service status:
service flexraid status

Post Install Questions

  • Does Greyhole need to be disabled?
  • Does this work with LVM disks?