Posts - MCの飄狂山莊㊣ https://h.cowbay.org/post/ Recent content in Posts on MCの飄狂山莊㊣ Hugo -- gohugo.io Fri, 04 Oct 2019 14:12:15 +0800 [筆記] 紀錄所有下過的指令、時間 / Log All commands with timestamp https://h.cowbay.org/post/log-all-bash-commands/ Tue, 23 Apr 2019 15:08:36 +0800 https://h.cowbay.org/post/log-all-bash-commands/ <p>今天發生一件有點詭異的事情,本來應該要經過某個指令才會產生的檔案</p> <p>居然不知為何自己產生了,在我記憶中沒有去執行過那個指令</p> <p>翻了一下 bash_history ,裡面也只有下過哪些指令,沒有紀錄時間,完全沒有參考價值(攤手)</p> <p>所以翻了一下網路,至少把這兩台主要跑ansible的機器的log功能補上紀錄所有指令以及時間的部份</p> [筆記] 解決無法建立zpool 的錯誤 / Fix Zpool Device Busy Using dmsetup https://h.cowbay.org/post/fix-zpool-device-busy-using-dmsetup/ Mon, 01 Apr 2019 15:56:27 +0800 https://h.cowbay.org/post/fix-zpool-device-busy-using-dmsetup/ <p>今天把其中一台proxmox 加上10G 光纖網卡,準備和另一台proxmox 組成10G 環境進行測試</p> <p>想說把本機的zpool 拆掉,重新建立一個raid0 的空間來做clone/migrate</p> <p>可是一直出現device busy的錯誤訊息</p> [筆記] 用rsync 移轉 centos 6.2的老機器 Transfer Cent6.2 using rsync https://h.cowbay.org/post/transfer-cent62-using-rsync/ Wed, 27 Mar 2019 17:44:49 +0800 https://h.cowbay.org/post/transfer-cent62-using-rsync/ <p>公司的一台老伺服器空間不足了,要執行指令都會中斷,所以想要擴充空間。</p> <p>看起來不難搞,事實上&hellip;..</p> [筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL https://h.cowbay.org/post/command_to_test_main_ssl/ Wed, 20 Mar 2019 11:42:47 +0800 https://h.cowbay.org/post/command_to_test_main_ssl/ <p>今天老闆出國,發slack說手機不能寄信,看了一下,似乎是因為用GMAIL的APP來收信</p> <p>然後google 不知道跟人家改了什麼,結果不接受原本的認證了&hellip; WTF &hellip;.</p> <p>然後,這問題應該很久了,結果現在才在講 &hellip;.</p> Install Timeshift on Ubuntu1804 https://h.cowbay.org/post/install-timeshift-on-ubuntu1804/ Mon, 11 Mar 2019 14:02:30 +0800 https://h.cowbay.org/post/install-timeshift-on-ubuntu1804/ <p>最近要開始測試client安裝 ubuntu 18.04 的 ansible playbook</p> <p>因為要不斷的修正,所以想到一直有在自己電腦上執行的timeshift這個軟體</p> <p>可以很簡單快速的備份、恢復系統狀態</p> <p>可是不知道為什麼,在ubuntu 18.04 上安裝就是會發生錯誤&hellip;.</p> 用DELL 6 i/R 建立RAID,並在上面安裝ubuntu 18.04 https://h.cowbay.org/post/install-ubuntu1804-on-dell-6ir-raid-controller/ Wed, 16 Jan 2019 16:17:05 +0800 https://h.cowbay.org/post/install-ubuntu1804-on-dell-6ir-raid-controller/ <p>買了一張 DELL 6/iR 低階的raid 卡</p> <p>來測試把系統裝在硬體做的RAID上,結果沒想到居然不能開機&hellip;</p> Ubuntu 1804 Install Root on Raid https://h.cowbay.org/post/ubuntu-1804-install-root-on-raid/ Wed, 16 Jan 2019 09:58:50 +0800 https://h.cowbay.org/post/ubuntu-1804-install-root-on-raid/ <p>最近在弄一台機器,想要把ubuntu 18.04 安裝在software raid上</p> <p>因為新開的機器大部分都是在proxmox上,所以很少碰實體機器了</p> <p>結果在安裝過程中,做raid碰到一些問題,來紀錄一下</p> [筆記] Freenas Smartd 啟動失敗 Smartd Failed to Start in Freenas https://h.cowbay.org/post/smartd-failed-to-start-in-freenas/ Thu, 13 Dec 2018 17:40:20 +0800 https://h.cowbay.org/post/smartd-failed-to-start-in-freenas/ <p>這兩天在弄兩台Freenas ,準備當作Proxmox 的Storage &amp; Server Backup</p> <p>因為伺服器的限制,只能接六個SATA,我接了六個2T的硬碟做raid10</p> <p>然後把Freenas 安裝在隨身碟上</p> <p>不過會一直出現Smartd failed to start 的錯誤訊息</p> [碎念] mdadm 超級慢的rebuild 速度 Incredibly Slow mdadm Rebuild https://h.cowbay.org/post/incredibly-slow-mdadm-rebuild/ Wed, 12 Dec 2018 11:10:22 +0800 https://h.cowbay.org/post/incredibly-slow-mdadm-rebuild/ <p>最近在做一台老機器的P2V</p> <p>偏偏user說不能關機,所以我用dd + ssh 做線上移轉</p> <p>這部份有空再來寫</p> <p>只是因為原來的設定有用mdadm 做raid1</p> <p>這部份導致移轉過去proxmox 後,會出現raid degrade 導致無法正常開機</p> [筆記] 建立一個帶著走的 VIM 環境 Creating portable Vim environment https://h.cowbay.org/post/create-portable-vim-environment/ Fri, 07 Dec 2018 15:19:47 +0800 https://h.cowbay.org/post/create-portable-vim-environment/ <p>因為工作的關係,現在很多時間都花在VIM的操作上</p> <p>所以之前花了滿多時間,調整出一個適合自己的VIM環境</p> <p>原本的作法是把這個設定好的環境,丟到自己建立的gitea 上面</p> <p>然後每到一台新的機器,就要去clone 下來</p>