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/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>
<a class="featured-image-link" href="https://h.cowbay.org/post/proxmox-with-synology-high-availability/"><div class='featured-image lazy lazy-bg-image' data-background="https://h.cowbay.org/images/post-default-18.jpg"></div></a>
<div class="excerpt-container">
<div class="excerpt-meta">
<span class="date">27 December</span>
<span class="date">17 January</span>
@@ -315,20 +319,20 @@ if (!doNotTrack) {
</div>
<div class='excerpt-header'>
<h2 class='excerpt-title'>
<a href="https://h.cowbay.org/post/ansible-get-value-from-loop-register/ "> [筆記]在ansible中取得loop register後的值/ Ansible Get Value From Loop Register </a>
<a href="https://h.cowbay.org/post/proxmox-with-synology-high-availability/ "> [筆記] 測試 proxmox 存取由 synology HA cluster 分享的NFS 目錄 / Proxmox With Synology High Availability </a>
</h2>
</div>
<div class='excerpt-content'>
<article>
<p>今天在寫一支客製化 firefox 的playbook</p>
<p>前幾天修復了因為intel cpu bug 導致無法使用的 synology DS415+</p>
<p>因為firefox 會給每個user 建立一個由亂數字串組成的default profile</p>
<p>詳情請看 <a href="https://h.cowbay.org/post/first-try-synology-ha/">https://h.cowbay.org/post/first-try-synology-ha/</a></p>
<p>所以每個user的 default profile 都不同</p>
<p>今天趁尾牙前夕,手邊沒啥要緊事</p>
<p>也因此在用register處理的時候碰到了一些問題</p>
<p>就來玩玩看promox 加上 synology high availability 再加上 NFS share 的環境</p>
<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>
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/proxmox-with-synology-high-availability/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
</article>
</div>
</div>
@@ -346,12 +350,12 @@ if (!doNotTrack) {
<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>
<a class="featured-image-link" href="https://h.cowbay.org/post/first-try-synology-ha/"><div class='featured-image lazy lazy-bg-image' data-background="https://h.cowbay.org/images/post-default-13.jpg"></div></a>
<div class="excerpt-container">
<div class="excerpt-meta">
<span class="date">24 December</span>
<span class="date">10 January</span>
@@ -373,22 +377,24 @@ if (!doNotTrack) {
</div>
<div class='excerpt-header'>
<h2 class='excerpt-title'>
<a href="https://h.cowbay.org/post/ansible-ssh-forwardagent/ "> [筆記] ansible 設定 ssh_args 開啟 ForwardX11 / config ansible ssh_args to enable forwardagent </a>
<a href="https://h.cowbay.org/post/first-try-synology-ha/ "> [筆記] 第一次玩 Synology High Availability / first try synology high availability </a>
</h2>
</div>
<div class='excerpt-content'>
<article>
<p>正確來說,我不曉得到底怎麼「稱呼」這個 forwardx11 / forwardagent</p>
<p>上禮拜,原本擔任 proxmox cluster 的主要 storage 的 ds415+ 掛點了</p>
<p>總之就是在寫一隻ansible playbook</p>
<p>原因應該就是之前的 intel c2000 series cpu 的 bug</p>
<p>目的是用來安裝、設定 firefox</p>
<p>只是不知道為什麼這台兩三年來都沒有關機的NAS</p>
<p>包含安裝 firefox addon</p>
<p>比其他三台多撐了那麼久 (已經有兩台送修回來,一台也是同樣症狀,被放在一邊)</p>
<p>但是一開始在執行的時候,碰到了一些錯誤</p>
<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>
<p>如果有用,就拿這兩台來玩玩 synology high availability !</p>
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/first-try-synology-ha/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
</article>
</div>
</div>
@@ -406,12 +412,12 @@ if (!doNotTrack) {
<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>
<a class="featured-image-link" href="https://h.cowbay.org/post/postgresql-pgbench-benchmark/"><div class='featured-image lazy lazy-bg-image' data-background="https://h.cowbay.org/images/post-default-17.jpg"></div></a>
<div class="excerpt-container">
<div class="excerpt-meta">
<span class="date">20 December</span>
<span class="date">07 January</span>
@@ -433,24 +439,20 @@ if (!doNotTrack) {
</div>
<div class='excerpt-header'>
<h2 class='excerpt-title'>
<a href="https://h.cowbay.org/post/test-pg_prewarm/ "> [筆記] 測試 postgresql 的pg_prewarm 對效能的影響 / test pg_prewarm in postgresql 11 </a>
<a href="https://h.cowbay.org/post/postgresql-pgbench-benchmark/ "> [筆記] postgresql 效能測試 / postgresql benchmakr using pgbench </a>
</h2>
</div>
<div class='excerpt-content'>
<article>
<p>老闆提到想要把新系統的 postgresql 資料庫都撈到記憶體裡面</p>
<p>昨天老闆在slack 上面問說現在的幾台 DB Server 有沒有跑過 pgbench</p>
<p>但是否決了我提出的ramdisk 作法(因為當機的話,資料就沒了)</p>
<p>分數大概如何,想要跟他的筆電做個比較</p>
<p>在找資料的時候發現了這個postgresql 的 pg_prewarm extension</p>
<p>之前有跑過幾次,這次就順便測試一下不同的硬體配置、以及不同的軟體版本</p>
<p>好像有點意思?就來測試看看吧!</p>
<p>對於pgbench 跑分會有多大的影響</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>
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/postgresql-pgbench-benchmark/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
</article>
</div>
</div>
@@ -468,12 +470,12 @@ if (!doNotTrack) {
<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>
<a class="featured-image-link" href="https://h.cowbay.org/post/rescue-synology-nas-with-ubuntu-livecd/"><div class='featured-image lazy lazy-bg-image' data-background="https://h.cowbay.org/images/post-default-11.jpg"></div></a>
<div class="excerpt-container">
<div class="excerpt-meta">
<span class="date">18 December</span>
<span class="date">03 January</span>
@@ -495,18 +497,18 @@ if (!doNotTrack) {
</div>
<div class='excerpt-header'>
<h2 class='excerpt-title'>
<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>
<a href="https://h.cowbay.org/post/rescue-synology-nas-with-ubuntu-livecd/ "> [筆記] 用ubuntu livecd 救援群暉 synology NAS內的資料 / rescue synology nas with ubuntu livecd </a>
</h2>
</div>
<div class='excerpt-content'>
<article>
<p>剛剛在跑一個修改過的playbook卻發現一個詭異的狀況</p>
<p>2020/01/02 , 2020年上工的第一天群暉的 DS415+ NAS 掛了!</p>
<p>在用template產生檔案之前爲了避免錯誤所以我先用 file module 去建立目錄</p>
<p>因為群暉的文件在最關鍵的一步寫得亂七八糟!</p>
<p>怪就怪在建立目錄的task沒錯但是要產生檔案時卻出現了目的目錄不存在的錯誤</p>
<p>所以在這邊紀錄一下我操作的步驟!</p>
<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>
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/rescue-synology-nas-with-ubuntu-livecd/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
</article>
</div>
</div>
@@ -524,12 +526,12 @@ if (!doNotTrack) {
<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>
<a class="featured-image-link" href="https://h.cowbay.org/post/what-a-piss-in-synology-document/"><div class='featured-image lazy lazy-bg-image' data-background="https://h.cowbay.org/images/post-default-16.jpg"></div></a>
<div class="excerpt-container">
<div class="excerpt-meta">
<span class="date">16 December</span>
<span class="date">03 January</span>
@@ -545,26 +547,26 @@ if (!doNotTrack) {
<span> / </span>
<span class="category">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
<a href="/categories/%E9%9B%9C%E5%BF%B5">雜念</a>
</span>
</div>
<div class='excerpt-header'>
<h2 class='excerpt-title'>
<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>
<a href="https://h.cowbay.org/post/what-a-piss-in-synology-document/ "> [碎念] Synology 群暉的文件不知道在工三小 / what a piss in synology document </a>
</h2>
</div>
<div class='excerpt-content'>
<article>
<p>這幾天在ansible 寫了一份新的playbook給developer 用</p>
<p>2020/01/02 2020 上工的第一天,公司碩果僅存的唯一一台 Synology DS415+ 也終於掛了</p>
<p>然後user反映說希望能在ubuntu 18.04 內建的dock 裏面新增一個gnome-terminal的icon</p>
<p>開機沒多久就連不上,反覆幾次之後,出現了開機時所有燈號都狂閃的狀況</p>
<p>我才發現原來之前的寫法不能用在 ubuntu 18.04 上</p>
<p>終於宣告不治</p>
<p>只好又弄了一份出來</p>
<p>問題很明顯的就是Intel C2000 系列 CPU 的瑕疵</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>
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/what-a-piss-in-synology-document/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
</article>
</div>
</div>
@@ -677,7 +679,16 @@ if (!doNotTrack) {
<a class="page-numbers" href="/page/10/">10</a>
<a class="page-numbers" href="/page/11/">11</a>
@@ -821,7 +832,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>