|
|
<!DOCTYPE html>
|
|
|
<html class="no-js" lang="en-us">
|
|
|
<head>
|
|
|
<meta charset="UTF-8">
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
<meta name="theme-color" content="#1b1b1b">
|
|
|
<title>Eric Chang | MCの飄狂山莊㊣</title>
|
|
|
<script>(function(d,e){d[e]=d[e].replace("no-js","js");})(document.documentElement,"className");</script>
|
|
|
<meta name="description" content="">
|
|
|
<link rel="stylesheet" href="/css/main.css">
|
|
|
<link rel="icon" href="/icons/16.png" sizes="16x16" type="image/png">
|
|
|
<link rel="icon" href="/icons/32.png" sizes="32x32" type="image/png">
|
|
|
<link rel="alternate" type="application/rss+xml" href="/author/eric-chang/index.xml" title="MCの飄狂山莊㊣">
|
|
|
|
|
|
<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>
|
|
|
|
|
|
</head>
|
|
|
<body>
|
|
|
<header class="header">
|
|
|
<a class="logo" href="/">MCの飄狂山莊㊣</a>
|
|
|
|
|
|
</header>
|
|
|
<div class="primary">
|
|
|
|
|
|
<main class="main">
|
|
|
<div class="page block">
|
|
|
<h1 class="page__title">Eric Chang</h1>
|
|
|
|
|
|
</div>
|
|
|
<div class="cards">
|
|
|
|
|
|
<div class="card card--2col">
|
|
|
<article class="post card__box block">
|
|
|
<h1 class="post__title title-excerpt"><a class="post__title-link" href="/post/inx-collect-detail-hardware-info/">[筆記] inxi 蒐集詳盡的硬體資訊 / inxi Collect Detail Hardware Info</a></h1>
|
|
|
<div class="post__content"><p>最近因為一直碰到硬碟故障的問題,算起來那一批同時購買的5X顆 seagate 2T硬碟,已經有一半以上故障返修了….</p>
|
|
|
|
|
|
<p>然後又因為一直沒有添購新的硬碟,只能用這些快過保/已過保的撐著</p>
|
|
|
|
|
|
<p>所以最近不斷的在更換機器內的硬碟,而且還沒有熱插拔!</p>
|
|
|
|
|
|
<p>也導致原本負責處理盤點資產的同事困擾,因為跟手邊的紀錄已經對不起來了</p>
|
|
|
|
|
|
<p>然後就變成要對資產的時候,需要一台一台登入,然後去下不同的指令,取得想要的硬體資訊,超級麻煩的!</p></div>
|
|
|
</article>
|
|
|
</div>
|
|
|
|
|
|
<div class="card card--2col">
|
|
|
<article class="post card__box block">
|
|
|
<h1 class="post__title title-excerpt"><a class="post__title-link" href="/post/log-all-bash-commands/">[筆記] 紀錄所有下過的指令、時間 / Log All commands with timestamp</a></h1>
|
|
|
<div class="post__content"><p>今天發生一件有點詭異的事情,本來應該要經過某個指令才會產生的檔案</p>
|
|
|
|
|
|
<p>居然不知為何自己產生了,在我記憶中沒有去執行過那個指令</p>
|
|
|
|
|
|
<p>翻了一下 bash_history ,裡面也只有下過哪些指令,沒有紀錄時間,完全沒有參考價值(攤手)</p>
|
|
|
|
|
|
<p>所以翻了一下網路,至少把這兩台主要跑ansible的機器的log功能補上紀錄所有指令以及時間的部份</p></div>
|
|
|
</article>
|
|
|
</div>
|
|
|
|
|
|
<div class="card card--2col">
|
|
|
<article class="post card__box block">
|
|
|
<h1 class="post__title title-excerpt"><a class="post__title-link" href="/post/fix-zpool-device-busy-using-dmsetup/">[筆記] 解決無法建立zpool 的錯誤 / Fix Zpool Device Busy Using dmsetup</a></h1>
|
|
|
<div class="post__content"><p>今天把其中一台proxmox 加上10G 光纖網卡,準備和另一台proxmox 組成10G 環境進行測試</p>
|
|
|
|
|
|
<p>想說把本機的zpool 拆掉,重新建立一個raid0 的空間來做clone/migrate</p>
|
|
|
|
|
|
<p>可是一直出現device busy的錯誤訊息</p></div>
|
|
|
</article>
|
|
|
</div>
|
|
|
|
|
|
<div class="card card--2col">
|
|
|
<article class="post card__box block">
|
|
|
<h1 class="post__title title-excerpt"><a class="post__title-link" href="/post/transfer-cent62-using-rsync/">[筆記] 用rsync 移轉 centos 6.2的老機器 Transfer Cent6.2 using rsync</a></h1>
|
|
|
<div class="post__content"><p>公司的一台老伺服器空間不足了,要執行指令都會中斷,所以想要擴充空間。</p>
|
|
|
|
|
|
<p>看起來不難搞,事實上…..</p></div>
|
|
|
</article>
|
|
|
</div>
|
|
|
|
|
|
<div class="card card--2col">
|
|
|
<article class="post card__box block">
|
|
|
<h1 class="post__title title-excerpt"><a class="post__title-link" href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a></h1>
|
|
|
<div class="post__content"><p>今天老闆出國,發slack說手機不能寄信,看了一下,似乎是因為用GMAIL的APP來收信</p>
|
|
|
|
|
|
<p>然後google 不知道跟人家改了什麼,結果不接受原本的認證了… WTF ….</p>
|
|
|
|
|
|
<p>然後,這問題應該很久了,結果現在才在講 ….</p></div>
|
|
|
</article>
|
|
|
</div>
|
|
|
|
|
|
<div class="card card--2col">
|
|
|
<article class="post card__box block">
|
|
|
<h1 class="post__title title-excerpt"><a class="post__title-link" href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a></h1>
|
|
|
<div class="post__content"><p>最近要開始測試client安裝 ubuntu 18.04 的 ansible playbook</p>
|
|
|
|
|
|
<p>因為要不斷的修正,所以想到一直有在自己電腦上執行的timeshift這個軟體</p>
|
|
|
|
|
|
<p>可以很簡單快速的備份、恢復系統狀態</p>
|
|
|
|
|
|
<p>可是不知道為什麼,在ubuntu 18.04 上安裝就是會發生錯誤….</p></div>
|
|
|
</article>
|
|
|
</div>
|
|
|
|
|
|
<div class="card card--2col">
|
|
|
<article class="post card__box block">
|
|
|
<h1 class="post__title title-excerpt"><a class="post__title-link" href="/post/install-ubuntu1804-on-dell-6ir-raid-controller/">用DELL 6 i/R 建立RAID,並在上面安裝ubuntu 18.04 </a></h1>
|
|
|
<div class="post__content"><p>買了一張 DELL 6/iR 低階的raid 卡</p>
|
|
|
|
|
|
<p>來測試把系統裝在硬體做的RAID上,結果沒想到居然不能開機…</p></div>
|
|
|
</article>
|
|
|
</div>
|
|
|
|
|
|
<div class="card card--2col">
|
|
|
<article class="post card__box block">
|
|
|
<h1 class="post__title title-excerpt"><a class="post__title-link" href="/post/ubuntu-1804-install-root-on-raid/">Ubuntu 1804 Install Root on Raid</a></h1>
|
|
|
<div class="post__content"><p>最近在弄一台機器,想要把ubuntu 18.04 安裝在software raid上</p>
|
|
|
|
|
|
<p>因為新開的機器大部分都是在proxmox上,所以很少碰實體機器了</p>
|
|
|
|
|
|
<p>結果在安裝過程中,做raid碰到一些問題,來紀錄一下</p></div>
|
|
|
</article>
|
|
|
</div>
|
|
|
|
|
|
<div class="card card--2col">
|
|
|
<article class="post card__box block">
|
|
|
<h1 class="post__title title-excerpt"><a class="post__title-link" href="/post/smartd-failed-to-start-in-freenas/">[筆記] Freenas Smartd 啟動失敗 Smartd Failed to Start in Freenas</a></h1>
|
|
|
<div class="post__content"><p>這兩天在弄兩台Freenas ,準備當作Proxmox 的Storage & Server Backup</p>
|
|
|
|
|
|
<p>因為伺服器的限制,只能接六個SATA,我接了六個2T的硬碟做raid10</p>
|
|
|
|
|
|
<p>然後把Freenas 安裝在隨身碟上</p>
|
|
|
|
|
|
<p>不過會一直出現Smartd failed to start 的錯誤訊息</p></div>
|
|
|
</article>
|
|
|
</div>
|
|
|
|
|
|
<div class="card card--2col">
|
|
|
<article class="post card__box block">
|
|
|
<h1 class="post__title title-excerpt"><a class="post__title-link" href="/post/incredibly-slow-mdadm-rebuild/">[碎念] mdadm 超級慢的rebuild 速度 Incredibly Slow mdadm Rebuild</a></h1>
|
|
|
<div class="post__content"><p>最近在做一台老機器的P2V</p>
|
|
|
|
|
|
<p>偏偏user說不能關機,所以我用dd + ssh 做線上移轉</p>
|
|
|
|
|
|
<p>這部份有空再來寫</p>
|
|
|
|
|
|
<p>只是因為原來的設定有用mdadm 做raid1</p>
|
|
|
|
|
|
<p>這部份導致移轉過去proxmox 後,會出現raid degrade 導致無法正常開機</p></div>
|
|
|
</article>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
</main>
|
|
|
|
|
|
<div class="pagination block">
|
|
|
<a class="pagination__item pagination__item--desktop" href="/author/eric-chang/">1</a>
|
|
|
|
|
|
<a class="pagination__item pagination__item--desktop" href="/author/eric-chang/page/2/">2</a>
|
|
|
|
|
|
<span class="pagination__item pagination__item--active" data-total="5">3</span>
|
|
|
|
|
|
<a class="pagination__item pagination__item--desktop" href="/author/eric-chang/page/4/">4</a>
|
|
|
|
|
|
<a class="pagination__item pagination__item--desktop" href="/author/eric-chang/page/5/">5</a>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
<footer class="footer">
|
|
|
<div class="footer__copyright">© 2019 MCの飄狂山莊㊣. <span class="footer__copyright-credits"></span></div>
|
|
|
</footer>
|
|
|
</body>
|
|
|
</html> |