This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/local/bin/python3.4 | |
| # 'zrep' failover wrapper script | |
| # Handles shutdown of services before initiating zrep failover process. | |
| # Also starts services on remote host. | |
| # Module imports | |
| import sys | |
| import socket | |
| import os |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root@freebsd-lab1:~/bin # sh -x do_failover.sh | |
| + | |
| : not found.sh: | |
| + date +%s.%N | |
| + START=1454547401.N | |
| + | |
| : not found.sh: | |
| + | |
| : not found.sh: | |
| + PRIMARY=freebsd-lab1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # 'zrep' failover wrapper script | |
| # Handles shutdown of services before initiating zrep failover process. | |
| # Also starts services on remote host. | |
| # Track process execution time: | |
| START=$(date +%s.%N) | |
| # ==== BEGIN CONFIGURABLES ==== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if ( $HOST == $PRIMARY ) then | |
| REMOTE=$SECONDARY | |
| echo "We are primary, remote is $REMOTE" | |
| else | |
| REMOTE=$PRIMARY | |
| echo "We are secondary, remote is $REMOTE" | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root@freebsd-lab1:~ # cat .profile | |
| # $FreeBSD: releng/10.2/etc/root/dot.profile 199243 2009-11-13 05:54:55Z ed $ | |
| # | |
| PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:~/bin | |
| export PATH | |
| HOME=/root | |
| export HOME | |
| TERM=${TERM:-xterm} | |
| export TERM | |
| PAGER=more |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Mods: | |
| DragonAPI 1.7.10 V10d | |
| ElectriCraft 1.7.10 V10b | |
| ReactorCraft 1.7.10 V10d | |
| RotaryCraft 1.7.10 V10d | |
| AbyssalCraft-1.7.10-1.8.9.6 | |
| AOBD-2.9.0 | |
| appliedenergistics2-rv2-stable-10 | |
| AuraCascade-557 | |
| bdlib-1.9.4.109-mc1.7.10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DragonAPI 1.7.10 V10d | |
| ElectriCraft 1.7.10 V10b | |
| ReactorCraft 1.7.10 V10d | |
| RotaryCraft 1.7.10 V10d | |
| AbyssalCraft-1.7.10-1.8.9.6 | |
| AOBD-2.9.0 | |
| appliedenergistics2-rv2-stable-10 | |
| bdlib-1.9.4.109-mc1.7.10 | |
| BigReactors-0.4.3A | |
| BiomesOPlenty-1.7.10-2.1.0.1548-universal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| OPTION 1 | |
| Qty Item Notes Price Ea Ext URL | |
| 1 SUPERMICRO CSE-216BAC-R920LPB Black 2U Chassis $985.15 $985.15 http://www.newegg.com/Product/Product.aspx?Item=N82E16811152567 | |
| 1 Motherboard, Supermicro X10DRI Motherboard $429.99 $429.99 http://www.newegg.com/Product/Product.aspx?Item=N82E16813182933 | |
| 2 Xeon E5-2620 v3 2.4Ghz six-core w/ HT CPU $429.99 $859.98 http://www.newegg.com/Product/Product.aspx?Item=N82E16819117480 | |
| 8 DDR4 2133Mhz ECC Reg, 16GB RAM $121.99 $975.92 http://www.newegg.com/Product/Product.aspx?Item=N82E16820147382 | |
| 2 SSD, SATA, 128GB (Samsung 850 Pro) OS (Raid 1) $89.99 $179.98 http://www.newegg.com/Product/Product.aspx?Item=N82E16820147359 | |
| 2 SSD, SATA, 512GB (Samsung 850 Pro) Database pool (RAID 1) $220.99 $441.98 http://www.newegg.com/Product/Product.aspx?Item=N82E16820147361 | |
| 20 HDD, 600GB, SAS 6G/s VM VHD pool (RAID 10) $84.99 $1,699.80 http://www.ebay.com/itm/291528098538 | |
| Total $5,572.80 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root@freebsd-lab1:~ # smbclient -W IMPERIALMFG -L 10.10.30.7 -Uguest | |
| Enter guest's password: | |
| Failed to load upcase.dat, will use lame ASCII-only case sensitivity rules | |
| Failed to load lowcase.dat, will use lame ASCII-only case sensitivity rules | |
| Domain=[IMPERIALMFG] OS=[Unix] Server=[Likewise CIFS] | |
| Sharename Type Comment | |
| --------- ---- ------- | |
| ZFSdata Disk Backup storage for ZFS datasets | |
| IPC$ IPC Remote IPC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// <summary> | |
| /// Runs through the queue of messages to be sent and writes them to the network. | |
| /// </summary> | |
| protected void ProcessTxQueue() | |
| { | |
| try | |
| { | |
| // Ensure method is limited to a single active call. | |
| // If another call to FlushMessage is running (has txFlushGate locked), we just abort. | |
| if (Monitor.TryEnter(this.txFlushGate)) |