我遇到一个问题,ZFS 似乎在 16TB 卷上缺少大约 4TB 的空间。
ZFS 池报告正确的大小 (16.3TB):
nmc@thn-nstor1:/$ zpool list
NAME SIZE ALLOC FREE EXPANDSZ CAP DEDUP HEALTH ALTROOT
nstore1pool1 16.3T 15.2T 1.11T - 93% 1.00x ONLINE -
syspool 29G 9.20G 19.8G - 31% 1.00x ONLINE -
但是该zfs list
命令报告少了 4TB:
nmc@thn-nstor1:/$ zfs list
NAME USED AVAIL REFER MOUNTPOINT
nstore1pool1 12.4T 770G 116K /volumes/nstore1pool1
nstore1pool1/.nza-reserve 49.8K 770G 49.8K none
nstore1pool1/nstore1zvol1 28.4K 770G 28.4K -
nstore1pool1/veeam 12.4T 770G 12.4T /volumes/nstore1pool1/veeam
进一步阅读这个帖子我还运行zfs list -o space
并zfs list -t snapshot
验证没有快照使用空间,这证实了上述结果:
nmc@thn-nstor1:/$ zfs list -t snapshot
NAME USED AVAIL REFER MOUNTPOINT
nmc@thn-nstor1:/$ zfs list -o space
NAME AVAIL USED USEDSNAP USEDDS USEDREFRESERV USEDCHILD
nstore1pool1 770G 12.4T 0 116K 0 12.4T
nstore1pool1/.nza-reserve 770G 49.8K 0 49.8K 0 0
nstore1pool1/nstore1zvol1 770G 28.4K 0 28.4K 0 0
nstore1pool1/veeam 770G 12.4T 0 12.4T 0 0
** 编辑 **
根据对更多信息的请求,这里是zfs status -v
和的输出zfs list -t all
(为简洁起见进行了删节):
nmc@thn-nstor1:/$ zpool status -v
pool: nstore1pool1
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
nstore1pool1 ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
c0t5000C5003F0DE915d0 ONLINE 0 0 0
c0t5000C5003F17FA16d0 ONLINE 0 0 0
c0t5000C500506272F7d0 ONLINE 0 0 0
c0t5000C50063E7E297d0 ONLINE 0 0 0
c0t5000C500644D6CE0d0 ONLINE 0 0 0
c0t5000C500644FBA98d0 ONLINE 0 0 0
c0t5000C500644FFD61d0 ONLINE 0 0 0
c0t5000C50064509003d0 ONLINE 0 0 0
c0t5000C50064AE3241d0 ONLINE 0 0 0
raidz1-1 ONLINE 0 0 0
c0t5000C50064BF602Dd0 ONLINE 0 0 0
c0t50014EE65BA8D06Dd0 ONLINE 0 0 0
c0t50014EE6B0FE0EA6d0 ONLINE 0 0 0
raidz1-2 ONLINE 0 0 0
c0t50014EE606A6F0E5d0 ONLINE 0 0 0
c0t50014EE65BFCD389d0 ONLINE 0 0 0
c0t50014EE65BFD0761d0 ONLINE 0 0 0
c0t50014EE65BFD11A3d0 ONLINE 0 0 0
c0t50014EE6B150B5FBd0 ONLINE 0 0 0
c0t50014EE6B152CB82d0 ONLINE 0 0 0
errors: No known data errors
nmc@thn-nstor1:/$ zfs list -t all
NAME USED AVAIL REFER MOUNTPOINT
nstore1pool1 12.4T 770G 116K /volumes/nstore1pool1
nstore1pool1/.nza-reserve 49.8K 770G 49.8K none
nstore1pool1/nstore1zvol1 28.4K 770G 28.4K -
nstore1pool1/veeam 12.4T 770G 12.4T /volumes/nstore1pool1/veeam
我很高兴能得到任何帮助来了解这个缺失的空间去了哪里?
答案1
天哪...你做了什么?!?
一般来说,RAIDZ1/2/3 将显示具有驱动器完整(原始)容量的 zpool 列表,而 zfs 列表将显示空间减去奇偶校验...
但上面显示的是:
9 磁盘 RAIDZ1 与 3 磁盘 RAIDZ1 和 6 磁盘 RAIDZ1 进行条带化。
如果您不是有意这样做的话,那就太糟糕了。所有驱动器的大小都一样吗?