Difference between revisions of "FlexRAID"

From Amahi Wiki
Jump to: navigation, search
Line 100: Line 100:
 
   exit 0
 
   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/
+
{{Code|install -m 755 flexraid /etc/init.d/
 
/sbin/chkconfig flexraid on
 
/sbin/chkconfig flexraid on
 
/sbin/service flexraid start}}
 
/sbin/service flexraid start}}

Revision as of 02:24, 12 February 2011

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.

Links

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:

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

Manual Installation Steps

  1. Create web app called flexraid
  2. Became root user
  3. cd /var/hda/web-apps/flexraid
  4. Downloaded the file
  5. Unarchived the file and moved it to html
  6. cd html
  7. chmod +x ./FlexRAID_Basic_Host_1.4_beta7.bin
  8. ./FlexRAID_Basic_Host_1.4_beta7.bin
  9. When prompted for location, I entered /home/<USERNAME>/openegg
  10. Then manually edited the .conf file /etc/httpd/conf.d/1000-flexraid.conf
  11. Added a line after server lines...RedirectPermanent / http://localhost:8080
  12. Restarted httpd....service httpd restart
  13. Downloaded the WebUI and extract it into cd /var/hda/web-apps/flexraid
  14. Started FlexRAID.../home/user/FLEXRAID &
  15. Opened browser and navigated to http://localhost:8080.
  16. Log in using admin/admin.

Init Script

Create the file 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:
bash code
​install -m 755 flexraid /etc/init.d/ /sbin/chkconfig flexraid on /sbin/service flexraid start​


Post Install Questions

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