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 (node1):~# lxc move inxovh-db002 node2:inxovh-db002 | |
error: Error transferring container data: migration restore failed | |
(00.014837) Warn (cr-restore.c:1159): Set CLONE_PARENT | CLONE_NEWPID but it might cause restore problem,because not all kernels support such clone flags combinations! | |
(00.018360) 1: Error (cr-restore.c:1489): mkdtemp failed crtools-proc.HEDVxH: Permission denied | |
(00.030781) Error (cr-restore.c:1352): 23840 killed by signal 9 | |
(00.083173) Error (cr-restore.c:2182): Restoring FAILED. | |
root@dnxovh-hy001 (node1):~# lxc list | |
+--------------+---------+-----------------------+------+------------+-----------+ | |
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS | |
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-hy002 (node2):/var/log/lxd/test# cat migration_restore_2016-10-21T00\:15\:59+02\:00.log | |
(00.000032) File tty[881b:e] will be restored from inherit fd 5 | |
(00.007405) Pagemap is fully functional | |
(00.007430) TCP recv queue memory limit is 87380 | |
(00.007441) Found task size of 7ffffffff000 | |
(00.007474) cpu: fpu:1 fxsr:1 xsave:1 | |
(00.007543) vdso: Parsing at 7fffae598000 7fffae59a000 | |
(00.007546) vdso: PT_LOAD p_vaddr: 0 | |
(00.007548) vdso: DT_HASH: 120 | |
(00.007550) vdso: DT_STRTAB: 2b0 |
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
- name: get public_ipv4 (Scaleway) | |
command: scw-metadata PUBLIC_IP_ADDRESS | |
register: result | |
when: (physical_ip is not defined and ansible_os_family == "Debian") | |
changed_when: false | |
ignore_errors: true | |
Result : | |
TASK [tinc : get public_ipv4 (Scaleway)] *************************************** |
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
If i run : ceph-mon -i cephA-001 --cluster cephA | |
all is good. | |
If i use systemd; not good: | |
root@cephA-001:/var# systemctl start ceph-mon@cephA-001 | |
root@cephA-001:/var# | |
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
service imap-login { | |
inet_listener imap { | |
#port = 143 | |
} | |
inet_listener imaps { | |
port = 993 | |
ssl = yes | |
} | |
# haproxy needs (cf http://wiki2.dovecot.org/HAProxy) |
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
To send the ip addres of the client/webbrowser to the server/webserver behind it there are a few options: | |
1- option forwardfor | |
2- send-proxy | |
3- source 0.0.0.0 usesrc clientip | |
1- option forwardfor | |
This is an easy option to configure in haproxy, it does require that http layer7 processing is used 'mode http' and the webserver/ webapplication that wants to log or use the ip of the client must use the http-header 'X-Forwarded-For' to read the clientip. | |
2- send-proxy / send-proxy-v2 / send-proxy-* | |
This is can be used both with mode tcp and http, it does however require that the server also understands the proxyprotocol. Some applications have added support for this protocol which adds a few bytes with ip information before the actual request. |
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
2 SERVERS OVH | |
Server1 ETH1 10.0.1.1 | |
Server2 ETH1 10.0.1.2 | |
Server2 # mtr 10.0.1.1 | |
Keys: Help Display mode Restart statistics Order of fields quit | |
Packets Pings |
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
#!/bin/sh | |
BASE=$HOME/Maildir | |
ARCHIVEBASE=$HOME/Maildir/archive. | |
for folder in `find $BASE -maxdepth 1 -type d \! -regex '.*/archive\..*' \! -name cur \! -name tmp \! -name new` | |
do | |
folder=$(basename $folder) | |
if [ "${folder}" = "Maildir" ]; then folder=INBOX; fi | |
./cleanup-maildir.py --archive-folder=${ARCHIVEBASE}${folder} --maildir-root=$BASE --folder-prefix= --age=365 -d 1 -k -u -v archive ${folder} |
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
freebsd-update fetch | |
freebsd-update install | |
freebsd-update upgrade -r 11.0-RELEASE | |
freebsd-update install | |
reboot | |
freebsd-update install | |
pkg-static update -f | |
pkg-static install -f pkg |
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
ip link del link dev br_rlab | |
ip link del link dev vxlan_rlab | |
bridge vlan del vid 1034 dev eth3 | |
bridge vlan del vid 1034 dev br_vrack self | |
bridge vlan del vid 1035 dev eth3 | |
bridge vlan del vid 1035 dev br_vrack self | |
route del -net 224.0.0.0 netmask 240.0.0.0 | |
route add -net 224.0.0.0 netmask 240.0.0.0 dev br_vrack | |
echo 1 > /sys/class/net/br_vrack/bridge/vlan_filtering |