[精讚] [會員登入]
1211

zfs on ubuntu 20.04

how to destroy zfs pool while error message said pool is busy

分享此文連結 //n.sfs.tw/14713

分享連結 zfs on ubuntu 20.04@外行中的外行
(文章歡迎轉載,務必尊重版權註明連結來源)
2022-12-11 00:23:02 最後編修
2020-08-12 21:39:06 By jung
 

由於桌機故障,買了一台二手機,沒想到還是遇到intel 內建網卡有問題,每次關機後再重啟就抓不到netplan,目前無解

但觀察只要不關機,用睡眠模式就正常,先暫時保持現狀

先解決zfs的問題

本來想說改用二顆硬碟做zfs raid1,沒想到zfs似乎在io存取上有時間差,我用傳統硬碟,想說把使用者家目錄改放到zfs pool上

卻無法成功,必須用 rsync -axHAX的方法手動和zfs pool同步

把家目錄改到zfs pool我是參考這篇:

https://scottlinux.com/2015/12/22/how-to-use-zfs-on-linux-for-your-home-directory/

用zfs list看起來有掛載上目錄,卻沒有成功,因為在家目錄新增檔案還是沒有同步顯示在zfs dataset當中,不知道是不是zfs磁碟io同步的問題

好吧,想說只好回去用mdadm管理software raid

結果因為zfs pool有一個dataset掛載為/home,就造成zpool destroy失敗@@

試了很多次都說pool is busy

只好先將zfs set mountpoint 改到別的目錄

然後重新開機,幸好網路沒失效,

再來zfs unmount , zpool destroy才成功...

202106更新

測試快半年,出現一個問題,把家目錄放到software raid(mdadm)管理看似美好

不過virtualbox的虛擬硬碟檔案vmdk也是放在個人的家目錄,不知道為什麼虛擬機開機及使用會越來越慢,windows10作業系統特別明顯

難道是io有問題還是我的硬碟快掛了嗎@@

END

你可能感興趣的文章

在新版谷歌協作平台嵌入edimax或lass空氣盒子讀取數值並視覺化 embeeded javascript to read and visualized lass json value on new google site

在virtualbox如何壓縮vdi檔 using commands to reduce virtualbox's vdi file space

[網管心得]qnap+proxmox 韌體更新及nfs掛載或變更

在ubuntu18.04桌面版安裝中文注音輸入法 如何在ubuntu桌面使用新酷音注音輸入法

在windows環境下強制刪除無法以檔案總管刪除的檔案或目錄 how to remove directories or files that cannot be deleted by default file manager

使用bash script 顯示及比較記憶體剩餘用量 How to get the available memory reported as a percentage then compare Numbers and Strings in Linux Shell Script

<<此文不開放留言>>

隨機好文

在新版谷歌協作平台嵌入edimax或lass空氣盒子讀取數值並視覺化 embeeded javascript to read and visualized lass json value on new google site

如何在ubuntu 18.04上設定一開機就啟動virtualbox某個vm a way to setup ubuntu18.04 for start vm on boot

測試及處理slow http attack on Apache 2.4.6 at CentOS-7 avoiding and testing slow http attack

how to make wicket web application runs under docker enviorment with correct encoding 在docker環境下,wicket web application 編碼錯誤的問題