add backup postgresql with pgbarman via ssh/rsync

master
Eric Chang 6 years ago
parent 9a91ddce71
commit 754d4cbd7d

@ -0,0 +1,255 @@
---
title: "[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804"
date: 2019-08-20T14:51:54+08:00
noSummary: false
featuredImage: "https://h.cowbay.org/images/post-default-7.jpg"
categories: ['筆記']
tags: ['nvidia']
author: "Eric Chang"
keywords:
- nvidia
- cuda
- pgstrom
---
因為老闆說要試試看用GPU 來跑postgresql 威力
手邊剛好有一張 geforce gt 720
一開始沒想太多看到有這張卡的驅動程式然後CUDA也有支援
就直接從桌機拔下來接去LAB Server ,然後就開始一連串的難關了...
<!--more-->
整個過程大致上分為四個步驟
### 安裝 nvidia driver
### 安裝 CUDA
### 安裝 postgresql
### 安裝 pgstrom
************
#### 安裝 nvidia driver
試過幾種方法最後還是覺得用apt來安裝比較妥當
先新增repository、update、裝driver
```
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
```
然後用這個指令
```
ubuntu-drivers devices
```
看一下現在的驅動程式狀態
```
administrator@hqdc032:~/pg-strom$ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001288sv0000174Bsd0000326Bbc03sc00i00
vendor : NVIDIA Corporation
model : GK208B [GeForce GT 720]
driver : nvidia-driver-410 - third-party free
driver : nvidia-driver-418 - third-party free
driver : nvidia-340 - distro non-free
driver : nvidia-driver-430 - third-party free recommended
driver : nvidia-driver-390 - third-party free
driver : nvidia-driver-415 - third-party free
driver : xserver-xorg-video-nouveau - distro free builtin
```
我這張卡,可以裝到 430 的版本,
接下來就繼續安裝驅動程式、裝完之後重開機
```
sudo apt install nvidia-driver-430
sudo reboot
```
這時候,應該可以看到一些基本資訊
```
lsmod|grep nvidia
```
大概長這樣
```
nvidia_uvm 798720 0
nvidia_drm 45056 3
nvidia_modeset 1093632 7 nvidia_drm
nvidia 18194432 258 nvidia_uvm,nvidia_modeset
drm_kms_helper 172032 1 nvidia_drm
drm 401408 6 drm_kms_helper,nvidia_drm
ipmi_msghandler 53248 2 ipmi_devintf,nvidia
```
到這邊 nvidia 驅動程式安裝完成,接下來安裝 cuda
#### 安裝 CUDA
同樣採用官網下載deb 回來安裝的方法
到這邊 https://developer.nvidia.com/cuda-downloads
依照自己的系統選擇
我選擇 Linux -- x86_64 -- Ubuntu -- 18.04 -- deb(local)
畫面上就會有安裝步驟,照著做就沒問題了
```
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin
sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget http://developer.download.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda-repo-ubuntu1804-10-1-local-10.1.243-418.87.00_1.0-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1804-10-1-local-10.1.243-418.87.00_1.0-1_amd64.deb
sudo apt-key add /var/cuda-repo-10-1-local-10.1.243-418.87.00/7fa2af80.pub
sudo apt-get update
sudo apt-get -y install cuda
```
一樣,安裝完成後重新開機,然後來編譯一個 deviceQuery 的小程式來看看資訊
```
cd /usr/local/cuda-10.1/samples/1_Utilities/deviceQuery
sudo make
```
會產生一個叫 deviceQuery 的執行檔,執行後,會有相關資訊
```
administrator@hqdc032:/usr/local/cuda-10.1/samples/1_Utilities/deviceQuery$ ./deviceQuery
./deviceQuery Starting...
CUDA Device Query (Runtime API) version (CUDART static linking)
Detected 1 CUDA Capable device(s)
Device 0: "GeForce GT 720"
CUDA Driver Version / Runtime Version 10.1 / 10.1
CUDA Capability Major/Minor version number: 3.5
Total amount of global memory: 1996 MBytes (2093416448 bytes)
( 1) Multiprocessors, (192) CUDA Cores/MP: 192 CUDA Cores
GPU Max Clock rate: 797 MHz (0.80 GHz)
Memory Clock rate: 900 Mhz
Memory Bus Width: 64-bit
L2 Cache Size: 524288 bytes
Maximum Texture Dimension Size (x,y,z) 1D=(65536), 2D=(65536, 65536), 3D=(4096, 4096, 4096)
Maximum Layered 1D Texture Size, (num) layers 1D=(16384), 2048 layers
Maximum Layered 2D Texture Size, (num) layers 2D=(16384, 16384), 2048 layers
Total amount of constant memory: 65536 bytes
Total amount of shared memory per block: 49152 bytes
Total number of registers available per block: 65536
Warp size: 32
Maximum number of threads per multiprocessor: 2048
Maximum number of threads per block: 1024
Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
Max dimension size of a grid size (x,y,z): (2147483647, 65535, 65535)
Maximum memory pitch: 2147483647 bytes
Texture alignment: 512 bytes
Concurrent copy and kernel execution: Yes with 1 copy engine(s)
Run time limit on kernels: Yes
Integrated GPU sharing Host Memory: No
Support host page-locked memory mapping: Yes
Alignment requirement for Surfaces: Yes
Device has ECC support: Disabled
Device supports Unified Addressing (UVA): Yes
Device supports Compute Preemption: No
Supports Cooperative Kernel Launch: No
Supports MultiDevice Co-op Kernel Launch: No
Device PCI Domain ID / Bus ID / location ID: 0 / 1 / 0
Compute Mode:
< Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >
deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 10.1, CUDA Runtime Version = 10.1, NumDevs = 1
Result = PASS
```
到這邊, CUDA 也安裝完成,再來是簡單的 postgresql 11
#### 安裝 postgresql 11
步驟差不多就是新增repository然後選擇要安裝的套件不過套件的選擇和平常安裝postgresql 不太一樣
```
sudo apt install wget ca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
sudo apt update
sudo apt install postgresql-client-11 postgresql-11 postgresql-server-dev-11 postgresql-common libicu-dev
```
跑完之後,就直接啟動 postgresql service 就可以了
再來是最麻煩的 pgstorm
#### pgstorm
話說,這軟體到底叫啥名字? pgstrom , pg-strom ? 看起來就像是拼錯字啊! =.=
https://github.com/heterodb/pg-strom
先 git clone 回來然後make、make install
講是很簡單但是一開始碰到很多問題有去github 跟開發團隊回報,幸好有回覆我..
總之目前在ubuntu 18.04 + postgresql-11 的環境下編譯是沒有問題了
```
git clone https://github.com/heterodb/pg-strom.git
cd pg-strom
make && sudo make install
```
再來設定一下 postgresql
#### postgresql 相關設定
需要修改一下postgresql.conf來指定載入 pgstrom 的 library
官方是這麼說的
```
PG-Strom module must be loaded on startup of the postmaster process by the shared_preload_libraries. Unable to load it on demand. Therefore, you must add the configuration below.
```
修改 /etc/postgresql/11/main/postgresql.conf
加入一行
```
shared_preload_libraries = '$libdir/pg_strom'
```
然後還有其他三個要修改不過這個不改不會影響pgstrom 的啟動
看狀況要不要修改吧
```
max_worker_processes = 100
shared_buffers = 10GB
work_mem = 1GB
```
修改完後,重新啟動 postgresql service 有沒有很感動我終於可以享受用GPU跑SQL Query 的快感啦!!!
等等為什麼postgresql service 沒起來!?
看一下 /var/log/syslog
```
Aug 20 14:23:43 hqdc032 postgresql@11-main[11801]: Error: /usr/lib/postgresql/11/bin/pg_ctl /usr/lib/postgresql/11/bin/pg_ctl start -D /var/lib/postgresql/11/main -l /var/log/postgresql/postgresql-11-main.log -s -o -c config_file="/etc/postgresql/11/main/postgresql.conf" exited with status 1:
Aug 20 14:23:43 hqdc032 postgresql@11-main[11801]: 2019-08-20 14:23:43.538 CST [11806] LOG: PG-Strom version 2.2 built for PostgreSQL 11
Aug 20 14:23:43 hqdc032 postgresql@11-main[11801]: 2019-08-20 14:23:43.565 CST [11806] LOG: PG-Strom: GPU0 GeForce GT 720 - CC 3.5 is not supported
Aug 20 14:23:43 hqdc032 postgresql@11-main[11801]: 2019-08-20 14:23:43.565 CST [11806] FATAL: PG-Strom: no supported GPU devices found
Aug 20 14:23:43 hqdc032 postgresql@11-main[11801]: 2019-08-20 14:23:43.565 CST [11806] LOG: database system is shut down
Aug 20 14:23:43 hqdc032 postgresql@11-main[11801]: pg_ctl: could not start server
Aug 20 14:23:43 hqdc032 postgresql@11-main[11801]: Examine the log output.
Aug 20 14:23:43 hqdc032 systemd[1]: postgresql@11-main.service: Can't open PID file /run/postgresql/11-main.pid (yet?) after start: No such file or directory
Aug 20 14:23:43 hqdc032 systemd[1]: postgresql@11-main.service: Failed with result 'protocol'.
Aug 20 14:23:43 hqdc032 systemd[1]: Failed to start PostgreSQL Cluster 11-main.
```
啊幹pg-strom 不支援這張GT 720啦
https://github.com/heterodb/pg-strom/wiki/001:-GPU-Availability-Matrix
簡單說,就是至少從 GTX 1080 起跳,其他都不用想了
幹,花了兩天的時間在弄這東西,結果明明一開始就應該要先檢查的相容列表卻沒有檢查...
好了,現在就看准不准我買一張 GTX 1080 來測試了....
只是這價格嘛...嗯咳,不是我該煩惱的問題了..

@ -0,0 +1,166 @@
---
title: "[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04"
date: 2019-08-23T14:54:13+08:00
noSummary: false
featuredImage: "https://h.cowbay.org/images/post-default-4.jpg"
categories: ['筆記']
tags: ['postgresql','pgbarman']
author: "Eric Chang"
keywords:
- pgbarman
- postgresql
---
這篇繼續講 pgbarman 透過 rsync/ssh 來備份 postgresql 資料庫的方式
<!--more-->
其實呢,透過 ssh 的方式來做備份,雖然最後有弄出來,但是我不知道到底做了什麼事才搞定
也許要重新安裝一台來測試看看
所以就簡單說一下邏輯、記得的指令、還有最後的config
##### ssh
在db server 上,讓 barman server 可以用barman 帳號透過ssh key 登入 postgres 帳號
然後在 barman server 上,讓 db server 可以用postgres帳號透過 ssh key 登入 barman 帳號
##### barman.d
在/etc/barman.d/ 底下新增一個hqs019-ssh.conf
內容如下
```
[hqs019-ssh]
description = "hqs019 (via SSH)"
ssh_command = ssh postgres@hqs019
conninfo = host=hqs019 user=barman dbname=database_name
backup_method = rsync
reuse_backup = link
parallel_jobs = 5
archiver = on
```
##### postgresql.conf
新增跟barman有關的設定如下
```
### for barman test
wal_level = 'archive'
archive_mode = on
archive_command = 'rsync -a %p barman@192.168.11.192:/var/lib/barman/hqs019-ssh/incoming/%f'
```
理論上這樣就可以了,但是實際上碰到很多問題
主要都是這個錯誤訊息
```
WAL archive: FAILED (please make sure WAL shipping is setup)
```
碰到這狀況google 都會告訴你,在 postgresql.conf 裡面 archive_command 的路徑,要和 barman server 上的設定一致
![](https://i.imgur.com/3dMdytn.png)
但是我的路徑就沒有問題,還是一直跳這個錯誤
接著我又在 barman server 這邊做了這些事情
```
barman check hqs019-ssh
barman check hqs019-ssh
barman check hqs019-ssh
ssh postgres@hqs019
barman check hqs019-ssh
barman show-server hqs019-ssh |grep incoming_wals_directory
barman show-server all
barman cron
barman switch-xlog hqs019-ssh
barman check hqs019-ssh
psql -c 'SELECT version()' -U postgres -h hqs019
psql -c 'SELECT version()' -U barman -h hqs019
psql -c 'SELECT version()' -U barman -h hqs019 -d database_name
barman check hqs019-ssh
barman check hqs019-ssh
barman bachup hqs019-ssh
barman backup hqs019-ssh
barman list-backup hqs019-ssh
df -h
barman backup hqs019-ssh
barman show-server hqs019
barman check hqs019
```
前面幾次 barman check 一直都不通過
然後在 barman cron / barman switch-xlog hqs019-ssh (其實這個動作我做過好多次)
想說確認一下psql 連接是不是正確(也的確正確無誤)
接著第一次 check 還是FAILED 喔,過沒多久我再跑一次 check 又正常了... WTF !!!
只要check 正常,接著跑 backup 應該就會很順利
```
barman@barman:~$ barman backup hqs019-ssh
Starting backup using rsync-exclusive method for server hqs019-ssh in /var/lib/barman/hqs019-ssh/base/20190823T113229
Backup start at LSN: 264/B7000028 (0000000100000264000000B7, 00000028)
This is the first backup for server hqs019-ssh
WAL segments preceding the current backup have been found:
0000000100000264000000B5 from server hqs019-ssh has been removed
Starting backup copy via rsync/SSH for 20190823T113229 (5 jobs)
Copy done (time: 1 hour, 5 minutes, 39 seconds)
This is the first backup for server hqs019-ssh
WAL segments preceding the current backup have been found:
0000000100000264000000B6 from server hqs019-ssh has been removed
Asking PostgreSQL server to finalize the backup.
Backup size: 132.9 GiB. Actual size on disk: 132.9 GiB (-0.00% deduplication ratio).
Backup end at LSN: 264/B7000130 (0000000100000264000000B7, 00000130)
Backup completed (start time: 2019-08-23 11:32:30.078310, elapsed time: 1 hour, 5 minutes, 43 seconds)
Processing xlog segments from file archival for hqs019-ssh
0000000100000264000000B7
0000000100000264000000B7.00000028.backup
barman@barman:~$
```
檢查一下狀態
```
barman@barman:~$ barman list-backup hqs019-ssh
hqs019-ssh 20190823T113229 - Thu Aug 22 20:38:13 2019 - Size: 132.9 GiB - WAL Size: 0 B (tablespaces: tablespace_a:/var/lib/postgresql/10/main/tablespace_A, tablespace_b:/var/lib/postgresql/10/main/tablespace_B)
```
然後為了驗證是不是跑增量備份,所以再執行一次 backup
```
barman@barman:~$ barman backup hqs019-ssh
Starting backup using rsync-exclusive method for server hqs019-ssh in /var/lib/barman/hqs019-ssh/base/20190823T132124
Backup start at LSN: 264/B9000028 (0000000100000264000000B9, 00000028)
Starting backup copy via rsync/SSH for 20190823T132124 (5 jobs)
Copy done (time: 5 seconds)
Asking PostgreSQL server to finalize the backup.
Backup size: 132.9 GiB. Actual size on disk: 14.2 KiB (-100.00% deduplication ratio).
Backup end at LSN: 264/B9000130 (0000000100000264000000B9, 00000130)
Backup completed (start time: 2019-08-23 13:21:24.455819, elapsed time: 9 seconds)
Processing xlog segments from file archival for hqs019-ssh
0000000100000264000000B8
0000000100000264000000B9
0000000100000264000000B9.00000028.backup
barman@barman:~$
```
可以發現第一次跑了一個多小時,第二次只跑了五秒鐘 (因為資料庫根本沒異動)
到這邊雖然功能驗證沒有問題,可是不知道怎麼弄出來的,還是讓我很阿雜..
應該會再找時間來重作一台然後順便測試看看restore
update
剛剛又做了一次測試config 都一樣
果然要先做 barman cron/barman switch-xlog hqs019-ssh
然後再做 barman check 就可以通過了
在文件裡面很少提到這部份筆記一下用ansible 去跑的時候才不會忘記

@ -0,0 +1,330 @@
---
title: "[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04"
date: 2019-08-23T13:53:40+08:00
noSummary: false
featuredImage: "https://h.cowbay.org/images/post-default-4.jpg"
categories: ['筆記']
tags: ['postgresql','pgbarman']
author: "Eric Chang"
keywords:
- pgbarman
- postgresql
---
很久以前就有看到這個用來備份postgresql 的 pgbarman
https://www.pgbarman.org/
前幾天老闆在slack 上面又提到,所以這次就花了點時間來玩玩看
不過呢,雖然有弄起來,但是還真不知道有些問題是怎麼解決的...
<!--more-->
pgbarman 的備份有分兩種
streaming && rsync/SSH
原理就不說了,我一直沒搞懂 postgresql 的 streaming ..
依照官方網站上的說法,比較推薦 streaming 備份的方式
原因是設定相對簡單WTF !
```
On a general basis, starting from Barman 2.0, backup over streaming replication is the recommended setup for PostgreSQL 9.4 or higher
The reason why we recommend streaming backup is that, based on our experience, it is easier to setup than the traditional one
```
事實上呢,設定的確是很簡單,可是有個致命的缺點
```
Because Barman transparently makes use of pg_basebackup, features such as incremental backup, parallel backup, deduplication, and network compression are currently not available. In this case, bandwidth limitation has some restrictions - compared to the traditional method via rsync.
```
如果要做差異/增量備份, streaming backup 不能做
所以每次備份都是完整備份也因此barman server 需要準備很大的硬碟空間
以我測試的資料庫來說一次備份目前是133G ,如果一天四次,保留七天
就需要 133 x 4 x 7 = 3724G
咦,這樣看起來,其實也還好啦 XDD
______
現在開始設定的部份
#### 設定 postgresql server
IP: 192.168.11.19
hostname: hqs019
##### 在postgresql 建立相關帳號
streaming backup 需要先在postgresql Server 上建立一個具有 superuser 權限的帳號
以及一個用來做replication 的資料庫帳號
這裡就簡單帶過
```
sudo su - postgres
psql
create user barman with login superuser login password 'barmanpassword';
CREATE ROLE stream_barman WITH REPLICATION PASSWORD 'password' LOGIN;
```
##### 鄉改 pg_hba.conf
然後修改 pg_hba.conf加入底下兩行
```
# for barman test
host database_name barman 192.168.11.192/32 md5
host replication stream_barman 192.168.11.192/32 md5
```
當然,如果不考慮安全性問題, md5 直接改成用 trust ,可以省去一些麻煩。
##### 修改 postgresql.conf
接著修改postgresql.conf
```
### for barman test
max_wal_senders = 5
max_replication_slots = 3
wal_level = 'archive'
archive_mode = on
```
重起 postgresql service
#### 設定barman server
IP: 192.168.11.192
hostname: barman
##### 安裝 barman
barman 在18.04 中已經被放到標準repository 中
所以只要直接
```
sudo apt install barman
```
就可以了
##### 設定 barman.conf
安裝完成後,在/etc/barman.d/ 底下會有兩個範例檔案
```
streaming-server.conf-template
ssh-server.conf-template
```
複製 streaming-server 檔案
```
sudo cp /etc/barman.d/streaming-server.conf-template /etc/barman.d/hqs019.conf
```
內容如下
```
[hqs019]
description = "hqs019 "
conninfo = host=192.168.11.19 user=barman dbname=database_name password=barmanpassword
streaming_conninfo = host=192.168.11.19 user=stream_barman dbname=database_name password=password
backup_method = postgres
retention_policy_mode = auto
streaming_archiver = on
slot_name = barman
```
接著修改 /etc/barman.conf
```
[barman]
barman_user = barman
configuration_files_directory = /etc/barman.d
barman_home = /var/lib/barman
log_file = /var/log/barman/barman.log
log_level = DEBUG
compression = gzip
immediate_checkpoint = true
basebackup_retry_times = 3
basebackup_retry_sleep = 30
last_backup_maximum_age = 1 DAYS
```
基本上這樣就設定完成了
##### 檢查設定
barman 有一些指令可以用來檢查目前的設定
barman show-server hqs019 可以看到所有的設定,這裡的 hqs019 跟 barman.d/hqs019.conf 裡面用"[ ]" 包起來的名稱要一致
```
barman@barman:~$ barman show-server hqs019
Server hqs019:
active: True
archiver: False
archiver_batch_size: 0
backup_directory: /var/lib/barman/hqs019
backup_method: postgres
backup_options: BackupOptions(['concurrent_backup'])
bandwidth_limit: None
barman_home: /var/lib/barman
barman_lock_directory: /var/lib/barman
basebackup_retry_sleep: 30
basebackup_retry_times: 3
basebackups_directory: /var/lib/barman/hqs019/base
check_timeout: 30
compression: gzip
config_file: /etc/postgresql/10/main/postgresql.conf
connection_error: None
conninfo: host=192.168.11.19 user=barman dbname=database_name password=barmanpassword
current_size: 142740768562
current_xlog: 0000000100000264000000BA
custom_compression_filter: None
custom_decompression_filter: None
data_directory: /database
description: hqs019
disabled: False
errors_directory: /var/lib/barman/hqs019/errors
hba_file: /etc/postgresql/10/main/pg_hba.conf
ident_file: /etc/postgresql/10/main/pg_ident.conf
immediate_checkpoint: True
incoming_wals_directory: /var/lib/barman/hqs019/incoming
is_in_recovery: False
is_superuser: True
last_backup_maximum_age: 1 day (WARNING! latest backup is No available backups old)
max_incoming_wals_queue: None
minimum_redundancy: 0
msg_list: []
name: hqs019
network_compression: False
parallel_jobs: 1
path_prefix: None
pg_basebackup_bwlimit: True
pg_basebackup_compatible: True
pg_basebackup_installed: True
pg_basebackup_path: /usr/bin/pg_basebackup
pg_basebackup_tbls_mapping: True
pg_basebackup_version: 10.10-0ubuntu0.18.04.1)
pg_receivexlog_compatible: True
pg_receivexlog_installed: True
pg_receivexlog_path: /usr/bin/pg_receivewal
pg_receivexlog_supports_slots: True
pg_receivexlog_synchronous: False
pg_receivexlog_version: 10.10-0ubuntu0.18.04.1)
pgespresso_installed: False
post_archive_retry_script: None
post_archive_script: None
post_backup_retry_script: None
post_backup_script: None
pre_archive_retry_script: None
pre_archive_script: None
pre_backup_retry_script: None
pre_backup_script: None
recovery_options: RecoveryOptions([])
replication_slot: Record(slot_name='barman', active=True, restart_lsn='264/BA000000')
replication_slot_support: True
retention_policy: None
retention_policy_mode: auto
reuse_backup: None
server_txt_version: 10.10
slot_name: barman
ssh_command: None
streaming: True
streaming_archiver: True
streaming_archiver_batch_size: 0
streaming_archiver_name: barman_receive_wal
streaming_backup_name: barman_streaming_backup
streaming_conninfo: host=192.168.11.19 user=stream_barman dbname=database_name password=password
streaming_supported: True
streaming_wals_directory: /var/lib/barman/hqs019/streaming
synchronous_standby_names: ['']
systemid: 6688476041000599317
tablespace_bandwidth_limit: None
timeline: 1
wal_level: replica
wal_retention_policy: main
wals_directory: /var/lib/barman/hqs019/wals
xlogpos: 264/BA000F08
```
然後用 barman check hqs019 來檢查config 有沒有問題
```
barman@barman:~$ barman check hqs019
Server hqs019:
PostgreSQL: OK
is_superuser: OK
PostgreSQL streaming: OK
wal_level: OK
replication slot: OK
directories: OK
retention policy settings: OK
backup maximum age: FAILED (interval provided: 1 day, latest backup age: No available backups)
compression settings: OK
failed backups: OK (there are 0 failed backups)
minimum redundancy requirements: OK (have 0 backups, expected at least 0)
pg_basebackup: OK
pg_basebackup compatible: OK
pg_basebackup supports tablespaces mapping: OK
pg_receivexlog: OK
pg_receivexlog compatible: OK
receive-wal running: OK
archiver errors: OK
barman@barman:~$
```
那個backup maximum age FAILED 不用管他,因為都還沒跑過備份,這邊錯誤是正常的
其他都OK 的話,就可以開始備份了
barman backup hqs019
```
barman@ubuntu:~$ barman backup hqs019
Starting backup using postgres method for server hqs019 in /var/lib/barman/hqs019/base/20190823T082258
Backup start at LSN: 264/A10001A8 (0000000100000264000000A1, 000001A8)
Starting backup copy via pg_basebackup for 20190823T082258
WARNING: pg_basebackup does not copy the PostgreSQL configuration files that reside outside PGDATA. Please manually backup the following files:
/etc/postgresql/10/main/postgresql.conf
/etc/postgresql/10/main/pg_hba.conf
/etc/postgresql/10/main/pg_ident.conf
Copy done (time: 1 hour, 6 minutes, 28 seconds)
Finalising the backup.
Backup size: 133.0 GiB
Backup end at LSN: 264/A3000060 (0000000100000264000000A3, 00000060)
Backup completed (start time: 2019-08-23 08:22:58.116372, elapsed time: 1 hour, 6 minutes, 28 seconds)
Processing xlog segments from streaming for hqs019
0000000100000264000000A2
barman@ubuntu:~$
```
跑完可以用 barman list-backup hqs019 檢查
```
barman@ubuntu:~$ barman list-backup hqs019
hqs019 20190823T082258 - Thu Aug 22 17:29:26 2019 - Size: 133.0 GiB - WAL Size: 0 B (tablespaces: tablespace_a:/var/lib/postgresql/10/main/tablespace_A, tablespace_b:/var/lib/postgresql/10/main/tablespace_B)
```
要刪除的話,要加入 backupID
```
barman@ubuntu:~$ barman delete hqs019 20190822T171355
Deleting backup 20190822T171355 for server hqs019
Delete associated WAL segments:
00000001000002640000009F
0000000100000264000000A0
0000000100000264000000A1
Deleted backup 20190822T171355 (start time: Fri Aug 23 09:36:43 2019, elapsed time: 3 seconds)
```
restore 的部份,暫時沒有測試,我想應該是要找時間測試看看怎麼還原才對
不過呢前面有提到用streaming backup ,每一次備份都是完整備份,非常的佔用空間、時間、頻寬
所以還是要來試試看用rsync/SSH 備份的機制

@ -117,31 +117,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -154,7 +154,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -93,25 +93,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/"> <a class="bubble" href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/"> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">
<img src="/images/post-default-8.jpg" alt=""> <img src="/images/post-default-4.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a></h3> <h3><a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-08-16</span> <span class="date moment">2019-08-23</span>
@ -131,24 +131,12 @@
</div> </div>
<p>最近一直在玩 wireguard 先前把各個分公司和總部的VPN 改用 wireguard 建立</p> <p>這篇繼續講 pgbarman 透過 rsync/ssh 來備份 postgresql 資料庫的方式</p>
<p>想說再打個VPN tunnel 來當跳板連 ptt 好了</p>
<p>因為wireguard 建立很簡單,而且又可以指定想要繞出去的路由,不會影響原本的網路環境</p>
<p>本來是在vultr 的VPS上面建立這個tunnel</p>
<p>但是那台VPS連去ptt 很頓,卡卡的</p>
<p>所以改用google cloud platform 的free tier 來做</p>
<p>反正只是拿來當跳板,不會有什麼流量、運算產生,可以一直保持免費的狀態</p>
<p></p> <p></p>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/" class="more"></a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/" class="more"></a>
</div> </div>
@ -162,9 +150,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/vpn">vpn</a> <a href="/tags/postgresql">postgresql</a>
<a href="/tags/wireguard">wireguard</a> <a href="/tags/pgbarman">pgbarman</a>
</div> </div>
</div> </div>
@ -180,25 +168,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/multiple-site-to-site-vpn-using-wireguard/"> <a class="bubble" href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/multiple-site-to-site-vpn-using-wireguard/"> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">
<img src="/images/post-default-10.jpg" alt=""> <img src="/images/post-default-4.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a></h3> <h3><a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-08-13</span> <span class="date moment">2019-08-23</span>
@ -218,22 +206,18 @@
</div> </div>
<p>因為實在受夠了現在用的 openwrt + strongswan 建立 IPSec VPN</p> <p>很久以前就有看到這個用來備份postgresql 的 pgbarman</p>
<p>雖然說其實沒有什麼不好,但是畢竟不是我建立的,而當初的文件也都不見了</p>
<p>完全沒辦法了解當時設計的邏輯造成後續debug 困難</p> <p><a href="https://www.pgbarman.org/">https://www.pgbarman.org/</a></p>
<p>可以想像一下一台VPN router ping 不到remote、ping不到internet、甚至ping不到自己 是要怎麼debug !?(翻桌</p> <p>前幾天老闆在slack 上面又提到,所以這次就花了點時間來玩玩看</p>
<p>之前買了兩台edgerouter X 拿來玩了一下 wireguard感覺還不錯不過只有測試到點對點</p> <p>不過呢,雖然有弄起來,但是還真不知道有些問題是怎麼解決的&hellip;</p>
<p>這次試試看躲在gateway後面看看能不能建立多點的VPN環境</p>
<p></p> <p></p>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/" class="more"></a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/" class="more"></a>
</div> </div>
@ -247,11 +231,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/vpn">vpn</a> <a href="/tags/postgresql">postgresql</a>
<a href="/tags/ubuntu">ubuntu</a>
<a href="/tags/wireguard">wireguard</a> <a href="/tags/pgbarman">pgbarman</a>
</div> </div>
</div> </div>
@ -267,25 +249,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/"> <a class="bubble" href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/"> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">
<img src="/images/post-default-5.jpg" alt=""> <img src="/images/post-default-7.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a></h3> <h3><a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-08-06</span> <span class="date moment">2019-08-20</span>
@ -305,30 +287,18 @@
</div> </div>
<p>之前總部和分公司之間 是用buffalo 的小AP 灌 openwrt</p> <p>因為老闆說要試試看用GPU 來跑postgresql 威力</p>
<p>然後用strongswan 來打 IPSEC site to site VPN</p>
<p>config 看起來不是很難 (只是看起來)</p>
<p>但是實際上已經找不到當初的文件</p>
<p>所以要維護很困難(光那些RSA KEY 就不知道為何、如何產生)</p>
<p>後來採購了兩台edgerouter X 做測試</p>
<p>也用openvpn 成功的建立了 site to site VPN</p>
<p>本來想說 openvpn 已經夠簡單了</p> <p>手邊剛好有一張 geforce gt 720</p>
<p>今天看到文章說用wireguard 可以更簡單</p> <p>一開始沒想太多看到有這張卡的驅動程式然後CUDA也有支援</p>
<p>於是研究了一下,發現還真的很簡單!</p> <p>就直接從桌機拔下來接去LAB Server ,然後就開始一連串的難關了&hellip;</p>
<p></p> <p></p>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/" class="more"></a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/" class="more"></a>
</div> </div>
@ -342,9 +312,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/vpn">vpn</a> <a href="/tags/nvidia">nvidia</a>
<a href="/tags/edgerouter">edgerouter</a>
</div> </div>
</div> </div>
@ -360,25 +328,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/another-way-to-keep-ansible-log/"> <a class="bubble" href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/another-way-to-keep-ansible-log/"> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">
<img src="/images/post-default-10.jpg" alt=""> <img src="/images/post-default-8.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a></h3> <h3><a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-08-05</span> <span class="date moment">2019-08-16</span>
@ -387,7 +355,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/ansible">ansible</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span> </span>
@ -398,23 +366,24 @@
</div> </div>
<p>之前為了能夠在執行完 ansible playbook 後能有個log 可以看</p> <p>最近一直在玩 wireguard 先前把各個分公司和總部的VPN 改用 wireguard 建立</p>
<p>所以在每次執行的時候,都要加入 tee 的指令</p> <p>想說再打個VPN tunnel 來當跳板連 ptt 好了</p>
<p>像是</p> <p>因為wireguard 建立很簡單,而且又可以指定想要繞出去的路由,不會影響原本的網路環境</p>
<pre><code>ANSIBLE_CONFIG=/home/D/ansiblecontrol/ansible.cfg /usr/local/bin/ansible-playbook /home/D/ansiblecontrol/playbook.user_client.yml --vault-password-file=/home/D/ansiblecontrol/vault.passwd -i /home/D/ansiblecontrol/inventory/production -f1 --limit tyuserclients |tee /tmp/tyuserclients.log <p>本來是在vultr 的VPS上面建立這個tunnel</p>
</code></pre>
<p>一直都是放在crontab 裡面執行,也就沒有去管他</p> <p>但是那台VPS連去ptt 很頓,卡卡的</p>
<p>反正也沒有人關心結果怎樣 (攤手</p> <p>所以改用google cloud platform 的free tier 來做</p>
<p>反正只是拿來當跳板,不會有什麼流量、運算產生,可以一直保持免費的狀態</p>
<p></p> <p></p>
<a href="/post/another-way-to-keep-ansible-log/" class="more"></a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/" class="more"></a>
</div> </div>
@ -428,7 +397,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/ansible">ansible</a> <a href="/tags/vpn">vpn</a>
<a href="/tags/wireguard">wireguard</a>
</div> </div>
</div> </div>
@ -444,25 +415,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/send-mail-to-notify-after-pxe-install/"> <a class="bubble" href="/post/multiple-site-to-site-vpn-using-wireguard/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/send-mail-to-notify-after-pxe-install/"> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-10.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a></h3> <h3><a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-07-31</span> <span class="date moment">2019-08-13</span>
@ -482,26 +453,22 @@
</div> </div>
<p>最近有個任務需要大量安裝client</p> <p>因為實在受夠了現在用的 openwrt + strongswan 建立 IPSec VPN</p>
<p>想用PXE來處理只要user開機按F12(acer 桌機) 選擇PXE Boot</p>
<p>然後選擇OS版本就可以自動進行安裝</p>
<p>安裝完成後會自動重新開機接著就用ansible來做user環境設定</p> <p>雖然說其實沒有什麼不好,但是畢竟不是我建立的,而當初的文件也都不見了</p>
<p>PXE的部份本來是沒有什麼問題自動安裝系統的部份都做好了</p> <p>完全沒辦法了解當時設計的邏輯造成後續debug 困難</p>
<p>是因為這次的量比較多想說讓每一台在完成PXE安裝後的第一次重開機</p> <p>以想像一下一台VPN router ping 不到remote、ping不到internet、甚至ping不到自己 是要怎麼debug !?(翻桌</p>
<p>就送出一封郵件來通知我說已經完成安裝可以執行ansible 了</p> <p>之前買了兩台edgerouter X 拿來玩了一下 wireguard感覺還不錯不過只有測試到點對點</p>
<p>看似很簡單的一件事情,卻搞了我兩天&hellip;.</p> <p>這次試試看躲在gateway後面看看能不能建立多點的VPN環境</p>
<p></p> <p></p>
<a href="/post/send-mail-to-notify-after-pxe-install/" class="more"></a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/" class="more"></a>
</div> </div>
@ -515,11 +482,11 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/pxe">PXE</a> <a href="/tags/vpn">vpn</a>
<a href="/tags/ubuntu">ubuntu</a> <a href="/tags/ubuntu">ubuntu</a>
<a href="/tags/linux">linux</a> <a href="/tags/wireguard">wireguard</a>
</div> </div>
</div> </div>
@ -535,25 +502,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/ansible-run-task-depends-on-ipaddr/"> <a class="bubble" href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/ansible-run-task-depends-on-ipaddr/"> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">
<img src="/images/post-default-7.jpg" alt=""> <img src="/images/post-default-5.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a></h3> <h3><a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-07-23</span> <span class="date moment">2019-08-06</span>
@ -562,7 +529,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/ansible">ansible</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span> </span>
@ -573,16 +540,30 @@
</div> </div>
<p>因為工作上的需要要修改client端的 /etc/environment 檔案</p> <p>之前總部和分公司之間 是用buffalo 的小AP 灌 openwrt</p>
<p>在有權限使用proxy 服務的user的環境中加入proxy 的設定</p> <p>然後用strongswan 來打 IPSEC site to site VPN</p>
<p>原本的清單中有host/user/ip 這幾個值可以拿來判斷</p> <p>config 看起來不是很難 (只是看起來)</p>
<p>proxy server 那邊是採用ip 來控制,所以這邊也跟著用 ip 來判斷要不要修改 /etc/environment</p> <p>但是實際上已經找不到當初的文件</p>
<p>所以要維護很困難(光那些RSA KEY 就不知道為何、如何產生)</p>
<p>後來採購了兩台edgerouter X 做測試</p>
<a href="/post/ansible-run-task-depends-on-ipaddr/" class="more"></a> <p>也用openvpn 成功的建立了 site to site VPN</p>
<p>本來想說 openvpn 已經夠簡單了</p>
<p>今天看到文章說用wireguard 可以更簡單</p>
<p>於是研究了一下,發現還真的很簡單!</p>
<p></p>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/" class="more"></a>
</div> </div>
@ -596,7 +577,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/ansible">ansible</a> <a href="/tags/vpn">vpn</a>
<a href="/tags/edgerouter">edgerouter</a>
</div> </div>
</div> </div>
@ -612,25 +595,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/ansible-selectattr-from-list-in-dictionary/"> <a class="bubble" href="/post/another-way-to-keep-ansible-log/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/ansible-selectattr-from-list-in-dictionary/"> <a href="/post/another-way-to-keep-ansible-log/">
<img src="/images/post-default-7.jpg" alt=""> <img src="/images/post-default-10.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a></h3> <h3><a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-07-01</span> <span class="date moment">2019-08-05</span>
@ -639,7 +622,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/ansible">Ansible</a> <a href="/categories/ansible">ansible</a>
</span> </span>
@ -650,16 +633,23 @@
</div> </div>
<p>在ansible中關於如何引用自定義的變數一直讓我很頭疼</p> <p>之前為了能夠在執行完 ansible playbook 後能有個log 可以看</p>
<p>尤其是有牽涉到從外部導入yaml檔案時更是常常讓我不知道到底該怎麼抓出想要的變數</p> <p>所以在每次執行的時候,都要加入 tee 的指令</p>
<p>這次還是用selectattr 來處理,希望下次能夠記得&hellip;</p> <p>像是</p>
<pre><code>ANSIBLE_CONFIG=/home/D/ansiblecontrol/ansible.cfg /usr/local/bin/ansible-playbook /home/D/ansiblecontrol/playbook.user_client.yml --vault-password-file=/home/D/ansiblecontrol/vault.passwd -i /home/D/ansiblecontrol/inventory/production -f1 --limit tyuserclients |tee /tmp/tyuserclients.log
</code></pre>
<p>一直都是放在crontab 裡面執行,也就沒有去管他</p>
<p>反正也沒有人關心結果怎樣 (攤手</p>
<p></p> <p></p>
<a href="/post/ansible-selectattr-from-list-in-dictionary/" class="more"></a> <a href="/post/another-way-to-keep-ansible-log/" class="more"></a>
</div> </div>
@ -673,7 +663,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/ansible">Ansible</a> <a href="/tags/ansible">ansible</a>
</div> </div>
</div> </div>
@ -689,25 +679,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/remote-management-system-meshcentral/"> <a class="bubble" href="/post/send-mail-to-notify-after-pxe-install/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/remote-management-system-meshcentral/"> <a href="/post/send-mail-to-notify-after-pxe-install/">
<img src="/images/post-default-5.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/remote-management-system-meshcentral/">linux底下遠端遙控&amp;管理的好用系統 Meshcentral / Remote Management &amp; control system Meshcentral</a></h3> <h3><a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-06-20</span> <span class="date moment">2019-07-31</span>
@ -727,20 +717,26 @@
</div> </div>
<p>之前在LAN/windows環境下一直都是用ultravnc/winvnc/tigervnc之類的VNC軟體</p> <p>最近有個任務需要大量安裝client</p>
<p>想用PXE來處理只要user開機按F12(acer 桌機) 選擇PXE Boot</p>
<p>但是如果要過 internet 就會碰到各種開port的問題</p> <p>然後選擇OS版本就可以自動進行安裝</p>
<p>在這種環境下,就有了當時 teamviewer 的橫空出世</p> <p>安裝完成後會自動重新開機接著就用ansible來做user環境設定</p>
<p>解決了開PORT的問題讓被控端(通常是資訊技術相對弱勢,需要接受幫助的一方)不需要懂太多</p> <p>PXE的部份本來是沒有什麼問題自動安裝系統的部份都做好了</p>
<p>只要下載teamviewer被控端開啟後報ID 給協助者就好了</p> <p>可是因為這次的量比較多想說讓每一台在完成PXE安裝後的第一次重開機</p>
<p>就送出一封郵件來通知我說已經完成安裝可以執行ansible 了</p>
<p>看似很簡單的一件事情,卻搞了我兩天&hellip;.</p>
<p></p> <p></p>
<a href="/post/remote-management-system-meshcentral/" class="more"></a> <a href="/post/send-mail-to-notify-after-pxe-install/" class="more"></a>
</div> </div>
@ -754,11 +750,11 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/linux">linux</a> <a href="/tags/pxe">PXE</a>
<a href="/tags/remote">remote</a> <a href="/tags/ubuntu">ubuntu</a>
<a href="/tags/meshcentral">meshcentral</a> <a href="/tags/linux">linux</a>
</div> </div>
</div> </div>
@ -774,25 +770,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/install-asus-10g-nic-in-proxmox/"> <a class="bubble" href="/post/ansible-run-task-depends-on-ipaddr/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/install-asus-10g-nic-in-proxmox/"> <a href="/post/ansible-run-task-depends-on-ipaddr/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-7.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a></h3> <h3><a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-06-17</span> <span class="date moment">2019-07-23</span>
@ -801,7 +797,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/proxmox">Proxmox</a> <a href="/categories/ansible">ansible</a>
</span> </span>
@ -812,20 +808,16 @@
</div> </div>
<p>前幾天接的一個case</p> <p>因為工作上的需要要修改client端的 /etc/environment 檔案</p>
<p>因為費用的關係,所以沒有考慮用傳統定義上的伺服器(DELL R640)</p>
<p>改採用比較高階一點的洋垃圾,規格大概是 Intel E5-2680V2 x2 + 64G RAM + 128G SSD x2 (OS) + 960G SSD x4 (raid 10 , zfs)</p>
<p>storage 選擇QNAP NAS TS-932X + 960G SSD x 4 (raid 10 , NFS) + QNAP 10G Switch QSW-1280C-8C</p> <p>在有權限使用proxy 服務的user的環境中加入proxy 的設定</p>
<p>既然storage這邊選用了10G的機種伺服器上當然也要增加10G網卡</p> <p>原本的清單中有host/user/ip 這幾個值可以拿來判斷</p>
<p>一樣成本考量就不用INTEL 了,買了這張 ASUS 10G 網卡</p> <p>proxy server 那邊是採用ip 來控制,所以這邊也跟著用 ip 來判斷要不要修改 /etc/environment</p>
<a href="/post/install-asus-10g-nic-in-proxmox/" class="more"></a> <a href="/post/ansible-run-task-depends-on-ipaddr/" class="more"></a>
</div> </div>
@ -839,7 +831,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/proxmox">proxmox</a> <a href="/tags/ansible">ansible</a>
</div> </div>
</div> </div>
@ -855,25 +847,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/change-timezone-in-docker/"> <a class="bubble" href="/post/ansible-selectattr-from-list-in-dictionary/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/change-timezone-in-docker/"> <a href="/post/ansible-selectattr-from-list-in-dictionary/">
<img src="/images/post-default-3.jpg" alt=""> <img src="/images/post-default-7.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a></h3> <h3><a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-05-21</span> <span class="date moment">2019-07-01</span>
@ -882,7 +874,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a> <a href="/categories/ansible">Ansible</a>
</span> </span>
@ -893,12 +885,16 @@
</div> </div>
<p>最近一直在玩一些docker不過老是會碰到歪果扔寫的東西時區都不一致</p> <p>在ansible中關於如何引用自定義的變數一直讓我很頭疼</p>
<p>尤其是有牽涉到從外部導入yaml檔案時更是常常讓我不知道到底該怎麼抓出想要的變數</p>
<p>這次還是用selectattr 來處理,希望下次能夠記得&hellip;</p>
<p>有的用 UTC有的用localtime就是沒碰到用 Asia/Taipei 的&hellip;.</p> <p></p>
<a href="/post/change-timezone-in-docker/" class="more"></a> <a href="/post/ansible-selectattr-from-list-in-dictionary/" class="more"></a>
</div> </div>
@ -912,9 +908,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/docker">docker</a> <a href="/tags/ansible">Ansible</a>
<a href="/tags/timezone">timezone</a>
</div> </div>
</div> </div>
@ -952,31 +946,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -989,7 +983,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -5,11 +5,56 @@
<link>https://h.cowbay.org/author/eric-chang/</link> <link>https://h.cowbay.org/author/eric-chang/</link>
<description>Recent content in Eric Chang on MCの飄狂山莊㊣</description> <description>Recent content in Eric Chang on MCの飄狂山莊㊣</description>
<generator>Hugo -- gohugo.io</generator> <generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Fri, 16 Aug 2019 10:18:06 +0800</lastBuildDate> <lastBuildDate>Fri, 23 Aug 2019 14:54:13 +0800</lastBuildDate>
<atom:link href="https://h.cowbay.org/author/eric-chang/index.xml" rel="self" type="application/rss+xml" /> <atom:link href="https://h.cowbay.org/author/eric-chang/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</title>
<link>https://h.cowbay.org/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/</link>
<pubDate>Fri, 23 Aug 2019 14:54:13 +0800</pubDate>
<guid>https://h.cowbay.org/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/</guid>
<description>&lt;p&gt;這篇繼續講 pgbarman 透過 rsync/ssh 來備份 postgresql 資料庫的方式&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description>
</item>
<item>
<title>[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</title>
<link>https://h.cowbay.org/post/pgbarman-in-ubuntu-1804-postgresql-10/</link>
<pubDate>Fri, 23 Aug 2019 13:53:40 +0800</pubDate>
<guid>https://h.cowbay.org/post/pgbarman-in-ubuntu-1804-postgresql-10/</guid>
<description>&lt;p&gt;很久以前就有看到這個用來備份postgresql 的 pgbarman&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://www.pgbarman.org/&#34;&gt;https://www.pgbarman.org/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;前幾天老闆在slack 上面又提到,所以這次就花了點時間來玩玩看&lt;/p&gt;
&lt;p&gt;不過呢,雖然有弄起來,但是還真不知道有些問題是怎麼解決的&amp;hellip;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description>
</item>
<item>
<title>[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</title>
<link>https://h.cowbay.org/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/</link>
<pubDate>Tue, 20 Aug 2019 14:51:54 +0800</pubDate>
<guid>https://h.cowbay.org/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/</guid>
<description>&lt;p&gt;因為老闆說要試試看用GPU 來跑postgresql 威力&lt;/p&gt;
&lt;p&gt;手邊剛好有一張 geforce gt 720&lt;/p&gt;
&lt;p&gt;一開始沒想太多看到有這張卡的驅動程式然後CUDA也有支援&lt;/p&gt;
&lt;p&gt;就直接從桌機拔下來接去LAB Server ,然後就開始一連串的難關了&amp;hellip;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description>
</item>
<item> <item>
<title>[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</title> <title>[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</title>
<link>https://h.cowbay.org/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/</link> <link>https://h.cowbay.org/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/</link>

@ -93,25 +93,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/transfer-file-content-using-xclip-in-terminal/"> <a class="bubble" href="/post/remote-management-system-meshcentral/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/transfer-file-content-using-xclip-in-terminal/"> <a href="/post/remote-management-system-meshcentral/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-5.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a></h3> <h3><a href="/post/remote-management-system-meshcentral/">linux底下遠端遙控&amp;管理的好用系統 Meshcentral / Remote Management &amp; control system Meshcentral</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-05-17</span> <span class="date moment">2019-06-20</span>
@ -120,7 +120,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/linux">linux</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span> </span>
@ -131,18 +131,20 @@
</div> </div>
<p>工作上常會需要用ssh登入遠端主機檢查LOG有必要的時候還要把log複製回本機來處理。</p> <p>之前在LAN/windows環境下一直都是用ultravnc/winvnc/tigervnc之類的VNC軟體</p>
<p>以前都是傻傻的用 scp 傳檔案</p> <p>但是如果要過 internet 就會碰到各種開port的問題</p>
<p>之前就記得有這個xclip/xsel 可以用,但是一直沒有弄清楚怎麼執行</p> <p>在這種環境下,就有了當時 teamviewer 的橫空出世</p>
<p>早上研究了一下,順便做個筆記。</p> <p>解決了開PORT的問題讓被控端(通常是資訊技術相對弱勢,需要接受幫助的一方)不需要懂太多</p>
<p>只要下載teamviewer被控端開啟後報ID 給協助者就好了</p>
<p></p> <p></p>
<a href="/post/transfer-file-content-using-xclip-in-terminal/" class="more"></a> <a href="/post/remote-management-system-meshcentral/" class="more"></a>
</div> </div>
@ -158,6 +160,10 @@
<a href="/tags/linux">linux</a> <a href="/tags/linux">linux</a>
<a href="/tags/remote">remote</a>
<a href="/tags/meshcentral">meshcentral</a>
</div> </div>
</div> </div>
@ -172,25 +178,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/inx-collect-detail-hardware-info/"> <a class="bubble" href="/post/install-asus-10g-nic-in-proxmox/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/inx-collect-detail-hardware-info/"> <a href="/post/install-asus-10g-nic-in-proxmox/">
<img src="/images/post-default-10.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/inx-collect-detail-hardware-info/">[筆記] inxi 蒐集詳盡的硬體資訊 / inxi Collect Detail Hardware Info</a></h3> <h3><a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-04-23</span> <span class="date moment">2019-06-17</span>
@ -199,7 +205,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a> <a href="/categories/proxmox">Proxmox</a>
</span> </span>
@ -210,20 +216,20 @@
</div> </div>
<p>最近因為一直碰到硬碟故障的問題算起來那一批同時購買的5X顆 seagate 2T硬碟已經有一半以上故障返修了&hellip;.</p> <p>前幾天接的一個case</p>
<p>然後又因為一直沒有添購新的硬碟,只能用這些快過保/已過保的撐著</p> <p>因為費用的關係,所以沒有考慮用傳統定義上的伺服器(DELL R640)</p>
<p>所以最近不斷的在更換機器內的硬碟,而且還沒有熱插拔!</p> <p>改採用比較高階一點的洋垃圾,規格大概是 Intel E5-2680V2 x2 + 64G RAM + 128G SSD x2 (OS) + 960G SSD x4 (raid 10 , zfs)</p>
<p>也導致原本負責處理盤點資產的同事困擾,因為跟手邊的紀錄已經對不起來了</p> <p>storage 選擇QNAP NAS TS-932X + 960G SSD x 4 (raid 10 , NFS) + QNAP 10G Switch QSW-1280C-8C</p>
<p>然後就變成要對資產的時候,需要一台一台登入,然後去下不同的指令,取得想要的硬體資訊,超級麻煩的!</p> <p>既然storage這邊選用了10G的機種伺服器上當然也要增加10G網卡</p>
<p></p> <p>一樣成本考量就不用INTEL 了,買了這張 ASUS 10G 網卡</p>
<a href="/post/inx-collect-detail-hardware-info/" class="more"></a> <a href="/post/install-asus-10g-nic-in-proxmox/" class="more"></a>
</div> </div>
@ -237,11 +243,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/linux">linux</a> <a href="/tags/proxmox">proxmox</a>
<a href="/tags/bsd">bsd</a>
<a href="/tags/inventory">inventory</a>
</div> </div>
</div> </div>
@ -257,25 +259,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/log-all-bash-commands/"> <a class="bubble" href="/post/change-timezone-in-docker/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/log-all-bash-commands/"> <a href="/post/change-timezone-in-docker/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-3.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/log-all-bash-commands/">[筆記] 紀錄所有下過的指令、時間 / Log All commands with timestamp</a></h3> <h3><a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-04-23</span> <span class="date moment">2019-05-21</span>
@ -295,18 +297,12 @@
</div> </div>
<p>今天發生一件有點詭異的事情,本來應該要經過某個指令才會產生的檔案</p> <p>最近一直在玩一些docker不過老是會碰到歪果扔寫的東西時區都不一致</p>
<p>居然不知為何自己產生了,在我記憶中沒有去執行過那個指令</p>
<p>翻了一下 bash_history ,裡面也只有下過哪些指令,沒有紀錄時間,完全沒有參考價值(攤手)</p>
<p>所以翻了一下網路至少把這兩台主要跑ansible的機器的log功能補上紀錄所有指令以及時間的部份</p>
<p></p> <p>有的用 UTC有的用localtime就是沒碰到用 Asia/Taipei 的&hellip;.</p>
<a href="/post/log-all-bash-commands/" class="more"></a> <a href="/post/change-timezone-in-docker/" class="more"></a>
</div> </div>
@ -320,7 +316,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/log">log</a> <a href="/tags/docker">docker</a>
<a href="/tags/timezone">timezone</a>
</div> </div>
</div> </div>
@ -336,25 +334,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/fix-zpool-device-busy-using-dmsetup/"> <a class="bubble" href="/post/transfer-file-content-using-xclip-in-terminal/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/fix-zpool-device-busy-using-dmsetup/"> <a href="/post/transfer-file-content-using-xclip-in-terminal/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/fix-zpool-device-busy-using-dmsetup/">[筆記] 解決無法建立zpool 的錯誤 / Fix Zpool Device Busy Using dmsetup</a></h3> <h3><a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-04-01</span> <span class="date moment">2019-05-17</span>
@ -363,7 +361,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a> <a href="/categories/linux">linux</a>
</span> </span>
@ -374,16 +372,18 @@
</div> </div>
<p>今天把其中一台proxmox 加上10G 光纖網卡準備和另一台proxmox 組成10G 環境進行測試</p> <p>工作上常會需要用ssh登入遠端主機檢查LOG有必要的時候還要把log複製回本機來處理。</p>
<p>想說把本機的zpool 拆掉重新建立一個raid0 的空間來做clone/migrate</p> <p>以前都是傻傻的用 scp 傳檔案</p>
<p>可是一直出現device busy的錯誤訊息</p> <p>之前就記得有這個xclip/xsel 可以用,但是一直沒有弄清楚怎麼執行</p>
<p>早上研究了一下,順便做個筆記。</p>
<p></p> <p></p>
<a href="/post/fix-zpool-device-busy-using-dmsetup/" class="more"></a> <a href="/post/transfer-file-content-using-xclip-in-terminal/" class="more"></a>
</div> </div>
@ -397,7 +397,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/zfs">zfs</a> <a href="/tags/linux">linux</a>
</div> </div>
</div> </div>
@ -413,25 +413,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/transfer-cent62-using-rsync/"> <a class="bubble" href="/post/inx-collect-detail-hardware-info/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/transfer-cent62-using-rsync/"> <a href="/post/inx-collect-detail-hardware-info/">
<img src="/images/post-default-9.jpg" alt=""> <img src="/images/post-default-10.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/transfer-cent62-using-rsync/">[筆記] 用rsync 移轉 centos 6.2的老機器 Transfer Cent6.2 using rsync</a></h3> <h3><a href="/post/inx-collect-detail-hardware-info/">[筆記] inxi 蒐集詳盡的硬體資訊 / inxi Collect Detail Hardware Info</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-03-27</span> <span class="date moment">2019-04-23</span>
@ -451,13 +451,20 @@
</div> </div>
<p>公司的一台老伺服器空間不足了,要執行指令都會中斷,所以想要擴充空間。</p> <p>最近因為一直碰到硬碟故障的問題算起來那一批同時購買的5X顆 seagate 2T硬碟已經有一半以上故障返修了&hellip;.</p>
<p>看起來不難搞,事實上&hellip;.. <p>然後又因為一直沒有添購新的硬碟,只能用這些快過保/已過保的撐著</p>
</p>
<p>所以最近不斷的在更換機器內的硬碟,而且還沒有熱插拔!</p>
<a href="/post/transfer-cent62-using-rsync/" class="more"></a> <p>也導致原本負責處理盤點資產的同事困擾,因為跟手邊的紀錄已經對不起來了</p>
<p>然後就變成要對資產的時候,需要一台一台登入,然後去下不同的指令,取得想要的硬體資訊,超級麻煩的!</p>
<p></p>
<a href="/post/inx-collect-detail-hardware-info/" class="more"></a>
</div> </div>
@ -471,10 +478,12 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/centos">centos</a>
<a href="/tags/linux">linux</a> <a href="/tags/linux">linux</a>
<a href="/tags/bsd">bsd</a>
<a href="/tags/inventory">inventory</a>
</div> </div>
</div> </div>
@ -489,30 +498,36 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/command_to_test_main_ssl/"> <a class="bubble" href="/post/log-all-bash-commands/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/command_to_test_main_ssl/"> <a href="/post/log-all-bash-commands/">
<img src="/images/post-default-10.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a></h3> <h3><a href="/post/log-all-bash-commands/">[筆記] 紀錄所有下過的指令、時間 / Log All commands with timestamp</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-03-20</span> <span class="date moment">2019-04-23</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
@ -521,22 +536,35 @@
</div> </div>
<p>今天老闆出國發slack說手機不能寄信看了一下似乎是因為用GMAIL的APP來收信</p> <p>今天發生一件有點詭異的事情,本來應該要經過某個指令才會產生的檔案</p>
<p>然後google 不知道跟人家改了什麼,結果不接受原本的認證了&hellip; WTF &hellip;.</p> <p>居然不知為何自己產生了,在我記憶中沒有去執行過那個指令</p>
<p>然後,這問題應該很久了,結果現在才在講 &hellip;.</p> <p>翻了一下 bash_history ,裡面也只有下過哪些指令,沒有紀錄時間,完全沒有參考價值(攤手)</p>
<p>所以翻了一下網路至少把這兩台主要跑ansible的機器的log功能補上紀錄所有指令以及時間的部份</p>
<a href="/post/command_to_test_main_ssl/" class="more"></a> <p></p>
<a href="/post/log-all-bash-commands/" class="more"></a>
</div> </div>
<div class="footer no-tags"> <div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/log">log</a>
</div>
</div>
@ -549,25 +577,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/install-timeshift-on-ubuntu1804/"> <a class="bubble" href="/post/fix-zpool-device-busy-using-dmsetup/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/install-timeshift-on-ubuntu1804/"> <a href="/post/fix-zpool-device-busy-using-dmsetup/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a></h3> <h3><a href="/post/fix-zpool-device-busy-using-dmsetup/">[筆記] 解決無法建立zpool 的錯誤 / Fix Zpool Device Busy Using dmsetup</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-03-11</span> <span class="date moment">2019-04-01</span>
@ -587,18 +615,16 @@
</div> </div>
<p>最近要開始測試client安裝 ubuntu 18.04 的 ansible playbook</p> <p>今天把其中一台proxmox 加上10G 光纖網卡準備和另一台proxmox 組成10G 環境進行測試</p>
<p>因為要不斷的修正所以想到一直有在自己電腦上執行的timeshift這個軟體</p>
<p>可以很簡單快速的備份、恢復系統狀態</p> <p>想說把本機的zpool 拆掉重新建立一個raid0 的空間來做clone/migrate</p>
<p>可是不知道為什麼在ubuntu 18.04 上安裝就是會發生錯誤&hellip;.</p> <p>可是一直出現device busy的錯誤訊息</p>
<p></p> <p></p>
<a href="/post/install-timeshift-on-ubuntu1804/" class="more"></a> <a href="/post/fix-zpool-device-busy-using-dmsetup/" class="more"></a>
</div> </div>
@ -612,9 +638,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/ubuntu">ubuntu</a> <a href="/tags/zfs">zfs</a>
<a href="/tags/backup">backup</a>
</div> </div>
</div> </div>
@ -630,25 +654,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/"> <a class="bubble" href="/post/transfer-cent62-using-rsync/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/"> <a href="/post/transfer-cent62-using-rsync/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-9.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/">用DELL 6 i/R 建立RAID並在上面安裝ubuntu 18.04 </a></h3> <h3><a href="/post/transfer-cent62-using-rsync/">[筆記] 用rsync 移轉 centos 6.2的老機器 Transfer Cent6.2 using rsync</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-01-16</span> <span class="date moment">2019-03-27</span>
@ -668,13 +692,13 @@
</div> </div>
<p>買了一張 DELL 6/iR 低階的raid 卡</p> <p>公司的一台老伺服器空間不足了,要執行指令都會中斷,所以想要擴充空間。</p>
<p>來測試把系統裝在硬體做的RAID上結果沒想到居然不能開機&hellip; <p>看起來不難搞,事實上&hellip;..
</p> </p>
<a href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/" class="more"></a> <a href="/post/transfer-cent62-using-rsync/" class="more"></a>
</div> </div>
@ -688,7 +712,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/ubuntu">ubuntu</a> <a href="/tags/centos">centos</a>
<a href="/tags/linux">linux</a>
</div> </div>
</div> </div>
@ -704,37 +730,31 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/ubuntu-1804-install-root-on-raid/"> <a class="bubble" href="/post/command_to_test_main_ssl/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/ubuntu-1804-install-root-on-raid/"> <a href="/post/command_to_test_main_ssl/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-10.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/ubuntu-1804-install-root-on-raid/">Ubuntu 1804 Install Root on Raid</a></h3> <h3><a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-01-16</span> <span class="date moment">2019-03-20</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span> <span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
@ -742,35 +762,22 @@
</div> </div>
<p>最近在弄一台機器想要把ubuntu 18.04 安裝在software raid上</p> <p>今天老闆出國發slack說手機不能寄信看了一下似乎是因為用GMAIL的APP來收信</p>
<p>因為新開的機器大部分都是在proxmox上所以很少碰實體機器了</p>
<p>結果在安裝過程中做raid碰到一些問題來紀錄一下</p> <p>然後google 不知道跟人家改了什麼,結果不接受原本的認證了&hellip; WTF &hellip;.</p>
<p></p> <p>然後,這問題應該很久了,結果現在才在講 &hellip;.</p>
<a href="/post/ubuntu-1804-install-root-on-raid/" class="more"></a> <a href="/post/command_to_test_main_ssl/" class="more"></a>
</div> </div>
<div class="footer"> <div class="footer no-tags">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/ubuntu">ubuntu</a>
<a href="/tags/raid">raid</a>
</div>
</div>
@ -783,25 +790,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/smartd-failed-to-start-in-freenas/"> <a class="bubble" href="/post/install-timeshift-on-ubuntu1804/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/smartd-failed-to-start-in-freenas/"> <a href="/post/install-timeshift-on-ubuntu1804/">
<img src="/images/post-default-2.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/smartd-failed-to-start-in-freenas/">[筆記] Freenas Smartd 啟動失敗 Smartd Failed to Start in Freenas</a></h3> <h3><a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-12-13</span> <span class="date moment">2019-03-11</span>
@ -821,18 +828,18 @@
</div> </div>
<p>這兩天在弄兩台Freenas 準備當作Proxmox 的Storage &amp; Server Backup</p> <p>最近要開始測試client安裝 ubuntu 18.04 的 ansible playbook</p>
<p>因為伺服器的限制只能接六個SATA我接了六個2T的硬碟做raid10</p> <p>因為要不斷的修正所以想到一直有在自己電腦上執行的timeshift這個軟體</p>
<p>然後把Freenas 安裝在隨身碟上</p> <p>可以很簡單快速的備份、恢復系統狀態</p>
<p>不過會一直出現Smartd failed to start 的錯誤訊息</p> <p>可是不知道為什麼在ubuntu 18.04 上安裝就是會發生錯誤&hellip;.</p>
<p></p> <p></p>
<a href="/post/smartd-failed-to-start-in-freenas/" class="more"></a> <a href="/post/install-timeshift-on-ubuntu1804/" class="more"></a>
</div> </div>
@ -846,7 +853,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/freenas">freenas</a> <a href="/tags/ubuntu">ubuntu</a>
<a href="/tags/backup">backup</a>
</div> </div>
</div> </div>
@ -886,31 +895,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -923,7 +932,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -93,25 +93,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/incredibly-slow-mdadm-rebuild/"> <a class="bubble" href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/incredibly-slow-mdadm-rebuild/"> <a href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/">
<img src="/images/post-default-1.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/incredibly-slow-mdadm-rebuild/">[碎念] mdadm 超級慢的rebuild 速度 Incredibly Slow mdadm Rebuild</a></h3> <h3><a href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/">用DELL 6 i/R 建立RAID並在上面安裝ubuntu 18.04 </a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-12-12</span> <span class="date moment">2019-01-16</span>
@ -120,7 +120,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/%E7%A2%8E%E5%BF%B5">碎念</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span> </span>
@ -131,20 +131,13 @@
</div> </div>
<p>最近在做一台老機器的P2V</p> <p>買了一張 DELL 6/iR 低階的raid 卡</p>
<p>偏偏user說不能關機所以我用dd + ssh 做線上移轉</p>
<p>這部份有空再來寫</p>
<p>只是因為原來的設定有用mdadm 做raid1</p>
<p>這部份導致移轉過去proxmox 後會出現raid degrade 導致無法正常開機</p>
<p></p> <p>來測試把系統裝在硬體做的RAID上結果沒想到居然不能開機&hellip;
</p>
<a href="/post/incredibly-slow-mdadm-rebuild/" class="more"></a> <a href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/" class="more"></a>
</div> </div>
@ -158,7 +151,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/mdadm">mdadm</a> <a href="/tags/ubuntu">ubuntu</a>
</div> </div>
</div> </div>
@ -174,25 +167,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/create-portable-vim-environment/"> <a class="bubble" href="/post/ubuntu-1804-install-root-on-raid/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/create-portable-vim-environment/"> <a href="/post/ubuntu-1804-install-root-on-raid/">
<img src="/images/post-default-8.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/create-portable-vim-environment/">[筆記] 建立一個帶著走的 VIM 環境 Creating portable Vim environment</a></h3> <h3><a href="/post/ubuntu-1804-install-root-on-raid/">Ubuntu 1804 Install Root on Raid</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-12-07</span> <span class="date moment">2019-01-16</span>
@ -212,18 +205,16 @@
</div> </div>
<p>因為工作的關係現在很多時間都花在VIM的操作上</p> <p>最近在弄一台機器想要把ubuntu 18.04 安裝在software raid上</p>
<p>所以之前花了滿多時間調整出一個適合自己的VIM環境</p>
<p>原本的作法是把這個設定好的環境丟到自己建立的gitea 上面</p> <p>因為新開的機器大部分都是在proxmox上所以很少碰實體機器了</p>
<p>然後每到一台新的機器就要去clone 下來</p> <p>結果在安裝過程中做raid碰到一些問題來紀錄一下</p>
<p></p> <p></p>
<a href="/post/create-portable-vim-environment/" class="more"></a> <a href="/post/ubuntu-1804-install-root-on-raid/" class="more"></a>
</div> </div>
@ -237,7 +228,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/vim">vim</a> <a href="/tags/ubuntu">ubuntu</a>
<a href="/tags/raid">raid</a>
</div> </div>
</div> </div>
@ -253,25 +246,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/synology-ds415-repair-cost/"> <a class="bubble" href="/post/smartd-failed-to-start-in-freenas/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/synology-ds415-repair-cost/"> <a href="/post/smartd-failed-to-start-in-freenas/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-2.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/synology-ds415-repair-cost/">[雜念] 群暉 Synology NAS DS 415&#43; 誇張的維修費用</a></h3> <h3><a href="/post/smartd-failed-to-start-in-freenas/">[筆記] Freenas Smartd 啟動失敗 Smartd Failed to Start in Freenas</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-12-04</span> <span class="date moment">2018-12-13</span>
@ -280,7 +273,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/%E7%BE%A4%E6%9A%89">群暉</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span> </span>
@ -291,26 +284,18 @@
</div> </div>
<p>前幾天公司的一台 Synology DS 415+ 發生異常</p> <p>這兩天在弄兩台Freenas 準備當作Proxmox 的Storage &amp; Server Backup</p>
<p>注意到的時候,四顆硬碟燈號都不斷的在閃爍</p>
<p>但是已經無法登入系統</p>
<p>重開機之後更慘,四顆硬碟燈號全部橘燈恆亮</p>
<p>底下的電源藍燈不斷的在閃爍</p>
<p>雖然我一再表示不希望送修了</p> <p>因為伺服器的限制只能接六個SATA我接了六個2T的硬碟做raid10</p>
<p>一來是已經過保二來是DS415+ 本身就有intel bug三來是因為對synology的NAS 實在沒有愛&hellip;</p> <p>然後把Freenas 安裝在隨身碟上</p>
<p>不過主管還是希望能夠先問群暉維修的費用多少</p> <p>不過會一直出現Smartd failed to start 的錯誤訊息</p>
<p></p> <p></p>
<a href="/post/synology-ds415-repair-cost/" class="more"></a> <a href="/post/smartd-failed-to-start-in-freenas/" class="more"></a>
</div> </div>
@ -324,11 +309,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/nas">NAS</a> <a href="/tags/freenas">freenas</a>
<a href="/tags/%E7%BE%A4%E6%9A%89">群暉</a>
<a href="/tags/synology">synology</a>
</div> </div>
</div> </div>
@ -344,25 +325,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/10g-lab-using-proxmox-and-mellanox/"> <a class="bubble" href="/post/incredibly-slow-mdadm-rebuild/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/10g-lab-using-proxmox-and-mellanox/"> <a href="/post/incredibly-slow-mdadm-rebuild/">
<img src="/images/post-default-03.jpg" alt=""> <img src="/images/post-default-1.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a></h3> <h3><a href="/post/incredibly-slow-mdadm-rebuild/">[碎念] mdadm 超級慢的rebuild 速度 Incredibly Slow mdadm Rebuild</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-11-30</span> <span class="date moment">2018-12-12</span>
@ -371,7 +352,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a> <a href="/categories/%E7%A2%8E%E5%BF%B5">碎念</a>
</span> </span>
@ -382,28 +363,20 @@
</div> </div>
<p>想做一個 10G 的 LAB 環境出來已經很久了。</p> <p>最近在做一台老機器的P2V</p>
<p>只是礙於10G RJ45的卡太貴了然後光纖的種類又太複雜</p>
<p>如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)</p>
<p>所以一直沒有付諸行動。</p>
<p>硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡以在台灣的價格來說算很便宜的 (550)</p>
<p>聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位</p> <p>偏偏user說不能關機所以我用dd + ssh 做線上移轉</p>
<p>就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線</p> <p>這部份有空再來寫</p>
<p>就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到</p> <p>只是因為原來的設定有用mdadm 做raid1</p>
<p>今天就花了點時間測試一下</p> <p>這部份導致移轉過去proxmox 後會出現raid degrade 導致無法正常開機</p>
<p></p> <p></p>
<a href="/post/10g-lab-using-proxmox-and-mellanox/" class="more"></a> <a href="/post/incredibly-slow-mdadm-rebuild/" class="more"></a>
</div> </div>
@ -417,11 +390,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/10g">10G</a> <a href="/tags/mdadm">mdadm</a>
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
<a href="/tags/mellanox">mellanox</a>
</div> </div>
</div> </div>
@ -437,25 +406,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/ansible-selectattr-filter/"> <a class="bubble" href="/post/create-portable-vim-environment/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/ansible-selectattr-filter/"> <a href="/post/create-portable-vim-environment/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-8.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a></h3> <h3><a href="/post/create-portable-vim-environment/">[筆記] 建立一個帶著走的 VIM 環境 Creating portable Vim environment</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-11-29</span> <span class="date moment">2018-12-07</span>
@ -475,16 +444,18 @@
</div> </div>
<p>在上一篇 <a href="https://h.cowbay.org/post/ansible-selectattr/">Ansible how to use &lsquo;list&rsquo; in yaml file </a></p> <p>因為工作的關係,現很多時間都花在VIM的操作</p>
<p>有提到怎麼用 with_items / set_fact 來取得在yaml 檔案中的清單</p> <p>所以之前花了滿多時間調整出一個適合自己的VIM環境</p>
<p>不過就是有點醜</p> <p>原本的作法是把這個設定好的環境丟到自己建立的gitea 上面</p>
<p>然後每到一台新的機器就要去clone 下來</p>
<p></p> <p></p>
<a href="/post/ansible-selectattr-filter/" class="more"></a> <a href="/post/create-portable-vim-environment/" class="more"></a>
</div> </div>
@ -498,7 +469,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/ansible">ansible</a> <a href="/tags/vim">vim</a>
</div> </div>
</div> </div>
@ -514,25 +485,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/ansible-selectattr/"> <a class="bubble" href="/post/synology-ds415-repair-cost/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/ansible-selectattr/"> <a href="/post/synology-ds415-repair-cost/">
<img src="/images/post-default-1.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/ansible-selectattr/">[筆記] Ansible how to use &#39;list&#39; in yaml file </a></h3> <h3><a href="/post/synology-ds415-repair-cost/">[雜念] 群暉 Synology NAS DS 415&#43; 誇張的維修費用</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-11-27</span> <span class="date moment">2018-12-04</span>
@ -541,7 +512,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a> <a href="/categories/%E7%BE%A4%E6%9A%89">群暉</a>
</span> </span>
@ -552,55 +523,26 @@
</div> </div>
<p>這幾天在玩ansible 時,碰到一個問題</p> <p>前幾天公司的一台 Synology DS 415+ 發生異常</p>
<p>假如我有個yaml檔作為資料來源檔名是 abc.yml</p> <p>注意到的時候,四顆硬碟燈號都不斷的在閃爍</p>
<p>大概長這樣</p> <p>但是已經無法登入系統</p>
<pre><code> &quot;teams&quot;: [ <p>重開機之後更慘,四顆硬碟燈號全部橘燈恆亮</p>
{
&quot;chinese_name&quot;: &quot;TEAM1&quot;,
&quot;description&quot;: &quot;TEAM1&quot;,
&quot;gid&quot;: 10125,
&quot;location&quot;: [
&quot;hq&quot;
],
&quot;name&quot;: &quot;aa&quot;,
&quot;users&quot;: [
&quot;chen&quot;,
&quot;chou&quot;,
&quot;huani&quot;,
&quot;yey&quot;,
&quot;wa&quot;
]
},
{
&quot;chinese_name&quot;: &quot;TEAM2&quot;,
&quot;description&quot;: &quot;TEAM2&quot;,
&quot;gid&quot;: 10126,
&quot;location&quot;: [
&quot;hq&quot;
],
&quot;name&quot;: &quot;bb&quot;,
&quot;users&quot;: [
&quot;chhiao&quot;,
&quot;chgc&quot;,
&quot;chy&quot;,
&quot;hsi&quot;,
&quot;li&quot;,
&quot;li&quot;,
&quot;chgchi&quot;
]
}
]
</code></pre> <p>底下的電源藍燈不斷的在閃爍</p>
<p>雖然我一再表示不希望送修了</p>
<p>一來是已經過保二來是DS415+ 本身就有intel bug三來是因為對synology的NAS 實在沒有愛&hellip;</p>
<p>不過主管還是希望能夠先問群暉維修的費用多少</p>
<p></p> <p></p>
<a href="/post/ansible-selectattr/" class="more"></a> <a href="/post/synology-ds415-repair-cost/" class="more"></a>
</div> </div>
@ -614,9 +556,11 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/ansible">ansible</a> <a href="/tags/nas">NAS</a>
<a href="/tags/linux">linux</a> <a href="/tags/%E7%BE%A4%E6%9A%89">群暉</a>
<a href="/tags/synology">synology</a>
</div> </div>
</div> </div>
@ -632,25 +576,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/change-preferred-language-in-firefox/"> <a class="bubble" href="/post/10g-lab-using-proxmox-and-mellanox/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/change-preferred-language-in-firefox/"> <a href="/post/10g-lab-using-proxmox-and-mellanox/">
<img src="/images/post-default-9.jpg" alt=""> <img src="/images/post-default-03.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/change-preferred-language-in-firefox/">[筆記] 為了metabase 修改 firefox 開啟網頁時使用的預設語言 change the preferred language in firefox for metabase</a></h3> <h3><a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-11-15</span> <span class="date moment">2018-11-30</span>
@ -670,18 +614,28 @@
</div> </div>
<p>最近在測試metabase記得幾個月前就有測試過</p> <p>想做一個 10G 的 LAB 環境出來已經很久了。</p>
<p>但是當時的界面和現在的樣子差很多,看樣子改版還滿勤勞的</p> <p>只是礙於10G RJ45的卡太貴了然後光纖的種類又太複雜</p>
<p>所以這次改用docker來建立根本五分鐘不到就建好了(挖鼻孔)</p> <p>如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)</p>
<p>不過呢,很討厭的是,一進去就發現語系採用的是簡體中文</p> <p>所以一直沒有付諸行動。</p>
<p>硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡以在台灣的價格來說算很便宜的 (550)</p>
<p>聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位</p>
<p>就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線</p>
<p>就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到</p>
<p>今天就花了點時間測試一下</p>
<p></p> <p></p>
<a href="/post/change-preferred-language-in-firefox/" class="more"></a> <a href="/post/10g-lab-using-proxmox-and-mellanox/" class="more"></a>
</div> </div>
@ -695,11 +649,11 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a> <a href="/tags/10g">10G</a>
<a href="/tags/firefox">firefox</a> <a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
<a href="/tags/metabase">metabase</a> <a href="/tags/mellanox">mellanox</a>
</div> </div>
</div> </div>
@ -715,25 +669,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/copy_role_in_pgsql/"> <a class="bubble" href="/post/ansible-selectattr-filter/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/copy_role_in_pgsql/"> <a href="/post/ansible-selectattr-filter/">
<img src="/images/post-default-7.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/copy_role_in_pgsql/">PostgreSQL 直接從已經存在的使用者複製權限到另一個使用者</a></h3> <h3><a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-11-12</span> <span class="date moment">2018-11-29</span>
@ -753,18 +707,16 @@
</div> </div>
<p>因為工作上的需求有個資料庫需要開放給不同team的人去存取</p> <p>在上一篇 <a href="https://h.cowbay.org/post/ansible-selectattr/">Ansible how to use &lsquo;list&rsquo; in yaml file </a></p>
<p>雖然都是在同一台機器上的同一個資料庫</p>
<p>但是希望能夠不同team的人用不同的資料庫使用者</p> <p>有提到怎麼用 with_items / set_fact 來取得在yaml 檔案中的清單</p>
<p>這樣萬一出事,會比較好抓兇手??</p> <p>不過就是有點醜</p>
<p></p> <p></p>
<a href="/post/copy_role_in_pgsql/" class="more"></a> <a href="/post/ansible-selectattr-filter/" class="more"></a>
</div> </div>
@ -778,9 +730,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/psql">psql</a> <a href="/tags/ansible">ansible</a>
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
</div> </div>
</div> </div>
@ -796,25 +746,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/weird-client-server-connection/"> <a class="bubble" href="/post/ansible-selectattr/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/weird-client-server-connection/"> <a href="/post/ansible-selectattr/">
<img src="/images/post-default-4.jpg" alt=""> <img src="/images/post-default-1.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/weird-client-server-connection/">[筆記] 詭異的client&amp;server間連線的問題或許跟KVM有關係</a></h3> <h3><a href="/post/ansible-selectattr/">[筆記] Ansible how to use &#39;list&#39; in yaml file </a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-11-08</span> <span class="date moment">2018-11-27</span>
@ -834,24 +784,55 @@
</div> </div>
<p>這是發生在一個夜黑風高的寂寥深夜&hellip;.. ( What The FXXX &hellip; )</p> <p>這幾天在玩ansible 時,碰到一個問題</p>
<p>來到這個環境之後,有一個很詭異的狀況一直困擾著我</p>
<p>在每個分公司都會有一台伺服器作為KVM Host</p>
<p>上面跑兩台VM一台作為ansible controller (目前沒作用)</p> <p>假如我有個yaml檔作為資料來源檔名是 abc.yml</p>
<p>另一台作為這邊所謂的 &ldquo;Build Server&rdquo;</p> <p>大概長這樣</p>
<p>用途包含了DHCP Server / Proxy Server (squid3) / APT Proxy (squid-deb-proxy)</p> <pre><code> &quot;teams&quot;: [
{
&quot;chinese_name&quot;: &quot;TEAM1&quot;,
&quot;description&quot;: &quot;TEAM1&quot;,
&quot;gid&quot;: 10125,
&quot;location&quot;: [
&quot;hq&quot;
],
&quot;name&quot;: &quot;aa&quot;,
&quot;users&quot;: [
&quot;chen&quot;,
&quot;chou&quot;,
&quot;huani&quot;,
&quot;yey&quot;,
&quot;wa&quot;
]
},
{
&quot;chinese_name&quot;: &quot;TEAM2&quot;,
&quot;description&quot;: &quot;TEAM2&quot;,
&quot;gid&quot;: 10126,
&quot;location&quot;: [
&quot;hq&quot;
],
&quot;name&quot;: &quot;bb&quot;,
&quot;users&quot;: [
&quot;chhiao&quot;,
&quot;chgc&quot;,
&quot;chy&quot;,
&quot;hsi&quot;,
&quot;li&quot;,
&quot;li&quot;,
&quot;chgchi&quot;
]
}
]
<p>問題就發生在這台 Build Server 上&hellip;</p> </code></pre>
<p></p> <p></p>
<a href="/post/weird-client-server-connection/" class="more"></a> <a href="/post/ansible-selectattr/" class="more"></a>
</div> </div>
@ -865,9 +846,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/ubuntu">ubuntu</a> <a href="/tags/ansible">ansible</a>
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a> <a href="/tags/linux">linux</a>
</div> </div>
</div> </div>
@ -883,25 +864,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/nice-du-report-tool-durep/"> <a class="bubble" href="/post/change-preferred-language-in-firefox/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/nice-du-report-tool-durep/"> <a href="/post/change-preferred-language-in-firefox/">
<img src="/images/post-default-9.jpg" alt=""> <img src="/images/post-default-9.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a></h3> <h3><a href="/post/change-preferred-language-in-firefox/">[筆記] 為了metabase 修改 firefox 開啟網頁時使用的預設語言 change the preferred language in firefox for metabase</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-11-06</span> <span class="date moment">2018-11-15</span>
@ -921,15 +902,18 @@
</div> </div>
<p>最近在重新規劃前人留下的backup爛攤子 <p>最近在測試metabase記得幾個月前就有測試過</p>
各個伺服器統一備份到一台backup storage
想說如果每天能夠看到backup storage的磁碟用量的話 <p>但是當時的界面和現在的樣子差很多,看樣子改版還滿勤勞的</p>
就可以抓出備份空間成長速度、推估需要多大的磁碟空間
找了一些工具,結果發現 durep 這個 ubuntu 內建的工具 <p>所以這次改用docker來建立根本五分鐘不到就建好了(挖鼻孔)</p>
基本上可以滿足我的需求</p>
<p>不過呢,很討厭的是,一進去就發現語系採用的是簡體中文</p>
<p></p>
<a href="/post/nice-du-report-tool-durep/" class="more"></a> <a href="/post/change-preferred-language-in-firefox/" class="more"></a>
</div> </div>
@ -943,9 +927,11 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/linux">linux</a> <a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
<a href="/tags/firefox">firefox</a>
<a href="/tags/du">du</a> <a href="/tags/metabase">metabase</a>
</div> </div>
</div> </div>
@ -985,31 +971,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -1022,7 +1008,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -91,6 +91,252 @@
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/copy_role_in_pgsql/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/copy_role_in_pgsql/">
<img src="/images/post-default-7.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/copy_role_in_pgsql/">PostgreSQL 直接從已經存在的使用者複製權限到另一個使用者</a></h3>
<div class="meta">
<span class="date moment">2018-11-12</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>因為工作上的需求有個資料庫需要開放給不同team的人去存取</p>
<p>雖然都是在同一台機器上的同一個資料庫</p>
<p>但是希望能夠不同team的人用不同的資料庫使用者</p>
<p>這樣萬一出事,會比較好抓兇手??</p>
<p></p>
<a href="/post/copy_role_in_pgsql/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/psql">psql</a>
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/weird-client-server-connection/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/weird-client-server-connection/">
<img src="/images/post-default-4.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/weird-client-server-connection/">[筆記] 詭異的client&amp;server間連線的問題或許跟KVM有關係</a></h3>
<div class="meta">
<span class="date moment">2018-11-08</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>這是發生在一個夜黑風高的寂寥深夜&hellip;.. ( What The FXXX &hellip; )</p>
<p>來到這個環境之後,有一個很詭異的狀況一直困擾著我</p>
<p>在每個分公司都會有一台伺服器作為KVM Host</p>
<p>上面跑兩台VM一台作為ansible controller (目前沒作用)</p>
<p>另一台作為這邊所謂的 &ldquo;Build Server&rdquo;</p>
<p>用途包含了DHCP Server / Proxy Server (squid3) / APT Proxy (squid-deb-proxy)</p>
<p>問題就發生在這台 Build Server 上&hellip;</p>
<p></p>
<a href="/post/weird-client-server-connection/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/ubuntu">ubuntu</a>
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/nice-du-report-tool-durep/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/nice-du-report-tool-durep/">
<img src="/images/post-default-9.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a></h3>
<div class="meta">
<span class="date moment">2018-11-06</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>最近在重新規劃前人留下的backup爛攤子
各個伺服器統一備份到一台backup storage
想說如果每天能夠看到backup storage的磁碟用量的話
就可以抓出備份空間成長速度、推估需要多大的磁碟空間
找了一些工具,結果發現 durep 這個 ubuntu 內建的工具
基本上可以滿足我的需求</p>
<a href="/post/nice-du-report-tool-durep/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/linux">linux</a>
<a href="/tags/du">du</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/bookstack-docker/"> <a class="bubble" href="/post/bookstack-docker/">
@ -366,31 +612,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -403,7 +649,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -102,7 +102,7 @@
<hr> <hr>
<ul id="all-categories"> <ul id="all-categories">
<li><a href="/author/eric-chang">Eric chang (33)</a></li> <li><a href="/author/eric-chang">Eric chang (36)</a></li>
</ul> </ul>
</div> </div>
@ -122,31 +122,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -159,7 +159,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -12,7 +12,7 @@
<item> <item>
<title>Eric Chang</title> <title>Eric Chang</title>
<link>https://h.cowbay.org/author/eric-chang/</link> <link>https://h.cowbay.org/author/eric-chang/</link>
<pubDate>Fri, 16 Aug 2019 10:18:06 +0800</pubDate> <pubDate>Fri, 23 Aug 2019 14:54:13 +0800</pubDate>
<guid>https://h.cowbay.org/author/eric-chang/</guid> <guid>https://h.cowbay.org/author/eric-chang/</guid>
<description></description> <description></description>

@ -351,31 +351,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -388,7 +388,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -112,7 +112,7 @@
<li><a href="/categories/%E7%A2%8E%E5%BF%B5">碎念 (1)</a></li> <li><a href="/categories/%E7%A2%8E%E5%BF%B5">碎念 (1)</a></li>
<li><a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a></li> <li><a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a></li>
<li><a href="/categories/%E7%BE%A4%E6%9A%89">群暉 (1)</a></li> <li><a href="/categories/%E7%BE%A4%E6%9A%89">群暉 (1)</a></li>
@ -134,31 +134,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -171,7 +171,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -58,7 +58,7 @@
<item> <item>
<title>筆記</title> <title>筆記</title>
<link>https://h.cowbay.org/categories/%E7%AD%86%E8%A8%98/</link> <link>https://h.cowbay.org/categories/%E7%AD%86%E8%A8%98/</link>
<pubDate>Fri, 16 Aug 2019 10:18:06 +0800</pubDate> <pubDate>Fri, 23 Aug 2019 14:54:13 +0800</pubDate>
<guid>https://h.cowbay.org/categories/%E7%AD%86%E8%A8%98/</guid> <guid>https://h.cowbay.org/categories/%E7%AD%86%E8%A8%98/</guid>
<description></description> <description></description>

@ -192,31 +192,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -229,7 +229,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -194,31 +194,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -231,7 +231,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -181,31 +181,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -218,7 +218,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -194,31 +194,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -231,7 +231,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -93,25 +93,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/"> <a class="bubble" href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/"> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">
<img src="/images/post-default-8.jpg" alt=""> <img src="/images/post-default-4.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a></h3> <h3><a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-08-16</span> <span class="date moment">2019-08-23</span>
@ -131,24 +131,12 @@
</div> </div>
<p>最近一直在玩 wireguard 先前把各個分公司和總部的VPN 改用 wireguard 建立</p> <p>這篇繼續講 pgbarman 透過 rsync/ssh 來備份 postgresql 資料庫的方式</p>
<p>想說再打個VPN tunnel 來當跳板連 ptt 好了</p>
<p>因為wireguard 建立很簡單,而且又可以指定想要繞出去的路由,不會影響原本的網路環境</p>
<p>本來是在vultr 的VPS上面建立這個tunnel</p>
<p>但是那台VPS連去ptt 很頓,卡卡的</p>
<p>所以改用google cloud platform 的free tier 來做</p>
<p>反正只是拿來當跳板,不會有什麼流量、運算產生,可以一直保持免費的狀態</p>
<p></p> <p></p>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/" class="more"></a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/" class="more"></a>
</div> </div>
@ -162,9 +150,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/vpn">vpn</a> <a href="/tags/postgresql">postgresql</a>
<a href="/tags/wireguard">wireguard</a> <a href="/tags/pgbarman">pgbarman</a>
</div> </div>
</div> </div>
@ -180,25 +168,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/multiple-site-to-site-vpn-using-wireguard/"> <a class="bubble" href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/multiple-site-to-site-vpn-using-wireguard/"> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">
<img src="/images/post-default-10.jpg" alt=""> <img src="/images/post-default-4.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a></h3> <h3><a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-08-13</span> <span class="date moment">2019-08-23</span>
@ -218,22 +206,18 @@
</div> </div>
<p>因為實在受夠了現在用的 openwrt + strongswan 建立 IPSec VPN</p> <p>很久以前就有看到這個用來備份postgresql 的 pgbarman</p>
<p>雖然說其實沒有什麼不好,但是畢竟不是我建立的,而當初的文件也都不見了</p>
<p>完全沒辦法了解當時設計的邏輯造成後續debug 困難</p>
<p>可以想像一下一台VPN router ping 不到remote、ping不到internet、甚至ping不到自己 是要怎麼debug !?(翻桌</p> <p><a href="https://www.pgbarman.org/">https://www.pgbarman.org/</a></p>
<p>之前買了兩台edgerouter X 拿來玩了一下 wireguard感覺還不錯不過只有測試到點對點</p> <p>前幾天老闆在slack 上面又提到,所以這次就花了點時間來玩玩看</p>
<p>這次試試看躲在gateway後面看看能不能建立多點的VPN環境</p> <p>不過呢,雖然有弄起來,但是還真不知道有些問題是怎麼解決的&hellip;</p>
<p></p> <p></p>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/" class="more"></a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/" class="more"></a>
</div> </div>
@ -247,11 +231,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/vpn">vpn</a> <a href="/tags/postgresql">postgresql</a>
<a href="/tags/ubuntu">ubuntu</a> <a href="/tags/pgbarman">pgbarman</a>
<a href="/tags/wireguard">wireguard</a>
</div> </div>
</div> </div>
@ -267,25 +249,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/"> <a class="bubble" href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/"> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">
<img src="/images/post-default-5.jpg" alt=""> <img src="/images/post-default-7.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a></h3> <h3><a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-08-06</span> <span class="date moment">2019-08-20</span>
@ -305,30 +287,18 @@
</div> </div>
<p>之前總部和分公司之間 是用buffalo 的小AP 灌 openwrt</p> <p>因為老闆說要試試看用GPU 來跑postgresql 威力</p>
<p>然後用strongswan 來打 IPSEC site to site VPN</p>
<p>config 看起來不是很難 (只是看起來)</p> <p>手邊剛好有一張 geforce gt 720</p>
<p>但是實際上已經找不到當初的文件</p> <p>一開始沒想太多看到有這張卡的驅動程式然後CUDA也有支援</p>
<p>所以要維護很困難(光那些RSA KEY 就不知道為何、如何產生)</p> <p>就直接從桌機拔下來接去LAB Server ,然後就開始一連串的難關了&hellip;</p>
<p>後來採購了兩台edgerouter X 做測試</p>
<p>也用openvpn 成功的建立了 site to site VPN</p>
<p>本來想說 openvpn 已經夠簡單了</p>
<p>今天看到文章說用wireguard 可以更簡單</p>
<p>於是研究了一下,發現還真的很簡單!</p>
<p></p> <p></p>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/" class="more"></a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/" class="more"></a>
</div> </div>
@ -342,9 +312,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/vpn">vpn</a> <a href="/tags/nvidia">nvidia</a>
<a href="/tags/edgerouter">edgerouter</a>
</div> </div>
</div> </div>
@ -360,25 +328,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/send-mail-to-notify-after-pxe-install/"> <a class="bubble" href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/send-mail-to-notify-after-pxe-install/"> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-8.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a></h3> <h3><a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-07-31</span> <span class="date moment">2019-08-16</span>
@ -398,26 +366,24 @@
</div> </div>
<p>最近有個任務需要大量安裝client</p> <p>最近一直在玩 wireguard 先前把各個分公司和總部的VPN 改用 wireguard 建立</p>
<p>想用PXE來處理只要user開機按F12(acer 桌機) 選擇PXE Boot</p>
<p>然後選擇OS版本就可以自動進行安裝</p> <p>想說再打個VPN tunnel 來當跳板連 ptt 好了</p>
<p>安裝完成後會自動重新開機接著就用ansible來做user環境設定</p> <p>因為wireguard 建立很簡單,而且又可以指定想要繞出去的路由,不會影響原本的網路環境</p>
<p>PXE的部份本來是沒有什麼問題自動安裝系統的部份都做好了</p> <p>本來是在vultr 的VPS上面建立這個tunnel</p>
<p>可是因為這次的量比較多想說讓每一台在完成PXE安裝後的第一次重開機</p> <p>但是那台VPS連去ptt 很頓,卡卡的</p>
<p>就送出一封郵件來通知我說已經完成安裝可以執行ansible 了</p> <p>所以改用google cloud platform 的free tier 來做</p>
<p>看似很簡單的一件事情,卻搞了我兩天&hellip;.</p> <p>反正只是拿來當跳板,不會有什麼流量、運算產生,可以一直保持免費的狀態</p>
<p></p> <p></p>
<a href="/post/send-mail-to-notify-after-pxe-install/" class="more"></a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/" class="more"></a>
</div> </div>
@ -431,11 +397,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/pxe">PXE</a> <a href="/tags/vpn">vpn</a>
<a href="/tags/ubuntu">ubuntu</a>
<a href="/tags/linux">linux</a> <a href="/tags/wireguard">wireguard</a>
</div> </div>
</div> </div>
@ -451,25 +415,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/remote-management-system-meshcentral/"> <a class="bubble" href="/post/multiple-site-to-site-vpn-using-wireguard/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/remote-management-system-meshcentral/"> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">
<img src="/images/post-default-5.jpg" alt=""> <img src="/images/post-default-10.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/remote-management-system-meshcentral/">linux底下遠端遙控&amp;管理的好用系統 Meshcentral / Remote Management &amp; control system Meshcentral</a></h3> <h3><a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-06-20</span> <span class="date moment">2019-08-13</span>
@ -489,20 +453,22 @@
</div> </div>
<p>之前在LAN/windows環境下一直都是用ultravnc/winvnc/tigervnc之類的VNC軟體</p> <p>因為實在受夠了現在用的 openwrt + strongswan 建立 IPSec VPN</p>
<p>但是如果要過 internet 就會碰到各種開port的問題</p> <p>雖然說其實沒有什麼不好,但是畢竟不是我建立的,而當初的文件也都不見了</p>
<p>在這種環境下,就有了當時 teamviewer 的橫空出世</p> <p>完全沒辦法了解當時設計的邏輯造成後續debug 困難</p>
<p>解決了開PORT的問題讓被控端(通常是資訊技術相對弱勢,需要接受幫助的一方)不需要懂太多</p> <p>可以想像一下一台VPN router ping 不到remote、ping不到internet、甚至ping不到自己 是要怎麼debug !?(翻桌</p>
<p>只要下載teamviewer被控端開啟後報ID 給協助者就好了</p> <p>之前買了兩台edgerouter X 拿來玩了一下 wireguard感覺還不錯不過只有測試到點對點</p>
<p>這次試試看躲在gateway後面看看能不能建立多點的VPN環境</p>
<p></p> <p></p>
<a href="/post/remote-management-system-meshcentral/" class="more"></a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/" class="more"></a>
</div> </div>
@ -516,11 +482,11 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/linux">linux</a> <a href="/tags/vpn">vpn</a>
<a href="/tags/remote">remote</a> <a href="/tags/ubuntu">ubuntu</a>
<a href="/tags/meshcentral">meshcentral</a> <a href="/tags/wireguard">wireguard</a>
</div> </div>
</div> </div>
@ -536,25 +502,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/change-timezone-in-docker/"> <a class="bubble" href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/change-timezone-in-docker/"> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">
<img src="/images/post-default-3.jpg" alt=""> <img src="/images/post-default-5.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a></h3> <h3><a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-05-21</span> <span class="date moment">2019-08-06</span>
@ -574,12 +540,30 @@
</div> </div>
<p>最近一直在玩一些docker不過老是會碰到歪果扔寫的東西時區都不一致</p> <p>之前總部和分公司之間 是用buffalo 的小AP 灌 openwrt</p>
<p>有的用 UTC有的用localtime就是沒碰到用 Asia/Taipei 的&hellip;.</p> <p>然後用strongswan 來打 IPSEC site to site VPN</p>
<p>config 看起來不是很難 (只是看起來)</p>
<a href="/post/change-timezone-in-docker/" class="more"></a> <p>但是實際上已經找不到當初的文件</p>
<p>所以要維護很困難(光那些RSA KEY 就不知道為何、如何產生)</p>
<p>後來採購了兩台edgerouter X 做測試</p>
<p>也用openvpn 成功的建立了 site to site VPN</p>
<p>本來想說 openvpn 已經夠簡單了</p>
<p>今天看到文章說用wireguard 可以更簡單</p>
<p>於是研究了一下,發現還真的很簡單!</p>
<p></p>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/" class="more"></a>
</div> </div>
@ -593,9 +577,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/docker">docker</a> <a href="/tags/vpn">vpn</a>
<a href="/tags/timezone">timezone</a> <a href="/tags/edgerouter">edgerouter</a>
</div> </div>
</div> </div>
@ -611,25 +595,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/inx-collect-detail-hardware-info/"> <a class="bubble" href="/post/send-mail-to-notify-after-pxe-install/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/inx-collect-detail-hardware-info/"> <a href="/post/send-mail-to-notify-after-pxe-install/">
<img src="/images/post-default-10.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/inx-collect-detail-hardware-info/">[筆記] inxi 蒐集詳盡的硬體資訊 / inxi Collect Detail Hardware Info</a></h3> <h3><a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-04-23</span> <span class="date moment">2019-07-31</span>
@ -649,20 +633,26 @@
</div> </div>
<p>最近因為一直碰到硬碟故障的問題算起來那一批同時購買的5X顆 seagate 2T硬碟已經有一半以上故障返修了&hellip;.</p> <p>最近有個任務需要大量安裝client</p>
<p>然後又因為一直沒有添購新的硬碟,只能用這些快過保/已過保的撐著</p> <p>想用PXE來處理只要user開機按F12(acer 桌機) 選擇PXE Boot</p>
<p>所以最近不斷的在更換機器內的硬碟,而且還沒有熱插拔!</p> <p>然後選擇OS版本就可以自動進行安裝</p>
<p>也導致原本負責處理盤點資產的同事困擾,因為跟手邊的紀錄已經對不起來了</p> <p>安裝完成後會自動重新開機接著就用ansible來做user環境設定</p>
<p>然後就變成要對資產的時候,需要一台一台登入,然後去下不同的指令,取得想要的硬體資訊,超級麻煩的!</p> <p>PXE的部份本來是沒有什麼問題自動安裝系統的部份都做好了</p>
<p>可是因為這次的量比較多想說讓每一台在完成PXE安裝後的第一次重開機</p>
<p>就送出一封郵件來通知我說已經完成安裝可以執行ansible 了</p>
<p>看似很簡單的一件事情,卻搞了我兩天&hellip;.</p>
<p></p> <p></p>
<a href="/post/inx-collect-detail-hardware-info/" class="more"></a> <a href="/post/send-mail-to-notify-after-pxe-install/" class="more"></a>
</div> </div>
@ -676,11 +666,11 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/linux">linux</a> <a href="/tags/pxe">PXE</a>
<a href="/tags/bsd">bsd</a> <a href="/tags/ubuntu">ubuntu</a>
<a href="/tags/inventory">inventory</a> <a href="/tags/linux">linux</a>
</div> </div>
</div> </div>
@ -696,25 +686,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/log-all-bash-commands/"> <a class="bubble" href="/post/remote-management-system-meshcentral/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/log-all-bash-commands/"> <a href="/post/remote-management-system-meshcentral/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-5.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/log-all-bash-commands/">[筆記] 紀錄所有下過的指令、時間 / Log All commands with timestamp</a></h3> <h3><a href="/post/remote-management-system-meshcentral/">linux底下遠端遙控&amp;管理的好用系統 Meshcentral / Remote Management &amp; control system Meshcentral</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-04-23</span> <span class="date moment">2019-06-20</span>
@ -734,18 +724,20 @@
</div> </div>
<p>今天發生一件有點詭異的事情,本來應該要經過某個指令才會產生的檔案</p> <p>之前在LAN/windows環境下一直都是用ultravnc/winvnc/tigervnc之類的VNC軟體</p>
<p>但是如果要過 internet 就會碰到各種開port的問題</p>
<p>居然不知為何自己產生了,在我記憶中沒有去執行過那個指令</p> <p>在這種環境下,就有了當時 teamviewer 的橫空出世</p>
<p>翻了一下 bash_history ,裡面也只有下過哪些指令,沒有紀錄時間,完全沒有參考價值(攤手)</p> <p>解決了開PORT的問題讓被控端(通常是資訊技術相對弱勢,需要接受幫助的一方)不需要懂太多</p>
<p>所以翻了一下網路至少把這兩台主要跑ansible的機器的log功能補上紀錄所有指令以及時間的部份</p> <p>只要下載teamviewer被控端開啟後報ID 給協助者就好了</p>
<p></p> <p></p>
<a href="/post/log-all-bash-commands/" class="more"></a> <a href="/post/remote-management-system-meshcentral/" class="more"></a>
</div> </div>
@ -759,7 +751,11 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/log">log</a> <a href="/tags/linux">linux</a>
<a href="/tags/remote">remote</a>
<a href="/tags/meshcentral">meshcentral</a>
</div> </div>
</div> </div>
@ -775,25 +771,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/fix-zpool-device-busy-using-dmsetup/"> <a class="bubble" href="/post/change-timezone-in-docker/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/fix-zpool-device-busy-using-dmsetup/"> <a href="/post/change-timezone-in-docker/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-3.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/fix-zpool-device-busy-using-dmsetup/">[筆記] 解決無法建立zpool 的錯誤 / Fix Zpool Device Busy Using dmsetup</a></h3> <h3><a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-04-01</span> <span class="date moment">2019-05-21</span>
@ -813,16 +809,12 @@
</div> </div>
<p>今天把其中一台proxmox 加上10G 光纖網卡準備和另一台proxmox 組成10G 環境進行測試</p> <p>最近一直在玩一些docker不過老是會碰到歪果扔寫的東西時區都不一致</p>
<p>想說把本機的zpool 拆掉重新建立一個raid0 的空間來做clone/migrate</p>
<p>可是一直出現device busy的錯誤訊息</p>
<p></p> <p>有的用 UTC有的用localtime就是沒碰到用 Asia/Taipei 的&hellip;.</p>
<a href="/post/fix-zpool-device-busy-using-dmsetup/" class="more"></a> <a href="/post/change-timezone-in-docker/" class="more"></a>
</div> </div>
@ -836,7 +828,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/zfs">zfs</a> <a href="/tags/docker">docker</a>
<a href="/tags/timezone">timezone</a>
</div> </div>
</div> </div>
@ -852,25 +846,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/transfer-cent62-using-rsync/"> <a class="bubble" href="/post/inx-collect-detail-hardware-info/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/transfer-cent62-using-rsync/"> <a href="/post/inx-collect-detail-hardware-info/">
<img src="/images/post-default-9.jpg" alt=""> <img src="/images/post-default-10.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/transfer-cent62-using-rsync/">[筆記] 用rsync 移轉 centos 6.2的老機器 Transfer Cent6.2 using rsync</a></h3> <h3><a href="/post/inx-collect-detail-hardware-info/">[筆記] inxi 蒐集詳盡的硬體資訊 / inxi Collect Detail Hardware Info</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-03-27</span> <span class="date moment">2019-04-23</span>
@ -890,13 +884,20 @@
</div> </div>
<p>公司的一台老伺服器空間不足了,要執行指令都會中斷,所以想要擴充空間。</p> <p>最近因為一直碰到硬碟故障的問題算起來那一批同時購買的5X顆 seagate 2T硬碟已經有一半以上故障返修了&hellip;.</p>
<p>然後又因為一直沒有添購新的硬碟,只能用這些快過保/已過保的撐著</p>
<p>所以最近不斷的在更換機器內的硬碟,而且還沒有熱插拔!</p>
<p>也導致原本負責處理盤點資產的同事困擾,因為跟手邊的紀錄已經對不起來了</p>
<p>然後就變成要對資產的時候,需要一台一台登入,然後去下不同的指令,取得想要的硬體資訊,超級麻煩的!</p>
<p>看起來不難搞,事實上&hellip;.. <p></p>
</p>
<a href="/post/transfer-cent62-using-rsync/" class="more"></a> <a href="/post/inx-collect-detail-hardware-info/" class="more"></a>
</div> </div>
@ -910,10 +911,12 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/centos">centos</a>
<a href="/tags/linux">linux</a> <a href="/tags/linux">linux</a>
<a href="/tags/bsd">bsd</a>
<a href="/tags/inventory">inventory</a>
</div> </div>
</div> </div>
@ -950,31 +953,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -987,7 +990,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -5,11 +5,56 @@
<link>https://h.cowbay.org/categories/%E7%AD%86%E8%A8%98/</link> <link>https://h.cowbay.org/categories/%E7%AD%86%E8%A8%98/</link>
<description>Recent content in 筆記 on MCの飄狂山莊㊣</description> <description>Recent content in 筆記 on MCの飄狂山莊㊣</description>
<generator>Hugo -- gohugo.io</generator> <generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Fri, 16 Aug 2019 10:18:06 +0800</lastBuildDate> <lastBuildDate>Fri, 23 Aug 2019 14:54:13 +0800</lastBuildDate>
<atom:link href="https://h.cowbay.org/categories/%E7%AD%86%E8%A8%98/index.xml" rel="self" type="application/rss+xml" /> <atom:link href="https://h.cowbay.org/categories/%E7%AD%86%E8%A8%98/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</title>
<link>https://h.cowbay.org/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/</link>
<pubDate>Fri, 23 Aug 2019 14:54:13 +0800</pubDate>
<guid>https://h.cowbay.org/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/</guid>
<description>&lt;p&gt;這篇繼續講 pgbarman 透過 rsync/ssh 來備份 postgresql 資料庫的方式&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description>
</item>
<item>
<title>[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</title>
<link>https://h.cowbay.org/post/pgbarman-in-ubuntu-1804-postgresql-10/</link>
<pubDate>Fri, 23 Aug 2019 13:53:40 +0800</pubDate>
<guid>https://h.cowbay.org/post/pgbarman-in-ubuntu-1804-postgresql-10/</guid>
<description>&lt;p&gt;很久以前就有看到這個用來備份postgresql 的 pgbarman&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://www.pgbarman.org/&#34;&gt;https://www.pgbarman.org/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;前幾天老闆在slack 上面又提到,所以這次就花了點時間來玩玩看&lt;/p&gt;
&lt;p&gt;不過呢,雖然有弄起來,但是還真不知道有些問題是怎麼解決的&amp;hellip;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description>
</item>
<item>
<title>[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</title>
<link>https://h.cowbay.org/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/</link>
<pubDate>Tue, 20 Aug 2019 14:51:54 +0800</pubDate>
<guid>https://h.cowbay.org/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/</guid>
<description>&lt;p&gt;因為老闆說要試試看用GPU 來跑postgresql 威力&lt;/p&gt;
&lt;p&gt;手邊剛好有一張 geforce gt 720&lt;/p&gt;
&lt;p&gt;一開始沒想太多看到有這張卡的驅動程式然後CUDA也有支援&lt;/p&gt;
&lt;p&gt;就直接從桌機拔下來接去LAB Server ,然後就開始一連串的難關了&amp;hellip;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description>
</item>
<item> <item>
<title>[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</title> <title>[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</title>
<link>https://h.cowbay.org/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/</link> <link>https://h.cowbay.org/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/</link>

@ -93,25 +93,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/install-timeshift-on-ubuntu1804/"> <a class="bubble" href="/post/log-all-bash-commands/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/install-timeshift-on-ubuntu1804/"> <a href="/post/log-all-bash-commands/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a></h3> <h3><a href="/post/log-all-bash-commands/">[筆記] 紀錄所有下過的指令、時間 / Log All commands with timestamp</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-03-11</span> <span class="date moment">2019-04-23</span>
@ -131,18 +131,18 @@
</div> </div>
<p>最近要開始測試client安裝 ubuntu 18.04 的 ansible playbook</p> <p>今天發生一件有點詭異的事情,本來應該要經過某個指令才會產生的檔案</p>
<p>因為要不斷的修正所以想到一直有在自己電腦上執行的timeshift這個軟體</p> <p>居然不知為何自己產生了,在我記憶中沒有去執行過那個指令</p>
<p>可以很簡單快速的備份、恢復系統狀態</p> <p>翻了一下 bash_history ,裡面也只有下過哪些指令,沒有紀錄時間,完全沒有參考價值(攤手)</p>
<p>可是不知道為什麼在ubuntu 18.04 上安裝就是會發生錯誤&hellip;.</p> <p>所以翻了一下網路至少把這兩台主要跑ansible的機器的log功能補上紀錄所有指令以及時間的部份</p>
<p></p> <p></p>
<a href="/post/install-timeshift-on-ubuntu1804/" class="more"></a> <a href="/post/log-all-bash-commands/" class="more"></a>
</div> </div>
@ -156,9 +156,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/ubuntu">ubuntu</a> <a href="/tags/log">log</a>
<a href="/tags/backup">backup</a>
</div> </div>
</div> </div>
@ -174,25 +172,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/"> <a class="bubble" href="/post/fix-zpool-device-busy-using-dmsetup/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/"> <a href="/post/fix-zpool-device-busy-using-dmsetup/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/">用DELL 6 i/R 建立RAID並在上面安裝ubuntu 18.04 </a></h3> <h3><a href="/post/fix-zpool-device-busy-using-dmsetup/">[筆記] 解決無法建立zpool 的錯誤 / Fix Zpool Device Busy Using dmsetup</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-01-16</span> <span class="date moment">2019-04-01</span>
@ -212,13 +210,16 @@
</div> </div>
<p>買了一張 DELL 6/iR 低階的raid 卡</p> <p>今天把其中一台proxmox 加上10G 光纖網卡準備和另一台proxmox 組成10G 環境進行測試</p>
<p>來測試把系統裝在硬體做的RAID上結果沒想到居然不能開機&hellip; <p>想說把本機的zpool 拆掉重新建立一個raid0 的空間來做clone/migrate</p>
</p>
<p>可是一直出現device busy的錯誤訊息</p>
<a href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/" class="more"></a> <p></p>
<a href="/post/fix-zpool-device-busy-using-dmsetup/" class="more"></a>
</div> </div>
@ -232,7 +233,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/ubuntu">ubuntu</a> <a href="/tags/zfs">zfs</a>
</div> </div>
</div> </div>
@ -248,25 +249,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/ubuntu-1804-install-root-on-raid/"> <a class="bubble" href="/post/transfer-cent62-using-rsync/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/ubuntu-1804-install-root-on-raid/"> <a href="/post/transfer-cent62-using-rsync/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-9.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/ubuntu-1804-install-root-on-raid/">Ubuntu 1804 Install Root on Raid</a></h3> <h3><a href="/post/transfer-cent62-using-rsync/">[筆記] 用rsync 移轉 centos 6.2的老機器 Transfer Cent6.2 using rsync</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-01-16</span> <span class="date moment">2019-03-27</span>
@ -286,16 +287,13 @@
</div> </div>
<p>最近在弄一台機器想要把ubuntu 18.04 安裝在software raid上</p> <p>公司的一台老伺服器空間不足了,要執行指令都會中斷,所以想要擴充空間。</p>
<p>因為新開的機器大部分都是在proxmox上所以很少碰實體機器了</p> <p>看起來不難搞,事實上&hellip;..
</p>
<p>結果在安裝過程中做raid碰到一些問題來紀錄一下</p>
<p></p>
<a href="/post/ubuntu-1804-install-root-on-raid/" class="more"></a> <a href="/post/transfer-cent62-using-rsync/" class="more"></a>
</div> </div>
@ -309,9 +307,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/ubuntu">ubuntu</a> <a href="/tags/centos">centos</a>
<a href="/tags/raid">raid</a> <a href="/tags/linux">linux</a>
</div> </div>
</div> </div>
@ -327,25 +325,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/smartd-failed-to-start-in-freenas/"> <a class="bubble" href="/post/install-timeshift-on-ubuntu1804/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/smartd-failed-to-start-in-freenas/"> <a href="/post/install-timeshift-on-ubuntu1804/">
<img src="/images/post-default-2.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/smartd-failed-to-start-in-freenas/">[筆記] Freenas Smartd 啟動失敗 Smartd Failed to Start in Freenas</a></h3> <h3><a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-12-13</span> <span class="date moment">2019-03-11</span>
@ -365,18 +363,18 @@
</div> </div>
<p>這兩天在弄兩台Freenas 準備當作Proxmox 的Storage &amp; Server Backup</p> <p>最近要開始測試client安裝 ubuntu 18.04 的 ansible playbook</p>
<p>因為伺服器的限制只能接六個SATA我接了六個2T的硬碟做raid10</p> <p>因為要不斷的修正所以想到一直有在自己電腦上執行的timeshift這個軟體</p>
<p>然後把Freenas 安裝在隨身碟上</p> <p>可以很簡單快速的備份、恢復系統狀態</p>
<p>不過會一直出現Smartd failed to start 的錯誤訊息</p> <p>可是不知道為什麼在ubuntu 18.04 上安裝就是會發生錯誤&hellip;.</p>
<p></p> <p></p>
<a href="/post/smartd-failed-to-start-in-freenas/" class="more"></a> <a href="/post/install-timeshift-on-ubuntu1804/" class="more"></a>
</div> </div>
@ -390,7 +388,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/freenas">freenas</a> <a href="/tags/ubuntu">ubuntu</a>
<a href="/tags/backup">backup</a>
</div> </div>
</div> </div>
@ -406,25 +406,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/create-portable-vim-environment/"> <a class="bubble" href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/create-portable-vim-environment/"> <a href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/">
<img src="/images/post-default-8.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/create-portable-vim-environment/">[筆記] 建立一個帶著走的 VIM 環境 Creating portable Vim environment</a></h3> <h3><a href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/">用DELL 6 i/R 建立RAID並在上面安裝ubuntu 18.04 </a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-12-07</span> <span class="date moment">2019-01-16</span>
@ -444,18 +444,13 @@
</div> </div>
<p>因為工作的關係現在很多時間都花在VIM的操作上</p> <p>買了一張 DELL 6/iR 低階的raid 卡</p>
<p>所以之前花了滿多時間調整出一個適合自己的VIM環境</p>
<p>原本的作法是把這個設定好的環境丟到自己建立的gitea 上面</p>
<p>然後每到一台新的機器就要去clone 下來</p>
<p></p> <p>來測試把系統裝在硬體做的RAID上結果沒想到居然不能開機&hellip;
</p>
<a href="/post/create-portable-vim-environment/" class="more"></a> <a href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/" class="more"></a>
</div> </div>
@ -469,7 +464,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/vim">vim</a> <a href="/tags/ubuntu">ubuntu</a>
</div> </div>
</div> </div>
@ -485,25 +480,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/10g-lab-using-proxmox-and-mellanox/"> <a class="bubble" href="/post/ubuntu-1804-install-root-on-raid/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/10g-lab-using-proxmox-and-mellanox/"> <a href="/post/ubuntu-1804-install-root-on-raid/">
<img src="/images/post-default-03.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a></h3> <h3><a href="/post/ubuntu-1804-install-root-on-raid/">Ubuntu 1804 Install Root on Raid</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-11-30</span> <span class="date moment">2019-01-16</span>
@ -523,28 +518,16 @@
</div> </div>
<p>想做一個 10G 的 LAB 環境出來已經很久了。</p> <p>最近在弄一台機器想要把ubuntu 18.04 安裝在software raid上</p>
<p>只是礙於10G RJ45的卡太貴了然後光纖的種類又太複雜</p>
<p>如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)</p>
<p>所以一直沒有付諸行動。</p>
<p>硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡以在台灣的價格來說算很便宜的 (550)</p>
<p>聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位</p>
<p>就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線</p>
<p>就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到</p> <p>因為新開的機器大部分都是在proxmox上所以很少碰實體機器了</p>
<p>今天就花了點時間測試一下</p> <p>結果在安裝過程中做raid碰到一些問題來紀錄一下</p>
<p></p> <p></p>
<a href="/post/10g-lab-using-proxmox-and-mellanox/" class="more"></a> <a href="/post/ubuntu-1804-install-root-on-raid/" class="more"></a>
</div> </div>
@ -558,11 +541,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/10g">10G</a> <a href="/tags/ubuntu">ubuntu</a>
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
<a href="/tags/mellanox">mellanox</a> <a href="/tags/raid">raid</a>
</div> </div>
</div> </div>
@ -578,25 +559,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/ansible-selectattr-filter/"> <a class="bubble" href="/post/smartd-failed-to-start-in-freenas/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/ansible-selectattr-filter/"> <a href="/post/smartd-failed-to-start-in-freenas/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-2.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a></h3> <h3><a href="/post/smartd-failed-to-start-in-freenas/">[筆記] Freenas Smartd 啟動失敗 Smartd Failed to Start in Freenas</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-11-29</span> <span class="date moment">2018-12-13</span>
@ -616,16 +597,18 @@
</div> </div>
<p>在上一篇 <a href="https://h.cowbay.org/post/ansible-selectattr/">Ansible how to use &lsquo;list&rsquo; in yaml file </a></p> <p>這兩天在弄兩台Freenas 準備當作Proxmox 的Storage &amp; Server Backup</p>
<p>有提到怎麼用 with_items / set_fact 來取得在yaml 檔案中的清單</p> <p>因為伺服器的限制只能接六個SATA我接了六個2T的硬碟做raid10</p>
<p>不過就是有點醜</p> <p>然後把Freenas 安裝在隨身碟上</p>
<p>不過會一直出現Smartd failed to start 的錯誤訊息</p>
<p></p> <p></p>
<a href="/post/ansible-selectattr-filter/" class="more"></a> <a href="/post/smartd-failed-to-start-in-freenas/" class="more"></a>
</div> </div>
@ -639,7 +622,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/ansible">ansible</a> <a href="/tags/freenas">freenas</a>
</div> </div>
</div> </div>
@ -655,25 +638,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/ansible-selectattr/"> <a class="bubble" href="/post/create-portable-vim-environment/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/ansible-selectattr/"> <a href="/post/create-portable-vim-environment/">
<img src="/images/post-default-1.jpg" alt=""> <img src="/images/post-default-8.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/ansible-selectattr/">[筆記] Ansible how to use &#39;list&#39; in yaml file </a></h3> <h3><a href="/post/create-portable-vim-environment/">[筆記] 建立一個帶著走的 VIM 環境 Creating portable Vim environment</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-11-27</span> <span class="date moment">2018-12-07</span>
@ -693,55 +676,18 @@
</div> </div>
<p>這幾天在玩ansible 時,碰到一個問題</p> <p>因為工作的關係現在很多時間都花在VIM的操作上</p>
<p>假如我有個yaml檔作為資料來源檔名是 abc.yml</p>
<p>大概長這樣</p> <p>所以之前花了滿多時間調整出一個適合自己的VIM環境</p>
<pre><code> &quot;teams&quot;: [ <p>原本的作法是把這個設定好的環境丟到自己建立的gitea 上面</p>
{
&quot;chinese_name&quot;: &quot;TEAM1&quot;,
&quot;description&quot;: &quot;TEAM1&quot;,
&quot;gid&quot;: 10125,
&quot;location&quot;: [
&quot;hq&quot;
],
&quot;name&quot;: &quot;aa&quot;,
&quot;users&quot;: [
&quot;chen&quot;,
&quot;chou&quot;,
&quot;huani&quot;,
&quot;yey&quot;,
&quot;wa&quot;
]
},
{
&quot;chinese_name&quot;: &quot;TEAM2&quot;,
&quot;description&quot;: &quot;TEAM2&quot;,
&quot;gid&quot;: 10126,
&quot;location&quot;: [
&quot;hq&quot;
],
&quot;name&quot;: &quot;bb&quot;,
&quot;users&quot;: [
&quot;chhiao&quot;,
&quot;chgc&quot;,
&quot;chy&quot;,
&quot;hsi&quot;,
&quot;li&quot;,
&quot;li&quot;,
&quot;chgchi&quot;
]
}
]
</code></pre> <p>然後每到一台新的機器就要去clone 下來</p>
<p></p> <p></p>
<a href="/post/ansible-selectattr/" class="more"></a> <a href="/post/create-portable-vim-environment/" class="more"></a>
</div> </div>
@ -755,9 +701,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/ansible">ansible</a> <a href="/tags/vim">vim</a>
<a href="/tags/linux">linux</a>
</div> </div>
</div> </div>
@ -773,25 +717,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/change-preferred-language-in-firefox/"> <a class="bubble" href="/post/10g-lab-using-proxmox-and-mellanox/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/change-preferred-language-in-firefox/"> <a href="/post/10g-lab-using-proxmox-and-mellanox/">
<img src="/images/post-default-9.jpg" alt=""> <img src="/images/post-default-03.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/change-preferred-language-in-firefox/">[筆記] 為了metabase 修改 firefox 開啟網頁時使用的預設語言 change the preferred language in firefox for metabase</a></h3> <h3><a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-11-15</span> <span class="date moment">2018-11-30</span>
@ -811,18 +755,28 @@
</div> </div>
<p>最近在測試metabase記得幾個月前就有測試過</p> <p>想做一個 10G 的 LAB 環境出來已經很久了。</p>
<p>但是當時的界面和現在的樣子差很多,看樣子改版還滿勤勞的</p> <p>只是礙於10G RJ45的卡太貴了然後光纖的種類又太複雜</p>
<p>如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)</p>
<p>所以這次改用docker來建立根本五分鐘不到就建好了(挖鼻孔)</p> <p>所以一直沒有付諸行動。</p>
<p>不過呢,很討厭的是,一進去就發現語系採用的是簡體中文</p> <p>硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡以在台灣的價格來說算很便宜的 (550)</p>
<p>聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位</p>
<p>就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線</p>
<p>就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到</p>
<p>今天就花了點時間測試一下</p>
<p></p> <p></p>
<a href="/post/change-preferred-language-in-firefox/" class="more"></a> <a href="/post/10g-lab-using-proxmox-and-mellanox/" class="more"></a>
</div> </div>
@ -836,11 +790,11 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a> <a href="/tags/10g">10G</a>
<a href="/tags/firefox">firefox</a> <a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
<a href="/tags/metabase">metabase</a> <a href="/tags/mellanox">mellanox</a>
</div> </div>
</div> </div>
@ -856,25 +810,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/copy_role_in_pgsql/"> <a class="bubble" href="/post/ansible-selectattr-filter/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/copy_role_in_pgsql/"> <a href="/post/ansible-selectattr-filter/">
<img src="/images/post-default-7.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/copy_role_in_pgsql/">PostgreSQL 直接從已經存在的使用者複製權限到另一個使用者</a></h3> <h3><a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-11-12</span> <span class="date moment">2018-11-29</span>
@ -894,18 +848,16 @@
</div> </div>
<p>因為工作上的需求有個資料庫需要開放給不同team的人去存取</p> <p>在上一篇 <a href="https://h.cowbay.org/post/ansible-selectattr/">Ansible how to use &lsquo;list&rsquo; in yaml file </a></p>
<p>雖然都是在同一台機器上的同一個資料庫</p>
<p>但是希望能夠不同team的人用不同的資料庫使用者</p> <p>有提到怎麼用 with_items / set_fact 來取得在yaml 檔案中的清單</p>
<p>這樣萬一出事,會比較好抓兇手??</p> <p>不過就是有點醜</p>
<p></p> <p></p>
<a href="/post/copy_role_in_pgsql/" class="more"></a> <a href="/post/ansible-selectattr-filter/" class="more"></a>
</div> </div>
@ -919,9 +871,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/psql">psql</a> <a href="/tags/ansible">ansible</a>
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
</div> </div>
</div> </div>
@ -961,31 +911,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -998,7 +948,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -91,6 +91,288 @@
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/ansible-selectattr/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/ansible-selectattr/">
<img src="/images/post-default-1.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/ansible-selectattr/">[筆記] Ansible how to use &#39;list&#39; in yaml file </a></h3>
<div class="meta">
<span class="date moment">2018-11-27</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>這幾天在玩ansible 時,碰到一個問題</p>
<p>假如我有個yaml檔作為資料來源檔名是 abc.yml</p>
<p>大概長這樣</p>
<pre><code> &quot;teams&quot;: [
{
&quot;chinese_name&quot;: &quot;TEAM1&quot;,
&quot;description&quot;: &quot;TEAM1&quot;,
&quot;gid&quot;: 10125,
&quot;location&quot;: [
&quot;hq&quot;
],
&quot;name&quot;: &quot;aa&quot;,
&quot;users&quot;: [
&quot;chen&quot;,
&quot;chou&quot;,
&quot;huani&quot;,
&quot;yey&quot;,
&quot;wa&quot;
]
},
{
&quot;chinese_name&quot;: &quot;TEAM2&quot;,
&quot;description&quot;: &quot;TEAM2&quot;,
&quot;gid&quot;: 10126,
&quot;location&quot;: [
&quot;hq&quot;
],
&quot;name&quot;: &quot;bb&quot;,
&quot;users&quot;: [
&quot;chhiao&quot;,
&quot;chgc&quot;,
&quot;chy&quot;,
&quot;hsi&quot;,
&quot;li&quot;,
&quot;li&quot;,
&quot;chgchi&quot;
]
}
]
</code></pre>
<p></p>
<a href="/post/ansible-selectattr/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/ansible">ansible</a>
<a href="/tags/linux">linux</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/change-preferred-language-in-firefox/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/change-preferred-language-in-firefox/">
<img src="/images/post-default-9.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/change-preferred-language-in-firefox/">[筆記] 為了metabase 修改 firefox 開啟網頁時使用的預設語言 change the preferred language in firefox for metabase</a></h3>
<div class="meta">
<span class="date moment">2018-11-15</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>最近在測試metabase記得幾個月前就有測試過</p>
<p>但是當時的界面和現在的樣子差很多,看樣子改版還滿勤勞的</p>
<p>所以這次改用docker來建立根本五分鐘不到就建好了(挖鼻孔)</p>
<p>不過呢,很討厭的是,一進去就發現語系採用的是簡體中文</p>
<p></p>
<a href="/post/change-preferred-language-in-firefox/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
<a href="/tags/firefox">firefox</a>
<a href="/tags/metabase">metabase</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/copy_role_in_pgsql/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/copy_role_in_pgsql/">
<img src="/images/post-default-7.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/copy_role_in_pgsql/">PostgreSQL 直接從已經存在的使用者複製權限到另一個使用者</a></h3>
<div class="meta">
<span class="date moment">2018-11-12</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>因為工作上的需求有個資料庫需要開放給不同team的人去存取</p>
<p>雖然都是在同一台機器上的同一個資料庫</p>
<p>但是希望能夠不同team的人用不同的資料庫使用者</p>
<p>這樣萬一出事,會比較好抓兇手??</p>
<p></p>
<a href="/post/copy_role_in_pgsql/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/psql">psql</a>
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/weird-client-server-connection/"> <a class="bubble" href="/post/weird-client-server-connection/">
@ -463,31 +745,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -500,7 +782,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -204,31 +204,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -241,7 +241,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -181,31 +181,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -218,7 +218,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -193,31 +193,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -230,7 +230,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -98,25 +98,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/"> <a class="bubble" href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/"> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">
<img src="/images/post-default-8.jpg" alt=""> <img src="/images/post-default-4.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a></h3> <h3><a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-08-16</span> <span class="date moment">2019-08-23</span>
@ -136,24 +136,12 @@
</div> </div>
<p>最近一直在玩 wireguard 先前把各個分公司和總部的VPN 改用 wireguard 建立</p> <p>這篇繼續講 pgbarman 透過 rsync/ssh 來備份 postgresql 資料庫的方式</p>
<p>想說再打個VPN tunnel 來當跳板連 ptt 好了</p>
<p>因為wireguard 建立很簡單,而且又可以指定想要繞出去的路由,不會影響原本的網路環境</p>
<p>本來是在vultr 的VPS上面建立這個tunnel</p>
<p>但是那台VPS連去ptt 很頓,卡卡的</p>
<p>所以改用google cloud platform 的free tier 來做</p>
<p>反正只是拿來當跳板,不會有什麼流量、運算產生,可以一直保持免費的狀態</p>
<p></p> <p></p>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/" class="more"></a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/" class="more"></a>
</div> </div>
@ -167,9 +155,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/vpn">vpn</a> <a href="/tags/postgresql">postgresql</a>
<a href="/tags/wireguard">wireguard</a> <a href="/tags/pgbarman">pgbarman</a>
</div> </div>
</div> </div>
@ -187,25 +175,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/multiple-site-to-site-vpn-using-wireguard/"> <a class="bubble" href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/multiple-site-to-site-vpn-using-wireguard/"> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">
<img src="/images/post-default-10.jpg" alt=""> <img src="/images/post-default-4.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a></h3> <h3><a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-08-13</span> <span class="date moment">2019-08-23</span>
@ -225,22 +213,18 @@
</div> </div>
<p>因為實在受夠了現在用的 openwrt + strongswan 建立 IPSec VPN</p> <p>很久以前就有看到這個用來備份postgresql 的 pgbarman</p>
<p>雖然說其實沒有什麼不好,但是畢竟不是我建立的,而當初的文件也都不見了</p>
<p>完全沒辦法了解當時設計的邏輯造成後續debug 困難</p> <p><a href="https://www.pgbarman.org/">https://www.pgbarman.org/</a></p>
<p>可以想像一下一台VPN router ping 不到remote、ping不到internet、甚至ping不到自己 是要怎麼debug !?(翻桌</p> <p>前幾天老闆在slack 上面又提到,所以這次就花了點時間來玩玩看</p>
<p>之前買了兩台edgerouter X 拿來玩了一下 wireguard感覺還不錯不過只有測試到點對點</p> <p>不過呢,雖然有弄起來,但是還真不知道有些問題是怎麼解決的&hellip;</p>
<p>這次試試看躲在gateway後面看看能不能建立多點的VPN環境</p>
<p></p> <p></p>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/" class="more"></a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/" class="more"></a>
</div> </div>
@ -254,11 +238,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/vpn">vpn</a> <a href="/tags/postgresql">postgresql</a>
<a href="/tags/ubuntu">ubuntu</a>
<a href="/tags/wireguard">wireguard</a> <a href="/tags/pgbarman">pgbarman</a>
</div> </div>
</div> </div>
@ -276,25 +258,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/"> <a class="bubble" href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/"> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">
<img src="/images/post-default-5.jpg" alt=""> <img src="/images/post-default-7.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a></h3> <h3><a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-08-06</span> <span class="date moment">2019-08-20</span>
@ -314,30 +296,18 @@
</div> </div>
<p>之前總部和分公司之間 是用buffalo 的小AP 灌 openwrt</p> <p>因為老闆說要試試看用GPU 來跑postgresql 威力</p>
<p>然後用strongswan 來打 IPSEC site to site VPN</p>
<p>config 看起來不是很難 (只是看起來)</p>
<p>但是實際上已經找不到當初的文件</p>
<p>所以要維護很困難(光那些RSA KEY 就不知道為何、如何產生)</p>
<p>後來採購了兩台edgerouter X 做測試</p>
<p>也用openvpn 成功的建立了 site to site VPN</p>
<p>本來想說 openvpn 已經夠簡單了</p> <p>手邊剛好有一張 geforce gt 720</p>
<p>今天看到文章說用wireguard 可以更簡單</p> <p>一開始沒想太多看到有這張卡的驅動程式然後CUDA也有支援</p>
<p>於是研究了一下,發現還真的很簡單!</p> <p>就直接從桌機拔下來接去LAB Server ,然後就開始一連串的難關了&hellip;</p>
<p></p> <p></p>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/" class="more"></a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/" class="more"></a>
</div> </div>
@ -351,9 +321,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/vpn">vpn</a> <a href="/tags/nvidia">nvidia</a>
<a href="/tags/edgerouter">edgerouter</a>
</div> </div>
</div> </div>
@ -371,25 +339,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/another-way-to-keep-ansible-log/"> <a class="bubble" href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/another-way-to-keep-ansible-log/"> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">
<img src="/images/post-default-10.jpg" alt=""> <img src="/images/post-default-8.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a></h3> <h3><a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-08-05</span> <span class="date moment">2019-08-16</span>
@ -398,7 +366,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/ansible">ansible</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span> </span>
@ -409,23 +377,24 @@
</div> </div>
<p>之前為了能夠在執行完 ansible playbook 後能有個log 可以看</p> <p>最近一直在玩 wireguard 先前把各個分公司和總部的VPN 改用 wireguard 建立</p>
<p>所以在每次執行的時候,都要加入 tee 的指令</p> <p>想說再打個VPN tunnel 來當跳板連 ptt 好了</p>
<p>像是</p> <p>因為wireguard 建立很簡單,而且又可以指定想要繞出去的路由,不會影響原本的網路環境</p>
<pre><code>ANSIBLE_CONFIG=/home/D/ansiblecontrol/ansible.cfg /usr/local/bin/ansible-playbook /home/D/ansiblecontrol/playbook.user_client.yml --vault-password-file=/home/D/ansiblecontrol/vault.passwd -i /home/D/ansiblecontrol/inventory/production -f1 --limit tyuserclients |tee /tmp/tyuserclients.log <p>本來是在vultr 的VPS上面建立這個tunnel</p>
</code></pre>
<p>一直都是放在crontab 裡面執行,也就沒有去管他</p> <p>但是那台VPS連去ptt 很頓,卡卡的</p>
<p>反正也沒有人關心結果怎樣 (攤手</p> <p>所以改用google cloud platform 的free tier 來做</p>
<p>反正只是拿來當跳板,不會有什麼流量、運算產生,可以一直保持免費的狀態</p>
<p></p> <p></p>
<a href="/post/another-way-to-keep-ansible-log/" class="more"></a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/" class="more"></a>
</div> </div>
@ -439,7 +408,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/ansible">ansible</a> <a href="/tags/vpn">vpn</a>
<a href="/tags/wireguard">wireguard</a>
</div> </div>
</div> </div>
@ -457,25 +428,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/send-mail-to-notify-after-pxe-install/"> <a class="bubble" href="/post/multiple-site-to-site-vpn-using-wireguard/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/send-mail-to-notify-after-pxe-install/"> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-10.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a></h3> <h3><a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-07-31</span> <span class="date moment">2019-08-13</span>
@ -495,26 +466,22 @@
</div> </div>
<p>最近有個任務需要大量安裝client</p> <p>因為實在受夠了現在用的 openwrt + strongswan 建立 IPSec VPN</p>
<p>想用PXE來處理只要user開機按F12(acer 桌機) 選擇PXE Boot</p>
<p>然後選擇OS版本就可以自動進行安裝</p>
<p>安裝完成後會自動重新開機接著就用ansible來做user環境設定</p> <p>雖然說其實沒有什麼不好,但是畢竟不是我建立的,而當初的文件也都不見了</p>
<p>PXE的部份本來是沒有什麼問題自動安裝系統的部份都做好了</p> <p>完全沒辦法了解當時設計的邏輯造成後續debug 困難</p>
<p>是因為這次的量比較多想說讓每一台在完成PXE安裝後的第一次重開機</p> <p>以想像一下一台VPN router ping 不到remote、ping不到internet、甚至ping不到自己 是要怎麼debug !?(翻桌</p>
<p>就送出一封郵件來通知我說已經完成安裝可以執行ansible 了</p> <p>之前買了兩台edgerouter X 拿來玩了一下 wireguard感覺還不錯不過只有測試到點對點</p>
<p>看似很簡單的一件事情,卻搞了我兩天&hellip;.</p> <p>這次試試看躲在gateway後面看看能不能建立多點的VPN環境</p>
<p></p> <p></p>
<a href="/post/send-mail-to-notify-after-pxe-install/" class="more"></a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/" class="more"></a>
</div> </div>
@ -528,11 +495,11 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/pxe">PXE</a> <a href="/tags/vpn">vpn</a>
<a href="/tags/ubuntu">ubuntu</a> <a href="/tags/ubuntu">ubuntu</a>
<a href="/tags/linux">linux</a> <a href="/tags/wireguard">wireguard</a>
</div> </div>
</div> </div>
@ -550,25 +517,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/ansible-run-task-depends-on-ipaddr/"> <a class="bubble" href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/ansible-run-task-depends-on-ipaddr/"> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">
<img src="/images/post-default-7.jpg" alt=""> <img src="/images/post-default-5.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a></h3> <h3><a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-07-23</span> <span class="date moment">2019-08-06</span>
@ -577,7 +544,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/ansible">ansible</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span> </span>
@ -588,16 +555,30 @@
</div> </div>
<p>因為工作上的需要要修改client端的 /etc/environment 檔案</p> <p>之前總部和分公司之間 是用buffalo 的小AP 灌 openwrt</p>
<p>在有權限使用proxy 服務的user的環境中加入proxy 的設定</p> <p>然後用strongswan 來打 IPSEC site to site VPN</p>
<p>原本的清單中有host/user/ip 這幾個值可以拿來判斷</p> <p>config 看起來不是很難 (只是看起來)</p>
<p>proxy server 那邊是採用ip 來控制,所以這邊也跟著用 ip 來判斷要不要修改 /etc/environment</p> <p>但是實際上已經找不到當初的文件</p>
<p>所以要維護很困難(光那些RSA KEY 就不知道為何、如何產生)</p>
<p>後來採購了兩台edgerouter X 做測試</p>
<a href="/post/ansible-run-task-depends-on-ipaddr/" class="more"></a> <p>也用openvpn 成功的建立了 site to site VPN</p>
<p>本來想說 openvpn 已經夠簡單了</p>
<p>今天看到文章說用wireguard 可以更簡單</p>
<p>於是研究了一下,發現還真的很簡單!</p>
<p></p>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/" class="more"></a>
</div> </div>
@ -611,7 +592,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/ansible">ansible</a> <a href="/tags/vpn">vpn</a>
<a href="/tags/edgerouter">edgerouter</a>
</div> </div>
</div> </div>
@ -629,25 +612,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/ansible-selectattr-from-list-in-dictionary/"> <a class="bubble" href="/post/another-way-to-keep-ansible-log/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/ansible-selectattr-from-list-in-dictionary/"> <a href="/post/another-way-to-keep-ansible-log/">
<img src="/images/post-default-7.jpg" alt=""> <img src="/images/post-default-10.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a></h3> <h3><a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-07-01</span> <span class="date moment">2019-08-05</span>
@ -656,7 +639,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/ansible">Ansible</a> <a href="/categories/ansible">ansible</a>
</span> </span>
@ -667,16 +650,23 @@
</div> </div>
<p>在ansible中關於如何引用自定義的變數一直讓我很頭疼</p> <p>之前為了能夠在執行完 ansible playbook 後能有個log 可以看</p>
<p>尤其是有牽涉到從外部導入yaml檔案時更是常常讓我不知道到底該怎麼抓出想要的變數</p> <p>所以在每次執行的時候,都要加入 tee 的指令</p>
<p>這次還是用selectattr 來處理,希望下次能夠記得&hellip;</p> <p>像是</p>
<pre><code>ANSIBLE_CONFIG=/home/D/ansiblecontrol/ansible.cfg /usr/local/bin/ansible-playbook /home/D/ansiblecontrol/playbook.user_client.yml --vault-password-file=/home/D/ansiblecontrol/vault.passwd -i /home/D/ansiblecontrol/inventory/production -f1 --limit tyuserclients |tee /tmp/tyuserclients.log
</code></pre>
<p>一直都是放在crontab 裡面執行,也就沒有去管他</p>
<p>反正也沒有人關心結果怎樣 (攤手</p>
<p></p> <p></p>
<a href="/post/ansible-selectattr-from-list-in-dictionary/" class="more"></a> <a href="/post/another-way-to-keep-ansible-log/" class="more"></a>
</div> </div>
@ -690,7 +680,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/ansible">Ansible</a> <a href="/tags/ansible">ansible</a>
</div> </div>
</div> </div>
@ -708,25 +698,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/remote-management-system-meshcentral/"> <a class="bubble" href="/post/send-mail-to-notify-after-pxe-install/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/remote-management-system-meshcentral/"> <a href="/post/send-mail-to-notify-after-pxe-install/">
<img src="/images/post-default-5.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/remote-management-system-meshcentral/">linux底下遠端遙控&amp;管理的好用系統 Meshcentral / Remote Management &amp; control system Meshcentral</a></h3> <h3><a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-06-20</span> <span class="date moment">2019-07-31</span>
@ -746,20 +736,26 @@
</div> </div>
<p>之前在LAN/windows環境下一直都是用ultravnc/winvnc/tigervnc之類的VNC軟體</p> <p>最近有個任務需要大量安裝client</p>
<p>想用PXE來處理只要user開機按F12(acer 桌機) 選擇PXE Boot</p>
<p>但是如果要過 internet 就會碰到各種開port的問題</p> <p>然後選擇OS版本就可以自動進行安裝</p>
<p>在這種環境下,就有了當時 teamviewer 的橫空出世</p> <p>安裝完成後會自動重新開機接著就用ansible來做user環境設定</p>
<p>解決了開PORT的問題讓被控端(通常是資訊技術相對弱勢,需要接受幫助的一方)不需要懂太多</p> <p>PXE的部份本來是沒有什麼問題自動安裝系統的部份都做好了</p>
<p>只要下載teamviewer被控端開啟後報ID 給協助者就好了</p> <p>可是因為這次的量比較多想說讓每一台在完成PXE安裝後的第一次重開機</p>
<p>就送出一封郵件來通知我說已經完成安裝可以執行ansible 了</p>
<p>看似很簡單的一件事情,卻搞了我兩天&hellip;.</p>
<p></p> <p></p>
<a href="/post/remote-management-system-meshcentral/" class="more"></a> <a href="/post/send-mail-to-notify-after-pxe-install/" class="more"></a>
</div> </div>
@ -773,11 +769,11 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/linux">linux</a> <a href="/tags/pxe">PXE</a>
<a href="/tags/remote">remote</a> <a href="/tags/ubuntu">ubuntu</a>
<a href="/tags/meshcentral">meshcentral</a> <a href="/tags/linux">linux</a>
</div> </div>
</div> </div>
@ -795,25 +791,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/install-asus-10g-nic-in-proxmox/"> <a class="bubble" href="/post/ansible-run-task-depends-on-ipaddr/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/install-asus-10g-nic-in-proxmox/"> <a href="/post/ansible-run-task-depends-on-ipaddr/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-7.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a></h3> <h3><a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-06-17</span> <span class="date moment">2019-07-23</span>
@ -822,7 +818,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/proxmox">Proxmox</a> <a href="/categories/ansible">ansible</a>
</span> </span>
@ -833,20 +829,16 @@
</div> </div>
<p>前幾天接的一個case</p> <p>因為工作上的需要要修改client端的 /etc/environment 檔案</p>
<p>因為費用的關係,所以沒有考慮用傳統定義上的伺服器(DELL R640)</p>
<p>改採用比較高階一點的洋垃圾,規格大概是 Intel E5-2680V2 x2 + 64G RAM + 128G SSD x2 (OS) + 960G SSD x4 (raid 10 , zfs)</p>
<p>storage 選擇QNAP NAS TS-932X + 960G SSD x 4 (raid 10 , NFS) + QNAP 10G Switch QSW-1280C-8C</p> <p>在有權限使用proxy 服務的user的環境中加入proxy 的設定</p>
<p>既然storage這邊選用了10G的機種伺服器上當然也要增加10G網卡</p> <p>原本的清單中有host/user/ip 這幾個值可以拿來判斷</p>
<p>一樣成本考量就不用INTEL 了,買了這張 ASUS 10G 網卡</p> <p>proxy server 那邊是採用ip 來控制,所以這邊也跟著用 ip 來判斷要不要修改 /etc/environment</p>
<a href="/post/install-asus-10g-nic-in-proxmox/" class="more"></a> <a href="/post/ansible-run-task-depends-on-ipaddr/" class="more"></a>
</div> </div>
@ -860,7 +852,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/proxmox">proxmox</a> <a href="/tags/ansible">ansible</a>
</div> </div>
</div> </div>
@ -878,25 +870,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/change-timezone-in-docker/"> <a class="bubble" href="/post/ansible-selectattr-from-list-in-dictionary/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/change-timezone-in-docker/"> <a href="/post/ansible-selectattr-from-list-in-dictionary/">
<img src="/images/post-default-3.jpg" alt=""> <img src="/images/post-default-7.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a></h3> <h3><a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-05-21</span> <span class="date moment">2019-07-01</span>
@ -905,7 +897,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a> <a href="/categories/ansible">Ansible</a>
</span> </span>
@ -916,12 +908,16 @@
</div> </div>
<p>最近一直在玩一些docker不過老是會碰到歪果扔寫的東西時區都不一致</p> <p>在ansible中關於如何引用自定義的變數一直讓我很頭疼</p>
<p>尤其是有牽涉到從外部導入yaml檔案時更是常常讓我不知道到底該怎麼抓出想要的變數</p>
<p>這次還是用selectattr 來處理,希望下次能夠記得&hellip;</p>
<p>有的用 UTC有的用localtime就是沒碰到用 Asia/Taipei 的&hellip;.</p> <p></p>
<a href="/post/change-timezone-in-docker/" class="more"></a> <a href="/post/ansible-selectattr-from-list-in-dictionary/" class="more"></a>
</div> </div>
@ -935,9 +931,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/docker">docker</a> <a href="/tags/ansible">Ansible</a>
<a href="/tags/timezone">timezone</a>
</div> </div>
</div> </div>
@ -976,31 +970,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -1013,7 +1007,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -188,6 +188,27 @@
"type": "tag", "type": "tag",
"url": "https://h.cowbay.org/tags/nas" "url": "https://h.cowbay.org/tags/nas"
}, },
{
"iconClass": "fa-tag",
"objectID": "https://h.cowbay.org/tags/nvidia",
"title": "Nvidia",
"type": "tag",
"url": "https://h.cowbay.org/tags/nvidia"
},
{
"iconClass": "fa-tag",
"objectID": "https://h.cowbay.org/tags/pgbarman",
"title": "Pgbarman",
"type": "tag",
"url": "https://h.cowbay.org/tags/pgbarman"
},
{
"iconClass": "fa-tag",
"objectID": "https://h.cowbay.org/tags/postgresql",
"title": "Postgresql",
"type": "tag",
"url": "https://h.cowbay.org/tags/postgresql"
},
{ {
"iconClass": "fa-tag", "iconClass": "fa-tag",
"objectID": "https://h.cowbay.org/tags/proxmox", "objectID": "https://h.cowbay.org/tags/proxmox",

@ -5,11 +5,56 @@
<link>https://h.cowbay.org/</link> <link>https://h.cowbay.org/</link>
<description>Recent content on MCの飄狂山莊㊣</description> <description>Recent content on MCの飄狂山莊㊣</description>
<generator>Hugo -- gohugo.io</generator> <generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Fri, 16 Aug 2019 10:18:06 +0800</lastBuildDate> <lastBuildDate>Fri, 23 Aug 2019 14:54:13 +0800</lastBuildDate>
<atom:link href="https://h.cowbay.org/index.xml" rel="self" type="application/rss+xml" /> <atom:link href="https://h.cowbay.org/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</title>
<link>https://h.cowbay.org/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/</link>
<pubDate>Fri, 23 Aug 2019 14:54:13 +0800</pubDate>
<guid>https://h.cowbay.org/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/</guid>
<description>&lt;p&gt;這篇繼續講 pgbarman 透過 rsync/ssh 來備份 postgresql 資料庫的方式&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description>
</item>
<item>
<title>[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</title>
<link>https://h.cowbay.org/post/pgbarman-in-ubuntu-1804-postgresql-10/</link>
<pubDate>Fri, 23 Aug 2019 13:53:40 +0800</pubDate>
<guid>https://h.cowbay.org/post/pgbarman-in-ubuntu-1804-postgresql-10/</guid>
<description>&lt;p&gt;很久以前就有看到這個用來備份postgresql 的 pgbarman&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://www.pgbarman.org/&#34;&gt;https://www.pgbarman.org/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;前幾天老闆在slack 上面又提到,所以這次就花了點時間來玩玩看&lt;/p&gt;
&lt;p&gt;不過呢,雖然有弄起來,但是還真不知道有些問題是怎麼解決的&amp;hellip;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description>
</item>
<item>
<title>[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</title>
<link>https://h.cowbay.org/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/</link>
<pubDate>Tue, 20 Aug 2019 14:51:54 +0800</pubDate>
<guid>https://h.cowbay.org/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/</guid>
<description>&lt;p&gt;因為老闆說要試試看用GPU 來跑postgresql 威力&lt;/p&gt;
&lt;p&gt;手邊剛好有一張 geforce gt 720&lt;/p&gt;
&lt;p&gt;一開始沒想太多看到有這張卡的驅動程式然後CUDA也有支援&lt;/p&gt;
&lt;p&gt;就直接從桌機拔下來接去LAB Server ,然後就開始一連串的難關了&amp;hellip;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description>
</item>
<item> <item>
<title>[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</title> <title>[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</title>
<link>https://h.cowbay.org/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/</link> <link>https://h.cowbay.org/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/</link>

@ -98,25 +98,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/transfer-file-content-using-xclip-in-terminal/"> <a class="bubble" href="/post/remote-management-system-meshcentral/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/transfer-file-content-using-xclip-in-terminal/"> <a href="/post/remote-management-system-meshcentral/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-5.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a></h3> <h3><a href="/post/remote-management-system-meshcentral/">linux底下遠端遙控&amp;管理的好用系統 Meshcentral / Remote Management &amp; control system Meshcentral</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-05-17</span> <span class="date moment">2019-06-20</span>
@ -125,7 +125,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/linux">linux</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span> </span>
@ -136,18 +136,20 @@
</div> </div>
<p>工作上常會需要用ssh登入遠端主機檢查LOG有必要的時候還要把log複製回本機來處理。</p> <p>之前在LAN/windows環境下一直都是用ultravnc/winvnc/tigervnc之類的VNC軟體</p>
<p>以前都是傻傻的用 scp 傳檔案</p> <p>但是如果要過 internet 就會碰到各種開port的問題</p>
<p>之前就記得有這個xclip/xsel 可以用,但是一直沒有弄清楚怎麼執行</p> <p>在這種環境下,就有了當時 teamviewer 的橫空出世</p>
<p>早上研究了一下,順便做個筆記。</p> <p>解決了開PORT的問題讓被控端(通常是資訊技術相對弱勢,需要接受幫助的一方)不需要懂太多</p>
<p>只要下載teamviewer被控端開啟後報ID 給協助者就好了</p>
<p></p> <p></p>
<a href="/post/transfer-file-content-using-xclip-in-terminal/" class="more"></a> <a href="/post/remote-management-system-meshcentral/" class="more"></a>
</div> </div>
@ -163,6 +165,10 @@
<a href="/tags/linux">linux</a> <a href="/tags/linux">linux</a>
<a href="/tags/remote">remote</a>
<a href="/tags/meshcentral">meshcentral</a>
</div> </div>
</div> </div>
@ -179,25 +185,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/inx-collect-detail-hardware-info/"> <a class="bubble" href="/post/install-asus-10g-nic-in-proxmox/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/inx-collect-detail-hardware-info/"> <a href="/post/install-asus-10g-nic-in-proxmox/">
<img src="/images/post-default-10.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/inx-collect-detail-hardware-info/">[筆記] inxi 蒐集詳盡的硬體資訊 / inxi Collect Detail Hardware Info</a></h3> <h3><a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-04-23</span> <span class="date moment">2019-06-17</span>
@ -206,7 +212,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a> <a href="/categories/proxmox">Proxmox</a>
</span> </span>
@ -217,20 +223,20 @@
</div> </div>
<p>最近因為一直碰到硬碟故障的問題算起來那一批同時購買的5X顆 seagate 2T硬碟已經有一半以上故障返修了&hellip;.</p> <p>前幾天接的一個case</p>
<p>然後又因為一直沒有添購新的硬碟,只能用這些快過保/已過保的撐著</p> <p>因為費用的關係,所以沒有考慮用傳統定義上的伺服器(DELL R640)</p>
<p>所以最近不斷的在更換機器內的硬碟,而且還沒有熱插拔!</p> <p>改採用比較高階一點的洋垃圾,規格大概是 Intel E5-2680V2 x2 + 64G RAM + 128G SSD x2 (OS) + 960G SSD x4 (raid 10 , zfs)</p>
<p>也導致原本負責處理盤點資產的同事困擾,因為跟手邊的紀錄已經對不起來了</p> <p>storage 選擇QNAP NAS TS-932X + 960G SSD x 4 (raid 10 , NFS) + QNAP 10G Switch QSW-1280C-8C</p>
<p>然後就變成要對資產的時候,需要一台一台登入,然後去下不同的指令,取得想要的硬體資訊,超級麻煩的!</p> <p>既然storage這邊選用了10G的機種伺服器上當然也要增加10G網卡</p>
<p></p> <p>一樣成本考量就不用INTEL 了,買了這張 ASUS 10G 網卡</p>
<a href="/post/inx-collect-detail-hardware-info/" class="more"></a> <a href="/post/install-asus-10g-nic-in-proxmox/" class="more"></a>
</div> </div>
@ -244,11 +250,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/linux">linux</a> <a href="/tags/proxmox">proxmox</a>
<a href="/tags/bsd">bsd</a>
<a href="/tags/inventory">inventory</a>
</div> </div>
</div> </div>
@ -266,25 +268,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/log-all-bash-commands/"> <a class="bubble" href="/post/change-timezone-in-docker/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/log-all-bash-commands/"> <a href="/post/change-timezone-in-docker/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-3.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/log-all-bash-commands/">[筆記] 紀錄所有下過的指令、時間 / Log All commands with timestamp</a></h3> <h3><a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-04-23</span> <span class="date moment">2019-05-21</span>
@ -304,18 +306,12 @@
</div> </div>
<p>今天發生一件有點詭異的事情,本來應該要經過某個指令才會產生的檔案</p> <p>最近一直在玩一些docker不過老是會碰到歪果扔寫的東西時區都不一致</p>
<p>居然不知為何自己產生了,在我記憶中沒有去執行過那個指令</p>
<p>翻了一下 bash_history ,裡面也只有下過哪些指令,沒有紀錄時間,完全沒有參考價值(攤手)</p>
<p>所以翻了一下網路至少把這兩台主要跑ansible的機器的log功能補上紀錄所有指令以及時間的部份</p>
<p></p> <p>有的用 UTC有的用localtime就是沒碰到用 Asia/Taipei 的&hellip;.</p>
<a href="/post/log-all-bash-commands/" class="more"></a> <a href="/post/change-timezone-in-docker/" class="more"></a>
</div> </div>
@ -329,7 +325,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/log">log</a> <a href="/tags/docker">docker</a>
<a href="/tags/timezone">timezone</a>
</div> </div>
</div> </div>
@ -347,25 +345,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/fix-zpool-device-busy-using-dmsetup/"> <a class="bubble" href="/post/transfer-file-content-using-xclip-in-terminal/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/fix-zpool-device-busy-using-dmsetup/"> <a href="/post/transfer-file-content-using-xclip-in-terminal/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/fix-zpool-device-busy-using-dmsetup/">[筆記] 解決無法建立zpool 的錯誤 / Fix Zpool Device Busy Using dmsetup</a></h3> <h3><a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-04-01</span> <span class="date moment">2019-05-17</span>
@ -374,7 +372,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a> <a href="/categories/linux">linux</a>
</span> </span>
@ -385,16 +383,18 @@
</div> </div>
<p>今天把其中一台proxmox 加上10G 光纖網卡準備和另一台proxmox 組成10G 環境進行測試</p> <p>工作上常會需要用ssh登入遠端主機檢查LOG有必要的時候還要把log複製回本機來處理。</p>
<p>想說把本機的zpool 拆掉重新建立一個raid0 的空間來做clone/migrate</p> <p>以前都是傻傻的用 scp 傳檔案</p>
<p>可是一直出現device busy的錯誤訊息</p> <p>之前就記得有這個xclip/xsel 可以用,但是一直沒有弄清楚怎麼執行</p>
<p>早上研究了一下,順便做個筆記。</p>
<p></p> <p></p>
<a href="/post/fix-zpool-device-busy-using-dmsetup/" class="more"></a> <a href="/post/transfer-file-content-using-xclip-in-terminal/" class="more"></a>
</div> </div>
@ -408,7 +408,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/zfs">zfs</a> <a href="/tags/linux">linux</a>
</div> </div>
</div> </div>
@ -426,25 +426,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/transfer-cent62-using-rsync/"> <a class="bubble" href="/post/inx-collect-detail-hardware-info/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/transfer-cent62-using-rsync/"> <a href="/post/inx-collect-detail-hardware-info/">
<img src="/images/post-default-9.jpg" alt=""> <img src="/images/post-default-10.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/transfer-cent62-using-rsync/">[筆記] 用rsync 移轉 centos 6.2的老機器 Transfer Cent6.2 using rsync</a></h3> <h3><a href="/post/inx-collect-detail-hardware-info/">[筆記] inxi 蒐集詳盡的硬體資訊 / inxi Collect Detail Hardware Info</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-03-27</span> <span class="date moment">2019-04-23</span>
@ -464,13 +464,20 @@
</div> </div>
<p>公司的一台老伺服器空間不足了,要執行指令都會中斷,所以想要擴充空間。</p> <p>最近因為一直碰到硬碟故障的問題算起來那一批同時購買的5X顆 seagate 2T硬碟已經有一半以上故障返修了&hellip;.</p>
<p>看起來不難搞,事實上&hellip;.. <p>然後又因為一直沒有添購新的硬碟,只能用這些快過保/已過保的撐著</p>
</p>
<p>所以最近不斷的在更換機器內的硬碟,而且還沒有熱插拔!</p>
<a href="/post/transfer-cent62-using-rsync/" class="more"></a> <p>也導致原本負責處理盤點資產的同事困擾,因為跟手邊的紀錄已經對不起來了</p>
<p>然後就變成要對資產的時候,需要一台一台登入,然後去下不同的指令,取得想要的硬體資訊,超級麻煩的!</p>
<p></p>
<a href="/post/inx-collect-detail-hardware-info/" class="more"></a>
</div> </div>
@ -484,10 +491,12 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/centos">centos</a>
<a href="/tags/linux">linux</a> <a href="/tags/linux">linux</a>
<a href="/tags/bsd">bsd</a>
<a href="/tags/inventory">inventory</a>
</div> </div>
</div> </div>
@ -504,30 +513,36 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/command_to_test_main_ssl/"> <a class="bubble" href="/post/log-all-bash-commands/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/command_to_test_main_ssl/"> <a href="/post/log-all-bash-commands/">
<img src="/images/post-default-10.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a></h3> <h3><a href="/post/log-all-bash-commands/">[筆記] 紀錄所有下過的指令、時間 / Log All commands with timestamp</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-03-20</span> <span class="date moment">2019-04-23</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
@ -536,22 +551,35 @@
</div> </div>
<p>今天老闆出國發slack說手機不能寄信看了一下似乎是因為用GMAIL的APP來收信</p> <p>今天發生一件有點詭異的事情,本來應該要經過某個指令才會產生的檔案</p>
<p>然後google 不知道跟人家改了什麼,結果不接受原本的認證了&hellip; WTF &hellip;.</p> <p>居然不知為何自己產生了,在我記憶中沒有去執行過那個指令</p>
<p>然後,這問題應該很久了,結果現在才在講 &hellip;.</p> <p>翻了一下 bash_history ,裡面也只有下過哪些指令,沒有紀錄時間,完全沒有參考價值(攤手)</p>
<p>所以翻了一下網路至少把這兩台主要跑ansible的機器的log功能補上紀錄所有指令以及時間的部份</p>
<a href="/post/command_to_test_main_ssl/" class="more"></a> <p></p>
<a href="/post/log-all-bash-commands/" class="more"></a>
</div> </div>
<div class="footer no-tags"> <div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/log">log</a>
</div>
</div>
@ -566,25 +594,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/install-timeshift-on-ubuntu1804/"> <a class="bubble" href="/post/fix-zpool-device-busy-using-dmsetup/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/install-timeshift-on-ubuntu1804/"> <a href="/post/fix-zpool-device-busy-using-dmsetup/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a></h3> <h3><a href="/post/fix-zpool-device-busy-using-dmsetup/">[筆記] 解決無法建立zpool 的錯誤 / Fix Zpool Device Busy Using dmsetup</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-03-11</span> <span class="date moment">2019-04-01</span>
@ -604,18 +632,16 @@
</div> </div>
<p>最近要開始測試client安裝 ubuntu 18.04 的 ansible playbook</p> <p>今天把其中一台proxmox 加上10G 光纖網卡準備和另一台proxmox 組成10G 環境進行測試</p>
<p>因為要不斷的修正所以想到一直有在自己電腦上執行的timeshift這個軟體</p>
<p>可以很簡單快速的備份、恢復系統狀態</p> <p>想說把本機的zpool 拆掉重新建立一個raid0 的空間來做clone/migrate</p>
<p>可是不知道為什麼在ubuntu 18.04 上安裝就是會發生錯誤&hellip;.</p> <p>可是一直出現device busy的錯誤訊息</p>
<p></p> <p></p>
<a href="/post/install-timeshift-on-ubuntu1804/" class="more"></a> <a href="/post/fix-zpool-device-busy-using-dmsetup/" class="more"></a>
</div> </div>
@ -629,9 +655,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/ubuntu">ubuntu</a> <a href="/tags/zfs">zfs</a>
<a href="/tags/backup">backup</a>
</div> </div>
</div> </div>
@ -649,25 +673,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/"> <a class="bubble" href="/post/transfer-cent62-using-rsync/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/"> <a href="/post/transfer-cent62-using-rsync/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-9.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/">用DELL 6 i/R 建立RAID並在上面安裝ubuntu 18.04 </a></h3> <h3><a href="/post/transfer-cent62-using-rsync/">[筆記] 用rsync 移轉 centos 6.2的老機器 Transfer Cent6.2 using rsync</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-01-16</span> <span class="date moment">2019-03-27</span>
@ -687,13 +711,13 @@
</div> </div>
<p>買了一張 DELL 6/iR 低階的raid 卡</p> <p>公司的一台老伺服器空間不足了,要執行指令都會中斷,所以想要擴充空間。</p>
<p>來測試把系統裝在硬體做的RAID上結果沒想到居然不能開機&hellip; <p>看起來不難搞,事實上&hellip;..
</p> </p>
<a href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/" class="more"></a> <a href="/post/transfer-cent62-using-rsync/" class="more"></a>
</div> </div>
@ -707,7 +731,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/ubuntu">ubuntu</a> <a href="/tags/centos">centos</a>
<a href="/tags/linux">linux</a>
</div> </div>
</div> </div>
@ -725,37 +751,31 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/ubuntu-1804-install-root-on-raid/"> <a class="bubble" href="/post/command_to_test_main_ssl/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/ubuntu-1804-install-root-on-raid/"> <a href="/post/command_to_test_main_ssl/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-10.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/ubuntu-1804-install-root-on-raid/">Ubuntu 1804 Install Root on Raid</a></h3> <h3><a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-01-16</span> <span class="date moment">2019-03-20</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span> <span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
@ -763,35 +783,22 @@
</div> </div>
<p>最近在弄一台機器想要把ubuntu 18.04 安裝在software raid上</p> <p>今天老闆出國發slack說手機不能寄信看了一下似乎是因為用GMAIL的APP來收信</p>
<p>因為新開的機器大部分都是在proxmox上所以很少碰實體機器了</p>
<p>結果在安裝過程中做raid碰到一些問題來紀錄一下</p> <p>然後google 不知道跟人家改了什麼,結果不接受原本的認證了&hellip; WTF &hellip;.</p>
<p></p> <p>然後,這問題應該很久了,結果現在才在講 &hellip;.</p>
<a href="/post/ubuntu-1804-install-root-on-raid/" class="more"></a> <a href="/post/command_to_test_main_ssl/" class="more"></a>
</div> </div>
<div class="footer"> <div class="footer no-tags">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/ubuntu">ubuntu</a>
<a href="/tags/raid">raid</a>
</div>
</div>
@ -806,25 +813,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/smartd-failed-to-start-in-freenas/"> <a class="bubble" href="/post/install-timeshift-on-ubuntu1804/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/smartd-failed-to-start-in-freenas/"> <a href="/post/install-timeshift-on-ubuntu1804/">
<img src="/images/post-default-2.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/smartd-failed-to-start-in-freenas/">[筆記] Freenas Smartd 啟動失敗 Smartd Failed to Start in Freenas</a></h3> <h3><a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-12-13</span> <span class="date moment">2019-03-11</span>
@ -844,18 +851,18 @@
</div> </div>
<p>這兩天在弄兩台Freenas 準備當作Proxmox 的Storage &amp; Server Backup</p> <p>最近要開始測試client安裝 ubuntu 18.04 的 ansible playbook</p>
<p>因為伺服器的限制只能接六個SATA我接了六個2T的硬碟做raid10</p> <p>因為要不斷的修正所以想到一直有在自己電腦上執行的timeshift這個軟體</p>
<p>然後把Freenas 安裝在隨身碟上</p> <p>可以很簡單快速的備份、恢復系統狀態</p>
<p>不過會一直出現Smartd failed to start 的錯誤訊息</p> <p>可是不知道為什麼在ubuntu 18.04 上安裝就是會發生錯誤&hellip;.</p>
<p></p> <p></p>
<a href="/post/smartd-failed-to-start-in-freenas/" class="more"></a> <a href="/post/install-timeshift-on-ubuntu1804/" class="more"></a>
</div> </div>
@ -869,7 +876,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/freenas">freenas</a> <a href="/tags/ubuntu">ubuntu</a>
<a href="/tags/backup">backup</a>
</div> </div>
</div> </div>
@ -910,31 +919,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -947,7 +956,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -98,25 +98,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/incredibly-slow-mdadm-rebuild/"> <a class="bubble" href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/incredibly-slow-mdadm-rebuild/"> <a href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/">
<img src="/images/post-default-1.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/incredibly-slow-mdadm-rebuild/">[碎念] mdadm 超級慢的rebuild 速度 Incredibly Slow mdadm Rebuild</a></h3> <h3><a href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/">用DELL 6 i/R 建立RAID並在上面安裝ubuntu 18.04 </a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-12-12</span> <span class="date moment">2019-01-16</span>
@ -125,7 +125,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/%E7%A2%8E%E5%BF%B5">碎念</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span> </span>
@ -136,20 +136,13 @@
</div> </div>
<p>最近在做一台老機器的P2V</p> <p>買了一張 DELL 6/iR 低階的raid 卡</p>
<p>偏偏user說不能關機所以我用dd + ssh 做線上移轉</p>
<p>這部份有空再來寫</p>
<p>只是因為原來的設定有用mdadm 做raid1</p>
<p>這部份導致移轉過去proxmox 後會出現raid degrade 導致無法正常開機</p>
<p></p> <p>來測試把系統裝在硬體做的RAID上結果沒想到居然不能開機&hellip;
</p>
<a href="/post/incredibly-slow-mdadm-rebuild/" class="more"></a> <a href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/" class="more"></a>
</div> </div>
@ -163,7 +156,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/mdadm">mdadm</a> <a href="/tags/ubuntu">ubuntu</a>
</div> </div>
</div> </div>
@ -181,25 +174,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/create-portable-vim-environment/"> <a class="bubble" href="/post/ubuntu-1804-install-root-on-raid/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/create-portable-vim-environment/"> <a href="/post/ubuntu-1804-install-root-on-raid/">
<img src="/images/post-default-8.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/create-portable-vim-environment/">[筆記] 建立一個帶著走的 VIM 環境 Creating portable Vim environment</a></h3> <h3><a href="/post/ubuntu-1804-install-root-on-raid/">Ubuntu 1804 Install Root on Raid</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-12-07</span> <span class="date moment">2019-01-16</span>
@ -219,18 +212,16 @@
</div> </div>
<p>因為工作的關係現在很多時間都花在VIM的操作上</p> <p>最近在弄一台機器想要把ubuntu 18.04 安裝在software raid上</p>
<p>所以之前花了滿多時間調整出一個適合自己的VIM環境</p>
<p>原本的作法是把這個設定好的環境丟到自己建立的gitea 上面</p> <p>因為新開的機器大部分都是在proxmox上所以很少碰實體機器了</p>
<p>然後每到一台新的機器就要去clone 下來</p> <p>結果在安裝過程中做raid碰到一些問題來紀錄一下</p>
<p></p> <p></p>
<a href="/post/create-portable-vim-environment/" class="more"></a> <a href="/post/ubuntu-1804-install-root-on-raid/" class="more"></a>
</div> </div>
@ -244,7 +235,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/vim">vim</a> <a href="/tags/ubuntu">ubuntu</a>
<a href="/tags/raid">raid</a>
</div> </div>
</div> </div>
@ -262,25 +255,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/synology-ds415-repair-cost/"> <a class="bubble" href="/post/smartd-failed-to-start-in-freenas/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/synology-ds415-repair-cost/"> <a href="/post/smartd-failed-to-start-in-freenas/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-2.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/synology-ds415-repair-cost/">[雜念] 群暉 Synology NAS DS 415&#43; 誇張的維修費用</a></h3> <h3><a href="/post/smartd-failed-to-start-in-freenas/">[筆記] Freenas Smartd 啟動失敗 Smartd Failed to Start in Freenas</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-12-04</span> <span class="date moment">2018-12-13</span>
@ -289,7 +282,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/%E7%BE%A4%E6%9A%89">群暉</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span> </span>
@ -300,26 +293,18 @@
</div> </div>
<p>前幾天公司的一台 Synology DS 415+ 發生異常</p> <p>這兩天在弄兩台Freenas 準備當作Proxmox 的Storage &amp; Server Backup</p>
<p>注意到的時候,四顆硬碟燈號都不斷的在閃爍</p>
<p>但是已經無法登入系統</p>
<p>重開機之後更慘,四顆硬碟燈號全部橘燈恆亮</p>
<p>底下的電源藍燈不斷的在閃爍</p>
<p>雖然我一再表示不希望送修了</p> <p>因為伺服器的限制只能接六個SATA我接了六個2T的硬碟做raid10</p>
<p>一來是已經過保二來是DS415+ 本身就有intel bug三來是因為對synology的NAS 實在沒有愛&hellip;</p> <p>然後把Freenas 安裝在隨身碟上</p>
<p>不過主管還是希望能夠先問群暉維修的費用多少</p> <p>不過會一直出現Smartd failed to start 的錯誤訊息</p>
<p></p> <p></p>
<a href="/post/synology-ds415-repair-cost/" class="more"></a> <a href="/post/smartd-failed-to-start-in-freenas/" class="more"></a>
</div> </div>
@ -333,11 +318,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/nas">NAS</a> <a href="/tags/freenas">freenas</a>
<a href="/tags/%E7%BE%A4%E6%9A%89">群暉</a>
<a href="/tags/synology">synology</a>
</div> </div>
</div> </div>
@ -355,25 +336,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/10g-lab-using-proxmox-and-mellanox/"> <a class="bubble" href="/post/incredibly-slow-mdadm-rebuild/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/10g-lab-using-proxmox-and-mellanox/"> <a href="/post/incredibly-slow-mdadm-rebuild/">
<img src="/images/post-default-03.jpg" alt=""> <img src="/images/post-default-1.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a></h3> <h3><a href="/post/incredibly-slow-mdadm-rebuild/">[碎念] mdadm 超級慢的rebuild 速度 Incredibly Slow mdadm Rebuild</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-11-30</span> <span class="date moment">2018-12-12</span>
@ -382,7 +363,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a> <a href="/categories/%E7%A2%8E%E5%BF%B5">碎念</a>
</span> </span>
@ -393,28 +374,20 @@
</div> </div>
<p>想做一個 10G 的 LAB 環境出來已經很久了。</p> <p>最近在做一台老機器的P2V</p>
<p>只是礙於10G RJ45的卡太貴了然後光纖的種類又太複雜</p>
<p>如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)</p>
<p>所以一直沒有付諸行動。</p>
<p>硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡以在台灣的價格來說算很便宜的 (550)</p>
<p>聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位</p> <p>偏偏user說不能關機所以我用dd + ssh 做線上移轉</p>
<p>就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線</p> <p>這部份有空再來寫</p>
<p>就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到</p> <p>只是因為原來的設定有用mdadm 做raid1</p>
<p>今天就花了點時間測試一下</p> <p>這部份導致移轉過去proxmox 後會出現raid degrade 導致無法正常開機</p>
<p></p> <p></p>
<a href="/post/10g-lab-using-proxmox-and-mellanox/" class="more"></a> <a href="/post/incredibly-slow-mdadm-rebuild/" class="more"></a>
</div> </div>
@ -428,11 +401,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/10g">10G</a> <a href="/tags/mdadm">mdadm</a>
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
<a href="/tags/mellanox">mellanox</a>
</div> </div>
</div> </div>
@ -450,25 +419,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/ansible-selectattr-filter/"> <a class="bubble" href="/post/create-portable-vim-environment/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/ansible-selectattr-filter/"> <a href="/post/create-portable-vim-environment/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-8.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a></h3> <h3><a href="/post/create-portable-vim-environment/">[筆記] 建立一個帶著走的 VIM 環境 Creating portable Vim environment</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-11-29</span> <span class="date moment">2018-12-07</span>
@ -488,16 +457,18 @@
</div> </div>
<p>在上一篇 <a href="https://h.cowbay.org/post/ansible-selectattr/">Ansible how to use &lsquo;list&rsquo; in yaml file </a></p> <p>因為工作的關係,現很多時間都花在VIM的操作</p>
<p>有提到怎麼用 with_items / set_fact 來取得在yaml 檔案中的清單</p> <p>所以之前花了滿多時間調整出一個適合自己的VIM環境</p>
<p>不過就是有點醜</p> <p>原本的作法是把這個設定好的環境丟到自己建立的gitea 上面</p>
<p>然後每到一台新的機器就要去clone 下來</p>
<p></p> <p></p>
<a href="/post/ansible-selectattr-filter/" class="more"></a> <a href="/post/create-portable-vim-environment/" class="more"></a>
</div> </div>
@ -511,7 +482,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/ansible">ansible</a> <a href="/tags/vim">vim</a>
</div> </div>
</div> </div>
@ -529,25 +500,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/ansible-selectattr/"> <a class="bubble" href="/post/synology-ds415-repair-cost/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/ansible-selectattr/"> <a href="/post/synology-ds415-repair-cost/">
<img src="/images/post-default-1.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/ansible-selectattr/">[筆記] Ansible how to use &#39;list&#39; in yaml file </a></h3> <h3><a href="/post/synology-ds415-repair-cost/">[雜念] 群暉 Synology NAS DS 415&#43; 誇張的維修費用</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-11-27</span> <span class="date moment">2018-12-04</span>
@ -556,7 +527,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a> <a href="/categories/%E7%BE%A4%E6%9A%89">群暉</a>
</span> </span>
@ -567,55 +538,26 @@
</div> </div>
<p>這幾天在玩ansible 時,碰到一個問題</p> <p>前幾天公司的一台 Synology DS 415+ 發生異常</p>
<p>假如我有個yaml檔作為資料來源檔名是 abc.yml</p> <p>注意到的時候,四顆硬碟燈號都不斷的在閃爍</p>
<p>大概長這樣</p> <p>但是已經無法登入系統</p>
<pre><code> &quot;teams&quot;: [ <p>重開機之後更慘,四顆硬碟燈號全部橘燈恆亮</p>
{
&quot;chinese_name&quot;: &quot;TEAM1&quot;,
&quot;description&quot;: &quot;TEAM1&quot;,
&quot;gid&quot;: 10125,
&quot;location&quot;: [
&quot;hq&quot;
],
&quot;name&quot;: &quot;aa&quot;,
&quot;users&quot;: [
&quot;chen&quot;,
&quot;chou&quot;,
&quot;huani&quot;,
&quot;yey&quot;,
&quot;wa&quot;
]
},
{
&quot;chinese_name&quot;: &quot;TEAM2&quot;,
&quot;description&quot;: &quot;TEAM2&quot;,
&quot;gid&quot;: 10126,
&quot;location&quot;: [
&quot;hq&quot;
],
&quot;name&quot;: &quot;bb&quot;,
&quot;users&quot;: [
&quot;chhiao&quot;,
&quot;chgc&quot;,
&quot;chy&quot;,
&quot;hsi&quot;,
&quot;li&quot;,
&quot;li&quot;,
&quot;chgchi&quot;
]
}
]
</code></pre> <p>底下的電源藍燈不斷的在閃爍</p>
<p>雖然我一再表示不希望送修了</p>
<p>一來是已經過保二來是DS415+ 本身就有intel bug三來是因為對synology的NAS 實在沒有愛&hellip;</p>
<p>不過主管還是希望能夠先問群暉維修的費用多少</p>
<p></p> <p></p>
<a href="/post/ansible-selectattr/" class="more"></a> <a href="/post/synology-ds415-repair-cost/" class="more"></a>
</div> </div>
@ -629,9 +571,11 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/ansible">ansible</a> <a href="/tags/nas">NAS</a>
<a href="/tags/linux">linux</a> <a href="/tags/%E7%BE%A4%E6%9A%89">群暉</a>
<a href="/tags/synology">synology</a>
</div> </div>
</div> </div>
@ -649,25 +593,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/change-preferred-language-in-firefox/"> <a class="bubble" href="/post/10g-lab-using-proxmox-and-mellanox/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/change-preferred-language-in-firefox/"> <a href="/post/10g-lab-using-proxmox-and-mellanox/">
<img src="/images/post-default-9.jpg" alt=""> <img src="/images/post-default-03.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/change-preferred-language-in-firefox/">[筆記] 為了metabase 修改 firefox 開啟網頁時使用的預設語言 change the preferred language in firefox for metabase</a></h3> <h3><a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-11-15</span> <span class="date moment">2018-11-30</span>
@ -687,18 +631,28 @@
</div> </div>
<p>最近在測試metabase記得幾個月前就有測試過</p> <p>想做一個 10G 的 LAB 環境出來已經很久了。</p>
<p>但是當時的界面和現在的樣子差很多,看樣子改版還滿勤勞的</p> <p>只是礙於10G RJ45的卡太貴了然後光纖的種類又太複雜</p>
<p>所以這次改用docker來建立根本五分鐘不到就建好了(挖鼻孔)</p> <p>如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)</p>
<p>不過呢,很討厭的是,一進去就發現語系採用的是簡體中文</p> <p>所以一直沒有付諸行動。</p>
<p>硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡以在台灣的價格來說算很便宜的 (550)</p>
<p>聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位</p>
<p>就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線</p>
<p>就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到</p>
<p>今天就花了點時間測試一下</p>
<p></p> <p></p>
<a href="/post/change-preferred-language-in-firefox/" class="more"></a> <a href="/post/10g-lab-using-proxmox-and-mellanox/" class="more"></a>
</div> </div>
@ -712,11 +666,11 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a> <a href="/tags/10g">10G</a>
<a href="/tags/firefox">firefox</a> <a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
<a href="/tags/metabase">metabase</a> <a href="/tags/mellanox">mellanox</a>
</div> </div>
</div> </div>
@ -734,25 +688,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/copy_role_in_pgsql/"> <a class="bubble" href="/post/ansible-selectattr-filter/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/copy_role_in_pgsql/"> <a href="/post/ansible-selectattr-filter/">
<img src="/images/post-default-7.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/copy_role_in_pgsql/">PostgreSQL 直接從已經存在的使用者複製權限到另一個使用者</a></h3> <h3><a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-11-12</span> <span class="date moment">2018-11-29</span>
@ -772,18 +726,16 @@
</div> </div>
<p>因為工作上的需求有個資料庫需要開放給不同team的人去存取</p> <p>在上一篇 <a href="https://h.cowbay.org/post/ansible-selectattr/">Ansible how to use &lsquo;list&rsquo; in yaml file </a></p>
<p>雖然都是在同一台機器上的同一個資料庫</p>
<p>但是希望能夠不同team的人用不同的資料庫使用者</p> <p>有提到怎麼用 with_items / set_fact 來取得在yaml 檔案中的清單</p>
<p>這樣萬一出事,會比較好抓兇手??</p> <p>不過就是有點醜</p>
<p></p> <p></p>
<a href="/post/copy_role_in_pgsql/" class="more"></a> <a href="/post/ansible-selectattr-filter/" class="more"></a>
</div> </div>
@ -797,9 +749,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/psql">psql</a> <a href="/tags/ansible">ansible</a>
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
</div> </div>
</div> </div>
@ -817,25 +767,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/weird-client-server-connection/"> <a class="bubble" href="/post/ansible-selectattr/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/weird-client-server-connection/"> <a href="/post/ansible-selectattr/">
<img src="/images/post-default-4.jpg" alt=""> <img src="/images/post-default-1.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/weird-client-server-connection/">[筆記] 詭異的client&amp;server間連線的問題或許跟KVM有關係</a></h3> <h3><a href="/post/ansible-selectattr/">[筆記] Ansible how to use &#39;list&#39; in yaml file </a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-11-08</span> <span class="date moment">2018-11-27</span>
@ -855,24 +805,55 @@
</div> </div>
<p>這是發生在一個夜黑風高的寂寥深夜&hellip;.. ( What The FXXX &hellip; )</p> <p>這幾天在玩ansible 時,碰到一個問題</p>
<p>來到這個環境之後,有一個很詭異的狀況一直困擾著我</p>
<p>在每個分公司都會有一台伺服器作為KVM Host</p>
<p>上面跑兩台VM一台作為ansible controller (目前沒作用)</p> <p>假如我有個yaml檔作為資料來源檔名是 abc.yml</p>
<p>另一台作為這邊所謂的 &ldquo;Build Server&rdquo;</p> <p>大概長這樣</p>
<p>用途包含了DHCP Server / Proxy Server (squid3) / APT Proxy (squid-deb-proxy)</p> <pre><code> &quot;teams&quot;: [
{
&quot;chinese_name&quot;: &quot;TEAM1&quot;,
&quot;description&quot;: &quot;TEAM1&quot;,
&quot;gid&quot;: 10125,
&quot;location&quot;: [
&quot;hq&quot;
],
&quot;name&quot;: &quot;aa&quot;,
&quot;users&quot;: [
&quot;chen&quot;,
&quot;chou&quot;,
&quot;huani&quot;,
&quot;yey&quot;,
&quot;wa&quot;
]
},
{
&quot;chinese_name&quot;: &quot;TEAM2&quot;,
&quot;description&quot;: &quot;TEAM2&quot;,
&quot;gid&quot;: 10126,
&quot;location&quot;: [
&quot;hq&quot;
],
&quot;name&quot;: &quot;bb&quot;,
&quot;users&quot;: [
&quot;chhiao&quot;,
&quot;chgc&quot;,
&quot;chy&quot;,
&quot;hsi&quot;,
&quot;li&quot;,
&quot;li&quot;,
&quot;chgchi&quot;
]
}
]
<p>問題就發生在這台 Build Server 上&hellip;</p> </code></pre>
<p></p> <p></p>
<a href="/post/weird-client-server-connection/" class="more"></a> <a href="/post/ansible-selectattr/" class="more"></a>
</div> </div>
@ -886,9 +867,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/ubuntu">ubuntu</a> <a href="/tags/ansible">ansible</a>
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a> <a href="/tags/linux">linux</a>
</div> </div>
</div> </div>
@ -906,25 +887,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/nice-du-report-tool-durep/"> <a class="bubble" href="/post/change-preferred-language-in-firefox/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/nice-du-report-tool-durep/"> <a href="/post/change-preferred-language-in-firefox/">
<img src="/images/post-default-9.jpg" alt=""> <img src="/images/post-default-9.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a></h3> <h3><a href="/post/change-preferred-language-in-firefox/">[筆記] 為了metabase 修改 firefox 開啟網頁時使用的預設語言 change the preferred language in firefox for metabase</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-11-06</span> <span class="date moment">2018-11-15</span>
@ -944,15 +925,18 @@
</div> </div>
<p>最近在重新規劃前人留下的backup爛攤子 <p>最近在測試metabase記得幾個月前就有測試過</p>
各個伺服器統一備份到一台backup storage
想說如果每天能夠看到backup storage的磁碟用量的話 <p>但是當時的界面和現在的樣子差很多,看樣子改版還滿勤勞的</p>
就可以抓出備份空間成長速度、推估需要多大的磁碟空間
找了一些工具,結果發現 durep 這個 ubuntu 內建的工具 <p>所以這次改用docker來建立根本五分鐘不到就建好了(挖鼻孔)</p>
基本上可以滿足我的需求</p>
<p>不過呢,很討厭的是,一進去就發現語系採用的是簡體中文</p>
<p></p>
<a href="/post/nice-du-report-tool-durep/" class="more"></a> <a href="/post/change-preferred-language-in-firefox/" class="more"></a>
</div> </div>
@ -966,9 +950,11 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/linux">linux</a> <a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
<a href="/tags/firefox">firefox</a>
<a href="/tags/du">du</a> <a href="/tags/metabase">metabase</a>
</div> </div>
</div> </div>
@ -1009,31 +995,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -1046,7 +1032,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -96,6 +96,258 @@
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/copy_role_in_pgsql/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/copy_role_in_pgsql/">
<img src="/images/post-default-7.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/copy_role_in_pgsql/">PostgreSQL 直接從已經存在的使用者複製權限到另一個使用者</a></h3>
<div class="meta">
<span class="date moment">2018-11-12</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>因為工作上的需求有個資料庫需要開放給不同team的人去存取</p>
<p>雖然都是在同一台機器上的同一個資料庫</p>
<p>但是希望能夠不同team的人用不同的資料庫使用者</p>
<p>這樣萬一出事,會比較好抓兇手??</p>
<p></p>
<a href="/post/copy_role_in_pgsql/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/psql">psql</a>
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/weird-client-server-connection/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/weird-client-server-connection/">
<img src="/images/post-default-4.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/weird-client-server-connection/">[筆記] 詭異的client&amp;server間連線的問題或許跟KVM有關係</a></h3>
<div class="meta">
<span class="date moment">2018-11-08</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>這是發生在一個夜黑風高的寂寥深夜&hellip;.. ( What The FXXX &hellip; )</p>
<p>來到這個環境之後,有一個很詭異的狀況一直困擾著我</p>
<p>在每個分公司都會有一台伺服器作為KVM Host</p>
<p>上面跑兩台VM一台作為ansible controller (目前沒作用)</p>
<p>另一台作為這邊所謂的 &ldquo;Build Server&rdquo;</p>
<p>用途包含了DHCP Server / Proxy Server (squid3) / APT Proxy (squid-deb-proxy)</p>
<p>問題就發生在這台 Build Server 上&hellip;</p>
<p></p>
<a href="/post/weird-client-server-connection/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/ubuntu">ubuntu</a>
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/nice-du-report-tool-durep/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/nice-du-report-tool-durep/">
<img src="/images/post-default-9.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a></h3>
<div class="meta">
<span class="date moment">2018-11-06</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>最近在重新規劃前人留下的backup爛攤子
各個伺服器統一備份到一台backup storage
想說如果每天能夠看到backup storage的磁碟用量的話
就可以抓出備份空間成長速度、推估需要多大的磁碟空間
找了一些工具,結果發現 durep 這個 ubuntu 內建的工具
基本上可以滿足我的需求</p>
<a href="/post/nice-du-report-tool-durep/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/linux">linux</a>
<a href="/tags/du">du</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/bookstack-docker/"> <a class="bubble" href="/post/bookstack-docker/">
@ -376,31 +628,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -413,7 +665,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -417,31 +417,31 @@ TCP window size: 85.0 KByte (default)
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -454,7 +454,7 @@ TCP window size: 85.0 KByte (default)
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -217,31 +217,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -254,7 +254,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -299,31 +299,31 @@ hwaddress: f4:4d:30:45:ef:aa', host: pc120', ipv4: 192.168.1.120', user: [wany']
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -336,7 +336,7 @@ hwaddress: f4:4d:30:45:ef:aa', host: pc120', ipv4: 192.168.1.120', user: [wany']
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -220,31 +220,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -257,7 +257,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -275,31 +275,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -312,7 +312,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -331,31 +331,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -368,7 +368,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -286,31 +286,31 @@ b8d74048eba1 mysql:5.7.21 &quot;docker-entrypoint.s…&qu
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -323,7 +323,7 @@ b8d74048eba1 mysql:5.7.21 &quot;docker-entrypoint.s…&qu
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -260,31 +260,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -297,7 +297,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -323,31 +323,31 @@ Tue May 21 17:39:48 CST 2019
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -360,7 +360,7 @@ Tue May 21 17:39:48 CST 2019
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -394,31 +394,31 @@ openssl s_client -showcerts -connect mail.example.com:465
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -431,7 +431,7 @@ openssl s_client -showcerts -connect mail.example.com:465
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -218,31 +218,31 @@ GRANT a TO b;
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -255,7 +255,7 @@ GRANT a TO b;
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -231,31 +231,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -268,7 +268,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -286,31 +286,31 @@ traceroute to term.ptt.cc (104.31.231.9), 30 hops max, 60 byte packets
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -323,7 +323,7 @@ traceroute to term.ptt.cc (104.31.231.9), 30 hops max, 60 byte packets
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -304,31 +304,31 @@ admin@storage:~$
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -341,7 +341,7 @@ admin@storage:~$
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -251,31 +251,31 @@ root@pve:~#
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -288,7 +288,7 @@ root@pve:~#
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -274,31 +274,31 @@ unused devices: &lt;none&gt;
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -311,7 +311,7 @@ unused devices: &lt;none&gt;
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -93,25 +93,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/"> <a class="bubble" href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/"> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">
<img src="/images/post-default-8.jpg" alt=""> <img src="/images/post-default-4.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a></h3> <h3><a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-08-16</span> <span class="date moment">2019-08-23</span>
@ -131,24 +131,12 @@
</div> </div>
<p>最近一直在玩 wireguard 先前把各個分公司和總部的VPN 改用 wireguard 建立</p> <p>這篇繼續講 pgbarman 透過 rsync/ssh 來備份 postgresql 資料庫的方式</p>
<p>想說再打個VPN tunnel 來當跳板連 ptt 好了</p>
<p>因為wireguard 建立很簡單,而且又可以指定想要繞出去的路由,不會影響原本的網路環境</p>
<p>本來是在vultr 的VPS上面建立這個tunnel</p>
<p>但是那台VPS連去ptt 很頓,卡卡的</p>
<p>所以改用google cloud platform 的free tier 來做</p>
<p>反正只是拿來當跳板,不會有什麼流量、運算產生,可以一直保持免費的狀態</p>
<p></p> <p></p>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/" class="more"></a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/" class="more"></a>
</div> </div>
@ -162,9 +150,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/vpn">vpn</a> <a href="/tags/postgresql">postgresql</a>
<a href="/tags/wireguard">wireguard</a> <a href="/tags/pgbarman">pgbarman</a>
</div> </div>
</div> </div>
@ -180,25 +168,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/multiple-site-to-site-vpn-using-wireguard/"> <a class="bubble" href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/multiple-site-to-site-vpn-using-wireguard/"> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">
<img src="/images/post-default-10.jpg" alt=""> <img src="/images/post-default-4.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a></h3> <h3><a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-08-13</span> <span class="date moment">2019-08-23</span>
@ -218,22 +206,18 @@
</div> </div>
<p>因為實在受夠了現在用的 openwrt + strongswan 建立 IPSec VPN</p> <p>很久以前就有看到這個用來備份postgresql 的 pgbarman</p>
<p>雖然說其實沒有什麼不好,但是畢竟不是我建立的,而當初的文件也都不見了</p>
<p>完全沒辦法了解當時設計的邏輯造成後續debug 困難</p> <p><a href="https://www.pgbarman.org/">https://www.pgbarman.org/</a></p>
<p>可以想像一下一台VPN router ping 不到remote、ping不到internet、甚至ping不到自己 是要怎麼debug !?(翻桌</p> <p>前幾天老闆在slack 上面又提到,所以這次就花了點時間來玩玩看</p>
<p>之前買了兩台edgerouter X 拿來玩了一下 wireguard感覺還不錯不過只有測試到點對點</p> <p>不過呢,雖然有弄起來,但是還真不知道有些問題是怎麼解決的&hellip;</p>
<p>這次試試看躲在gateway後面看看能不能建立多點的VPN環境</p>
<p></p> <p></p>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/" class="more"></a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/" class="more"></a>
</div> </div>
@ -247,11 +231,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/vpn">vpn</a> <a href="/tags/postgresql">postgresql</a>
<a href="/tags/ubuntu">ubuntu</a>
<a href="/tags/wireguard">wireguard</a> <a href="/tags/pgbarman">pgbarman</a>
</div> </div>
</div> </div>
@ -267,25 +249,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/"> <a class="bubble" href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/"> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">
<img src="/images/post-default-5.jpg" alt=""> <img src="/images/post-default-7.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a></h3> <h3><a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-08-06</span> <span class="date moment">2019-08-20</span>
@ -305,30 +287,18 @@
</div> </div>
<p>之前總部和分公司之間 是用buffalo 的小AP 灌 openwrt</p> <p>因為老闆說要試試看用GPU 來跑postgresql 威力</p>
<p>然後用strongswan 來打 IPSEC site to site VPN</p>
<p>config 看起來不是很難 (只是看起來)</p>
<p>但是實際上已經找不到當初的文件</p>
<p>所以要維護很困難(光那些RSA KEY 就不知道為何、如何產生)</p>
<p>後來採購了兩台edgerouter X 做測試</p>
<p>也用openvpn 成功的建立了 site to site VPN</p>
<p>本來想說 openvpn 已經夠簡單了</p> <p>手邊剛好有一張 geforce gt 720</p>
<p>今天看到文章說用wireguard 可以更簡單</p> <p>一開始沒想太多看到有這張卡的驅動程式然後CUDA也有支援</p>
<p>於是研究了一下,發現還真的很簡單!</p> <p>就直接從桌機拔下來接去LAB Server ,然後就開始一連串的難關了&hellip;</p>
<p></p> <p></p>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/" class="more"></a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/" class="more"></a>
</div> </div>
@ -342,9 +312,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/vpn">vpn</a> <a href="/tags/nvidia">nvidia</a>
<a href="/tags/edgerouter">edgerouter</a>
</div> </div>
</div> </div>
@ -360,25 +328,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/another-way-to-keep-ansible-log/"> <a class="bubble" href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/another-way-to-keep-ansible-log/"> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">
<img src="/images/post-default-10.jpg" alt=""> <img src="/images/post-default-8.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a></h3> <h3><a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-08-05</span> <span class="date moment">2019-08-16</span>
@ -387,7 +355,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/ansible">ansible</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span> </span>
@ -398,23 +366,24 @@
</div> </div>
<p>之前為了能夠在執行完 ansible playbook 後能有個log 可以看</p> <p>最近一直在玩 wireguard 先前把各個分公司和總部的VPN 改用 wireguard 建立</p>
<p>所以在每次執行的時候,都要加入 tee 的指令</p> <p>想說再打個VPN tunnel 來當跳板連 ptt 好了</p>
<p>像是</p> <p>因為wireguard 建立很簡單,而且又可以指定想要繞出去的路由,不會影響原本的網路環境</p>
<pre><code>ANSIBLE_CONFIG=/home/D/ansiblecontrol/ansible.cfg /usr/local/bin/ansible-playbook /home/D/ansiblecontrol/playbook.user_client.yml --vault-password-file=/home/D/ansiblecontrol/vault.passwd -i /home/D/ansiblecontrol/inventory/production -f1 --limit tyuserclients |tee /tmp/tyuserclients.log <p>本來是在vultr 的VPS上面建立這個tunnel</p>
</code></pre>
<p>一直都是放在crontab 裡面執行,也就沒有去管他</p> <p>但是那台VPS連去ptt 很頓,卡卡的</p>
<p>反正也沒有人關心結果怎樣 (攤手</p> <p>所以改用google cloud platform 的free tier 來做</p>
<p>反正只是拿來當跳板,不會有什麼流量、運算產生,可以一直保持免費的狀態</p>
<p></p> <p></p>
<a href="/post/another-way-to-keep-ansible-log/" class="more"></a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/" class="more"></a>
</div> </div>
@ -428,7 +397,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/ansible">ansible</a> <a href="/tags/vpn">vpn</a>
<a href="/tags/wireguard">wireguard</a>
</div> </div>
</div> </div>
@ -444,25 +415,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/send-mail-to-notify-after-pxe-install/"> <a class="bubble" href="/post/multiple-site-to-site-vpn-using-wireguard/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/send-mail-to-notify-after-pxe-install/"> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-10.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a></h3> <h3><a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-07-31</span> <span class="date moment">2019-08-13</span>
@ -482,26 +453,22 @@
</div> </div>
<p>最近有個任務需要大量安裝client</p> <p>因為實在受夠了現在用的 openwrt + strongswan 建立 IPSec VPN</p>
<p>想用PXE來處理只要user開機按F12(acer 桌機) 選擇PXE Boot</p>
<p>然後選擇OS版本就可以自動進行安裝</p>
<p>安裝完成後會自動重新開機接著就用ansible來做user環境設定</p> <p>雖然說其實沒有什麼不好,但是畢竟不是我建立的,而當初的文件也都不見了</p>
<p>PXE的部份本來是沒有什麼問題自動安裝系統的部份都做好了</p> <p>完全沒辦法了解當時設計的邏輯造成後續debug 困難</p>
<p>是因為這次的量比較多想說讓每一台在完成PXE安裝後的第一次重開機</p> <p>以想像一下一台VPN router ping 不到remote、ping不到internet、甚至ping不到自己 是要怎麼debug !?(翻桌</p>
<p>就送出一封郵件來通知我說已經完成安裝可以執行ansible 了</p> <p>之前買了兩台edgerouter X 拿來玩了一下 wireguard感覺還不錯不過只有測試到點對點</p>
<p>看似很簡單的一件事情,卻搞了我兩天&hellip;.</p> <p>這次試試看躲在gateway後面看看能不能建立多點的VPN環境</p>
<p></p> <p></p>
<a href="/post/send-mail-to-notify-after-pxe-install/" class="more"></a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/" class="more"></a>
</div> </div>
@ -515,11 +482,11 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/pxe">PXE</a> <a href="/tags/vpn">vpn</a>
<a href="/tags/ubuntu">ubuntu</a> <a href="/tags/ubuntu">ubuntu</a>
<a href="/tags/linux">linux</a> <a href="/tags/wireguard">wireguard</a>
</div> </div>
</div> </div>
@ -535,25 +502,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/ansible-run-task-depends-on-ipaddr/"> <a class="bubble" href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/ansible-run-task-depends-on-ipaddr/"> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">
<img src="/images/post-default-7.jpg" alt=""> <img src="/images/post-default-5.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a></h3> <h3><a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-07-23</span> <span class="date moment">2019-08-06</span>
@ -562,7 +529,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/ansible">ansible</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span> </span>
@ -573,16 +540,30 @@
</div> </div>
<p>因為工作上的需要要修改client端的 /etc/environment 檔案</p> <p>之前總部和分公司之間 是用buffalo 的小AP 灌 openwrt</p>
<p>在有權限使用proxy 服務的user的環境中加入proxy 的設定</p> <p>然後用strongswan 來打 IPSEC site to site VPN</p>
<p>原本的清單中有host/user/ip 這幾個值可以拿來判斷</p> <p>config 看起來不是很難 (只是看起來)</p>
<p>proxy server 那邊是採用ip 來控制,所以這邊也跟著用 ip 來判斷要不要修改 /etc/environment</p> <p>但是實際上已經找不到當初的文件</p>
<p>所以要維護很困難(光那些RSA KEY 就不知道為何、如何產生)</p>
<p>後來採購了兩台edgerouter X 做測試</p>
<a href="/post/ansible-run-task-depends-on-ipaddr/" class="more"></a> <p>也用openvpn 成功的建立了 site to site VPN</p>
<p>本來想說 openvpn 已經夠簡單了</p>
<p>今天看到文章說用wireguard 可以更簡單</p>
<p>於是研究了一下,發現還真的很簡單!</p>
<p></p>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/" class="more"></a>
</div> </div>
@ -596,7 +577,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/ansible">ansible</a> <a href="/tags/vpn">vpn</a>
<a href="/tags/edgerouter">edgerouter</a>
</div> </div>
</div> </div>
@ -612,25 +595,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/ansible-selectattr-from-list-in-dictionary/"> <a class="bubble" href="/post/another-way-to-keep-ansible-log/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/ansible-selectattr-from-list-in-dictionary/"> <a href="/post/another-way-to-keep-ansible-log/">
<img src="/images/post-default-7.jpg" alt=""> <img src="/images/post-default-10.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a></h3> <h3><a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-07-01</span> <span class="date moment">2019-08-05</span>
@ -639,7 +622,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/ansible">Ansible</a> <a href="/categories/ansible">ansible</a>
</span> </span>
@ -650,16 +633,23 @@
</div> </div>
<p>在ansible中關於如何引用自定義的變數一直讓我很頭疼</p> <p>之前為了能夠在執行完 ansible playbook 後能有個log 可以看</p>
<p>尤其是有牽涉到從外部導入yaml檔案時更是常常讓我不知道到底該怎麼抓出想要的變數</p> <p>所以在每次執行的時候,都要加入 tee 的指令</p>
<p>這次還是用selectattr 來處理,希望下次能夠記得&hellip;</p> <p>像是</p>
<pre><code>ANSIBLE_CONFIG=/home/D/ansiblecontrol/ansible.cfg /usr/local/bin/ansible-playbook /home/D/ansiblecontrol/playbook.user_client.yml --vault-password-file=/home/D/ansiblecontrol/vault.passwd -i /home/D/ansiblecontrol/inventory/production -f1 --limit tyuserclients |tee /tmp/tyuserclients.log
</code></pre>
<p>一直都是放在crontab 裡面執行,也就沒有去管他</p>
<p>反正也沒有人關心結果怎樣 (攤手</p>
<p></p> <p></p>
<a href="/post/ansible-selectattr-from-list-in-dictionary/" class="more"></a> <a href="/post/another-way-to-keep-ansible-log/" class="more"></a>
</div> </div>
@ -673,7 +663,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/ansible">Ansible</a> <a href="/tags/ansible">ansible</a>
</div> </div>
</div> </div>
@ -689,25 +679,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/remote-management-system-meshcentral/"> <a class="bubble" href="/post/send-mail-to-notify-after-pxe-install/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/remote-management-system-meshcentral/"> <a href="/post/send-mail-to-notify-after-pxe-install/">
<img src="/images/post-default-5.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/remote-management-system-meshcentral/">linux底下遠端遙控&amp;管理的好用系統 Meshcentral / Remote Management &amp; control system Meshcentral</a></h3> <h3><a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-06-20</span> <span class="date moment">2019-07-31</span>
@ -727,20 +717,26 @@
</div> </div>
<p>之前在LAN/windows環境下一直都是用ultravnc/winvnc/tigervnc之類的VNC軟體</p> <p>最近有個任務需要大量安裝client</p>
<p>想用PXE來處理只要user開機按F12(acer 桌機) 選擇PXE Boot</p>
<p>但是如果要過 internet 就會碰到各種開port的問題</p> <p>然後選擇OS版本就可以自動進行安裝</p>
<p>在這種環境下,就有了當時 teamviewer 的橫空出世</p> <p>安裝完成後會自動重新開機接著就用ansible來做user環境設定</p>
<p>解決了開PORT的問題讓被控端(通常是資訊技術相對弱勢,需要接受幫助的一方)不需要懂太多</p> <p>PXE的部份本來是沒有什麼問題自動安裝系統的部份都做好了</p>
<p>只要下載teamviewer被控端開啟後報ID 給協助者就好了</p> <p>可是因為這次的量比較多想說讓每一台在完成PXE安裝後的第一次重開機</p>
<p>就送出一封郵件來通知我說已經完成安裝可以執行ansible 了</p>
<p>看似很簡單的一件事情,卻搞了我兩天&hellip;.</p>
<p></p> <p></p>
<a href="/post/remote-management-system-meshcentral/" class="more"></a> <a href="/post/send-mail-to-notify-after-pxe-install/" class="more"></a>
</div> </div>
@ -754,11 +750,11 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/linux">linux</a> <a href="/tags/pxe">PXE</a>
<a href="/tags/remote">remote</a> <a href="/tags/ubuntu">ubuntu</a>
<a href="/tags/meshcentral">meshcentral</a> <a href="/tags/linux">linux</a>
</div> </div>
</div> </div>
@ -774,25 +770,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/install-asus-10g-nic-in-proxmox/"> <a class="bubble" href="/post/ansible-run-task-depends-on-ipaddr/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/install-asus-10g-nic-in-proxmox/"> <a href="/post/ansible-run-task-depends-on-ipaddr/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-7.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a></h3> <h3><a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-06-17</span> <span class="date moment">2019-07-23</span>
@ -801,7 +797,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/proxmox">Proxmox</a> <a href="/categories/ansible">ansible</a>
</span> </span>
@ -812,20 +808,16 @@
</div> </div>
<p>前幾天接的一個case</p> <p>因為工作上的需要要修改client端的 /etc/environment 檔案</p>
<p>因為費用的關係,所以沒有考慮用傳統定義上的伺服器(DELL R640)</p>
<p>改採用比較高階一點的洋垃圾,規格大概是 Intel E5-2680V2 x2 + 64G RAM + 128G SSD x2 (OS) + 960G SSD x4 (raid 10 , zfs)</p>
<p>storage 選擇QNAP NAS TS-932X + 960G SSD x 4 (raid 10 , NFS) + QNAP 10G Switch QSW-1280C-8C</p> <p>在有權限使用proxy 服務的user的環境中加入proxy 的設定</p>
<p>既然storage這邊選用了10G的機種伺服器上當然也要增加10G網卡</p> <p>原本的清單中有host/user/ip 這幾個值可以拿來判斷</p>
<p>一樣成本考量就不用INTEL 了,買了這張 ASUS 10G 網卡</p> <p>proxy server 那邊是採用ip 來控制,所以這邊也跟著用 ip 來判斷要不要修改 /etc/environment</p>
<a href="/post/install-asus-10g-nic-in-proxmox/" class="more"></a> <a href="/post/ansible-run-task-depends-on-ipaddr/" class="more"></a>
</div> </div>
@ -839,7 +831,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/proxmox">proxmox</a> <a href="/tags/ansible">ansible</a>
</div> </div>
</div> </div>
@ -855,25 +847,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/change-timezone-in-docker/"> <a class="bubble" href="/post/ansible-selectattr-from-list-in-dictionary/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/change-timezone-in-docker/"> <a href="/post/ansible-selectattr-from-list-in-dictionary/">
<img src="/images/post-default-3.jpg" alt=""> <img src="/images/post-default-7.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a></h3> <h3><a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-05-21</span> <span class="date moment">2019-07-01</span>
@ -882,7 +874,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a> <a href="/categories/ansible">Ansible</a>
</span> </span>
@ -893,12 +885,16 @@
</div> </div>
<p>最近一直在玩一些docker不過老是會碰到歪果扔寫的東西時區都不一致</p> <p>在ansible中關於如何引用自定義的變數一直讓我很頭疼</p>
<p>尤其是有牽涉到從外部導入yaml檔案時更是常常讓我不知道到底該怎麼抓出想要的變數</p>
<p>這次還是用selectattr 來處理,希望下次能夠記得&hellip;</p>
<p>有的用 UTC有的用localtime就是沒碰到用 Asia/Taipei 的&hellip;.</p> <p></p>
<a href="/post/change-timezone-in-docker/" class="more"></a> <a href="/post/ansible-selectattr-from-list-in-dictionary/" class="more"></a>
</div> </div>
@ -912,9 +908,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/docker">docker</a> <a href="/tags/ansible">Ansible</a>
<a href="/tags/timezone">timezone</a>
</div> </div>
</div> </div>
@ -952,31 +946,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -989,7 +983,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -5,11 +5,56 @@
<link>https://h.cowbay.org/post/</link> <link>https://h.cowbay.org/post/</link>
<description>Recent content in Posts on MCの飄狂山莊㊣</description> <description>Recent content in Posts on MCの飄狂山莊㊣</description>
<generator>Hugo -- gohugo.io</generator> <generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Fri, 16 Aug 2019 10:18:06 +0800</lastBuildDate> <lastBuildDate>Fri, 23 Aug 2019 14:54:13 +0800</lastBuildDate>
<atom:link href="https://h.cowbay.org/post/index.xml" rel="self" type="application/rss+xml" /> <atom:link href="https://h.cowbay.org/post/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</title>
<link>https://h.cowbay.org/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/</link>
<pubDate>Fri, 23 Aug 2019 14:54:13 +0800</pubDate>
<guid>https://h.cowbay.org/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/</guid>
<description>&lt;p&gt;這篇繼續講 pgbarman 透過 rsync/ssh 來備份 postgresql 資料庫的方式&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description>
</item>
<item>
<title>[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</title>
<link>https://h.cowbay.org/post/pgbarman-in-ubuntu-1804-postgresql-10/</link>
<pubDate>Fri, 23 Aug 2019 13:53:40 +0800</pubDate>
<guid>https://h.cowbay.org/post/pgbarman-in-ubuntu-1804-postgresql-10/</guid>
<description>&lt;p&gt;很久以前就有看到這個用來備份postgresql 的 pgbarman&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://www.pgbarman.org/&#34;&gt;https://www.pgbarman.org/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;前幾天老闆在slack 上面又提到,所以這次就花了點時間來玩玩看&lt;/p&gt;
&lt;p&gt;不過呢,雖然有弄起來,但是還真不知道有些問題是怎麼解決的&amp;hellip;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description>
</item>
<item>
<title>[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</title>
<link>https://h.cowbay.org/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/</link>
<pubDate>Tue, 20 Aug 2019 14:51:54 +0800</pubDate>
<guid>https://h.cowbay.org/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/</guid>
<description>&lt;p&gt;因為老闆說要試試看用GPU 來跑postgresql 威力&lt;/p&gt;
&lt;p&gt;手邊剛好有一張 geforce gt 720&lt;/p&gt;
&lt;p&gt;一開始沒想太多看到有這張卡的驅動程式然後CUDA也有支援&lt;/p&gt;
&lt;p&gt;就直接從桌機拔下來接去LAB Server ,然後就開始一連串的難關了&amp;hellip;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description>
</item>
<item> <item>
<title>[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</title> <title>[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</title>
<link>https://h.cowbay.org/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/</link> <link>https://h.cowbay.org/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/</link>

@ -312,31 +312,31 @@ root@pve:~#
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -349,7 +349,7 @@ root@pve:~#
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -0,0 +1,641 @@
<!doctype html>
<html class="no-js" lang="tw">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Eric Chang">
<meta name="description" content="Whats the Worst That Could Happen?">
<meta name="keywords" content="linux,blog,responsive,search,font awesome,pages,posts,multilingual,highlight.js,syntax highlighting,premium,shortcuts">
<meta content="nvidia, cuda, pgstrom" name="keywords">
<meta name="generator" content="Hugo 0.50" />
<title> [筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804 | MCの飄狂山莊㊣</title>
<meta name="description" content="[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804 - Whats the Worst That Could Happen?">
<meta itemprop="name" content="[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804">
<meta itemprop="description" content="[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804 - Whats the Worst That Could Happen?">
<meta property="og:title" content="[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804">
<meta property="og:description" content="[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804 - Whats the Worst That Could Happen?">
<meta property="og:image" content="https://h.cowbay.org/images/post-default-7.jpg">
<meta property="og:url" content="https://h.cowbay.org/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">
<meta property="og:site_name" content="MCの飄狂山莊㊣">
<meta property="og:type" content="article">
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-16x16.png" sizes="16x16">
<link rel="stylesheet" href="https://h.cowbay.org/sass/combined.min.a89dfa577f701bffe9659f476ef61241cb2a3452b913e793463b0074a10c0a59.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body class="bilberry-hugo-theme">
<nav class="permanentTopNav">
<div class="container">
<ul class="topnav">
</ul>
<div id="search-box" class="search">
<i class="fa fa-search"></i>
<input id="search" type="text" placeholder="">
</div>
</div>
</nav>
<header>
<div class="container">
<div class="logo">
<a href="/" class="logo">
<img src="https://www.gravatar.com/avatar/e4eb1f8e016ffb73e9889f87d16e15f0?d=mm&size=200" alt="">
<span class="overlay"><i class="fa fa-home"></i></span>
</a>
</div>
<div class="titles">
<h3 class="title"><a href="/">MCの飄狂山莊㊣</a></h3>
<span class="subtitle">Whats the Worst That Could Happen?</span>
</div>
<div class="toggler permanentTopNav">
<i class="fa fa-bars" aria-hidden="true"></i>
</div>
</div>
</header>
<div class="main container">
<div class="article-wrapper u-cf single">
<a class="bubble" href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">
<img src="/images/post-default-7.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a></h3>
<div class="meta">
<span class="date moment">2019-08-20</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>因為老闆說要試試看用GPU 來跑postgresql 威力</p>
<p>手邊剛好有一張 geforce gt 720</p>
<p>一開始沒想太多看到有這張卡的驅動程式然後CUDA也有支援</p>
<p>就直接從桌機拔下來接去LAB Server ,然後就開始一連串的難關了&hellip;</p>
<p></p>
<p>整個過程大致上分為四個步驟</p>
<h3 id="安裝-nvidia-driver">安裝 nvidia driver</h3>
<h3 id="安裝-cuda">安裝 CUDA</h3>
<h3 id="安裝-postgresql">安裝 postgresql</h3>
<h3 id="安裝-pgstrom">安裝 pgstrom</h3>
<hr />
<h4 id="安裝-nvidia-driver-1">安裝 nvidia driver</h4>
<p>試過幾種方法最後還是覺得用apt來安裝比較妥當
先新增repository、update、裝driver</p>
<pre><code>sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
</code></pre>
<p>然後用這個指令</p>
<pre><code>ubuntu-drivers devices
</code></pre>
<p>看一下現在的驅動程式狀態</p>
<pre><code>administrator@hqdc032:~/pg-strom$ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001288sv0000174Bsd0000326Bbc03sc00i00
vendor : NVIDIA Corporation
model : GK208B [GeForce GT 720]
driver : nvidia-driver-410 - third-party free
driver : nvidia-driver-418 - third-party free
driver : nvidia-340 - distro non-free
driver : nvidia-driver-430 - third-party free recommended
driver : nvidia-driver-390 - third-party free
driver : nvidia-driver-415 - third-party free
driver : xserver-xorg-video-nouveau - distro free builtin
</code></pre>
<p>我這張卡,可以裝到 430 的版本,
接下來就繼續安裝驅動程式、裝完之後重開機</p>
<pre><code>sudo apt install nvidia-driver-430
sudo reboot
</code></pre>
<p>這時候,應該可以看到一些基本資訊</p>
<pre><code>lsmod|grep nvidia
</code></pre>
<p>大概長這樣</p>
<pre><code>nvidia_uvm 798720 0
nvidia_drm 45056 3
nvidia_modeset 1093632 7 nvidia_drm
nvidia 18194432 258 nvidia_uvm,nvidia_modeset
drm_kms_helper 172032 1 nvidia_drm
drm 401408 6 drm_kms_helper,nvidia_drm
ipmi_msghandler 53248 2 ipmi_devintf,nvidia
</code></pre>
<p>到這邊 nvidia 驅動程式安裝完成,接下來安裝 cuda</p>
<h4 id="安裝-cuda-1">安裝 CUDA</h4>
<p>同樣採用官網下載deb 回來安裝的方法</p>
<p>到這邊 <a href="https://developer.nvidia.com/cuda-downloads">https://developer.nvidia.com/cuda-downloads</a></p>
<p>依照自己的系統選擇</p>
<p>我選擇 Linux &ndash; x86_64 &ndash; Ubuntu &ndash; 18.04 &ndash; deb(local)</p>
<p>畫面上就會有安裝步驟,照著做就沒問題了</p>
<pre><code>wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin
sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget http://developer.download.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda-repo-ubuntu1804-10-1-local-10.1.243-418.87.00_1.0-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1804-10-1-local-10.1.243-418.87.00_1.0-1_amd64.deb
sudo apt-key add /var/cuda-repo-10-1-local-10.1.243-418.87.00/7fa2af80.pub
sudo apt-get update
sudo apt-get -y install cuda
</code></pre>
<p>一樣,安裝完成後重新開機,然後來編譯一個 deviceQuery 的小程式來看看資訊</p>
<pre><code>cd /usr/local/cuda-10.1/samples/1_Utilities/deviceQuery
sudo make
</code></pre>
<p>會產生一個叫 deviceQuery 的執行檔,執行後,會有相關資訊</p>
<pre><code>administrator@hqdc032:/usr/local/cuda-10.1/samples/1_Utilities/deviceQuery$ ./deviceQuery
./deviceQuery Starting...
CUDA Device Query (Runtime API) version (CUDART static linking)
Detected 1 CUDA Capable device(s)
Device 0: &quot;GeForce GT 720&quot;
CUDA Driver Version / Runtime Version 10.1 / 10.1
CUDA Capability Major/Minor version number: 3.5
Total amount of global memory: 1996 MBytes (2093416448 bytes)
( 1) Multiprocessors, (192) CUDA Cores/MP: 192 CUDA Cores
GPU Max Clock rate: 797 MHz (0.80 GHz)
Memory Clock rate: 900 Mhz
Memory Bus Width: 64-bit
L2 Cache Size: 524288 bytes
Maximum Texture Dimension Size (x,y,z) 1D=(65536), 2D=(65536, 65536), 3D=(4096, 4096, 4096)
Maximum Layered 1D Texture Size, (num) layers 1D=(16384), 2048 layers
Maximum Layered 2D Texture Size, (num) layers 2D=(16384, 16384), 2048 layers
Total amount of constant memory: 65536 bytes
Total amount of shared memory per block: 49152 bytes
Total number of registers available per block: 65536
Warp size: 32
Maximum number of threads per multiprocessor: 2048
Maximum number of threads per block: 1024
Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
Max dimension size of a grid size (x,y,z): (2147483647, 65535, 65535)
Maximum memory pitch: 2147483647 bytes
Texture alignment: 512 bytes
Concurrent copy and kernel execution: Yes with 1 copy engine(s)
Run time limit on kernels: Yes
Integrated GPU sharing Host Memory: No
Support host page-locked memory mapping: Yes
Alignment requirement for Surfaces: Yes
Device has ECC support: Disabled
Device supports Unified Addressing (UVA): Yes
Device supports Compute Preemption: No
Supports Cooperative Kernel Launch: No
Supports MultiDevice Co-op Kernel Launch: No
Device PCI Domain ID / Bus ID / location ID: 0 / 1 / 0
Compute Mode:
&lt; Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) &gt;
deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 10.1, CUDA Runtime Version = 10.1, NumDevs = 1
Result = PASS
</code></pre>
<p>到這邊, CUDA 也安裝完成,再來是簡單的 postgresql 11</p>
<h4 id="安裝-postgresql-11">安裝 postgresql 11</h4>
<p>步驟差不多就是新增repository然後選擇要安裝的套件不過套件的選擇和平常安裝postgresql 不太一樣</p>
<pre><code>sudo apt install wget ca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo &quot;deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main&quot; &gt;&gt; /etc/apt/sources.list.d/pgdg.list'
sudo apt update
sudo apt install postgresql-client-11 postgresql-11 postgresql-server-dev-11 postgresql-common libicu-dev
</code></pre>
<p>跑完之後,就直接啟動 postgresql service 就可以了</p>
<p>再來是最麻煩的 pgstorm</p>
<h4 id="pgstorm">pgstorm</h4>
<p>話說,這軟體到底叫啥名字? pgstrom , pg-strom ? 看起來就像是拼錯字啊! =.=</p>
<p><a href="https://github.com/heterodb/pg-strom">https://github.com/heterodb/pg-strom</a></p>
<p>先 git clone 回來然後make、make install</p>
<p>講是很簡單但是一開始碰到很多問題有去github 跟開發團隊回報,幸好有回覆我..</p>
<p>總之目前在ubuntu 18.04 + postgresql-11 的環境下編譯是沒有問題了</p>
<pre><code>git clone https://github.com/heterodb/pg-strom.git
cd pg-strom
make &amp;&amp; sudo make install
</code></pre>
<p>再來設定一下 postgresql</p>
<h4 id="postgresql-相關設定">postgresql 相關設定</h4>
<p>需要修改一下postgresql.conf來指定載入 pgstrom 的 library</p>
<p>官方是這麼說的</p>
<pre><code>PG-Strom module must be loaded on startup of the postmaster process by the shared_preload_libraries. Unable to load it on demand. Therefore, you must add the configuration below.
</code></pre>
<p>修改 /etc/postgresql/11/main/postgresql.conf
加入一行</p>
<pre><code>shared_preload_libraries = '$libdir/pg_strom'
</code></pre>
<p>然後還有其他三個要修改不過這個不改不會影響pgstrom 的啟動</p>
<p>看狀況要不要修改吧</p>
<pre><code>max_worker_processes = 100
shared_buffers = 10GB
work_mem = 1GB
</code></pre>
<p>修改完後,重新啟動 postgresql service 有沒有很感動我終於可以享受用GPU跑SQL Query 的快感啦!!!</p>
<p>等等為什麼postgresql service 沒起來!?</p>
<p>看一下 /var/log/syslog</p>
<pre><code>Aug 20 14:23:43 hqdc032 postgresql@11-main[11801]: Error: /usr/lib/postgresql/11/bin/pg_ctl /usr/lib/postgresql/11/bin/pg_ctl start -D /var/lib/postgresql/11/main -l /var/log/postgresql/postgresql-11-main.log -s -o -c config_file=&quot;/etc/postgresql/11/main/postgresql.conf&quot; exited with status 1:
Aug 20 14:23:43 hqdc032 postgresql@11-main[11801]: 2019-08-20 14:23:43.538 CST [11806] LOG: PG-Strom version 2.2 built for PostgreSQL 11
Aug 20 14:23:43 hqdc032 postgresql@11-main[11801]: 2019-08-20 14:23:43.565 CST [11806] LOG: PG-Strom: GPU0 GeForce GT 720 - CC 3.5 is not supported
Aug 20 14:23:43 hqdc032 postgresql@11-main[11801]: 2019-08-20 14:23:43.565 CST [11806] FATAL: PG-Strom: no supported GPU devices found
Aug 20 14:23:43 hqdc032 postgresql@11-main[11801]: 2019-08-20 14:23:43.565 CST [11806] LOG: database system is shut down
Aug 20 14:23:43 hqdc032 postgresql@11-main[11801]: pg_ctl: could not start server
Aug 20 14:23:43 hqdc032 postgresql@11-main[11801]: Examine the log output.
Aug 20 14:23:43 hqdc032 systemd[1]: postgresql@11-main.service: Can't open PID file /run/postgresql/11-main.pid (yet?) after start: No such file or directory
Aug 20 14:23:43 hqdc032 systemd[1]: postgresql@11-main.service: Failed with result 'protocol'.
Aug 20 14:23:43 hqdc032 systemd[1]: Failed to start PostgreSQL Cluster 11-main.
</code></pre>
<p>啊幹pg-strom 不支援這張GT 720啦</p>
<p><a href="https://github.com/heterodb/pg-strom/wiki/001:-GPU-Availability-Matrix">https://github.com/heterodb/pg-strom/wiki/001:-GPU-Availability-Matrix</a></p>
<p>簡單說,就是至少從 GTX 1080 起跳,其他都不用想了</p>
<p>幹,花了兩天的時間在弄這東西,結果明明一開始就應該要先檢查的相容列表卻沒有檢查&hellip;</p>
<p>好了,現在就看准不准我買一張 GTX 1080 來測試了&hellip;.</p>
<p>只是這價格嘛&hellip;嗯咳,不是我該煩惱的問題了..</p>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/nvidia">nvidia</a>
</div>
</div>
</div>
</article>
</div>
<div id="disqus_thread"></div>
<script type="application/javascript">
var disqus_config = function () {
};
(function() {
if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) {
document.getElementById('disqus_thread').innerHTML = 'Disqus comments not available by default when the website is previewed locally.';
return;
}
var d = document, s = d.createElement('script'); s.async = true;
s.src = '//' + "h-cowbay-org-1" + '.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</div>
<footer>
<div class="container">
<div class="recent-posts">
<strong></strong>
<ul>
<li>
<a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li>
<li>
<a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li>
<li>
<a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li>
<li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li>
<li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li>
<li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li>
<li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li>
</ul>
</div>
<div class="categories">
<a href="/categories/"><strong></strong></a>
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li>
<li>
<a href="/categories/ansible">Ansible (3)</a>
</li>
<li>
<a href="/categories/linux">Linux (1)</a>
</li>
<li>
<a href="/categories/proxmox">Proxmox (1)</a>
</li>
<li>
<a href="/categories/ps">Ps (1)</a>
</li>
<li>
<a href="/categories/%E7%A2%8E%E5%BF%B5">碎念 (1)</a>
</li>
<li>
<a href="/categories/%E7%BE%A4%E6%9A%89">群暉 (1)</a>
</li>
</ul>
</div>
<div class="right">
<div class="external-profiles">
<strong></strong>
<a href="https://www.facebook.com/mariahchang" target="_blank"><i class="fa fa-facebook-adblock-proof"></i></a>
<a href="https://twitter.com/changchichung" target="_blank"><i class="fa fa-twitter-adblock-proof"></i></a>
<a href="https://github.com/changchichung" target="_blank"><i class="fa fa-github"></i></a>
<a href="https://www.yapee.tw/mvc/onlinePay/webLink?key=lMC74kucH21JChCR77-wJ80ZZ-Poh11amP24BwiDdHw" target="_blank"><img border="0" src="https://www.yapee.tw/mvc/file/publicFile?pathType=data/linkLogo/B0S0F0002585.jpg"></img></a>
</div>
</div>
</div>
</footer>
<div class="credits">
<div class="container">
<div class="copyright">
<a href="https://github.com/Lednerb" target="_blank">
&copy;
2017
by Lednerb
</a>
</div>
<div class="author">
<a href="https://www.yapee.tw/mvc/onlinePay/webLink?key=lMC74kucH21JChCR77-wJ80ZZ-Poh11amP24BwiDdHw" target="_blank">Bilberry Hugo Theme</a>
</div>
</div>
</div>
<script type="application/javascript">
var doNotTrack = false;
if (!doNotTrack) {
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-138954876-1', 'auto');
ga('send', 'pageview');
}
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
<script type="text/javascript" src="https://h.cowbay.org/js/externalDependencies.39c47e10e241eae2947b3fe21809c572.js" integrity="md5-OcR&#43;EOJB6uKUez/iGAnFcg=="></script>
<script type="text/javascript" src="https://h.cowbay.org/js/theme.ff50ae6dc1bfc220b23bf69dbb41b54e.js" integrity="md5-/1CubcG/wiCyO/adu0G1Tg=="></script>
<script>
$(".moment").each(function() {
$(this).text(
moment( $(this).text() )
.locale( "tw" )
.format('LL')
);
});
$(".footnote-return sup").html("");
</script>
<script>
var client = algoliasearch("2XL0P8XDCY", "4ef65b37b627bb886b46c34a10e63aa6");
var index = client.initIndex("h_cowbay_org");
$('#search').autocomplete({ hint: false, autoselect: true, debug: false },
[
{
source: $.fn.autocomplete.sources.hits(index, { hitsPerPage: 10 }),
displayKey: function(suggestion) {
return suggestion.title || suggestion.author
},
templates: {
suggestion: function(suggestion) {
return "<span class='entry " + suggestion.type + "'>"
+ "<span class='title'>" + suggestion.title + "</span>"
+ "<span class='fa fa-fw " + suggestion.iconClass + "'></span>"
+ "</span>"
;
},
empty: function() {
return "<span class='empty'></span>"
},
footer: function() {
return '<div class="branding">Powered by <img src="https:\/\/h.cowbay.org\/dist\/algolia-logo-light.svg" /></div>'
}
},
}
])
.on('autocomplete:selected', function(event, suggestion, dataset) {
window.location = (suggestion.url);
})
.keypress(function (event, suggestion) {
if (event.which == 13) {
window.location = (suggestion.url);
}
});
</script>
</body>
</html>

@ -776,31 +776,31 @@ sudo apt install joe-jupp
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -813,7 +813,7 @@ sudo apt install joe-jupp
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -236,31 +236,31 @@ GRUB_CMDLINE_LINUX=&quot;rootdelay=90&quot;
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -273,7 +273,7 @@ GRUB_CMDLINE_LINUX=&quot;rootdelay=90&quot;
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -322,31 +322,31 @@ bbs089.abc.com ansible_ssh_host=192.168.0.89 ansible_ssh_user=root
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -359,7 +359,7 @@ bbs089.abc.com ansible_ssh_host=192.168.0.89 ansible_ssh_user=root
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -255,31 +255,31 @@ Apr 23 15:18:48 hqs010 minion: minion [30832]: ip addr [0]
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -292,7 +292,7 @@ Apr 23 15:18:48 hqs010 minion: minion [30832]: ip addr [0]
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -479,31 +479,31 @@ root@sdvpn:~#
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -516,7 +516,7 @@ root@sdvpn:~#
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -253,31 +253,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -290,7 +290,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -93,25 +93,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/transfer-file-content-using-xclip-in-terminal/"> <a class="bubble" href="/post/remote-management-system-meshcentral/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/transfer-file-content-using-xclip-in-terminal/"> <a href="/post/remote-management-system-meshcentral/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-5.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a></h3> <h3><a href="/post/remote-management-system-meshcentral/">linux底下遠端遙控&amp;管理的好用系統 Meshcentral / Remote Management &amp; control system Meshcentral</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-05-17</span> <span class="date moment">2019-06-20</span>
@ -120,7 +120,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/linux">linux</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span> </span>
@ -131,18 +131,20 @@
</div> </div>
<p>工作上常會需要用ssh登入遠端主機檢查LOG有必要的時候還要把log複製回本機來處理。</p> <p>之前在LAN/windows環境下一直都是用ultravnc/winvnc/tigervnc之類的VNC軟體</p>
<p>以前都是傻傻的用 scp 傳檔案</p> <p>但是如果要過 internet 就會碰到各種開port的問題</p>
<p>之前就記得有這個xclip/xsel 可以用,但是一直沒有弄清楚怎麼執行</p> <p>在這種環境下,就有了當時 teamviewer 的橫空出世</p>
<p>早上研究了一下,順便做個筆記。</p> <p>解決了開PORT的問題讓被控端(通常是資訊技術相對弱勢,需要接受幫助的一方)不需要懂太多</p>
<p>只要下載teamviewer被控端開啟後報ID 給協助者就好了</p>
<p></p> <p></p>
<a href="/post/transfer-file-content-using-xclip-in-terminal/" class="more"></a> <a href="/post/remote-management-system-meshcentral/" class="more"></a>
</div> </div>
@ -158,6 +160,10 @@
<a href="/tags/linux">linux</a> <a href="/tags/linux">linux</a>
<a href="/tags/remote">remote</a>
<a href="/tags/meshcentral">meshcentral</a>
</div> </div>
</div> </div>
@ -172,25 +178,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/inx-collect-detail-hardware-info/"> <a class="bubble" href="/post/install-asus-10g-nic-in-proxmox/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/inx-collect-detail-hardware-info/"> <a href="/post/install-asus-10g-nic-in-proxmox/">
<img src="/images/post-default-10.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/inx-collect-detail-hardware-info/">[筆記] inxi 蒐集詳盡的硬體資訊 / inxi Collect Detail Hardware Info</a></h3> <h3><a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-04-23</span> <span class="date moment">2019-06-17</span>
@ -199,7 +205,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a> <a href="/categories/proxmox">Proxmox</a>
</span> </span>
@ -210,20 +216,20 @@
</div> </div>
<p>最近因為一直碰到硬碟故障的問題算起來那一批同時購買的5X顆 seagate 2T硬碟已經有一半以上故障返修了&hellip;.</p> <p>前幾天接的一個case</p>
<p>然後又因為一直沒有添購新的硬碟,只能用這些快過保/已過保的撐著</p> <p>因為費用的關係,所以沒有考慮用傳統定義上的伺服器(DELL R640)</p>
<p>所以最近不斷的在更換機器內的硬碟,而且還沒有熱插拔!</p> <p>改採用比較高階一點的洋垃圾,規格大概是 Intel E5-2680V2 x2 + 64G RAM + 128G SSD x2 (OS) + 960G SSD x4 (raid 10 , zfs)</p>
<p>也導致原本負責處理盤點資產的同事困擾,因為跟手邊的紀錄已經對不起來了</p> <p>storage 選擇QNAP NAS TS-932X + 960G SSD x 4 (raid 10 , NFS) + QNAP 10G Switch QSW-1280C-8C</p>
<p>然後就變成要對資產的時候,需要一台一台登入,然後去下不同的指令,取得想要的硬體資訊,超級麻煩的!</p> <p>既然storage這邊選用了10G的機種伺服器上當然也要增加10G網卡</p>
<p></p> <p>一樣成本考量就不用INTEL 了,買了這張 ASUS 10G 網卡</p>
<a href="/post/inx-collect-detail-hardware-info/" class="more"></a> <a href="/post/install-asus-10g-nic-in-proxmox/" class="more"></a>
</div> </div>
@ -237,11 +243,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/linux">linux</a> <a href="/tags/proxmox">proxmox</a>
<a href="/tags/bsd">bsd</a>
<a href="/tags/inventory">inventory</a>
</div> </div>
</div> </div>
@ -257,25 +259,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/log-all-bash-commands/"> <a class="bubble" href="/post/change-timezone-in-docker/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/log-all-bash-commands/"> <a href="/post/change-timezone-in-docker/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-3.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/log-all-bash-commands/">[筆記] 紀錄所有下過的指令、時間 / Log All commands with timestamp</a></h3> <h3><a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-04-23</span> <span class="date moment">2019-05-21</span>
@ -295,18 +297,12 @@
</div> </div>
<p>今天發生一件有點詭異的事情,本來應該要經過某個指令才會產生的檔案</p> <p>最近一直在玩一些docker不過老是會碰到歪果扔寫的東西時區都不一致</p>
<p>居然不知為何自己產生了,在我記憶中沒有去執行過那個指令</p>
<p>翻了一下 bash_history ,裡面也只有下過哪些指令,沒有紀錄時間,完全沒有參考價值(攤手)</p>
<p>所以翻了一下網路至少把這兩台主要跑ansible的機器的log功能補上紀錄所有指令以及時間的部份</p>
<p></p> <p>有的用 UTC有的用localtime就是沒碰到用 Asia/Taipei 的&hellip;.</p>
<a href="/post/log-all-bash-commands/" class="more"></a> <a href="/post/change-timezone-in-docker/" class="more"></a>
</div> </div>
@ -320,7 +316,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/log">log</a> <a href="/tags/docker">docker</a>
<a href="/tags/timezone">timezone</a>
</div> </div>
</div> </div>
@ -336,25 +334,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/fix-zpool-device-busy-using-dmsetup/"> <a class="bubble" href="/post/transfer-file-content-using-xclip-in-terminal/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/fix-zpool-device-busy-using-dmsetup/"> <a href="/post/transfer-file-content-using-xclip-in-terminal/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/fix-zpool-device-busy-using-dmsetup/">[筆記] 解決無法建立zpool 的錯誤 / Fix Zpool Device Busy Using dmsetup</a></h3> <h3><a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-04-01</span> <span class="date moment">2019-05-17</span>
@ -363,7 +361,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a> <a href="/categories/linux">linux</a>
</span> </span>
@ -374,16 +372,18 @@
</div> </div>
<p>今天把其中一台proxmox 加上10G 光纖網卡準備和另一台proxmox 組成10G 環境進行測試</p> <p>工作上常會需要用ssh登入遠端主機檢查LOG有必要的時候還要把log複製回本機來處理。</p>
<p>想說把本機的zpool 拆掉重新建立一個raid0 的空間來做clone/migrate</p> <p>以前都是傻傻的用 scp 傳檔案</p>
<p>可是一直出現device busy的錯誤訊息</p> <p>之前就記得有這個xclip/xsel 可以用,但是一直沒有弄清楚怎麼執行</p>
<p>早上研究了一下,順便做個筆記。</p>
<p></p> <p></p>
<a href="/post/fix-zpool-device-busy-using-dmsetup/" class="more"></a> <a href="/post/transfer-file-content-using-xclip-in-terminal/" class="more"></a>
</div> </div>
@ -397,7 +397,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/zfs">zfs</a> <a href="/tags/linux">linux</a>
</div> </div>
</div> </div>
@ -413,25 +413,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/transfer-cent62-using-rsync/"> <a class="bubble" href="/post/inx-collect-detail-hardware-info/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/transfer-cent62-using-rsync/"> <a href="/post/inx-collect-detail-hardware-info/">
<img src="/images/post-default-9.jpg" alt=""> <img src="/images/post-default-10.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/transfer-cent62-using-rsync/">[筆記] 用rsync 移轉 centos 6.2的老機器 Transfer Cent6.2 using rsync</a></h3> <h3><a href="/post/inx-collect-detail-hardware-info/">[筆記] inxi 蒐集詳盡的硬體資訊 / inxi Collect Detail Hardware Info</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-03-27</span> <span class="date moment">2019-04-23</span>
@ -451,13 +451,20 @@
</div> </div>
<p>公司的一台老伺服器空間不足了,要執行指令都會中斷,所以想要擴充空間。</p> <p>最近因為一直碰到硬碟故障的問題算起來那一批同時購買的5X顆 seagate 2T硬碟已經有一半以上故障返修了&hellip;.</p>
<p>看起來不難搞,事實上&hellip;.. <p>然後又因為一直沒有添購新的硬碟,只能用這些快過保/已過保的撐著</p>
</p>
<p>所以最近不斷的在更換機器內的硬碟,而且還沒有熱插拔!</p>
<a href="/post/transfer-cent62-using-rsync/" class="more"></a> <p>也導致原本負責處理盤點資產的同事困擾,因為跟手邊的紀錄已經對不起來了</p>
<p>然後就變成要對資產的時候,需要一台一台登入,然後去下不同的指令,取得想要的硬體資訊,超級麻煩的!</p>
<p></p>
<a href="/post/inx-collect-detail-hardware-info/" class="more"></a>
</div> </div>
@ -471,10 +478,12 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/centos">centos</a>
<a href="/tags/linux">linux</a> <a href="/tags/linux">linux</a>
<a href="/tags/bsd">bsd</a>
<a href="/tags/inventory">inventory</a>
</div> </div>
</div> </div>
@ -489,30 +498,36 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/command_to_test_main_ssl/"> <a class="bubble" href="/post/log-all-bash-commands/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/command_to_test_main_ssl/"> <a href="/post/log-all-bash-commands/">
<img src="/images/post-default-10.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a></h3> <h3><a href="/post/log-all-bash-commands/">[筆記] 紀錄所有下過的指令、時間 / Log All commands with timestamp</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-03-20</span> <span class="date moment">2019-04-23</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
@ -521,22 +536,35 @@
</div> </div>
<p>今天老闆出國發slack說手機不能寄信看了一下似乎是因為用GMAIL的APP來收信</p> <p>今天發生一件有點詭異的事情,本來應該要經過某個指令才會產生的檔案</p>
<p>然後google 不知道跟人家改了什麼,結果不接受原本的認證了&hellip; WTF &hellip;.</p> <p>居然不知為何自己產生了,在我記憶中沒有去執行過那個指令</p>
<p>然後,這問題應該很久了,結果現在才在講 &hellip;.</p> <p>翻了一下 bash_history ,裡面也只有下過哪些指令,沒有紀錄時間,完全沒有參考價值(攤手)</p>
<p>所以翻了一下網路至少把這兩台主要跑ansible的機器的log功能補上紀錄所有指令以及時間的部份</p>
<a href="/post/command_to_test_main_ssl/" class="more"></a> <p></p>
<a href="/post/log-all-bash-commands/" class="more"></a>
</div> </div>
<div class="footer no-tags"> <div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/log">log</a>
</div>
</div>
@ -549,25 +577,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/install-timeshift-on-ubuntu1804/"> <a class="bubble" href="/post/fix-zpool-device-busy-using-dmsetup/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/install-timeshift-on-ubuntu1804/"> <a href="/post/fix-zpool-device-busy-using-dmsetup/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a></h3> <h3><a href="/post/fix-zpool-device-busy-using-dmsetup/">[筆記] 解決無法建立zpool 的錯誤 / Fix Zpool Device Busy Using dmsetup</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-03-11</span> <span class="date moment">2019-04-01</span>
@ -587,18 +615,16 @@
</div> </div>
<p>最近要開始測試client安裝 ubuntu 18.04 的 ansible playbook</p> <p>今天把其中一台proxmox 加上10G 光纖網卡準備和另一台proxmox 組成10G 環境進行測試</p>
<p>因為要不斷的修正所以想到一直有在自己電腦上執行的timeshift這個軟體</p>
<p>可以很簡單快速的備份、恢復系統狀態</p> <p>想說把本機的zpool 拆掉重新建立一個raid0 的空間來做clone/migrate</p>
<p>可是不知道為什麼在ubuntu 18.04 上安裝就是會發生錯誤&hellip;.</p> <p>可是一直出現device busy的錯誤訊息</p>
<p></p> <p></p>
<a href="/post/install-timeshift-on-ubuntu1804/" class="more"></a> <a href="/post/fix-zpool-device-busy-using-dmsetup/" class="more"></a>
</div> </div>
@ -612,9 +638,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/ubuntu">ubuntu</a> <a href="/tags/zfs">zfs</a>
<a href="/tags/backup">backup</a>
</div> </div>
</div> </div>
@ -630,25 +654,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/"> <a class="bubble" href="/post/transfer-cent62-using-rsync/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/"> <a href="/post/transfer-cent62-using-rsync/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-9.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/">用DELL 6 i/R 建立RAID並在上面安裝ubuntu 18.04 </a></h3> <h3><a href="/post/transfer-cent62-using-rsync/">[筆記] 用rsync 移轉 centos 6.2的老機器 Transfer Cent6.2 using rsync</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-01-16</span> <span class="date moment">2019-03-27</span>
@ -668,13 +692,13 @@
</div> </div>
<p>買了一張 DELL 6/iR 低階的raid 卡</p> <p>公司的一台老伺服器空間不足了,要執行指令都會中斷,所以想要擴充空間。</p>
<p>來測試把系統裝在硬體做的RAID上結果沒想到居然不能開機&hellip; <p>看起來不難搞,事實上&hellip;..
</p> </p>
<a href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/" class="more"></a> <a href="/post/transfer-cent62-using-rsync/" class="more"></a>
</div> </div>
@ -688,7 +712,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/ubuntu">ubuntu</a> <a href="/tags/centos">centos</a>
<a href="/tags/linux">linux</a>
</div> </div>
</div> </div>
@ -704,37 +730,31 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/ubuntu-1804-install-root-on-raid/"> <a class="bubble" href="/post/command_to_test_main_ssl/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/ubuntu-1804-install-root-on-raid/"> <a href="/post/command_to_test_main_ssl/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-10.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/ubuntu-1804-install-root-on-raid/">Ubuntu 1804 Install Root on Raid</a></h3> <h3><a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2019-01-16</span> <span class="date moment">2019-03-20</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span> <span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
@ -742,35 +762,22 @@
</div> </div>
<p>最近在弄一台機器想要把ubuntu 18.04 安裝在software raid上</p> <p>今天老闆出國發slack說手機不能寄信看了一下似乎是因為用GMAIL的APP來收信</p>
<p>因為新開的機器大部分都是在proxmox上所以很少碰實體機器了</p>
<p>結果在安裝過程中做raid碰到一些問題來紀錄一下</p> <p>然後google 不知道跟人家改了什麼,結果不接受原本的認證了&hellip; WTF &hellip;.</p>
<p></p> <p>然後,這問題應該很久了,結果現在才在講 &hellip;.</p>
<a href="/post/ubuntu-1804-install-root-on-raid/" class="more"></a> <a href="/post/command_to_test_main_ssl/" class="more"></a>
</div> </div>
<div class="footer"> <div class="footer no-tags">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/ubuntu">ubuntu</a>
<a href="/tags/raid">raid</a>
</div>
</div>
@ -783,25 +790,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/smartd-failed-to-start-in-freenas/"> <a class="bubble" href="/post/install-timeshift-on-ubuntu1804/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/smartd-failed-to-start-in-freenas/"> <a href="/post/install-timeshift-on-ubuntu1804/">
<img src="/images/post-default-2.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/smartd-failed-to-start-in-freenas/">[筆記] Freenas Smartd 啟動失敗 Smartd Failed to Start in Freenas</a></h3> <h3><a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-12-13</span> <span class="date moment">2019-03-11</span>
@ -821,18 +828,18 @@
</div> </div>
<p>這兩天在弄兩台Freenas 準備當作Proxmox 的Storage &amp; Server Backup</p> <p>最近要開始測試client安裝 ubuntu 18.04 的 ansible playbook</p>
<p>因為伺服器的限制只能接六個SATA我接了六個2T的硬碟做raid10</p> <p>因為要不斷的修正所以想到一直有在自己電腦上執行的timeshift這個軟體</p>
<p>然後把Freenas 安裝在隨身碟上</p> <p>可以很簡單快速的備份、恢復系統狀態</p>
<p>不過會一直出現Smartd failed to start 的錯誤訊息</p> <p>可是不知道為什麼在ubuntu 18.04 上安裝就是會發生錯誤&hellip;.</p>
<p></p> <p></p>
<a href="/post/smartd-failed-to-start-in-freenas/" class="more"></a> <a href="/post/install-timeshift-on-ubuntu1804/" class="more"></a>
</div> </div>
@ -846,7 +853,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/freenas">freenas</a> <a href="/tags/ubuntu">ubuntu</a>
<a href="/tags/backup">backup</a>
</div> </div>
</div> </div>
@ -886,31 +895,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -923,7 +932,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -93,25 +93,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/incredibly-slow-mdadm-rebuild/"> <a class="bubble" href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/incredibly-slow-mdadm-rebuild/"> <a href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/">
<img src="/images/post-default-1.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/incredibly-slow-mdadm-rebuild/">[碎念] mdadm 超級慢的rebuild 速度 Incredibly Slow mdadm Rebuild</a></h3> <h3><a href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/">用DELL 6 i/R 建立RAID並在上面安裝ubuntu 18.04 </a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-12-12</span> <span class="date moment">2019-01-16</span>
@ -120,7 +120,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/%E7%A2%8E%E5%BF%B5">碎念</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span> </span>
@ -131,20 +131,13 @@
</div> </div>
<p>最近在做一台老機器的P2V</p> <p>買了一張 DELL 6/iR 低階的raid 卡</p>
<p>偏偏user說不能關機所以我用dd + ssh 做線上移轉</p>
<p>這部份有空再來寫</p>
<p>只是因為原來的設定有用mdadm 做raid1</p>
<p>這部份導致移轉過去proxmox 後會出現raid degrade 導致無法正常開機</p>
<p></p> <p>來測試把系統裝在硬體做的RAID上結果沒想到居然不能開機&hellip;
</p>
<a href="/post/incredibly-slow-mdadm-rebuild/" class="more"></a> <a href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/" class="more"></a>
</div> </div>
@ -158,7 +151,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/mdadm">mdadm</a> <a href="/tags/ubuntu">ubuntu</a>
</div> </div>
</div> </div>
@ -174,25 +167,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/create-portable-vim-environment/"> <a class="bubble" href="/post/ubuntu-1804-install-root-on-raid/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/create-portable-vim-environment/"> <a href="/post/ubuntu-1804-install-root-on-raid/">
<img src="/images/post-default-8.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/create-portable-vim-environment/">[筆記] 建立一個帶著走的 VIM 環境 Creating portable Vim environment</a></h3> <h3><a href="/post/ubuntu-1804-install-root-on-raid/">Ubuntu 1804 Install Root on Raid</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-12-07</span> <span class="date moment">2019-01-16</span>
@ -212,18 +205,16 @@
</div> </div>
<p>因為工作的關係現在很多時間都花在VIM的操作上</p> <p>最近在弄一台機器想要把ubuntu 18.04 安裝在software raid上</p>
<p>所以之前花了滿多時間調整出一個適合自己的VIM環境</p>
<p>原本的作法是把這個設定好的環境丟到自己建立的gitea 上面</p> <p>因為新開的機器大部分都是在proxmox上所以很少碰實體機器了</p>
<p>然後每到一台新的機器就要去clone 下來</p> <p>結果在安裝過程中做raid碰到一些問題來紀錄一下</p>
<p></p> <p></p>
<a href="/post/create-portable-vim-environment/" class="more"></a> <a href="/post/ubuntu-1804-install-root-on-raid/" class="more"></a>
</div> </div>
@ -237,7 +228,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/vim">vim</a> <a href="/tags/ubuntu">ubuntu</a>
<a href="/tags/raid">raid</a>
</div> </div>
</div> </div>
@ -253,25 +246,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/synology-ds415-repair-cost/"> <a class="bubble" href="/post/smartd-failed-to-start-in-freenas/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/synology-ds415-repair-cost/"> <a href="/post/smartd-failed-to-start-in-freenas/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-2.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/synology-ds415-repair-cost/">[雜念] 群暉 Synology NAS DS 415&#43; 誇張的維修費用</a></h3> <h3><a href="/post/smartd-failed-to-start-in-freenas/">[筆記] Freenas Smartd 啟動失敗 Smartd Failed to Start in Freenas</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-12-04</span> <span class="date moment">2018-12-13</span>
@ -280,7 +273,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/%E7%BE%A4%E6%9A%89">群暉</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span> </span>
@ -291,26 +284,18 @@
</div> </div>
<p>前幾天公司的一台 Synology DS 415+ 發生異常</p> <p>這兩天在弄兩台Freenas 準備當作Proxmox 的Storage &amp; Server Backup</p>
<p>注意到的時候,四顆硬碟燈號都不斷的在閃爍</p>
<p>但是已經無法登入系統</p>
<p>重開機之後更慘,四顆硬碟燈號全部橘燈恆亮</p>
<p>底下的電源藍燈不斷的在閃爍</p>
<p>雖然我一再表示不希望送修了</p> <p>因為伺服器的限制只能接六個SATA我接了六個2T的硬碟做raid10</p>
<p>一來是已經過保二來是DS415+ 本身就有intel bug三來是因為對synology的NAS 實在沒有愛&hellip;</p> <p>然後把Freenas 安裝在隨身碟上</p>
<p>不過主管還是希望能夠先問群暉維修的費用多少</p> <p>不過會一直出現Smartd failed to start 的錯誤訊息</p>
<p></p> <p></p>
<a href="/post/synology-ds415-repair-cost/" class="more"></a> <a href="/post/smartd-failed-to-start-in-freenas/" class="more"></a>
</div> </div>
@ -324,11 +309,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/nas">NAS</a> <a href="/tags/freenas">freenas</a>
<a href="/tags/%E7%BE%A4%E6%9A%89">群暉</a>
<a href="/tags/synology">synology</a>
</div> </div>
</div> </div>
@ -344,25 +325,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/10g-lab-using-proxmox-and-mellanox/"> <a class="bubble" href="/post/incredibly-slow-mdadm-rebuild/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/10g-lab-using-proxmox-and-mellanox/"> <a href="/post/incredibly-slow-mdadm-rebuild/">
<img src="/images/post-default-03.jpg" alt=""> <img src="/images/post-default-1.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a></h3> <h3><a href="/post/incredibly-slow-mdadm-rebuild/">[碎念] mdadm 超級慢的rebuild 速度 Incredibly Slow mdadm Rebuild</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-11-30</span> <span class="date moment">2018-12-12</span>
@ -371,7 +352,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a> <a href="/categories/%E7%A2%8E%E5%BF%B5">碎念</a>
</span> </span>
@ -382,28 +363,20 @@
</div> </div>
<p>想做一個 10G 的 LAB 環境出來已經很久了。</p> <p>最近在做一台老機器的P2V</p>
<p>只是礙於10G RJ45的卡太貴了然後光纖的種類又太複雜</p>
<p>如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)</p>
<p>所以一直沒有付諸行動。</p>
<p>硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡以在台灣的價格來說算很便宜的 (550)</p>
<p>聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位</p> <p>偏偏user說不能關機所以我用dd + ssh 做線上移轉</p>
<p>就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線</p> <p>這部份有空再來寫</p>
<p>就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到</p> <p>只是因為原來的設定有用mdadm 做raid1</p>
<p>今天就花了點時間測試一下</p> <p>這部份導致移轉過去proxmox 後會出現raid degrade 導致無法正常開機</p>
<p></p> <p></p>
<a href="/post/10g-lab-using-proxmox-and-mellanox/" class="more"></a> <a href="/post/incredibly-slow-mdadm-rebuild/" class="more"></a>
</div> </div>
@ -417,11 +390,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/10g">10G</a> <a href="/tags/mdadm">mdadm</a>
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
<a href="/tags/mellanox">mellanox</a>
</div> </div>
</div> </div>
@ -437,25 +406,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/ansible-selectattr-filter/"> <a class="bubble" href="/post/create-portable-vim-environment/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/ansible-selectattr-filter/"> <a href="/post/create-portable-vim-environment/">
<img src="/images/post-default-11.jpg" alt=""> <img src="/images/post-default-8.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a></h3> <h3><a href="/post/create-portable-vim-environment/">[筆記] 建立一個帶著走的 VIM 環境 Creating portable Vim environment</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-11-29</span> <span class="date moment">2018-12-07</span>
@ -475,16 +444,18 @@
</div> </div>
<p>在上一篇 <a href="https://h.cowbay.org/post/ansible-selectattr/">Ansible how to use &lsquo;list&rsquo; in yaml file </a></p> <p>因為工作的關係,現很多時間都花在VIM的操作</p>
<p>有提到怎麼用 with_items / set_fact 來取得在yaml 檔案中的清單</p> <p>所以之前花了滿多時間調整出一個適合自己的VIM環境</p>
<p>不過就是有點醜</p> <p>原本的作法是把這個設定好的環境丟到自己建立的gitea 上面</p>
<p>然後每到一台新的機器就要去clone 下來</p>
<p></p> <p></p>
<a href="/post/ansible-selectattr-filter/" class="more"></a> <a href="/post/create-portable-vim-environment/" class="more"></a>
</div> </div>
@ -498,7 +469,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/ansible">ansible</a> <a href="/tags/vim">vim</a>
</div> </div>
</div> </div>
@ -514,25 +485,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/ansible-selectattr/"> <a class="bubble" href="/post/synology-ds415-repair-cost/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/ansible-selectattr/"> <a href="/post/synology-ds415-repair-cost/">
<img src="/images/post-default-1.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/ansible-selectattr/">[筆記] Ansible how to use &#39;list&#39; in yaml file </a></h3> <h3><a href="/post/synology-ds415-repair-cost/">[雜念] 群暉 Synology NAS DS 415&#43; 誇張的維修費用</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-11-27</span> <span class="date moment">2018-12-04</span>
@ -541,7 +512,7 @@
<span class="categories"> <span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a> <a href="/categories/%E7%BE%A4%E6%9A%89">群暉</a>
</span> </span>
@ -552,55 +523,26 @@
</div> </div>
<p>這幾天在玩ansible 時,碰到一個問題</p> <p>前幾天公司的一台 Synology DS 415+ 發生異常</p>
<p>假如我有個yaml檔作為資料來源檔名是 abc.yml</p> <p>注意到的時候,四顆硬碟燈號都不斷的在閃爍</p>
<p>大概長這樣</p> <p>但是已經無法登入系統</p>
<pre><code> &quot;teams&quot;: [ <p>重開機之後更慘,四顆硬碟燈號全部橘燈恆亮</p>
{
&quot;chinese_name&quot;: &quot;TEAM1&quot;,
&quot;description&quot;: &quot;TEAM1&quot;,
&quot;gid&quot;: 10125,
&quot;location&quot;: [
&quot;hq&quot;
],
&quot;name&quot;: &quot;aa&quot;,
&quot;users&quot;: [
&quot;chen&quot;,
&quot;chou&quot;,
&quot;huani&quot;,
&quot;yey&quot;,
&quot;wa&quot;
]
},
{
&quot;chinese_name&quot;: &quot;TEAM2&quot;,
&quot;description&quot;: &quot;TEAM2&quot;,
&quot;gid&quot;: 10126,
&quot;location&quot;: [
&quot;hq&quot;
],
&quot;name&quot;: &quot;bb&quot;,
&quot;users&quot;: [
&quot;chhiao&quot;,
&quot;chgc&quot;,
&quot;chy&quot;,
&quot;hsi&quot;,
&quot;li&quot;,
&quot;li&quot;,
&quot;chgchi&quot;
]
}
]
</code></pre> <p>底下的電源藍燈不斷的在閃爍</p>
<p>雖然我一再表示不希望送修了</p>
<p>一來是已經過保二來是DS415+ 本身就有intel bug三來是因為對synology的NAS 實在沒有愛&hellip;</p>
<p>不過主管還是希望能夠先問群暉維修的費用多少</p>
<p></p> <p></p>
<a href="/post/ansible-selectattr/" class="more"></a> <a href="/post/synology-ds415-repair-cost/" class="more"></a>
</div> </div>
@ -614,9 +556,11 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/ansible">ansible</a> <a href="/tags/nas">NAS</a>
<a href="/tags/linux">linux</a> <a href="/tags/%E7%BE%A4%E6%9A%89">群暉</a>
<a href="/tags/synology">synology</a>
</div> </div>
</div> </div>
@ -632,25 +576,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/change-preferred-language-in-firefox/"> <a class="bubble" href="/post/10g-lab-using-proxmox-and-mellanox/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/change-preferred-language-in-firefox/"> <a href="/post/10g-lab-using-proxmox-and-mellanox/">
<img src="/images/post-default-9.jpg" alt=""> <img src="/images/post-default-03.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/change-preferred-language-in-firefox/">[筆記] 為了metabase 修改 firefox 開啟網頁時使用的預設語言 change the preferred language in firefox for metabase</a></h3> <h3><a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-11-15</span> <span class="date moment">2018-11-30</span>
@ -670,18 +614,28 @@
</div> </div>
<p>最近在測試metabase記得幾個月前就有測試過</p> <p>想做一個 10G 的 LAB 環境出來已經很久了。</p>
<p>但是當時的界面和現在的樣子差很多,看樣子改版還滿勤勞的</p> <p>只是礙於10G RJ45的卡太貴了然後光纖的種類又太複雜</p>
<p>所以這次改用docker來建立根本五分鐘不到就建好了(挖鼻孔)</p> <p>如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)</p>
<p>不過呢,很討厭的是,一進去就發現語系採用的是簡體中文</p> <p>所以一直沒有付諸行動。</p>
<p>硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡以在台灣的價格來說算很便宜的 (550)</p>
<p>聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位</p>
<p>就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線</p>
<p>就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到</p>
<p>今天就花了點時間測試一下</p>
<p></p> <p></p>
<a href="/post/change-preferred-language-in-firefox/" class="more"></a> <a href="/post/10g-lab-using-proxmox-and-mellanox/" class="more"></a>
</div> </div>
@ -695,11 +649,11 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a> <a href="/tags/10g">10G</a>
<a href="/tags/firefox">firefox</a> <a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
<a href="/tags/metabase">metabase</a> <a href="/tags/mellanox">mellanox</a>
</div> </div>
</div> </div>
@ -715,25 +669,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/copy_role_in_pgsql/"> <a class="bubble" href="/post/ansible-selectattr-filter/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/copy_role_in_pgsql/"> <a href="/post/ansible-selectattr-filter/">
<img src="/images/post-default-7.jpg" alt=""> <img src="/images/post-default-11.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/copy_role_in_pgsql/">PostgreSQL 直接從已經存在的使用者複製權限到另一個使用者</a></h3> <h3><a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-11-12</span> <span class="date moment">2018-11-29</span>
@ -753,18 +707,16 @@
</div> </div>
<p>因為工作上的需求有個資料庫需要開放給不同team的人去存取</p> <p>在上一篇 <a href="https://h.cowbay.org/post/ansible-selectattr/">Ansible how to use &lsquo;list&rsquo; in yaml file </a></p>
<p>雖然都是在同一台機器上的同一個資料庫</p>
<p>但是希望能夠不同team的人用不同的資料庫使用者</p> <p>有提到怎麼用 with_items / set_fact 來取得在yaml 檔案中的清單</p>
<p>這樣萬一出事,會比較好抓兇手??</p> <p>不過就是有點醜</p>
<p></p> <p></p>
<a href="/post/copy_role_in_pgsql/" class="more"></a> <a href="/post/ansible-selectattr-filter/" class="more"></a>
</div> </div>
@ -778,9 +730,7 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/psql">psql</a> <a href="/tags/ansible">ansible</a>
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
</div> </div>
</div> </div>
@ -796,25 +746,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/weird-client-server-connection/"> <a class="bubble" href="/post/ansible-selectattr/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/weird-client-server-connection/"> <a href="/post/ansible-selectattr/">
<img src="/images/post-default-4.jpg" alt=""> <img src="/images/post-default-1.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/weird-client-server-connection/">[筆記] 詭異的client&amp;server間連線的問題或許跟KVM有關係</a></h3> <h3><a href="/post/ansible-selectattr/">[筆記] Ansible how to use &#39;list&#39; in yaml file </a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-11-08</span> <span class="date moment">2018-11-27</span>
@ -834,24 +784,55 @@
</div> </div>
<p>這是發生在一個夜黑風高的寂寥深夜&hellip;.. ( What The FXXX &hellip; )</p> <p>這幾天在玩ansible 時,碰到一個問題</p>
<p>來到這個環境之後,有一個很詭異的狀況一直困擾著我</p>
<p>在每個分公司都會有一台伺服器作為KVM Host</p>
<p>上面跑兩台VM一台作為ansible controller (目前沒作用)</p> <p>假如我有個yaml檔作為資料來源檔名是 abc.yml</p>
<p>另一台作為這邊所謂的 &ldquo;Build Server&rdquo;</p> <p>大概長這樣</p>
<p>用途包含了DHCP Server / Proxy Server (squid3) / APT Proxy (squid-deb-proxy)</p> <pre><code> &quot;teams&quot;: [
{
&quot;chinese_name&quot;: &quot;TEAM1&quot;,
&quot;description&quot;: &quot;TEAM1&quot;,
&quot;gid&quot;: 10125,
&quot;location&quot;: [
&quot;hq&quot;
],
&quot;name&quot;: &quot;aa&quot;,
&quot;users&quot;: [
&quot;chen&quot;,
&quot;chou&quot;,
&quot;huani&quot;,
&quot;yey&quot;,
&quot;wa&quot;
]
},
{
&quot;chinese_name&quot;: &quot;TEAM2&quot;,
&quot;description&quot;: &quot;TEAM2&quot;,
&quot;gid&quot;: 10126,
&quot;location&quot;: [
&quot;hq&quot;
],
&quot;name&quot;: &quot;bb&quot;,
&quot;users&quot;: [
&quot;chhiao&quot;,
&quot;chgc&quot;,
&quot;chy&quot;,
&quot;hsi&quot;,
&quot;li&quot;,
&quot;li&quot;,
&quot;chgchi&quot;
]
}
]
<p>問題就發生在這台 Build Server 上&hellip;</p> </code></pre>
<p></p> <p></p>
<a href="/post/weird-client-server-connection/" class="more"></a> <a href="/post/ansible-selectattr/" class="more"></a>
</div> </div>
@ -865,9 +846,9 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/ubuntu">ubuntu</a> <a href="/tags/ansible">ansible</a>
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a> <a href="/tags/linux">linux</a>
</div> </div>
</div> </div>
@ -883,25 +864,25 @@
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/nice-du-report-tool-durep/"> <a class="bubble" href="/post/change-preferred-language-in-firefox/">
<i class="fa fa-fw fa-pencil"></i> <i class="fa fa-fw fa-pencil"></i>
</a> </a>
<article class="default article"> <article class="default article">
<div class="featured-image"> <div class="featured-image">
<a href="/post/nice-du-report-tool-durep/"> <a href="/post/change-preferred-language-in-firefox/">
<img src="/images/post-default-9.jpg" alt=""> <img src="/images/post-default-9.jpg" alt="">
</a> </a>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a></h3> <h3><a href="/post/change-preferred-language-in-firefox/">[筆記] 為了metabase 修改 firefox 開啟網頁時使用的預設語言 change the preferred language in firefox for metabase</a></h3>
<div class="meta"> <div class="meta">
<span class="date moment">2018-11-06</span> <span class="date moment">2018-11-15</span>
@ -921,15 +902,18 @@
</div> </div>
<p>最近在重新規劃前人留下的backup爛攤子 <p>最近在測試metabase記得幾個月前就有測試過</p>
各個伺服器統一備份到一台backup storage
想說如果每天能夠看到backup storage的磁碟用量的話 <p>但是當時的界面和現在的樣子差很多,看樣子改版還滿勤勞的</p>
就可以抓出備份空間成長速度、推估需要多大的磁碟空間
找了一些工具,結果發現 durep 這個 ubuntu 內建的工具 <p>所以這次改用docker來建立根本五分鐘不到就建好了(挖鼻孔)</p>
基本上可以滿足我的需求</p>
<p>不過呢,很討厭的是,一進去就發現語系採用的是簡體中文</p>
<p></p>
<a href="/post/nice-du-report-tool-durep/" class="more"></a> <a href="/post/change-preferred-language-in-firefox/" class="more"></a>
</div> </div>
@ -943,9 +927,11 @@
<i class="fa fa-tags"></i> <i class="fa fa-tags"></i>
<div class="links"> <div class="links">
<a href="/tags/linux">linux</a> <a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
<a href="/tags/firefox">firefox</a>
<a href="/tags/du">du</a> <a href="/tags/metabase">metabase</a>
</div> </div>
</div> </div>
@ -985,31 +971,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -1022,7 +1008,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -91,6 +91,252 @@
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/copy_role_in_pgsql/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/copy_role_in_pgsql/">
<img src="/images/post-default-7.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/copy_role_in_pgsql/">PostgreSQL 直接從已經存在的使用者複製權限到另一個使用者</a></h3>
<div class="meta">
<span class="date moment">2018-11-12</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>因為工作上的需求有個資料庫需要開放給不同team的人去存取</p>
<p>雖然都是在同一台機器上的同一個資料庫</p>
<p>但是希望能夠不同team的人用不同的資料庫使用者</p>
<p>這樣萬一出事,會比較好抓兇手??</p>
<p></p>
<a href="/post/copy_role_in_pgsql/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/psql">psql</a>
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/weird-client-server-connection/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/weird-client-server-connection/">
<img src="/images/post-default-4.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/weird-client-server-connection/">[筆記] 詭異的client&amp;server間連線的問題或許跟KVM有關係</a></h3>
<div class="meta">
<span class="date moment">2018-11-08</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>這是發生在一個夜黑風高的寂寥深夜&hellip;.. ( What The FXXX &hellip; )</p>
<p>來到這個環境之後,有一個很詭異的狀況一直困擾著我</p>
<p>在每個分公司都會有一台伺服器作為KVM Host</p>
<p>上面跑兩台VM一台作為ansible controller (目前沒作用)</p>
<p>另一台作為這邊所謂的 &ldquo;Build Server&rdquo;</p>
<p>用途包含了DHCP Server / Proxy Server (squid3) / APT Proxy (squid-deb-proxy)</p>
<p>問題就發生在這台 Build Server 上&hellip;</p>
<p></p>
<a href="/post/weird-client-server-connection/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/ubuntu">ubuntu</a>
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/nice-du-report-tool-durep/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/nice-du-report-tool-durep/">
<img src="/images/post-default-9.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a></h3>
<div class="meta">
<span class="date moment">2018-11-06</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>最近在重新規劃前人留下的backup爛攤子
各個伺服器統一備份到一台backup storage
想說如果每天能夠看到backup storage的磁碟用量的話
就可以抓出備份空間成長速度、推估需要多大的磁碟空間
找了一些工具,結果發現 durep 這個 ubuntu 內建的工具
基本上可以滿足我的需求</p>
<a href="/post/nice-du-report-tool-durep/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/linux">linux</a>
<a href="/tags/du">du</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf"> <div class="article-wrapper u-cf">
<a class="bubble" href="/post/bookstack-docker/"> <a class="bubble" href="/post/bookstack-docker/">
@ -298,31 +544,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -335,7 +581,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -0,0 +1,551 @@
<!doctype html>
<html class="no-js" lang="tw">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Eric Chang">
<meta name="description" content="Whats the Worst That Could Happen?">
<meta name="keywords" content="linux,blog,responsive,search,font awesome,pages,posts,multilingual,highlight.js,syntax highlighting,premium,shortcuts">
<meta content="pgbarman, postgresql" name="keywords">
<meta name="generator" content="Hugo 0.50" />
<title> [筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04 | MCの飄狂山莊㊣</title>
<meta name="description" content="[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04 - Whats the Worst That Could Happen?">
<meta itemprop="name" content="[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04">
<meta itemprop="description" content="[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04 - Whats the Worst That Could Happen?">
<meta property="og:title" content="[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04">
<meta property="og:description" content="[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04 - Whats the Worst That Could Happen?">
<meta property="og:image" content="https://h.cowbay.org/images/post-default-4.jpg">
<meta property="og:url" content="https://h.cowbay.org/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">
<meta property="og:site_name" content="MCの飄狂山莊㊣">
<meta property="og:type" content="article">
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-16x16.png" sizes="16x16">
<link rel="stylesheet" href="https://h.cowbay.org/sass/combined.min.a89dfa577f701bffe9659f476ef61241cb2a3452b913e793463b0074a10c0a59.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body class="bilberry-hugo-theme">
<nav class="permanentTopNav">
<div class="container">
<ul class="topnav">
</ul>
<div id="search-box" class="search">
<i class="fa fa-search"></i>
<input id="search" type="text" placeholder="">
</div>
</div>
</nav>
<header>
<div class="container">
<div class="logo">
<a href="/" class="logo">
<img src="https://www.gravatar.com/avatar/e4eb1f8e016ffb73e9889f87d16e15f0?d=mm&size=200" alt="">
<span class="overlay"><i class="fa fa-home"></i></span>
</a>
</div>
<div class="titles">
<h3 class="title"><a href="/">MCの飄狂山莊㊣</a></h3>
<span class="subtitle">Whats the Worst That Could Happen?</span>
</div>
<div class="toggler permanentTopNav">
<i class="fa fa-bars" aria-hidden="true"></i>
</div>
</div>
</header>
<div class="main container">
<div class="article-wrapper u-cf single">
<a class="bubble" href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">
<img src="/images/post-default-4.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a></h3>
<div class="meta">
<span class="date moment">2019-08-23</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>這篇繼續講 pgbarman 透過 rsync/ssh 來備份 postgresql 資料庫的方式</p>
<p></p>
<p>其實呢,透過 ssh 的方式來做備份,雖然最後有弄出來,但是我不知道到底做了什麼事才搞定</p>
<p>也許要重新安裝一台來測試看看</p>
<p>所以就簡單說一下邏輯、記得的指令、還有最後的config</p>
<h5 id="ssh">ssh</h5>
<p>在db server 上,讓 barman server 可以用barman 帳號透過ssh key 登入 postgres 帳號
然後在 barman server 上,讓 db server 可以用postgres帳號透過 ssh key 登入 barman 帳號</p>
<h5 id="barman-d">barman.d</h5>
<p>在/etc/barman.d/ 底下新增一個hqs019-ssh.conf</p>
<p>內容如下</p>
<pre><code>[hqs019-ssh]
description = &quot;hqs019 (via SSH)&quot;
ssh_command = ssh postgres@hqs019
conninfo = host=hqs019 user=barman dbname=database_name
backup_method = rsync
reuse_backup = link
parallel_jobs = 5
archiver = on
</code></pre>
<h5 id="postgresql-conf">postgresql.conf</h5>
<p>新增跟barman有關的設定如下</p>
<pre><code>### for barman test
wal_level = 'archive'
archive_mode = on
archive_command = 'rsync -a %p barman@192.168.11.192:/var/lib/barman/hqs019-ssh/incoming/%f'
</code></pre>
<p>理論上這樣就可以了,但是實際上碰到很多問題</p>
<p>主要都是這個錯誤訊息</p>
<pre><code>WAL archive: FAILED (please make sure WAL shipping is setup)
</code></pre>
<p>碰到這狀況google 都會告訴你,在 postgresql.conf 裡面 archive_command 的路徑,要和 barman server 上的設定一致
<img src="https://i.imgur.com/3dMdytn.png" alt="" /></p>
<p>但是我的路徑就沒有問題,還是一直跳這個錯誤</p>
<p>接著我又在 barman server 這邊做了這些事情</p>
<pre><code>barman check hqs019-ssh
barman check hqs019-ssh
barman check hqs019-ssh
ssh postgres@hqs019
barman check hqs019-ssh
barman show-server hqs019-ssh |grep incoming_wals_directory
barman show-server all
barman cron
barman switch-xlog hqs019-ssh
barman check hqs019-ssh
psql -c 'SELECT version()' -U postgres -h hqs019
psql -c 'SELECT version()' -U barman -h hqs019
psql -c 'SELECT version()' -U barman -h hqs019 -d database_name
barman check hqs019-ssh
barman check hqs019-ssh
barman bachup hqs019-ssh
barman backup hqs019-ssh
barman list-backup hqs019-ssh
df -h
barman backup hqs019-ssh
barman show-server hqs019
barman check hqs019
</code></pre>
<p>前面幾次 barman check 一直都不通過</p>
<p>然後在 barman cron / barman switch-xlog hqs019-ssh (其實這個動作我做過好多次)</p>
<p>想說確認一下psql 連接是不是正確(也的確正確無誤)</p>
<p>接著第一次 check 還是FAILED 喔,過沒多久我再跑一次 check 又正常了&hellip; WTF !!!</p>
<p>只要check 正常,接著跑 backup 應該就會很順利</p>
<pre><code>barman@barman:~$ barman backup hqs019-ssh
Starting backup using rsync-exclusive method for server hqs019-ssh in /var/lib/barman/hqs019-ssh/base/20190823T113229
Backup start at LSN: 264/B7000028 (0000000100000264000000B7, 00000028)
This is the first backup for server hqs019-ssh
WAL segments preceding the current backup have been found:
0000000100000264000000B5 from server hqs019-ssh has been removed
Starting backup copy via rsync/SSH for 20190823T113229 (5 jobs)
Copy done (time: 1 hour, 5 minutes, 39 seconds)
This is the first backup for server hqs019-ssh
WAL segments preceding the current backup have been found:
0000000100000264000000B6 from server hqs019-ssh has been removed
Asking PostgreSQL server to finalize the backup.
Backup size: 132.9 GiB. Actual size on disk: 132.9 GiB (-0.00% deduplication ratio).
Backup end at LSN: 264/B7000130 (0000000100000264000000B7, 00000130)
Backup completed (start time: 2019-08-23 11:32:30.078310, elapsed time: 1 hour, 5 minutes, 43 seconds)
Processing xlog segments from file archival for hqs019-ssh
0000000100000264000000B7
0000000100000264000000B7.00000028.backup
barman@barman:~$
</code></pre>
<p>檢查一下狀態</p>
<pre><code>barman@barman:~$ barman list-backup hqs019-ssh
hqs019-ssh 20190823T113229 - Thu Aug 22 20:38:13 2019 - Size: 132.9 GiB - WAL Size: 0 B (tablespaces: tablespace_a:/var/lib/postgresql/10/main/tablespace_A, tablespace_b:/var/lib/postgresql/10/main/tablespace_B)
</code></pre>
<p>然後為了驗證是不是跑增量備份,所以再執行一次 backup</p>
<pre><code>barman@barman:~$ barman backup hqs019-ssh
Starting backup using rsync-exclusive method for server hqs019-ssh in /var/lib/barman/hqs019-ssh/base/20190823T132124
Backup start at LSN: 264/B9000028 (0000000100000264000000B9, 00000028)
Starting backup copy via rsync/SSH for 20190823T132124 (5 jobs)
Copy done (time: 5 seconds)
Asking PostgreSQL server to finalize the backup.
Backup size: 132.9 GiB. Actual size on disk: 14.2 KiB (-100.00% deduplication ratio).
Backup end at LSN: 264/B9000130 (0000000100000264000000B9, 00000130)
Backup completed (start time: 2019-08-23 13:21:24.455819, elapsed time: 9 seconds)
Processing xlog segments from file archival for hqs019-ssh
0000000100000264000000B8
0000000100000264000000B9
0000000100000264000000B9.00000028.backup
barman@barman:~$
</code></pre>
<p>可以發現第一次跑了一個多小時,第二次只跑了五秒鐘 (因為資料庫根本沒異動)</p>
<p>到這邊雖然功能驗證沒有問題,可是不知道怎麼弄出來的,還是讓我很阿雜..</p>
<p>應該會再找時間來重作一台然後順便測試看看restore</p>
<p>update</p>
<p>剛剛又做了一次測試config 都一樣</p>
<p>果然要先做 barman cron/barman switch-xlog hqs019-ssh</p>
<p>然後再做 barman check 就可以通過了</p>
<p>在文件裡面很少提到這部份筆記一下用ansible 去跑的時候才不會忘記</p>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/postgresql">postgresql</a>
<a href="/tags/pgbarman">pgbarman</a>
</div>
</div>
</div>
</article>
</div>
<div id="disqus_thread"></div>
<script type="application/javascript">
var disqus_config = function () {
};
(function() {
if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) {
document.getElementById('disqus_thread').innerHTML = 'Disqus comments not available by default when the website is previewed locally.';
return;
}
var d = document, s = d.createElement('script'); s.async = true;
s.src = '//' + "h-cowbay-org-1" + '.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</div>
<footer>
<div class="container">
<div class="recent-posts">
<strong></strong>
<ul>
<li>
<a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li>
<li>
<a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li>
<li>
<a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li>
<li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li>
<li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li>
<li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li>
<li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li>
</ul>
</div>
<div class="categories">
<a href="/categories/"><strong></strong></a>
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li>
<li>
<a href="/categories/ansible">Ansible (3)</a>
</li>
<li>
<a href="/categories/linux">Linux (1)</a>
</li>
<li>
<a href="/categories/proxmox">Proxmox (1)</a>
</li>
<li>
<a href="/categories/ps">Ps (1)</a>
</li>
<li>
<a href="/categories/%E7%A2%8E%E5%BF%B5">碎念 (1)</a>
</li>
<li>
<a href="/categories/%E7%BE%A4%E6%9A%89">群暉 (1)</a>
</li>
</ul>
</div>
<div class="right">
<div class="external-profiles">
<strong></strong>
<a href="https://www.facebook.com/mariahchang" target="_blank"><i class="fa fa-facebook-adblock-proof"></i></a>
<a href="https://twitter.com/changchichung" target="_blank"><i class="fa fa-twitter-adblock-proof"></i></a>
<a href="https://github.com/changchichung" target="_blank"><i class="fa fa-github"></i></a>
<a href="https://www.yapee.tw/mvc/onlinePay/webLink?key=lMC74kucH21JChCR77-wJ80ZZ-Poh11amP24BwiDdHw" target="_blank"><img border="0" src="https://www.yapee.tw/mvc/file/publicFile?pathType=data/linkLogo/B0S0F0002585.jpg"></img></a>
</div>
</div>
</div>
</footer>
<div class="credits">
<div class="container">
<div class="copyright">
<a href="https://github.com/Lednerb" target="_blank">
&copy;
2017
by Lednerb
</a>
</div>
<div class="author">
<a href="https://www.yapee.tw/mvc/onlinePay/webLink?key=lMC74kucH21JChCR77-wJ80ZZ-Poh11amP24BwiDdHw" target="_blank">Bilberry Hugo Theme</a>
</div>
</div>
</div>
<script type="application/javascript">
var doNotTrack = false;
if (!doNotTrack) {
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-138954876-1', 'auto');
ga('send', 'pageview');
}
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
<script type="text/javascript" src="https://h.cowbay.org/js/externalDependencies.39c47e10e241eae2947b3fe21809c572.js" integrity="md5-OcR&#43;EOJB6uKUez/iGAnFcg=="></script>
<script type="text/javascript" src="https://h.cowbay.org/js/theme.ff50ae6dc1bfc220b23bf69dbb41b54e.js" integrity="md5-/1CubcG/wiCyO/adu0G1Tg=="></script>
<script>
$(".moment").each(function() {
$(this).text(
moment( $(this).text() )
.locale( "tw" )
.format('LL')
);
});
$(".footnote-return sup").html("");
</script>
<script>
var client = algoliasearch("2XL0P8XDCY", "4ef65b37b627bb886b46c34a10e63aa6");
var index = client.initIndex("h_cowbay_org");
$('#search').autocomplete({ hint: false, autoselect: true, debug: false },
[
{
source: $.fn.autocomplete.sources.hits(index, { hitsPerPage: 10 }),
displayKey: function(suggestion) {
return suggestion.title || suggestion.author
},
templates: {
suggestion: function(suggestion) {
return "<span class='entry " + suggestion.type + "'>"
+ "<span class='title'>" + suggestion.title + "</span>"
+ "<span class='fa fa-fw " + suggestion.iconClass + "'></span>"
+ "</span>"
;
},
empty: function() {
return "<span class='empty'></span>"
},
footer: function() {
return '<div class="branding">Powered by <img src="https:\/\/h.cowbay.org\/dist\/algolia-logo-light.svg" /></div>'
}
},
}
])
.on('autocomplete:selected', function(event, suggestion, dataset) {
window.location = (suggestion.url);
})
.keypress(function (event, suggestion) {
if (event.which == 13) {
window.location = (suggestion.url);
}
});
</script>
</body>
</html>

@ -0,0 +1,715 @@
<!doctype html>
<html class="no-js" lang="tw">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Eric Chang">
<meta name="description" content="Whats the Worst That Could Happen?">
<meta name="keywords" content="linux,blog,responsive,search,font awesome,pages,posts,multilingual,highlight.js,syntax highlighting,premium,shortcuts">
<meta content="pgbarman, postgresql" name="keywords">
<meta name="generator" content="Hugo 0.50" />
<title> [筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04 | MCの飄狂山莊㊣</title>
<meta name="description" content="[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04 - Whats the Worst That Could Happen?">
<meta itemprop="name" content="[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04">
<meta itemprop="description" content="[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04 - Whats the Worst That Could Happen?">
<meta property="og:title" content="[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04">
<meta property="og:description" content="[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04 - Whats the Worst That Could Happen?">
<meta property="og:image" content="https://h.cowbay.org/images/post-default-4.jpg">
<meta property="og:url" content="https://h.cowbay.org/post/pgbarman-in-ubuntu-1804-postgresql-10/">
<meta property="og:site_name" content="MCの飄狂山莊㊣">
<meta property="og:type" content="article">
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-16x16.png" sizes="16x16">
<link rel="stylesheet" href="https://h.cowbay.org/sass/combined.min.a89dfa577f701bffe9659f476ef61241cb2a3452b913e793463b0074a10c0a59.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body class="bilberry-hugo-theme">
<nav class="permanentTopNav">
<div class="container">
<ul class="topnav">
</ul>
<div id="search-box" class="search">
<i class="fa fa-search"></i>
<input id="search" type="text" placeholder="">
</div>
</div>
</nav>
<header>
<div class="container">
<div class="logo">
<a href="/" class="logo">
<img src="https://www.gravatar.com/avatar/e4eb1f8e016ffb73e9889f87d16e15f0?d=mm&size=200" alt="">
<span class="overlay"><i class="fa fa-home"></i></span>
</a>
</div>
<div class="titles">
<h3 class="title"><a href="/">MCの飄狂山莊㊣</a></h3>
<span class="subtitle">Whats the Worst That Could Happen?</span>
</div>
<div class="toggler permanentTopNav">
<i class="fa fa-bars" aria-hidden="true"></i>
</div>
</div>
</header>
<div class="main container">
<div class="article-wrapper u-cf single">
<a class="bubble" href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">
<img src="/images/post-default-4.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a></h3>
<div class="meta">
<span class="date moment">2019-08-23</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>很久以前就有看到這個用來備份postgresql 的 pgbarman</p>
<p><a href="https://www.pgbarman.org/">https://www.pgbarman.org/</a></p>
<p>前幾天老闆在slack 上面又提到,所以這次就花了點時間來玩玩看</p>
<p>不過呢,雖然有弄起來,但是還真不知道有些問題是怎麼解決的&hellip;</p>
<p></p>
<p>pgbarman 的備份有分兩種</p>
<p>streaming &amp;&amp; rsync/SSH</p>
<p>原理就不說了,我一直沒搞懂 postgresql 的 streaming ..</p>
<p>依照官方網站上的說法,比較推薦 streaming 備份的方式</p>
<p>原因是設定相對簡單WTF !</p>
<pre><code>On a general basis, starting from Barman 2.0, backup over streaming replication is the recommended setup for PostgreSQL 9.4 or higher
The reason why we recommend streaming backup is that, based on our experience, it is easier to setup than the traditional one
</code></pre>
<p>事實上呢,設定的確是很簡單,可是有個致命的缺點</p>
<pre><code>Because Barman transparently makes use of pg_basebackup, features such as incremental backup, parallel backup, deduplication, and network compression are currently not available. In this case, bandwidth limitation has some restrictions - compared to the traditional method via rsync.
</code></pre>
<p>如果要做差異/增量備份, streaming backup 不能做</p>
<p>所以每次備份都是完整備份也因此barman server 需要準備很大的硬碟空間</p>
<p>以我測試的資料庫來說一次備份目前是133G ,如果一天四次,保留七天</p>
<p>就需要 133 x 4 x 7 = 3724G</p>
<p>咦,這樣看起來,其實也還好啦 XDD</p>
<hr />
<p>現在開始設定的部份</p>
<h4 id="設定-postgresql-server">設定 postgresql server</h4>
<p>IP: 192.168.11.19
hostname: hqs019</p>
<h5 id="在postgresql-建立相關帳號">在postgresql 建立相關帳號</h5>
<p>streaming backup 需要先在postgresql Server 上建立一個具有 superuser 權限的帳號</p>
<p>以及一個用來做replication 的資料庫帳號</p>
<p>這裡就簡單帶過</p>
<pre><code>sudo su - postgres
psql
create user barman with login superuser login password 'barmanpassword';
CREATE ROLE stream_barman WITH REPLICATION PASSWORD 'password' LOGIN;
</code></pre>
<h5 id="鄉改-pg-hba-conf">鄉改 pg_hba.conf</h5>
<p>然後修改 pg_hba.conf加入底下兩行</p>
<pre><code># for barman test
host database_name barman 192.168.11.192/32 md5
host replication stream_barman 192.168.11.192/32 md5
</code></pre>
<p>當然,如果不考慮安全性問題, md5 直接改成用 trust ,可以省去一些麻煩。</p>
<h5 id="修改-postgresql-conf">修改 postgresql.conf</h5>
<p>接著修改postgresql.conf</p>
<pre><code>### for barman test
max_wal_senders = 5
max_replication_slots = 3
wal_level = 'archive'
archive_mode = on
</code></pre>
<p>重起 postgresql service</p>
<h4 id="設定barman-server">設定barman server</h4>
<p>IP: 192.168.11.192
hostname: barman</p>
<h5 id="安裝-barman">安裝 barman</h5>
<p>barman 在18.04 中已經被放到標準repository 中</p>
<p>所以只要直接</p>
<pre><code>sudo apt install barman
</code></pre>
<p>就可以了</p>
<h5 id="設定-barman-conf">設定 barman.conf</h5>
<p>安裝完成後,在/etc/barman.d/ 底下會有兩個範例檔案</p>
<pre><code>streaming-server.conf-template
ssh-server.conf-template
</code></pre>
<p>複製 streaming-server 檔案</p>
<pre><code>sudo cp /etc/barman.d/streaming-server.conf-template /etc/barman.d/hqs019.conf
</code></pre>
<p>內容如下</p>
<pre><code>[hqs019]
description = &quot;hqs019 &quot;
conninfo = host=192.168.11.19 user=barman dbname=database_name password=barmanpassword
streaming_conninfo = host=192.168.11.19 user=stream_barman dbname=database_name password=password
backup_method = postgres
retention_policy_mode = auto
streaming_archiver = on
slot_name = barman
</code></pre>
<p>接著修改 /etc/barman.conf</p>
<pre><code>[barman]
barman_user = barman
configuration_files_directory = /etc/barman.d
barman_home = /var/lib/barman
log_file = /var/log/barman/barman.log
log_level = DEBUG
compression = gzip
immediate_checkpoint = true
basebackup_retry_times = 3
basebackup_retry_sleep = 30
last_backup_maximum_age = 1 DAYS
</code></pre>
<p>基本上這樣就設定完成了</p>
<h5 id="檢查設定">檢查設定</h5>
<p>barman 有一些指令可以用來檢查目前的設定</p>
<p>barman show-server hqs019 可以看到所有的設定,這裡的 hqs019 跟 barman.d/hqs019.conf 裡面用&rdquo;[ ]&rdquo; 包起來的名稱要一致</p>
<pre><code>barman@barman:~$ barman show-server hqs019
Server hqs019:
active: True
archiver: False
archiver_batch_size: 0
backup_directory: /var/lib/barman/hqs019
backup_method: postgres
backup_options: BackupOptions(['concurrent_backup'])
bandwidth_limit: None
barman_home: /var/lib/barman
barman_lock_directory: /var/lib/barman
basebackup_retry_sleep: 30
basebackup_retry_times: 3
basebackups_directory: /var/lib/barman/hqs019/base
check_timeout: 30
compression: gzip
config_file: /etc/postgresql/10/main/postgresql.conf
connection_error: None
conninfo: host=192.168.11.19 user=barman dbname=database_name password=barmanpassword
current_size: 142740768562
current_xlog: 0000000100000264000000BA
custom_compression_filter: None
custom_decompression_filter: None
data_directory: /database
description: hqs019
disabled: False
errors_directory: /var/lib/barman/hqs019/errors
hba_file: /etc/postgresql/10/main/pg_hba.conf
ident_file: /etc/postgresql/10/main/pg_ident.conf
immediate_checkpoint: True
incoming_wals_directory: /var/lib/barman/hqs019/incoming
is_in_recovery: False
is_superuser: True
last_backup_maximum_age: 1 day (WARNING! latest backup is No available backups old)
max_incoming_wals_queue: None
minimum_redundancy: 0
msg_list: []
name: hqs019
network_compression: False
parallel_jobs: 1
path_prefix: None
pg_basebackup_bwlimit: True
pg_basebackup_compatible: True
pg_basebackup_installed: True
pg_basebackup_path: /usr/bin/pg_basebackup
pg_basebackup_tbls_mapping: True
pg_basebackup_version: 10.10-0ubuntu0.18.04.1)
pg_receivexlog_compatible: True
pg_receivexlog_installed: True
pg_receivexlog_path: /usr/bin/pg_receivewal
pg_receivexlog_supports_slots: True
pg_receivexlog_synchronous: False
pg_receivexlog_version: 10.10-0ubuntu0.18.04.1)
pgespresso_installed: False
post_archive_retry_script: None
post_archive_script: None
post_backup_retry_script: None
post_backup_script: None
pre_archive_retry_script: None
pre_archive_script: None
pre_backup_retry_script: None
pre_backup_script: None
recovery_options: RecoveryOptions([])
replication_slot: Record(slot_name='barman', active=True, restart_lsn='264/BA000000')
replication_slot_support: True
retention_policy: None
retention_policy_mode: auto
reuse_backup: None
server_txt_version: 10.10
slot_name: barman
ssh_command: None
streaming: True
streaming_archiver: True
streaming_archiver_batch_size: 0
streaming_archiver_name: barman_receive_wal
streaming_backup_name: barman_streaming_backup
streaming_conninfo: host=192.168.11.19 user=stream_barman dbname=database_name password=password
streaming_supported: True
streaming_wals_directory: /var/lib/barman/hqs019/streaming
synchronous_standby_names: ['']
systemid: 6688476041000599317
tablespace_bandwidth_limit: None
timeline: 1
wal_level: replica
wal_retention_policy: main
wals_directory: /var/lib/barman/hqs019/wals
xlogpos: 264/BA000F08
</code></pre>
<p>然後用 barman check hqs019 來檢查config 有沒有問題</p>
<pre><code>barman@barman:~$ barman check hqs019
Server hqs019:
PostgreSQL: OK
is_superuser: OK
PostgreSQL streaming: OK
wal_level: OK
replication slot: OK
directories: OK
retention policy settings: OK
backup maximum age: FAILED (interval provided: 1 day, latest backup age: No available backups)
compression settings: OK
failed backups: OK (there are 0 failed backups)
minimum redundancy requirements: OK (have 0 backups, expected at least 0)
pg_basebackup: OK
pg_basebackup compatible: OK
pg_basebackup supports tablespaces mapping: OK
pg_receivexlog: OK
pg_receivexlog compatible: OK
receive-wal running: OK
archiver errors: OK
barman@barman:~$
</code></pre>
<p>那個backup maximum age FAILED 不用管他,因為都還沒跑過備份,這邊錯誤是正常的</p>
<p>其他都OK 的話,就可以開始備份了</p>
<p>barman backup hqs019</p>
<pre><code>barman@ubuntu:~$ barman backup hqs019
Starting backup using postgres method for server hqs019 in /var/lib/barman/hqs019/base/20190823T082258
Backup start at LSN: 264/A10001A8 (0000000100000264000000A1, 000001A8)
Starting backup copy via pg_basebackup for 20190823T082258
WARNING: pg_basebackup does not copy the PostgreSQL configuration files that reside outside PGDATA. Please manually backup the following files:
/etc/postgresql/10/main/postgresql.conf
/etc/postgresql/10/main/pg_hba.conf
/etc/postgresql/10/main/pg_ident.conf
Copy done (time: 1 hour, 6 minutes, 28 seconds)
Finalising the backup.
Backup size: 133.0 GiB
Backup end at LSN: 264/A3000060 (0000000100000264000000A3, 00000060)
Backup completed (start time: 2019-08-23 08:22:58.116372, elapsed time: 1 hour, 6 minutes, 28 seconds)
Processing xlog segments from streaming for hqs019
0000000100000264000000A2
barman@ubuntu:~$
</code></pre>
<p>跑完可以用 barman list-backup hqs019 檢查</p>
<pre><code>barman@ubuntu:~$ barman list-backup hqs019
hqs019 20190823T082258 - Thu Aug 22 17:29:26 2019 - Size: 133.0 GiB - WAL Size: 0 B (tablespaces: tablespace_a:/var/lib/postgresql/10/main/tablespace_A, tablespace_b:/var/lib/postgresql/10/main/tablespace_B)
</code></pre>
<p>要刪除的話,要加入 backupID</p>
<pre><code>barman@ubuntu:~$ barman delete hqs019 20190822T171355
Deleting backup 20190822T171355 for server hqs019
Delete associated WAL segments:
00000001000002640000009F
0000000100000264000000A0
0000000100000264000000A1
Deleted backup 20190822T171355 (start time: Fri Aug 23 09:36:43 2019, elapsed time: 3 seconds)
</code></pre>
<p>restore 的部份,暫時沒有測試,我想應該是要找時間測試看看怎麼還原才對</p>
<p>不過呢前面有提到用streaming backup ,每一次備份都是完整備份,非常的佔用空間、時間、頻寬</p>
<p>所以還是要來試試看用rsync/SSH 備份的機制</p>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/postgresql">postgresql</a>
<a href="/tags/pgbarman">pgbarman</a>
</div>
</div>
</div>
</article>
</div>
<div id="disqus_thread"></div>
<script type="application/javascript">
var disqus_config = function () {
};
(function() {
if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) {
document.getElementById('disqus_thread').innerHTML = 'Disqus comments not available by default when the website is previewed locally.';
return;
}
var d = document, s = d.createElement('script'); s.async = true;
s.src = '//' + "h-cowbay-org-1" + '.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</div>
<footer>
<div class="container">
<div class="recent-posts">
<strong></strong>
<ul>
<li>
<a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li>
<li>
<a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li>
<li>
<a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li>
<li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li>
<li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li>
<li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li>
<li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li>
</ul>
</div>
<div class="categories">
<a href="/categories/"><strong></strong></a>
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li>
<li>
<a href="/categories/ansible">Ansible (3)</a>
</li>
<li>
<a href="/categories/linux">Linux (1)</a>
</li>
<li>
<a href="/categories/proxmox">Proxmox (1)</a>
</li>
<li>
<a href="/categories/ps">Ps (1)</a>
</li>
<li>
<a href="/categories/%E7%A2%8E%E5%BF%B5">碎念 (1)</a>
</li>
<li>
<a href="/categories/%E7%BE%A4%E6%9A%89">群暉 (1)</a>
</li>
</ul>
</div>
<div class="right">
<div class="external-profiles">
<strong></strong>
<a href="https://www.facebook.com/mariahchang" target="_blank"><i class="fa fa-facebook-adblock-proof"></i></a>
<a href="https://twitter.com/changchichung" target="_blank"><i class="fa fa-twitter-adblock-proof"></i></a>
<a href="https://github.com/changchichung" target="_blank"><i class="fa fa-github"></i></a>
<a href="https://www.yapee.tw/mvc/onlinePay/webLink?key=lMC74kucH21JChCR77-wJ80ZZ-Poh11amP24BwiDdHw" target="_blank"><img border="0" src="https://www.yapee.tw/mvc/file/publicFile?pathType=data/linkLogo/B0S0F0002585.jpg"></img></a>
</div>
</div>
</div>
</footer>
<div class="credits">
<div class="container">
<div class="copyright">
<a href="https://github.com/Lednerb" target="_blank">
&copy;
2017
by Lednerb
</a>
</div>
<div class="author">
<a href="https://www.yapee.tw/mvc/onlinePay/webLink?key=lMC74kucH21JChCR77-wJ80ZZ-Poh11amP24BwiDdHw" target="_blank">Bilberry Hugo Theme</a>
</div>
</div>
</div>
<script type="application/javascript">
var doNotTrack = false;
if (!doNotTrack) {
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-138954876-1', 'auto');
ga('send', 'pageview');
}
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
<script type="text/javascript" src="https://h.cowbay.org/js/externalDependencies.39c47e10e241eae2947b3fe21809c572.js" integrity="md5-OcR&#43;EOJB6uKUez/iGAnFcg=="></script>
<script type="text/javascript" src="https://h.cowbay.org/js/theme.ff50ae6dc1bfc220b23bf69dbb41b54e.js" integrity="md5-/1CubcG/wiCyO/adu0G1Tg=="></script>
<script>
$(".moment").each(function() {
$(this).text(
moment( $(this).text() )
.locale( "tw" )
.format('LL')
);
});
$(".footnote-return sup").html("");
</script>
<script>
var client = algoliasearch("2XL0P8XDCY", "4ef65b37b627bb886b46c34a10e63aa6");
var index = client.initIndex("h_cowbay_org");
$('#search').autocomplete({ hint: false, autoselect: true, debug: false },
[
{
source: $.fn.autocomplete.sources.hits(index, { hitsPerPage: 10 }),
displayKey: function(suggestion) {
return suggestion.title || suggestion.author
},
templates: {
suggestion: function(suggestion) {
return "<span class='entry " + suggestion.type + "'>"
+ "<span class='title'>" + suggestion.title + "</span>"
+ "<span class='fa fa-fw " + suggestion.iconClass + "'></span>"
+ "</span>"
;
},
empty: function() {
return "<span class='empty'></span>"
},
footer: function() {
return '<div class="branding">Powered by <img src="https:\/\/h.cowbay.org\/dist\/algolia-logo-light.svg" /></div>'
}
},
}
])
.on('autocomplete:selected', function(event, suggestion, dataset) {
window.location = (suggestion.url);
})
.keypress(function (event, suggestion) {
if (event.which == 13) {
window.location = (suggestion.url);
}
});
</script>
</body>
</html>

@ -316,31 +316,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -353,7 +353,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -283,31 +283,31 @@ echo &quot;#!/bin/sh -e\nexit 0&quot; &gt; /etc/rc.local
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -320,7 +320,7 @@ echo &quot;#!/bin/sh -e\nexit 0&quot; &gt; /etc/rc.local
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -412,31 +412,31 @@ ip route add 192.168.112.0/24 dev wg0
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -449,7 +449,7 @@ ip route add 192.168.112.0/24 dev wg0
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -216,31 +216,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -253,7 +253,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -266,31 +266,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -303,7 +303,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -581,31 +581,31 @@ df -h
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -618,7 +618,7 @@ df -h
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -265,31 +265,31 @@ Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -302,7 +302,7 @@ Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -328,31 +328,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -365,7 +365,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -297,31 +297,31 @@ acl CONNECT method CONNECT
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -334,7 +334,7 @@ acl CONNECT method CONNECT
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -14,7 +14,7 @@
<sitemap> <sitemap>
<loc>https://h.cowbay.org/tw/sitemap.xml</loc> <loc>https://h.cowbay.org/tw/sitemap.xml</loc>
<lastmod>2019-08-16T10:18:06+08:00</lastmod> <lastmod>2019-08-23T14:54:13+08:00</lastmod>
</sitemap> </sitemap>

@ -206,31 +206,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -243,7 +243,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -546,31 +546,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -583,7 +583,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -194,31 +194,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -231,7 +231,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -204,31 +204,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -241,7 +241,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -198,31 +198,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -235,7 +235,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -189,31 +189,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -226,7 +226,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -279,31 +279,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -316,7 +316,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -191,31 +191,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -228,7 +228,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -206,31 +206,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -243,7 +243,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -196,31 +196,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -233,7 +233,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -192,31 +192,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -229,7 +229,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -140,6 +140,12 @@
<li><a href="/tags/nas">Nas (2)</a></li> <li><a href="/tags/nas">Nas (2)</a></li>
<li><a href="/tags/nvidia">Nvidia (1)</a></li>
<li><a href="/tags/pgbarman">Pgbarman (2)</a></li>
<li><a href="/tags/postgresql">Postgresql (2)</a></li>
<li><a href="/tags/proxmox">Proxmox (1)</a></li> <li><a href="/tags/proxmox">Proxmox (1)</a></li>
<li><a href="/tags/ps">Ps (1)</a></li> <li><a href="/tags/ps">Ps (1)</a></li>
@ -192,31 +198,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -229,7 +235,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -181,6 +181,33 @@
<description></description> <description></description>
</item> </item>
<item>
<title>Nvidia</title>
<link>https://h.cowbay.org/tags/nvidia/</link>
<pubDate>Tue, 20 Aug 2019 14:51:54 +0800</pubDate>
<guid>https://h.cowbay.org/tags/nvidia/</guid>
<description></description>
</item>
<item>
<title>Pgbarman</title>
<link>https://h.cowbay.org/tags/pgbarman/</link>
<pubDate>Fri, 23 Aug 2019 14:54:13 +0800</pubDate>
<guid>https://h.cowbay.org/tags/pgbarman/</guid>
<description></description>
</item>
<item>
<title>Postgresql</title>
<link>https://h.cowbay.org/tags/postgresql/</link>
<pubDate>Fri, 23 Aug 2019 14:54:13 +0800</pubDate>
<guid>https://h.cowbay.org/tags/postgresql/</guid>
<description></description>
</item>
<item> <item>
<title>Proxmox</title> <title>Proxmox</title>
<link>https://h.cowbay.org/tags/proxmox/</link> <link>https://h.cowbay.org/tags/proxmox/</link>

@ -198,31 +198,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -235,7 +235,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -725,31 +725,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -762,7 +762,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -192,31 +192,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -229,7 +229,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -194,31 +194,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -231,7 +231,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -206,31 +206,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -243,7 +243,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -198,31 +198,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -235,7 +235,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -196,31 +196,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -233,7 +233,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -296,31 +296,31 @@
<ul> <ul>
<li> <li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a> <a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li> </li>
<li> <li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a> <a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li> </li>
<li> <li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a> <a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li> </li>
<li> <li>
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a> <a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li> </li>
<li> <li>
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a> <a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li> </li>
<li> <li>
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a> <a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li> </li>
</ul> </ul>
@ -333,7 +333,7 @@
<ul> <ul>
<li> <li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (24)</a> <a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li> </li>
<li> <li>

@ -0,0 +1,401 @@
<!doctype html>
<html class="no-js" lang="tw">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Eric Chang">
<meta name="description" content="Whats the Worst That Could Happen?">
<meta name="keywords" content="linux,blog,responsive,search,font awesome,pages,posts,multilingual,highlight.js,syntax highlighting,premium,shortcuts">
<meta content="" name="keywords">
<meta name="generator" content="Hugo 0.50" />
<title> Nvidia | MCの飄狂山莊㊣</title>
<meta name="description" content="Nvidia - Whats the Worst That Could Happen?">
<meta itemprop="name" content="Nvidia">
<meta itemprop="description" content="Nvidia - Whats the Worst That Could Happen?">
<meta property="og:title" content="Nvidia">
<meta property="og:description" content="Nvidia - Whats the Worst That Could Happen?">
<meta property="og:image" content="https://www.gravatar.com/avatar/e4eb1f8e016ffb73e9889f87d16e15f0?size=200">
<meta property="og:url" content="https://h.cowbay.org/tags/nvidia/">
<meta property="og:site_name" content="MCの飄狂山莊㊣"><meta property="og:type" content="website">
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-16x16.png" sizes="16x16">
<link href="https://h.cowbay.org/tags/nvidia/index.xml" rel="alternate" type="application/rss+xml" title="MCの飄狂山莊㊣" />
<link href="https://h.cowbay.org/tags/nvidia/index.xml" rel="feed" type="application/rss+xml" title="MCの飄狂山莊㊣" />
<link rel="stylesheet" href="https://h.cowbay.org/sass/combined.min.a89dfa577f701bffe9659f476ef61241cb2a3452b913e793463b0074a10c0a59.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body class="bilberry-hugo-theme">
<nav class="permanentTopNav">
<div class="container">
<ul class="topnav">
</ul>
<div id="search-box" class="search">
<i class="fa fa-search"></i>
<input id="search" type="text" placeholder="">
</div>
</div>
</nav>
<header>
<div class="container">
<div class="logo">
<a href="/" class="logo">
<img src="https://www.gravatar.com/avatar/e4eb1f8e016ffb73e9889f87d16e15f0?d=mm&size=200" alt="">
<span class="overlay"><i class="fa fa-home"></i></span>
</a>
</div>
<div class="titles">
<h3 class="title"><a href="/">MCの飄狂山莊㊣</a></h3>
<span class="subtitle">Whats the Worst That Could Happen?</span>
</div>
<div class="toggler permanentTopNav">
<i class="fa fa-bars" aria-hidden="true"></i>
</div>
</div>
</header>
<div class="main container">
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">
<img src="/images/post-default-7.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a></h3>
<div class="meta">
<span class="date moment">2019-08-20</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>因為老闆說要試試看用GPU 來跑postgresql 威力</p>
<p>手邊剛好有一張 geforce gt 720</p>
<p>一開始沒想太多看到有這張卡的驅動程式然後CUDA也有支援</p>
<p>就直接從桌機拔下來接去LAB Server ,然後就開始一連串的難關了&hellip;</p>
<p></p>
<a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/nvidia">nvidia</a>
</div>
</div>
</div>
</article>
</div>
<div class="paginator">
</div>
</div>
<footer>
<div class="container">
<div class="recent-posts">
<strong></strong>
<ul>
<li>
<a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li>
<li>
<a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li>
<li>
<a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li>
<li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li>
<li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li>
<li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li>
<li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li>
</ul>
</div>
<div class="categories">
<a href="/categories/"><strong></strong></a>
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li>
<li>
<a href="/categories/ansible">Ansible (3)</a>
</li>
<li>
<a href="/categories/linux">Linux (1)</a>
</li>
<li>
<a href="/categories/proxmox">Proxmox (1)</a>
</li>
<li>
<a href="/categories/ps">Ps (1)</a>
</li>
<li>
<a href="/categories/%E7%A2%8E%E5%BF%B5">碎念 (1)</a>
</li>
<li>
<a href="/categories/%E7%BE%A4%E6%9A%89">群暉 (1)</a>
</li>
</ul>
</div>
<div class="right">
<div class="external-profiles">
<strong></strong>
<a href="https://www.facebook.com/mariahchang" target="_blank"><i class="fa fa-facebook-adblock-proof"></i></a>
<a href="https://twitter.com/changchichung" target="_blank"><i class="fa fa-twitter-adblock-proof"></i></a>
<a href="https://github.com/changchichung" target="_blank"><i class="fa fa-github"></i></a>
<a href="https://www.yapee.tw/mvc/onlinePay/webLink?key=lMC74kucH21JChCR77-wJ80ZZ-Poh11amP24BwiDdHw" target="_blank"><img border="0" src="https://www.yapee.tw/mvc/file/publicFile?pathType=data/linkLogo/B0S0F0002585.jpg"></img></a>
</div>
</div>
</div>
</footer>
<div class="credits">
<div class="container">
<div class="copyright">
<a href="https://github.com/Lednerb" target="_blank">
&copy;
2017
by Lednerb
</a>
-
<a href="https://h.cowbay.org/tags/nvidia/index.xml">RSS</a>
</div>
<div class="author">
<a href="https://www.yapee.tw/mvc/onlinePay/webLink?key=lMC74kucH21JChCR77-wJ80ZZ-Poh11amP24BwiDdHw" target="_blank">Bilberry Hugo Theme</a>
</div>
</div>
</div>
<script type="application/javascript">
var doNotTrack = false;
if (!doNotTrack) {
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-138954876-1', 'auto');
ga('send', 'pageview');
}
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
<script type="text/javascript" src="https://h.cowbay.org/js/externalDependencies.39c47e10e241eae2947b3fe21809c572.js" integrity="md5-OcR&#43;EOJB6uKUez/iGAnFcg=="></script>
<script type="text/javascript" src="https://h.cowbay.org/js/theme.ff50ae6dc1bfc220b23bf69dbb41b54e.js" integrity="md5-/1CubcG/wiCyO/adu0G1Tg=="></script>
<script>
$(".moment").each(function() {
$(this).text(
moment( $(this).text() )
.locale( "tw" )
.format('LL')
);
});
$(".footnote-return sup").html("");
</script>
<script>
var client = algoliasearch("2XL0P8XDCY", "4ef65b37b627bb886b46c34a10e63aa6");
var index = client.initIndex("h_cowbay_org");
$('#search').autocomplete({ hint: false, autoselect: true, debug: false },
[
{
source: $.fn.autocomplete.sources.hits(index, { hitsPerPage: 10 }),
displayKey: function(suggestion) {
return suggestion.title || suggestion.author
},
templates: {
suggestion: function(suggestion) {
return "<span class='entry " + suggestion.type + "'>"
+ "<span class='title'>" + suggestion.title + "</span>"
+ "<span class='fa fa-fw " + suggestion.iconClass + "'></span>"
+ "</span>"
;
},
empty: function() {
return "<span class='empty'></span>"
},
footer: function() {
return '<div class="branding">Powered by <img src="https:\/\/h.cowbay.org\/dist\/algolia-logo-light.svg" /></div>'
}
},
}
])
.on('autocomplete:selected', function(event, suggestion, dataset) {
window.location = (suggestion.url);
})
.keypress(function (event, suggestion) {
if (event.which == 13) {
window.location = (suggestion.url);
}
});
</script>
</body>
</html>

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Nvidia on MCの飄狂山莊㊣</title>
<link>https://h.cowbay.org/tags/nvidia/</link>
<description>Recent content in Nvidia on MCの飄狂山莊㊣</description>
<generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Tue, 20 Aug 2019 14:51:54 +0800</lastBuildDate>
<atom:link href="https://h.cowbay.org/tags/nvidia/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</title>
<link>https://h.cowbay.org/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/</link>
<pubDate>Tue, 20 Aug 2019 14:51:54 +0800</pubDate>
<guid>https://h.cowbay.org/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/</guid>
<description>&lt;p&gt;因為老闆說要試試看用GPU 來跑postgresql 威力&lt;/p&gt;
&lt;p&gt;手邊剛好有一張 geforce gt 720&lt;/p&gt;
&lt;p&gt;一開始沒想太多看到有這張卡的驅動程式然後CUDA也有支援&lt;/p&gt;
&lt;p&gt;就直接從桌機拔下來接去LAB Server ,然後就開始一連串的難關了&amp;hellip;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description>
</item>
</channel>
</rss>

@ -0,0 +1 @@
<!DOCTYPE html><html><head><title>https://h.cowbay.org/tags/nvidia/</title><link rel="canonical" href="https://h.cowbay.org/tags/nvidia/"/><meta name="robots" content="noindex"><meta charset="utf-8" /><meta http-equiv="refresh" content="0; url=https://h.cowbay.org/tags/nvidia/" /></head></html>

@ -0,0 +1,478 @@
<!doctype html>
<html class="no-js" lang="tw">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Eric Chang">
<meta name="description" content="Whats the Worst That Could Happen?">
<meta name="keywords" content="linux,blog,responsive,search,font awesome,pages,posts,multilingual,highlight.js,syntax highlighting,premium,shortcuts">
<meta content="" name="keywords">
<meta name="generator" content="Hugo 0.50" />
<title> Pgbarman | MCの飄狂山莊㊣</title>
<meta name="description" content="Pgbarman - Whats the Worst That Could Happen?">
<meta itemprop="name" content="Pgbarman">
<meta itemprop="description" content="Pgbarman - Whats the Worst That Could Happen?">
<meta property="og:title" content="Pgbarman">
<meta property="og:description" content="Pgbarman - Whats the Worst That Could Happen?">
<meta property="og:image" content="https://www.gravatar.com/avatar/e4eb1f8e016ffb73e9889f87d16e15f0?size=200">
<meta property="og:url" content="https://h.cowbay.org/tags/pgbarman/">
<meta property="og:site_name" content="MCの飄狂山莊㊣"><meta property="og:type" content="website">
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-16x16.png" sizes="16x16">
<link href="https://h.cowbay.org/tags/pgbarman/index.xml" rel="alternate" type="application/rss+xml" title="MCの飄狂山莊㊣" />
<link href="https://h.cowbay.org/tags/pgbarman/index.xml" rel="feed" type="application/rss+xml" title="MCの飄狂山莊㊣" />
<link rel="stylesheet" href="https://h.cowbay.org/sass/combined.min.a89dfa577f701bffe9659f476ef61241cb2a3452b913e793463b0074a10c0a59.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body class="bilberry-hugo-theme">
<nav class="permanentTopNav">
<div class="container">
<ul class="topnav">
</ul>
<div id="search-box" class="search">
<i class="fa fa-search"></i>
<input id="search" type="text" placeholder="">
</div>
</div>
</nav>
<header>
<div class="container">
<div class="logo">
<a href="/" class="logo">
<img src="https://www.gravatar.com/avatar/e4eb1f8e016ffb73e9889f87d16e15f0?d=mm&size=200" alt="">
<span class="overlay"><i class="fa fa-home"></i></span>
</a>
</div>
<div class="titles">
<h3 class="title"><a href="/">MCの飄狂山莊㊣</a></h3>
<span class="subtitle">Whats the Worst That Could Happen?</span>
</div>
<div class="toggler permanentTopNav">
<i class="fa fa-bars" aria-hidden="true"></i>
</div>
</div>
</header>
<div class="main container">
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">
<img src="/images/post-default-4.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a></h3>
<div class="meta">
<span class="date moment">2019-08-23</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>這篇繼續講 pgbarman 透過 rsync/ssh 來備份 postgresql 資料庫的方式</p>
<p></p>
<a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/postgresql">postgresql</a>
<a href="/tags/pgbarman">pgbarman</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">
<img src="/images/post-default-4.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a></h3>
<div class="meta">
<span class="date moment">2019-08-23</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>很久以前就有看到這個用來備份postgresql 的 pgbarman</p>
<p><a href="https://www.pgbarman.org/">https://www.pgbarman.org/</a></p>
<p>前幾天老闆在slack 上面又提到,所以這次就花了點時間來玩玩看</p>
<p>不過呢,雖然有弄起來,但是還真不知道有些問題是怎麼解決的&hellip;</p>
<p></p>
<a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/postgresql">postgresql</a>
<a href="/tags/pgbarman">pgbarman</a>
</div>
</div>
</div>
</article>
</div>
<div class="paginator">
</div>
</div>
<footer>
<div class="container">
<div class="recent-posts">
<strong></strong>
<ul>
<li>
<a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li>
<li>
<a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li>
<li>
<a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li>
<li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li>
<li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li>
<li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li>
<li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li>
</ul>
</div>
<div class="categories">
<a href="/categories/"><strong></strong></a>
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li>
<li>
<a href="/categories/ansible">Ansible (3)</a>
</li>
<li>
<a href="/categories/linux">Linux (1)</a>
</li>
<li>
<a href="/categories/proxmox">Proxmox (1)</a>
</li>
<li>
<a href="/categories/ps">Ps (1)</a>
</li>
<li>
<a href="/categories/%E7%A2%8E%E5%BF%B5">碎念 (1)</a>
</li>
<li>
<a href="/categories/%E7%BE%A4%E6%9A%89">群暉 (1)</a>
</li>
</ul>
</div>
<div class="right">
<div class="external-profiles">
<strong></strong>
<a href="https://www.facebook.com/mariahchang" target="_blank"><i class="fa fa-facebook-adblock-proof"></i></a>
<a href="https://twitter.com/changchichung" target="_blank"><i class="fa fa-twitter-adblock-proof"></i></a>
<a href="https://github.com/changchichung" target="_blank"><i class="fa fa-github"></i></a>
<a href="https://www.yapee.tw/mvc/onlinePay/webLink?key=lMC74kucH21JChCR77-wJ80ZZ-Poh11amP24BwiDdHw" target="_blank"><img border="0" src="https://www.yapee.tw/mvc/file/publicFile?pathType=data/linkLogo/B0S0F0002585.jpg"></img></a>
</div>
</div>
</div>
</footer>
<div class="credits">
<div class="container">
<div class="copyright">
<a href="https://github.com/Lednerb" target="_blank">
&copy;
2017
by Lednerb
</a>
-
<a href="https://h.cowbay.org/tags/pgbarman/index.xml">RSS</a>
</div>
<div class="author">
<a href="https://www.yapee.tw/mvc/onlinePay/webLink?key=lMC74kucH21JChCR77-wJ80ZZ-Poh11amP24BwiDdHw" target="_blank">Bilberry Hugo Theme</a>
</div>
</div>
</div>
<script type="application/javascript">
var doNotTrack = false;
if (!doNotTrack) {
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-138954876-1', 'auto');
ga('send', 'pageview');
}
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
<script type="text/javascript" src="https://h.cowbay.org/js/externalDependencies.39c47e10e241eae2947b3fe21809c572.js" integrity="md5-OcR&#43;EOJB6uKUez/iGAnFcg=="></script>
<script type="text/javascript" src="https://h.cowbay.org/js/theme.ff50ae6dc1bfc220b23bf69dbb41b54e.js" integrity="md5-/1CubcG/wiCyO/adu0G1Tg=="></script>
<script>
$(".moment").each(function() {
$(this).text(
moment( $(this).text() )
.locale( "tw" )
.format('LL')
);
});
$(".footnote-return sup").html("");
</script>
<script>
var client = algoliasearch("2XL0P8XDCY", "4ef65b37b627bb886b46c34a10e63aa6");
var index = client.initIndex("h_cowbay_org");
$('#search').autocomplete({ hint: false, autoselect: true, debug: false },
[
{
source: $.fn.autocomplete.sources.hits(index, { hitsPerPage: 10 }),
displayKey: function(suggestion) {
return suggestion.title || suggestion.author
},
templates: {
suggestion: function(suggestion) {
return "<span class='entry " + suggestion.type + "'>"
+ "<span class='title'>" + suggestion.title + "</span>"
+ "<span class='fa fa-fw " + suggestion.iconClass + "'></span>"
+ "</span>"
;
},
empty: function() {
return "<span class='empty'></span>"
},
footer: function() {
return '<div class="branding">Powered by <img src="https:\/\/h.cowbay.org\/dist\/algolia-logo-light.svg" /></div>'
}
},
}
])
.on('autocomplete:selected', function(event, suggestion, dataset) {
window.location = (suggestion.url);
})
.keypress(function (event, suggestion) {
if (event.which == 13) {
window.location = (suggestion.url);
}
});
</script>
</body>
</html>

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Pgbarman on MCの飄狂山莊㊣</title>
<link>https://h.cowbay.org/tags/pgbarman/</link>
<description>Recent content in Pgbarman on MCの飄狂山莊㊣</description>
<generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Fri, 23 Aug 2019 14:54:13 +0800</lastBuildDate>
<atom:link href="https://h.cowbay.org/tags/pgbarman/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</title>
<link>https://h.cowbay.org/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/</link>
<pubDate>Fri, 23 Aug 2019 14:54:13 +0800</pubDate>
<guid>https://h.cowbay.org/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/</guid>
<description>&lt;p&gt;這篇繼續講 pgbarman 透過 rsync/ssh 來備份 postgresql 資料庫的方式&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description>
</item>
<item>
<title>[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</title>
<link>https://h.cowbay.org/post/pgbarman-in-ubuntu-1804-postgresql-10/</link>
<pubDate>Fri, 23 Aug 2019 13:53:40 +0800</pubDate>
<guid>https://h.cowbay.org/post/pgbarman-in-ubuntu-1804-postgresql-10/</guid>
<description>&lt;p&gt;很久以前就有看到這個用來備份postgresql 的 pgbarman&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://www.pgbarman.org/&#34;&gt;https://www.pgbarman.org/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;前幾天老闆在slack 上面又提到,所以這次就花了點時間來玩玩看&lt;/p&gt;
&lt;p&gt;不過呢,雖然有弄起來,但是還真不知道有些問題是怎麼解決的&amp;hellip;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description>
</item>
</channel>
</rss>

@ -0,0 +1 @@
<!DOCTYPE html><html><head><title>https://h.cowbay.org/tags/pgbarman/</title><link rel="canonical" href="https://h.cowbay.org/tags/pgbarman/"/><meta name="robots" content="noindex"><meta charset="utf-8" /><meta http-equiv="refresh" content="0; url=https://h.cowbay.org/tags/pgbarman/" /></head></html>

@ -0,0 +1,478 @@
<!doctype html>
<html class="no-js" lang="tw">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Eric Chang">
<meta name="description" content="Whats the Worst That Could Happen?">
<meta name="keywords" content="linux,blog,responsive,search,font awesome,pages,posts,multilingual,highlight.js,syntax highlighting,premium,shortcuts">
<meta content="" name="keywords">
<meta name="generator" content="Hugo 0.50" />
<title> Postgresql | MCの飄狂山莊㊣</title>
<meta name="description" content="Postgresql - Whats the Worst That Could Happen?">
<meta itemprop="name" content="Postgresql">
<meta itemprop="description" content="Postgresql - Whats the Worst That Could Happen?">
<meta property="og:title" content="Postgresql">
<meta property="og:description" content="Postgresql - Whats the Worst That Could Happen?">
<meta property="og:image" content="https://www.gravatar.com/avatar/e4eb1f8e016ffb73e9889f87d16e15f0?size=200">
<meta property="og:url" content="https://h.cowbay.org/tags/postgresql/">
<meta property="og:site_name" content="MCの飄狂山莊㊣"><meta property="og:type" content="website">
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-16x16.png" sizes="16x16">
<link href="https://h.cowbay.org/tags/postgresql/index.xml" rel="alternate" type="application/rss+xml" title="MCの飄狂山莊㊣" />
<link href="https://h.cowbay.org/tags/postgresql/index.xml" rel="feed" type="application/rss+xml" title="MCの飄狂山莊㊣" />
<link rel="stylesheet" href="https://h.cowbay.org/sass/combined.min.a89dfa577f701bffe9659f476ef61241cb2a3452b913e793463b0074a10c0a59.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body class="bilberry-hugo-theme">
<nav class="permanentTopNav">
<div class="container">
<ul class="topnav">
</ul>
<div id="search-box" class="search">
<i class="fa fa-search"></i>
<input id="search" type="text" placeholder="">
</div>
</div>
</nav>
<header>
<div class="container">
<div class="logo">
<a href="/" class="logo">
<img src="https://www.gravatar.com/avatar/e4eb1f8e016ffb73e9889f87d16e15f0?d=mm&size=200" alt="">
<span class="overlay"><i class="fa fa-home"></i></span>
</a>
</div>
<div class="titles">
<h3 class="title"><a href="/">MCの飄狂山莊㊣</a></h3>
<span class="subtitle">Whats the Worst That Could Happen?</span>
</div>
<div class="toggler permanentTopNav">
<i class="fa fa-bars" aria-hidden="true"></i>
</div>
</div>
</header>
<div class="main container">
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">
<img src="/images/post-default-4.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a></h3>
<div class="meta">
<span class="date moment">2019-08-23</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>這篇繼續講 pgbarman 透過 rsync/ssh 來備份 postgresql 資料庫的方式</p>
<p></p>
<a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/postgresql">postgresql</a>
<a href="/tags/pgbarman">pgbarman</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">
<img src="/images/post-default-4.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a></h3>
<div class="meta">
<span class="date moment">2019-08-23</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>很久以前就有看到這個用來備份postgresql 的 pgbarman</p>
<p><a href="https://www.pgbarman.org/">https://www.pgbarman.org/</a></p>
<p>前幾天老闆在slack 上面又提到,所以這次就花了點時間來玩玩看</p>
<p>不過呢,雖然有弄起來,但是還真不知道有些問題是怎麼解決的&hellip;</p>
<p></p>
<a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/postgresql">postgresql</a>
<a href="/tags/pgbarman">pgbarman</a>
</div>
</div>
</div>
</article>
</div>
<div class="paginator">
</div>
</div>
<footer>
<div class="container">
<div class="recent-posts">
<strong></strong>
<ul>
<li>
<a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
</li>
<li>
<a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
</li>
<li>
<a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
</li>
<li>
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
</li>
<li>
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
</li>
<li>
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
</li>
<li>
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
</li>
</ul>
</div>
<div class="categories">
<a href="/categories/"><strong></strong></a>
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (27)</a>
</li>
<li>
<a href="/categories/ansible">Ansible (3)</a>
</li>
<li>
<a href="/categories/linux">Linux (1)</a>
</li>
<li>
<a href="/categories/proxmox">Proxmox (1)</a>
</li>
<li>
<a href="/categories/ps">Ps (1)</a>
</li>
<li>
<a href="/categories/%E7%A2%8E%E5%BF%B5">碎念 (1)</a>
</li>
<li>
<a href="/categories/%E7%BE%A4%E6%9A%89">群暉 (1)</a>
</li>
</ul>
</div>
<div class="right">
<div class="external-profiles">
<strong></strong>
<a href="https://www.facebook.com/mariahchang" target="_blank"><i class="fa fa-facebook-adblock-proof"></i></a>
<a href="https://twitter.com/changchichung" target="_blank"><i class="fa fa-twitter-adblock-proof"></i></a>
<a href="https://github.com/changchichung" target="_blank"><i class="fa fa-github"></i></a>
<a href="https://www.yapee.tw/mvc/onlinePay/webLink?key=lMC74kucH21JChCR77-wJ80ZZ-Poh11amP24BwiDdHw" target="_blank"><img border="0" src="https://www.yapee.tw/mvc/file/publicFile?pathType=data/linkLogo/B0S0F0002585.jpg"></img></a>
</div>
</div>
</div>
</footer>
<div class="credits">
<div class="container">
<div class="copyright">
<a href="https://github.com/Lednerb" target="_blank">
&copy;
2017
by Lednerb
</a>
-
<a href="https://h.cowbay.org/tags/postgresql/index.xml">RSS</a>
</div>
<div class="author">
<a href="https://www.yapee.tw/mvc/onlinePay/webLink?key=lMC74kucH21JChCR77-wJ80ZZ-Poh11amP24BwiDdHw" target="_blank">Bilberry Hugo Theme</a>
</div>
</div>
</div>
<script type="application/javascript">
var doNotTrack = false;
if (!doNotTrack) {
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-138954876-1', 'auto');
ga('send', 'pageview');
}
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
<script type="text/javascript" src="https://h.cowbay.org/js/externalDependencies.39c47e10e241eae2947b3fe21809c572.js" integrity="md5-OcR&#43;EOJB6uKUez/iGAnFcg=="></script>
<script type="text/javascript" src="https://h.cowbay.org/js/theme.ff50ae6dc1bfc220b23bf69dbb41b54e.js" integrity="md5-/1CubcG/wiCyO/adu0G1Tg=="></script>
<script>
$(".moment").each(function() {
$(this).text(
moment( $(this).text() )
.locale( "tw" )
.format('LL')
);
});
$(".footnote-return sup").html("");
</script>
<script>
var client = algoliasearch("2XL0P8XDCY", "4ef65b37b627bb886b46c34a10e63aa6");
var index = client.initIndex("h_cowbay_org");
$('#search').autocomplete({ hint: false, autoselect: true, debug: false },
[
{
source: $.fn.autocomplete.sources.hits(index, { hitsPerPage: 10 }),
displayKey: function(suggestion) {
return suggestion.title || suggestion.author
},
templates: {
suggestion: function(suggestion) {
return "<span class='entry " + suggestion.type + "'>"
+ "<span class='title'>" + suggestion.title + "</span>"
+ "<span class='fa fa-fw " + suggestion.iconClass + "'></span>"
+ "</span>"
;
},
empty: function() {
return "<span class='empty'></span>"
},
footer: function() {
return '<div class="branding">Powered by <img src="https:\/\/h.cowbay.org\/dist\/algolia-logo-light.svg" /></div>'
}
},
}
])
.on('autocomplete:selected', function(event, suggestion, dataset) {
window.location = (suggestion.url);
})
.keypress(function (event, suggestion) {
if (event.which == 13) {
window.location = (suggestion.url);
}
});
</script>
</body>
</html>

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save