這篇文章已封存,而且 Apple 也不會再更新。

如果 Xsan 4 或 4.1 卷宗顯示的可用空間少於預期

如果你的可用空間支離破碎,你可以更改 ABMFreeLimit 變數以改變顯示方式。

如果你的 Xsan 卷宗可用空間極度支離破碎,當卷宗啟動時,cvlog 會包含這類項目:

[0919 21:17:51] 0xb8eb1000 (Warning) FSM Alloc: Stripe Group "Video-1" 140158 free blocks in 20272 fragments ignored. [0919 21:17:53] 0xb8f33000 (Warning) FSM Alloc: Stripe Group "Video-2" 551704 free blocks in 77104 fragments ignored. [0919 21:17:53] 0xb8fb5000 (Warning) FSM Alloc: Stripe Group "Video-3" 561540 free blocks in 78636 fragments ignored. [0919 21:17:53] 0xb9037000 (Warning) FSM Alloc: Stripe Group "Video-4" 586677 free blocks in 80952 fragments ignored. [0919 21:17:53] 0xb8e2f000 (Warning) FSM Alloc: Stripe Group "Video-5" 525412 free blocks in 73209 fragments ignored. [0919 21:17:53] 0xb90b9000 (Warning) FSM Alloc: Stripe Group "Video-6" 280006 free blocks in 36786 fragments ignored.

檔案系統區塊大小的產品和忽略的可用區塊總數應等於缺少的空間量。

變更 ABMFreeLimit 變數

你可以將 Xsan 卷宗的 ABMFreeLimit 變數設定為 yes,以回復缺少的空間。這項變更可指引檔案系統管理程式 (FSM) 使用較舊的方法來處理配置點陣圖。這也會增加卷宗啟動時間,以及卷宗的 FSM 處理所使用的記憶體容量。如果你想要變更 ABMFreeLimit 變數,請按照這些步驟,將 VolumeName 替換為 Xsan 卷宗的名稱。

1.在你主要的元資料控制器(MDC)的卷宗設定中,將 true 設定為 abmFreeLimit 密鑰的值。

sudo /usr/libexec/PlistBuddy -c 'add :config:globals:abmFreeLimit string true' /Library/Preferences/Xsan/VolumeName.cfgp

2. 更新儲存於 LDAP 中的 Xsan 設定。

sudo xsanctl pushConfigUpdate

3. 重新啟動 Xsan 卷宗。

sudo cvadmin -e 'stop VolumeName'

sudo cvadmin -e 'start VolumeName'

發佈日期: