跳转到主内容

为什么主机文件系统和管理软件显示的空间使用量与ONTAP不同?

Views:
71
Visibility:
Public
Votes:
0
Category:
data-ontap-7
Specialty:
core
Last Updated:

适用场景

  • Data ONTAP 7.  
  • FlexPod    
  • SAN 

问题解答

关闭LUN空间预留时、LUN内的数据不会以空间 df 显示为占用。

  • 以下示例使用一个包含单个LUN的新创建卷作为说明。此卷在聚合上具有空间保证、并且其预留百分比设置为0%:

storage> lun show -v
/vol/space/space 86.3m (90478080) (r/w, online, mapped)
Serial#: nBLskoOLyq/2
Share: none
Space Reservation: enabled
Multiprotocol Type: windows
Maps: space=0


storage> df -h
Filesystem total used avail capacity Mounted on
/vol/space/ 174MB 86MB 87MB 50% /vol/space/
/vol/space/.snapshot 0TB 0TB 0TB ---% /vol/space/.snapshot

df -h 命令可显示卷中LUN正在使用的空间量以及LUN总大小的预留空间。

  • 禁用空间预留:

storage> lun set reservation /vol/space/space disable

storage> df -h
Filesystem total used avail capacity Mounted on
/vol/space/ 174MB 2536KB 171MB 1% /vol/space/
/vol/space/.snapshot 0TB 0TB 0TB ---% /vol/space/.snapshot

在LUN上禁用空间预留的情况下、 df 显示该卷上LUN内的已用空间量。

  • 重新打开空间预留并将一个30.6 MB (30668KB)文件写入此LUN时:

storage> lun set reservation /vol/space/space enable

storage> df -h
Filesystem total used avail capacity Mounted on
/vol/space/ 174MB 86MB 87MB 50% /vol/space/
/vol/space/.snapshot 0TB 0TB 0TB ---% /vol/space/.snapshot

存储系统显示的内容与LUN中没有数据时的显示内容相同。

  • 如果再次关闭预留:

storage> df
Filesystem kbytes used avail capacity Mounted on
/vol/space/ 178176 33276 144900 19% /vol/space/
/vol/space/.snapshot 0 0 0 ---% /vol/space/.snapshot

~30688KB文件现已添加到以前的2536KB中。

  • 重新打开预留并删除文件:

storage> df -h
Filesystem total used avail capacity Mounted on
/vol/space/ 174MB 86MB 87MB 50% /vol/space/
/vol/space/.snapshot 0TB 0TB 0TB ---% /vol/space/.snapshot

  • 删除文件后、主机文件系统会显示可用空间;但是、Data ONTAP会显示正在使用相同的32 MB空间。之所以出现此问题、是因为文件使用的空间仍在LUN上分配。主机文件系统可以根据需要覆盖此空间。

NetApp OnCommand系统管理器会报告LUN的不同空间使用量

  • 运行以下命令以确保OnCommand系统管理器报告的已用空间与Data ONTAP命令行界面相同:

::> lun show -vserver VSERVER_NAME -path COMPLETE_LUN_PATH -instance

VMware Web客户端报告的VMFS-LUN大小与ONTAP不同

  • 删除或移动任何VM后、VMware vSphere 5.x不会自动释放这些块。因此、存储控制器不会将这些块标记为可用;尽管从VMware客户端本身来看、它会将这些块识别为可用。 

对于RDM空间差异、如果上述操作计划不起作用、可以尝试执行以下附加步骤:

  1. 将RDM LUN的大小增加50 GB在ESXi主机级别执行重新扫描并在子操作系统中重新扫描。

如果第一步未解决可用空间差异、则必须执行第二个任务。

  1. 关闭VM、从VM中移除RDM磁盘、然后将此RDM重新添加回位于同一SCSI控制器位置的VM。(示例- 1:5)
  2. 启动VM并检查磁盘上的可用空间是否与子操作系统和存储阵列端匹配。

对报告子操作系统和存储阵列上的可用空间不同的所有RDM LUN执行上述任务。

追加信息

不适用

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.