Ignore:
Timestamp:
May 3, 2017, 11:27:12 AM (3 years ago)
Author:
Bruno Cornec
Message:

Adds preliminary DRBD support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi/rootfs/etc/init.d/rcS

    r3653 r3661  
    648648}
    649649
     650StartDRBD() {
     651    if [ "`grep -i nodrbd /proc/cmdline`" ]; then
     652        return;
     653    fi
     654    if [ "`grep -i drbd /proc/cmdline`" ]; then
     655        echo "Starting DRBD..."
     656        mkdir -p /var/run/drbd
     657        drbdadm adjust-with-progress all
     658        drbdadm wait-con-int
     659        # Become primary
     660        drbdadm sh-b-pri
     661        drbdadm sh-status
     662        drbdsetup all show
     663        LogIt "DRBD started"
     664    fi
     665}
     666
    650667StartRaids() {
    651668    local raid_devices i
     
    976993    touch /tmp/mondorestore.cfg
    977994fi
    978 if [ "`grep -i pxe /proc/cmdline`" ] || [ "`grep -i net /proc/cmdline`" ] || [ "`grep 'netfs-proto ' /tmp/mondorestore.cfg`" ]; then
     995if [ "`grep -i pxe /proc/cmdline`" ] || [ "`grep -i net /proc/cmdline`" ] || [ "`grep 'netfs-proto ' /tmp/mondorestore.cfg`" ] || [ "`grep -i drbd /proc/cmdline`" ]; then
    979996    # We need to get here exported variables from start-netfs
    980997    . /usr/sbin/start-netfs
     
    10311048StartRaids
    10321049StartMpath
     1050StartDRBD
    10331051# avoids messagesa round leaked fd - Cf lvm man page
    10341052export LVM_SUPPRESS_FD_WARNINGS=1
Note: See TracChangeset for help on using the changeset viewer.