This file contains 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
zfs send -R zroot/iohyve/bichono@autorep-01312016_1454259712 | ssh 149.202.85.153 zfs recv -Fu zroot/iohyve/bichono |
This file contains 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
Convert the .iso file to .img using the convert option of hdiutil | |
hdiutil convert /path/to/ubuntu.iso -format UDRW -o /path/to/target.img | |
diskutil list | |
diskutil unmountDisk /dev/diskN | |
sudo dd if=/path/to/downloaded.img of=/dev/diskN bs=1m |
This file contains 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
hy001 | |
# zfs create -s -V 50g -b 128k zroot/iscsi/lun_images01 | |
# vi /etc/ctl.conf | |
auth-group ag0 { | |
chap hy002 iscsiforever | |
chap username1 anotherbigsecret | |
} |
This file contains 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
Intel devices use sysctl to enable/disable flow control: | |
#sysctl -a|grep fc | |
dev.em.X.fc:3 | |
dev.igb.X.fc:3 | |
dev.ix.X.fc:3 | |
# ifconfig ix0 |
This file contains 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
rsync -aHAXxv --numeric-ids --delete --progress -e "ssh -T -c arcfour -o Compression=no -x" user@<source>:<source_dir> <dest_dir> |
This file contains 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@dnxovh-hy001:~ # date && iperf -c proof.ovh.ca -P 5 -r | |
Wed Feb 3 18:03:04 CET 2016 | |
------------------------------------------------------------ | |
Server listening on TCP port 5001 | |
TCP window size: 64.0 KByte (default) | |
------------------------------------------------------------ | |
------------------------------------------------------------ | |
Client connecting to proof.ovh.ca, TCP port 5001 | |
TCP window size: 32.5 KByte (default) | |
------------------------------------------------------------ |
This file contains 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
rc.conf | |
-------------------- | |
gateway_enable="YES" | |
# FW | |
pf_enable="YES" | |
pf_rules="/etc/pf.conf" | |
pflog_enable="YES" | |
pflog_logfile="/var/log/pflog" | |
# VPN CLIENT | |
openvpn_client1_enable="YES" |
This file contains 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
cloned_interfaces="tap1 tap2 tap3 tap4 bridge0 bridge1 bridge2" | |
ifconfig_tap2="mtu 1496" | |
autobridge_interfaces="bridge0 bridge1 bridge2" | |
autobridge_bridge0="tap1 ix0" | |
autobridge_bridge1="tap2 vlan10" | |
autobridge_bridge2="tap3 tap0" | |
ifconfig_bridge1="mtu 1496" |
This file contains 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
pfSsh.php playback disablereferercheck |
This file contains 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
> cat /proc/mdstat | |
Personalities : [raid1] [linear] [raid0] [raid10] [raid6] [raid5] [raid4] | |
md2 : active raid5 sda3[0](E) sdd3[4](E) sdb3[1] | |
4381251840 blocks super 1.1 level 5, 64k chunk, algorithm 2 [4/3] [EU_E] | |
md1 : active raid1 sdd2[3] sdc2[2] sdb2[1] sda2[0] | |
2097088 blocks [4/4] [UUUU] | |
md0 : active raid1 sda1[0] sdb1[1] sdc1[2] | |
2490176 blocks [4/3] [UUU_] |