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-selectattr/"><div class='featured-image lazy lazy-bg-image' data-background="https://h.cowbay.org/images/post-default-1.jpg"></div></a>
<a class="featured-image-link" href="https://h.cowbay.org/post/incredibly-slow-mdadm-rebuild/"><div class='featured-image lazy lazy-bg-image' data-background="https://h.cowbay.org/images/post-default-1.jpg"></div></a>
<div class="excerpt-container">
<div class="excerpt-meta">
<span class="date">27 November</span>
<span class="date">12 December</span>
@@ -309,63 +313,28 @@ if (!doNotTrack) {
<span> / </span>
<span class="category">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
<a href="/categories/%E7%A2%8E%E5%BF%B5">碎念</a>
</span>
</div>
<div class='excerpt-header'>
<h2 class='excerpt-title'>
<a href="https://h.cowbay.org/post/ansible-selectattr/ "> [筆記] Ansible how to use &#39;list&#39; in yaml file </a>
<a href="https://h.cowbay.org/post/incredibly-slow-mdadm-rebuild/ "> [碎念] mdadm 超級慢的rebuild 速度 Incredibly Slow mdadm Rebuild </a>
</h2>
</div>
<div class='excerpt-content'>
<article>
<p>這幾天在玩ansible 時,碰到一個問題</p>
<p>最近在做一台老機器的P2V</p>
<p>假如我有個yaml檔作為資料來源檔名是 abc.yml</p>
<p>偏偏user說不能關機所以我用dd + ssh 做線上移轉</p>
<p>大概長這樣</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>只是因為原來的設定有用mdadm 做raid1</p>
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/ansible-selectattr/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
<p>這部份導致移轉過去proxmox 後會出現raid degrade 導致無法正常開機</p>
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/incredibly-slow-mdadm-rebuild/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
</article>
</div>
</div>
@@ -383,12 +352,12 @@ if (!doNotTrack) {
<a class="featured-image-link" href="https://h.cowbay.org/post/change-preferred-language-in-firefox/"><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/create-portable-vim-environment/"><div class='featured-image lazy lazy-bg-image' data-background="https://h.cowbay.org/images/post-default-8.jpg"></div></a>
<div class="excerpt-container">
<div class="excerpt-meta">
<span class="date">15 November</span>
<span class="date">07 December</span>
@@ -410,20 +379,20 @@ if (!doNotTrack) {
</div>
<div class='excerpt-header'>
<h2 class='excerpt-title'>
<a href="https://h.cowbay.org/post/change-preferred-language-in-firefox/ "> [筆記] 為了metabase 修改 firefox 開啟網頁時使用的預設語言 change the preferred language in firefox for metabase </a>
<a href="https://h.cowbay.org/post/create-portable-vim-environment/ "> [筆記] 建立一個帶著走的 VIM 環境 Creating portable Vim environment </a>
</h2>
</div>
<div class='excerpt-content'>
<article>
<p>最近在測試metabase記得幾個月前就有測試過</p>
<p>因為工作的關係現在很多時間都花在VIM的操作上</p>
<p>但是當時的界面和現在的樣子差很多,看樣子改版還滿勤勞的</p>
<p>所以之前花了滿多時間調整出一個適合自己的VIM環境</p>
<p>所以這次改用docker來建立根本五分鐘不到就建好了(挖鼻孔)</p>
<p>原本的作法是把這個設定好的環境丟到自己建立的gitea 上面</p>
<p>不過呢,很討厭的是,一進去就發現語系採用的是簡體中文</p>
<p>然後每到一台新的機器就要去clone 下來</p>
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/change-preferred-language-in-firefox/">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/create-portable-vim-environment/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
</article>
</div>
</div>
@@ -441,12 +410,12 @@ if (!doNotTrack) {
<a class="featured-image-link" href="https://h.cowbay.org/post/copy_role_in_pgsql/"><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/synology-ds415-repair-cost/"><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">12 November</span>
<span class="date">04 December</span>
@@ -462,26 +431,34 @@ if (!doNotTrack) {
<span> / </span>
<span class="category">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
<a href="/categories/%E7%BE%A4%E6%9A%89">群暉</a>
</span>
</div>
<div class='excerpt-header'>
<h2 class='excerpt-title'>
<a href="https://h.cowbay.org/post/copy_role_in_pgsql/ "> PostgreSQL 直接從已經存在的使用者複製權限到另一個使用者 </a>
<a href="https://h.cowbay.org/post/synology-ds415-repair-cost/ "> [雜念] 群暉 Synology NAS DS 415&#43; 誇張的維修費用 </a>
</h2>
</div>
<div class='excerpt-content'>
<article>
<p>因為工作上的需求有個資料庫需要開放給不同team的人去存取</p>
<p>前幾天公司的一台 Synology DS 415+ 發生異常</p>
<p>雖然都是在同一台機器上的同一個資料庫</p>
<p>注意到的時候,四顆硬碟燈號都不斷的在閃爍</p>
<p>但是希望能夠不同team的人用不同的資料庫使用者</p>
<p>但是已經無法登入系統</p>
<p>這樣萬一出事,會比較好抓兇手??</p>
<p>重開機之後更慘,四顆硬碟燈號全部橘燈恆亮</p>
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/copy_role_in_pgsql/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
<p>底下的電源藍燈不斷的在閃爍</p>
<p>雖然我一再表示不希望送修了</p>
<p>一來是已經過保二來是DS415+ 本身就有intel bug三來是因為對synology的NAS 實在沒有愛&hellip;</p>
<p>不過主管還是希望能夠先問群暉維修的費用多少</p>
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/synology-ds415-repair-cost/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
</article>
</div>
</div>
@@ -499,12 +476,12 @@ if (!doNotTrack) {
<a class="featured-image-link" href="https://h.cowbay.org/post/weird-client-server-connection/"><div class='featured-image lazy lazy-bg-image' data-background="https://h.cowbay.org/images/post-default-4.jpg"></div></a>
<a class="featured-image-link" href="https://h.cowbay.org/post/10g-lab-using-proxmox-and-mellanox/"><div class='featured-image lazy lazy-bg-image' data-background="https://h.cowbay.org/images/post-default-03.jpg"></div></a>
<div class="excerpt-container">
<div class="excerpt-meta">
<span class="date">08 November</span>
<span class="date">30 November</span>
@@ -526,26 +503,30 @@ if (!doNotTrack) {
</div>
<div class='excerpt-header'>
<h2 class='excerpt-title'>
<a href="https://h.cowbay.org/post/weird-client-server-connection/ "> [筆記] 詭異的client&amp;server間連線的問題或許跟KVM有關係 </a>
<a href="https://h.cowbay.org/post/10g-lab-using-proxmox-and-mellanox/ "> [筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</h2>
</div>
<div class='excerpt-content'>
<article>
<p>這是發生在一個夜黑風高的寂寥深夜&hellip;.. ( What The FXXX &hellip; )</p>
<p>想做一個 10G 的 LAB 環境出來已經很久了。</p>
<p>來到這個環境之後,有一個很詭異的狀況一直困擾著我</p>
<p>只是礙於10G RJ45的卡太貴了然後光纖的種類又太複雜</p>
<p>在每個分公司都會有一台伺服器作為KVM Host</p>
<p>如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)</p>
<p>上面跑兩台VM一台作為ansible controller (目前沒作用)</p>
<p>所以一直沒有付諸行動。</p>
<p>另一台作為這邊所謂的 &ldquo;Build Server&rdquo;</p>
<p>硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡以在台灣的價格來說算很便宜的 (550)</p>
<p>用途包含了DHCP Server / Proxy Server (squid3) / APT Proxy (squid-deb-proxy)</p>
<p>聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位</p>
<p>問題就發生在這台 Build Server 上&hellip;</p>
<p>就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線</p>
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/weird-client-server-connection/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
<p>就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到</p>
<p>今天就花了點時間測試一下</p>
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/10g-lab-using-proxmox-and-mellanox/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
</article>
</div>
</div>
@@ -563,12 +544,12 @@ if (!doNotTrack) {
<a class="featured-image-link" href="https://h.cowbay.org/post/nice-du-report-tool-durep/"><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/ansible-selectattr-filter/"><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">06 November</span>
<span class="date">29 November</span>
@@ -590,19 +571,18 @@ if (!doNotTrack) {
</div>
<div class='excerpt-header'>
<h2 class='excerpt-title'>
<a href="https://h.cowbay.org/post/nice-du-report-tool-durep/ "> Nice Du Report Tool Durep </a>
<a href="https://h.cowbay.org/post/ansible-selectattr-filter/ "> [筆記] 還是 Ansible Selectattr </a>
</h2>
</div>
<div class='excerpt-content'>
<article>
<p>最近在重新規劃前人留下的backup爛攤子
各個伺服器統一備份到一台backup storage
想說如果每天能夠看到backup storage的磁碟用量的話
就可以抓出備份空間成長速度、推估需要多大的磁碟空間
找了一些工具,結果發現 durep 這個 ubuntu 內建的工具
基本上可以滿足我的需求</p>
<p>在上一篇 <a href="https://h.cowbay.org/post/ansible-selectattr/">Ansible how to use &lsquo;list&rsquo; in yaml file </a></p>
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/nice-du-report-tool-durep/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
<p>有提到怎麼用 with_items / set_fact 來取得在yaml 檔案中的清單</p>
<p>不過就是有點醜</p>
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/ansible-selectattr-filter/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
</article>
</div>
</div>
@@ -724,6 +704,17 @@ if (!doNotTrack) {
<a class="page-numbers" href="/page/10/">10</a>
<a class="page-numbers" href="/page/11/">11</a>
<a class="next page-numbers" href="/page/10/">Next</a>
@@ -865,7 +856,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>