<ahref="https://github.com/changchichung"title="Posts by Eric Chang"rel="author">Eric Chang</a>
</span>
<span> / </span>
<spanclass="category">
<ahref="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
</div>
<divclass='excerpt-header'>
<h2class='excerpt-title'>
<ahref="https://h.cowbay.org/post/check-port-speed-in-openwrt/ "> [筆記] 在openwrt 中檢查網路埠的連接速度/ Check Port Speed in Openwrt </a>
</h2>
</div>
<divclass='excerpt-content'>
<article>
<p>最近在玩ansible + openwrt + wireguard</p>
<p>ansible 腳本寫好之後,可以把config 佈署到 openwrt 上</p>
<p>當然前提是最好用同樣的機器,不同的機器在config 上會有一些差異</p>
<p>但是這些差異常常就會造成無法連線、無法使用的狀況</p>
<p>BTW 我是用 ubiquiti 的 edgerouter X 來做</p>
<p>都弄好之後,就想說來跑個iperf3 測試一下連線速度</p>
<p>也好和之前做的 IPSEC 比較一下</p>
<p>結果很奇怪的是,明明一樣的機器、一樣用ansible 跑出來的config</p>
<p>但是有一台edgerouter X 的VPN 連接速度就是特別慢</p>
<p>而且速度都剛好卡在 99.X Mb 左右</p>
<p>就讓我很納悶了…</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/check-port-speed-in-openwrt/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<ahref="https://h.cowbay.org/post/debian-buster-server-been-hacked/ "> [筆記] Debian Buster 伺服器被入侵了!/ Debian Buster Server Been Hacked</a>
<ahref="https://h.cowbay.org/post/check-port-speed-in-openwrt/ "> [筆記] 在openwrt 中檢查網路埠的連接速度/ Check Port Speed in Openwrt</a>
</h2>
</div>
<divclass='excerpt-content'>
<article>
<p>上禮拜某天在開會的時候,LINE不斷傳來訊息</p>
<p>最近在玩ansible + openwrt + wireguard</p>
<p>不過因為我向來開會都很認真(驕傲,所以都沒看,接著就變成來電了</p>
<p>ansible 腳本寫好之後,可以把config 佈署到 openwrt 上</p>
<p>看來大概有啥事發生</p>
<p>當然前提是最好用同樣的機器,不同的機器在config 上會有一些差異</p>
<p>不過畢竟不是正職的工作,就先放著吧</p>
<p>但是這些差異常常就會造成無法連線、無法使用的狀況</p>
<p>後來變成連學長都直接打來告訴我,某間公司的伺服器出事了,客戶找不到我</p>
<p>BTW 我是用 ubiquiti 的 edgerouter X 來做</p>
<p>叫我趕快連進去看</p>
<p>都弄好之後,就想說來跑個iperf3 測試一下連線速度</p>
<p>是說,啊我又沒跟人家簽維護,趕什麼趕…</p>
<p>也好和之前做的 IPSEC 比較一下</p>
<p>總之,開完會後就了解一下狀況</p>
<p>結果很奇怪的是,明明一樣的機器、一樣用ansible 跑出來的config</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/debian-buster-server-been-hacked/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<p>但是有一台edgerouter X 的VPN 連接速度就是特別慢</p>
<p>而且速度都剛好卡在 99.X Mb 左右</p>
<p>就讓我很納悶了…</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/check-port-speed-in-openwrt/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<ahref="https://h.cowbay.org/post/debian-buster-server-been-hacked/ "> [筆記] Debian Buster 伺服器被入侵了!/ Debian Buster Server Been Hacked</a>
</h2>
</div>
<divclass='excerpt-content'>
<article>
<p>工作用的電腦,昨天終於難得的reboot了(uptime 看了一下,大概是三百多天)</p>
<p>上禮拜某天在開會的時候,LINE不斷傳來訊息</p>
<p>結果重開機之後,發現原本在打tunnel 連 ptt 的 wireguard VPN 掛掉了</p>
<p>不過因為我向來開會都很認真(驕傲,所以都沒看,接著就變成來電了</p>
<p>手動下指令也啟動不了</p>
<p>看來大概有啥事發生</p>
<p>查了一下發現是 ubuntu 18.04 kernel 4.15.0-106 的包</p>
<p>不過畢竟不是正職的工作,就先放著吧</p>
<p>看來就連kernel 最好都不要自動升級…</p>
<p>後來變成連學長都直接打來告訴我,某間公司的伺服器出事了,客戶找不到我</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/ubuntu-kernel-4-15-0-106-unable-to-start-wireguard-interface/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<p>叫我趕快連進去看</p>
<p>是說,啊我又沒跟人家簽維護,趕什麼趕…</p>
<p>總之,開完會後就了解一下狀況</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/debian-buster-server-been-hacked/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<p>結果重開機之後,發現原本在打tunnel 連 ptt 的 wireguard VPN 掛掉了</p>
<p>紀錄一下步驟,再來研究怎麼整合到 preseed 裡面</p>
<p>手動下指令也啟動不了</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/ubuntu-1804-preseeds/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<p>查了一下發現是 ubuntu 18.04 kernel 4.15.0-106 的包</p>
<p>看來就連kernel 最好都不要自動升級…</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/ubuntu-kernel-4-15-0-106-unable-to-start-wireguard-interface/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/ubuntu-1404-preseed/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/ubuntu-1804-preseeds/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/config-networkmanager-in-ubuntu-to-stop-modify-resolvconf/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/ubuntu-1404-preseed/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<ahref="https://h.cowbay.org/post/smartd-failed-to-start-in-freenas/ "> [筆記] Freenas Smartd 啟動失敗 Smartd Failed to Start in Freenas</a>
<ahref="https://h.cowbay.org/post/ubuntu-1804-install-root-on-raid/ "> Ubuntu 1804 Install Root on Raid</a>
</h2>
</div>
<divclass='excerpt-content'>
<article>
<p>這兩天在弄兩台Freenas ,準備當作Proxmox 的Storage & Server Backup</p>
<p>因為伺服器的限制,只能接六個SATA,我接了六個2T的硬碟做raid10</p>
<p>最近在弄一台機器,想要把ubuntu 18.04 安裝在software raid上</p>
<p>然後把Freenas 安裝在隨身碟上</p>
<p>因為新開的機器大部分都是在proxmox上,所以很少碰實體機器了</p>
<p>不過會一直出現Smartd failed to start 的錯誤訊息</p>
<p>結果在安裝過程中,做raid碰到一些問題,來紀錄一下</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/smartd-failed-to-start-in-freenas/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/ubuntu-1804-install-root-on-raid/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/incredibly-slow-mdadm-rebuild/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/smartd-failed-to-start-in-freenas/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/create-portable-vim-environment/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/incredibly-slow-mdadm-rebuild/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/synology-ds415-repair-cost/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/create-portable-vim-environment/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/10g-lab-using-proxmox-and-mellanox/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/synology-ds415-repair-cost/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/10g-lab-using-proxmox-and-mellanox/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<p>這是發生在一個夜黑風高的寂寥深夜….. ( What The FXXX … )</p>
<p>來到這個環境之後,有一個很詭異的狀況一直困擾著我</p>
<p>在每個分公司,都會有一台伺服器作為KVM Host</p>
<p>上面跑兩台VM,一台作為ansible controller (目前沒作用)</p>
<p>另一台作為這邊所謂的 “Build Server”</p>
<p>用途包含了DHCP Server / Proxy Server (squid3) / APT Proxy (squid-deb-proxy)</p>
<p>問題就發生在這台 Build Server 上…</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/weird-client-server-connection/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<p>這是發生在一個夜黑風高的寂寥深夜….. ( What The FXXX … )</p>
<p>來到這個環境之後,有一個很詭異的狀況一直困擾著我</p>
<p>在每個分公司,都會有一台伺服器作為KVM Host</p>
<p>上面跑兩台VM,一台作為ansible controller (目前沒作用)</p>
<p>另一台作為這邊所謂的 “Build Server”</p>
<p>用途包含了DHCP Server / Proxy Server (squid3) / APT Proxy (squid-deb-proxy)</p>
<p>問題就發生在這台 Build Server 上…</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/weird-client-server-connection/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/install-it500u-card-reader-in-ubuntu-1804/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/config-networkmanager-in-ubuntu-to-stop-modify-resolvconf/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<p>就來玩玩看promox 加上 synology high availability 再加上 NFS share 的環境</p>
<p>OOXX 咧,我們可是號稱全Linux 環境捏!</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/proxmox-with-synology-high-availability/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<p>結果居然沒有對應的硬體!?</p>
<p>於是馬上敗了一台據說有支援 Linux 的 IT 850UM 讀卡機!</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/install-it500u-card-reader-in-ubuntu-1804/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<p>就來玩玩看promox 加上 synology high availability 再加上 NFS share 的環境</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/first-try-synology-ha/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/proxmox-with-synology-high-availability/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/postgresql-pgbench-benchmark/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<p>趁著這次機會,看看網路上說的換電阻大法有沒有用!</p>
<p>如果有用,就拿這兩台來玩玩 synology high availability !</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/first-try-synology-ha/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<ahref="https://h.cowbay.org/post/rescue-synology-nas-with-ubuntu-livecd/ "> [筆記] 用ubuntu livecd 救援群暉 synology NAS內的資料 / rescue synology nas with ubuntu livecd</a>
<ahref="https://h.cowbay.org/post/postgresql-pgbench-benchmark/ "> [筆記] postgresql 效能測試 / postgresql benchmakr using pgbench</a>
</h2>
</div>
<divclass='excerpt-content'>
<article>
<p>2020/01/02 , 2020年上工的第一天,群暉的 DS415+ NAS 掛了!</p>
<p>昨天老闆在slack 上面問說現在的幾台 DB Server 有沒有跑過 pgbench</p>
<p>因為群暉的文件在最關鍵的一步寫得亂七八糟!</p>
<p>分數大概如何,想要跟他的筆電做個比較</p>
<p>所以在這邊紀錄一下我操作的步驟!</p>
<p>之前有跑過幾次,這次就順便測試一下不同的硬體配置、以及不同的軟體版本</p>
<p>對於pgbench 跑分會有多大的影響</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/rescue-synology-nas-with-ubuntu-livecd/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/postgresql-pgbench-benchmark/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<p>2020/01/02 , 2020年上工的第一天,群暉的 DS415+ NAS 掛了!</p>
<p>開機沒多久就連不上,反覆幾次之後,出現了開機時所有燈號都狂閃的狀況</p>
<p>因為群暉的文件在最關鍵的一步寫得亂七八糟!</p>
<p>終於宣告不治</p>
<p>所以在這邊紀錄一下我操作的步驟!</p>
<p>問題很明顯的就是Intel C2000 系列 CPU 的瑕疵</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/what-a-piss-in-synology-document/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/rescue-synology-nas-with-ubuntu-livecd/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/ansible-get-value-from-loop-register/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/what-a-piss-in-synology-document/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/ansible-ssh-forwardagent/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/ansible-get-value-from-loop-register/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/test-pg_prewarm/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/ansible-ssh-forwardagent/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<ahref="https://h.cowbay.org/post/accidentally-typed-an-extra-space-in-ansible-playbook/ "> [筆記] 在ansible playbook中不小心多打了一個空格 / Accidentally Typed an Extra Space in Ansible Playbook</a>
<ahref="https://h.cowbay.org/post/test-pg_prewarm/ "> [筆記] 測試 postgresql 的pg_prewarm 對效能的影響 / test pg_prewarm in postgresql 11</a>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/accidentally-typed-an-extra-space-in-ansible-playbook/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<p>好像有點意思?就來測試看看吧!</p>
<p>只是目前還不知道該怎麼解讀測試的數據就是了…</p>
<p>幹!林北真的不是 DBA 啦 =.=</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/test-pg_prewarm/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<ahref="https://h.cowbay.org/post/add-system-wide-favorite-apps-in-dconf/ "> 在ubuntu 18.04中,透過 dconf 設定系統層級的「我的最愛」/ Add System Wide Favorite Apps in dock with Dconf in ubuntu 18.04</a>
<ahref="https://h.cowbay.org/post/accidentally-typed-an-extra-space-in-ansible-playbook/ "> [筆記] 在ansible playbook中不小心多打了一個空格 / Accidentally Typed an Extra Space in Ansible Playbook</a>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/add-system-wide-favorite-apps-in-dconf/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/accidentally-typed-an-extra-space-in-ansible-playbook/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<ahref="https://h.cowbay.org/post/ubuntu-dconf-proxy-settings/ "> [筆記] ubuntu 18.04 透過 dconf 修改系統 proxy / modify system proxy with dconf in ubuntu 18.04 </a>
<ahref="https://h.cowbay.org/post/add-system-wide-favorite-apps-in-dconf/ "> 在ubuntu 18.04中,透過 dconf 設定系統層級的「我的最愛」/ Add System Wide Favorite Apps in dock with Dconf in ubuntu 18.04 </a>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/ubuntu-dconf-proxy-settings/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/add-system-wide-favorite-apps-in-dconf/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<ahref="https://h.cowbay.org/post/awesome-all-in-one-vpn-server-streisand/ "> [筆記] 超強的ALL-in-One VPN Server streisand / Awesome All in One Vpn Server Streisand</a>
<ahref="https://h.cowbay.org/post/ubuntu-dconf-proxy-settings/ "> [筆記] ubuntu 18.04 透過 dconf 修改系統 proxy / modify system proxy with dconf in ubuntu 18.04</a>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/awesome-all-in-one-vpn-server-streisand/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<p>可是在18.04 上,我會把這個服務關掉,因為他會干擾我的DNS設定</p>
<p>所以想試試看有沒有辦法不使用 NetworkManager 服務</p>
<p>又能夠在 user level 修改 proxy 參數</p>
<p>就想到了用 dconf 來做</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/ubuntu-dconf-proxy-settings/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<ahref="https://h.cowbay.org/post/awesome-all-in-one-vpn-server-streisand/ "> [筆記] 超強的ALL-in-One VPN Server streisand / Awesome All in One Vpn Server Streisand</a>
</h2>
</div>
<divclass='excerpt-content'>
<article>
<p>這兩天在找關於在 ubuntu 中做搜尋的軟體</p>
<p>最近上班閒得發慌,沒事就上 github 找看看有沒有什麼好玩的專案</p>
<p>意外找到一個非常好用的工具 ulauncher</p>
<p>就不小心發現了這個 streisand</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/recommended-ulauncher-in-ubuntu-1804/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/awesome-all-in-one-vpn-server-streisand/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/pg_auto_failover_in_ubuntu_1804_psql_11/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/recommended-ulauncher-in-ubuntu-1804/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<ahref="https://h.cowbay.org/post/bencmark-with-external-internal-nvme-ssd-and-external-sata-ssd/ "> [筆記] 測試 USB 3.1 Gen2 NVME SSD 外接盒 & 內建pci-e ssd & 外接SATA SSD / Bencmark With External Internal Nvme Ssd and External Sata Ssd</a>
<ahref="https://h.cowbay.org/post/pg_auto_failover_in_ubuntu_1804_psql_11/ "> [筆記] 在ubuntu 18.04安裝psql 11 以及 pg_auto_failover / install psql 11 and pg_auto_failover in ubuntu 18.04</a>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/bencmark-with-external-internal-nvme-ssd-and-external-sata-ssd/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/pg_auto_failover_in_ubuntu_1804_psql_11/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<ahref="https://h.cowbay.org/post/bencmark-with-external-internal-nvme-ssd-and-external-sata-ssd/ "> [筆記] 測試 USB 3.1 Gen2 NVME SSD 外接盒 & 內建pci-e ssd & 外接SATA SSD / Bencmark With External Internal Nvme Ssd and External Sata Ssd</a>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/postgresql-backup-restore-using-zfs-snapshot/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/bencmark-with-external-internal-nvme-ssd-and-external-sata-ssd/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/backup-restore-postgresql-with-pgbackrest/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<p>這次改從system file level 來下手</p>
<p>採用zfs 的快照來備份、還原postgresql 資料庫</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/postgresql-backup-restore-using-zfs-snapshot/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/backup-restore-postgresql-with-pgbackrest/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/pgbarman-in-ubuntu-1804-postgresql-10/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<p>就直接從桌機拔下來,接去LAB Server ,然後就開始一連串的難關了…</p>
<p>不過呢,雖然有弄起來,但是還真不知道有些問題是怎麼解決的…</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/pgbarman-in-ubuntu-1804-postgresql-10/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<p>就直接從桌機拔下來,接去LAB Server ,然後就開始一連串的難關了…</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<ahref="https://h.cowbay.org/post/multiple-site-to-site-vpn-using-wireguard/ "> [筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
<ahref="https://h.cowbay.org/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>
<p>之前買了兩台edgerouter X 拿來玩了一下 wireguard,感覺還不錯,不過只有測試到點對點</p>
<p>但是那台VPS連去ptt 很頓,卡卡的</p>
<p>這次試試看躲在gateway後面,看看能不能建立多點的VPN環境</p>
<p>所以改用google cloud platform 的free tier 來做</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/multiple-site-to-site-vpn-using-wireguard/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<p>反正只是拿來當跳板,不會有什麼流量、運算產生,可以一直保持免費的狀態</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<ahref="https://h.cowbay.org/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>
<ahref="https://h.cowbay.org/post/multiple-site-to-site-vpn-using-wireguard/ "> [筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
<p>之前買了兩台edgerouter X 拿來玩了一下 wireguard,感覺還不錯,不過只有測試到點對點</p>
<p>於是研究了一下,發現還真的很簡單!</p>
<p>這次試試看躲在gateway後面,看看能不能建立多點的VPN環境</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/multiple-site-to-site-vpn-using-wireguard/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<ahref="https://h.cowbay.org/post/another-way-to-keep-ansible-log/ "> [筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
<ahref="https://h.cowbay.org/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>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/another-way-to-keep-ansible-log/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<ahref="https://h.cowbay.org/post/send-mail-to-notify-after-pxe-install/ "> [筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
<ahref="https://h.cowbay.org/post/another-way-to-keep-ansible-log/ "> [筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/send-mail-to-notify-after-pxe-install/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/another-way-to-keep-ansible-log/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<ahref="https://h.cowbay.org/post/ansible-run-task-depends-on-ipaddr/ "> [ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a>
<ahref="https://h.cowbay.org/post/send-mail-to-notify-after-pxe-install/ "> [筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
</h2>
</div>
<divclass='excerpt-content'>
<article>
<p>因為工作上的需要,要修改client端的 /etc/environment 檔案</p>
<p>最近有個任務,需要大量安裝client</p>
<p>在有權限使用proxy 服務的user的環境中,加入proxy 的設定</p>
<p>想用PXE來處理,只要user開機按F12(acer 桌機) 選擇PXE Boot</p>
<p>原本的清單中,有host/user/ip 這幾個值可以拿來判斷</p>
<p>然後選擇OS版本,就可以自動進行安裝</p>
<p>proxy server 那邊是採用ip 來控制,所以這邊也跟著用 ip 來判斷要不要修改 /etc/environment</p>
<p>安裝完成後,會自動重新開機,接著就用ansible來做user環境設定</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/ansible-run-task-depends-on-ipaddr/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<p>PXE的部份本來是沒有什麼問題,自動安裝系統的部份都做好了</p>
<p>可是因為這次的量比較多,想說讓每一台在完成PXE安裝後的第一次重開機</p>
<p>就送出一封郵件來通知我,說已經完成安裝,可以執行ansible 了</p>
<p>看似很簡單的一件事情,卻搞了我兩天….</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/send-mail-to-notify-after-pxe-install/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<ahref="https://h.cowbay.org/post/ansible-selectattr-from-list-in-dictionary/ "> [ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a>
<ahref="https://h.cowbay.org/post/ansible-run-task-depends-on-ipaddr/ "> [ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a>
</h2>
</div>
<divclass='excerpt-content'>
<article>
<p>在ansible中,關於如何引用自定義的變數,一直讓我很頭疼</p>
<p>因為工作上的需要,要修改client端的 /etc/environment 檔案</p>
<p>尤其是有牽涉到從外部導入yaml檔案時,更是常常讓我不知道到底該怎麼抓出想要的變數</p>
<p>在有權限使用proxy 服務的user的環境中,加入proxy 的設定</p>
<p>這次還是用selectattr 來處理,希望下次能夠記得…</p>
<p>原本的清單中,有host/user/ip 這幾個值可以拿來判斷</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/ansible-selectattr-from-list-in-dictionary/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<p>proxy server 那邊是採用ip 來控制,所以這邊也跟著用 ip 來判斷要不要修改 /etc/environment</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/ansible-run-task-depends-on-ipaddr/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<ahref="https://h.cowbay.org/post/remote-management-system-meshcentral/ "> linux底下遠端遙控&管理的好用系統 Meshcentral / Remote Management & control system Meshcentral</a>
<ahref="https://h.cowbay.org/post/ansible-selectattr-from-list-in-dictionary/ "> [ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/remote-management-system-meshcentral/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/ansible-selectattr-from-list-in-dictionary/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<ahref="https://h.cowbay.org/post/install-asus-10g-nic-in-proxmox/ "> Install Asus 10G NIC XG-C100C in Proxmox</a>
<ahref="https://h.cowbay.org/post/remote-management-system-meshcentral/ "> linux底下遠端遙控&管理的好用系統 Meshcentral / Remote Management & control system Meshcentral</a>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/install-asus-10g-nic-in-proxmox/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/remote-management-system-meshcentral/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/change-timezone-in-docker/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<p>storage 選擇QNAP NAS TS-932X + 960G SSD x 4 (raid 10 , NFS) + QNAP 10G Switch QSW-1280C-8C</p>
<p>既然storage這邊選用了10G的機種,伺服器上當然也要增加10G網卡</p>
<p>一樣,成本考量,就不用INTEL 了,買了這張 ASUS 10G 網卡</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/install-asus-10g-nic-in-proxmox/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/transfer-file-content-using-xclip-in-terminal/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/change-timezone-in-docker/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/inx-collect-detail-hardware-info/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/transfer-file-content-using-xclip-in-terminal/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/log-all-bash-commands/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/inx-collect-detail-hardware-info/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/fix-zpool-device-busy-using-dmsetup/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/log-all-bash-commands/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/transfer-cent62-using-rsync/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<p>可是一直出現device busy的錯誤訊息</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/fix-zpool-device-busy-using-dmsetup/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/command_to_test_main_ssl/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/transfer-cent62-using-rsync/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/install-timeshift-on-ubuntu1804/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/command_to_test_main_ssl/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/install-ubuntu1804-on-dell-6ir-raid-controller/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<p>可以很簡單快速的備份、恢復系統狀態</p>
<p>可是不知道為什麼,在ubuntu 18.04 上安裝就是會發生錯誤….</p>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/install-timeshift-on-ubuntu1804/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/ubuntu-1804-install-root-on-raid/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>
<divclass="more-link-wrapper"><aclass="more-link"href="https://h.cowbay.org/post/install-ubuntu1804-on-dell-6ir-raid-controller/">Read the post<spanclass="screen-reader-text">This is a Standard Post</span></a></div>