add update to proxmox and synology ha cluster

This commit is contained in:
2020-02-13 16:24:48 +08:00
parent a726820c4b
commit 32dde4d676
140 changed files with 9265 additions and 1261 deletions

View File

@@ -21,9 +21,9 @@
"publisher": "",
"accountablePerson" : "",
"copyrightHolder" : "",
"copyrightYear" : "2019",
"datePublished": "2019-12-27 09:09:05 \x2b0800 CST",
"dateModified" : "2019-12-27 09:09:05 \x2b0800 CST",
"copyrightYear" : "2020",
"datePublished": "2020-01-17 12:20:33 \x2b0800 CST",
"dateModified" : "2020-01-17 12:20:33 \x2b0800 CST",
"url" : "https:\/\/h.cowbay.org\/",
"wordCount" : "0",
"image" : "https://h.cowbay.org%!s(\u003cnil\u003e)"",
@@ -46,9 +46,9 @@
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<link href="https://h.cowbay.org/css/style.css?v=1577410044" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
<link href="https://h.cowbay.org/css/style.css?v=1581582274" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
<link href="https://h.cowbay.org/css/custom.css?v=1577410044" rel="stylesheet" type='text/css' media='all'>
<link href="https://h.cowbay.org/css/custom.css?v=1581582274" rel="stylesheet" type='text/css' media='all'>
<link rel="shortcut icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
<link rel="icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
@@ -116,6 +116,10 @@ if (!doNotTrack) {
<a href="/categories/%E7%BE%A4%E6%9A%89">群暉</a>
</li>
<li class="menu-item menu-item-type-taxonomy menu-item-object-category">
<a href="/categories/%E9%9B%9C%E5%BF%B5">雜念</a>
</li>
</ul>
@@ -288,12 +292,12 @@ if (!doNotTrack) {
<a class="featured-image-link" href="https://h.cowbay.org/post/ubuntu-dconf-proxy-settings/"><div class='featured-image lazy lazy-bg-image' data-background="https://h.cowbay.org/images/post-default-7.jpg"></div></a>
<a class="featured-image-link" href="https://h.cowbay.org/post/ansible-get-value-from-loop-register/"><div class='featured-image lazy lazy-bg-image' data-background="https://h.cowbay.org/images/post-default-7.jpg"></div></a>
<div class="excerpt-container">
<div class="excerpt-meta">
<span class="date">31 October</span>
<span class="date">27 December</span>
@@ -315,28 +319,20 @@ if (!doNotTrack) {
</div>
<div class='excerpt-header'>
<h2 class='excerpt-title'>
<a href="https://h.cowbay.org/post/ubuntu-dconf-proxy-settings/ "> [筆記] ubuntu 18.04 透過 dconf 修改系統 proxy / modify system proxy with dconf in ubuntu 18.04 </a>
<a href="https://h.cowbay.org/post/ansible-get-value-from-loop-register/ "> [筆記]在ansible中取得loop register後的值/ Ansible Get Value From Loop Register </a>
</h2>
</div>
<div class='excerpt-content'>
<article>
<p>最近在準備升級client 的作業系統,從 ubuntu 14.04 準備升級到 18.04 或明年的 20.04</p>
<p>今天在寫一支客製化 firefox 的playbook</p>
<p>因為公司政策的關係所以現在要連接internet ,需要申請</p>
<p>因為firefox 會給每個user 建立一個由亂數字串組成的default profile</p>
<p>然後 user 再去系統的proxy 設定新增一個 PAC 檔</p>
<p>所以每個user的 default profile 都不同</p>
<p>但是這個動作其實是去叫NetworkManager 這個服務</p>
<p>也因此在用register處理的時候碰到了一些問題</p>
<p>可是在18.04 上我會把這個服務關掉因為他會干擾我的DNS設定</p>
<p>所以想試試看有沒有辦法不使用 NetworkManager 服務</p>
<p>又能夠在 user level 修改 proxy 參數</p>
<p>就想到了用 dconf 來做</p>
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/ubuntu-dconf-proxy-settings/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/ansible-get-value-from-loop-register/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
</article>
</div>
</div>
@@ -354,12 +350,12 @@ if (!doNotTrack) {
<a class="featured-image-link" href="https://h.cowbay.org/post/awesome-all-in-one-vpn-server-streisand/"><div class='featured-image lazy lazy-bg-image' data-background="https://h.cowbay.org/images/post-default-18.jpg"></div></a>
<a class="featured-image-link" href="https://h.cowbay.org/post/ansible-ssh-forwardagent/"><div class='featured-image lazy lazy-bg-image' data-background="https://h.cowbay.org/images/post-default-14.jpg"></div></a>
<div class="excerpt-container">
<div class="excerpt-meta">
<span class="date">14 October</span>
<span class="date">24 December</span>
@@ -381,20 +377,22 @@ if (!doNotTrack) {
</div>
<div class='excerpt-header'>
<h2 class='excerpt-title'>
<a href="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>
<a href="https://h.cowbay.org/post/ansible-ssh-forwardagent/ "> [筆記] ansible 設定 ssh_args 開啟 ForwardX11 / config ansible ssh_args to enable forwardagent </a>
</h2>
</div>
<div class='excerpt-content'>
<article>
<p>最近上班閒得發慌,沒事就上 github 找看看有沒有什麼好玩的專案</p>
<p>正確來說,我不曉得到底怎麼「稱呼」這個 forwardx11 / forwardagent</p>
<p>就不小心發現了這個 streisand</p>
<p>總之就是在寫一隻ansible playbook</p>
<p><a href="https://github.com/StreisandEffect/streisand">https://github.com/StreisandEffect/streisand</a></p>
<p>目的是用來安裝、設定 firefox</p>
<p>玩了一下發現這根本就是終極的VPN Server solution ..</p>
<p>包含安裝 firefox addon</p>
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/awesome-all-in-one-vpn-server-streisand/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
<p>但是一開始在執行的時候,碰到了一些錯誤</p>
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/ansible-ssh-forwardagent/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
</article>
</div>
</div>
@@ -412,12 +410,12 @@ if (!doNotTrack) {
<a class="featured-image-link" href="https://h.cowbay.org/post/recommended-ulauncher-in-ubuntu-1804/"><div class='featured-image lazy lazy-bg-image' data-background="https://h.cowbay.org/images/post-default-16.jpg"></div></a>
<a class="featured-image-link" href="https://h.cowbay.org/post/test-pg_prewarm/"><div class='featured-image lazy lazy-bg-image' data-background="https://h.cowbay.org/images/post-default-9.jpg"></div></a>
<div class="excerpt-container">
<div class="excerpt-meta">
<span class="date">04 October</span>
<span class="date">20 December</span>
@@ -433,22 +431,30 @@ if (!doNotTrack) {
<span> / </span>
<span class="category">
<a href="/categories/"></a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
</div>
<div class='excerpt-header'>
<h2 class='excerpt-title'>
<a href="https://h.cowbay.org/post/recommended-ulauncher-in-ubuntu-1804/ "> [推薦] ulauncher ubuntu 18.04 底下,好用的 app launcher / Recommended Ulauncher in Ubuntu 1804 </a>
<a href="https://h.cowbay.org/post/test-pg_prewarm/ "> [筆記] 測試 postgresql 的pg_prewarm 對效能的影響 / test pg_prewarm in postgresql 11 </a>
</h2>
</div>
<div class='excerpt-content'>
<article>
<p>這兩天在找關於在 ubuntu 中做搜尋的軟體</p>
<p>老闆提到想要把新系統的 postgresql 資料庫都撈到記憶體裡面</p>
<p>意外找到一個非常好用的工具 ulauncher</p>
<p>但是否決了我提出的ramdisk 作法(因為當機的話,資料就沒了)</p>
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/recommended-ulauncher-in-ubuntu-1804/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
<p>在找資料的時候,發現了這個postgresql 的 pg_prewarm extension</p>
<p>好像有點意思?就來測試看看吧!</p>
<p>只是目前還不知道該怎麼解讀測試的數據就是了&hellip;</p>
<p>幹!林北真的不是 DBA 啦 =.=</p>
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/test-pg_prewarm/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
</article>
</div>
</div>
@@ -466,12 +472,12 @@ if (!doNotTrack) {
<a class="featured-image-link" href="https://h.cowbay.org/post/pg_auto_failover_in_ubuntu_1804_psql_11/"><div class='featured-image lazy lazy-bg-image' data-background="https://h.cowbay.org/images/post-default-11.jpg"></div></a>
<a class="featured-image-link" href="https://h.cowbay.org/post/accidentally-typed-an-extra-space-in-ansible-playbook/"><div class='featured-image lazy lazy-bg-image' data-background="https://h.cowbay.org/images/post-default-10.jpg"></div></a>
<div class="excerpt-container">
<div class="excerpt-meta">
<span class="date">20 September</span>
<span class="date">18 December</span>
@@ -493,24 +499,18 @@ if (!doNotTrack) {
</div>
<div class='excerpt-header'>
<h2 class='excerpt-title'>
<a href="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>
<a href="https://h.cowbay.org/post/accidentally-typed-an-extra-space-in-ansible-playbook/ "> [筆記] 在ansible playbook中不小心多打了一個空格 / Accidentally Typed an Extra Space in Ansible Playbook </a>
</h2>
</div>
<div class='excerpt-content'>
<article>
<p>最近都在弄postgresql</p>
<p>剛剛在跑一個修改過的playbook卻發現一個詭異的狀況</p>
<p>備份、還原測試得差不多了,就等著看到時候要用什麼方式</p>
<p>在用template產生檔案之前爲了避免錯誤所以我先用 file module 去建立目錄</p>
<p>前幾天看到 pg_auto_failover 這個postgresql 的extension</p>
<p>怪就怪在建立目錄的task沒錯但是要產生檔案時卻出現了目的目錄不存在的錯誤</p>
<p><a href="https://github.com/citusdata/pg_auto_failover">https://github.com/citusdata/pg_auto_failover</a></p>
<p>感覺挺不錯的,看起來設定很簡單,雖然之前已經測試了 keepalived 做 HA</p>
<p>不過,反正當作練功嘛,多測試一套也不錯!</p>
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/pg_auto_failover_in_ubuntu_1804_psql_11/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/accidentally-typed-an-extra-space-in-ansible-playbook/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
</article>
</div>
</div>
@@ -528,12 +528,12 @@ if (!doNotTrack) {
<a class="featured-image-link" href="https://h.cowbay.org/post/bencmark-with-external-internal-nvme-ssd-and-external-sata-ssd/"><div class='featured-image lazy lazy-bg-image' data-background="https://h.cowbay.org/images/post-default-9.jpg"></div></a>
<a class="featured-image-link" href="https://h.cowbay.org/post/add-system-wide-favorite-apps-in-dconf/"><div class='featured-image lazy lazy-bg-image' data-background="https://h.cowbay.org/images/post-default-2.jpg"></div></a>
<div class="excerpt-container">
<div class="excerpt-meta">
<span class="date">10 September</span>
<span class="date">16 December</span>
@@ -555,16 +555,20 @@ if (!doNotTrack) {
</div>
<div class='excerpt-header'>
<h2 class='excerpt-title'>
<a href="https://h.cowbay.org/post/bencmark-with-external-internal-nvme-ssd-and-external-sata-ssd/ "> [筆記] 測試 USB 3.1 Gen2 NVME SSD 外接盒 &amp; 內建pci-e ssd &amp; 外接SATA SSD / Bencmark With External Internal Nvme Ssd and External Sata Ssd </a>
<a href="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>
</h2>
</div>
<div class='excerpt-content'>
<article>
<p>幾天在淘寶上買了個 SSK 的USB 3.1 Gen2 (type-c) NVME SSD 外接盒
手邊也剛好有一條多的intel 600p nvme ssd 就順手來做個比較
目標是看看有沒有可能直接用外接的SSD來跑postgresql</p>
<p>幾天在ansible 寫了一份新的playbook給developer 用</p>
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/bencmark-with-external-internal-nvme-ssd-and-external-sata-ssd/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
<p>然後user反映說希望能在ubuntu 18.04 內建的dock 裏面新增一個gnome-terminal的icon</p>
<p>我才發現原來之前的寫法不能用在 ubuntu 18.04 上</p>
<p>只好又弄了一份出來</p>
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/add-system-wide-favorite-apps-in-dconf/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
</article>
</div>
</div>
@@ -679,7 +683,16 @@ if (!doNotTrack) {
<a class="page-numbers" href="/page/10/">10</a>
<a class="page-numbers" href="/page/11/">11</a>
@@ -823,7 +836,7 @@ if (!doNotTrack) {
</div>
<script src="https://h.cowbay.org/js/jquery.min.js"></script>
<script src="https://h.cowbay.org/js/jquerymigrate.js"></script>
<script src="https://h.cowbay.org/js/production.min.js?v=1577410044"></script>
<script src="https://h.cowbay.org/js/production.min.js?v=1581582274"></script>
</body>
</html>