本文章已经归档,因此 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'

发布日期: