Sha256: 3eee22df498d7175eb99055547aef9870d773ffac5734a4a2a7ca7eb8e290bdd

Contents?: true

Size: 1.79 KB

Versions: 149

Compression:

Stored size: 1.79 KB

Contents

#! /bin/sh
# aoe-init - example init script for ATA over Ethernet storage
# 
#   Edit this script for your purposes.  (Changing "eth1" to the
#   appropriate interface name, adding commands, etc.)  You might
#   need to tune the sleep times.
#
#   Install this script in /etc/init.d with the other init scripts.
#
#   Make it executable:
#     chmod 755 /etc/init.d/aoe-init
#
#   Install symlinks for boot time:
#     cd /etc/rc3.d && ln -s ../init.d/aoe-init S99aoe-init
#     cd /etc/rc5.d && ln -s ../init.d/aoe-init S99aoe-init
#
#   Install symlinks for shutdown time:
#     cd /etc/rc0.d && ln -s ../init.d/aoe-init K01aoe-init
#     cd /etc/rc1.d && ln -s ../init.d/aoe-init K01aoe-init
#     cd /etc/rc2.d && ln -s ../init.d/aoe-init K01aoe-init
#     cd /etc/rc6.d && ln -s ../init.d/aoe-init K01aoe-init
#

case "$1" in
        "start")
                # load any needed network drivers here

                # replace "eth1" with your aoe network interface
                ifconfig eth1 up

                # time for network interface to come up
                sleep 4

                modprobe aoe

                # time for AoE discovery and udev
                sleep 7

                # add your raid assemble commands here
                # add any LVM commands if needed (e.g. vgchange)
                # add your filesystem mount commands here

                test -d /var/lock/subsys && touch /var/lock/subsys/aoe-init
                ;;
        "stop")
                # add your filesystem umount commands here
                # deactivate LVM volume groups if needed
                # add your raid stop commands here
                rmmod aoe
                rm -f /var/lock/subsys/aoe-init
                ;;
        *)
                echo "usage: `basename $0` {start|stop}" 1>&2
                ;;
esac

Version data entries

149 entries across 147 versions & 7 rubygems

Version Path
Empact-deprec-1.99.21 lib/deprec/templates/aoe/aoe-init
Empact-deprec-1.99.21 lib/deprec/templates/coraid/aoe-init
andyh-deprec-1.99.26 lib/deprec/templates/aoe/aoe-init
andyh-deprec-1.99.27 lib/deprec/templates/aoe/aoe-init
isaac-deprec-1.99.30 lib/deprec/templates/aoe/aoe-init
isaac-deprec-1.99.32 lib/deprec/templates/aoe/aoe-init
le1t0-deprec-2.1.6.088 lib/deprec/templates/aoe/aoe-init
le1t0-deprec-2.1.6.087 lib/deprec/templates/aoe/aoe-init
deprec-3.1.0.rc16 lib/deprec/templates/aoe/aoe-init
deprec-3.1.0.rc15 lib/deprec/templates/aoe/aoe-init
le1t0-deprec-2.1.6.086 lib/deprec/templates/aoe/aoe-init
le1t0-deprec-2.1.6.085 lib/deprec/templates/aoe/aoe-init
le1t0-deprec-2.1.6.084 lib/deprec/templates/aoe/aoe-init
le1t0-deprec-2.1.6.083 lib/deprec/templates/aoe/aoe-init
le1t0-deprec-2.1.6.082 lib/deprec/templates/aoe/aoe-init
deprec-3.1.0.rc13 lib/deprec/templates/aoe/aoe-init
deprec-3.1.0.rc12 lib/deprec/templates/aoe/aoe-init
deprec-3.1.0.rc11 lib/deprec/templates/aoe/aoe-init
deprec-3.1.0.rc10 lib/deprec/templates/aoe/aoe-init
deprec-3.1.0.rc9 lib/deprec/templates/aoe/aoe-init