跳转到主内容

AltaVault 云回收(也称为垃圾回收)常见问题解答

Views:
41
Visibility:
Public
Votes:
2
Category:
altavault
Specialty:
dp
Last Updated:

适用场景

  • AltaVault
  • 云复制
  • 垃圾收集

问题解答

  • 云回收是指在删除前端SMB或NFS共享上的文件后从云中删除未使用的数据的过程。  
  • 为了提高效率、云回收过程会在有足够数量的文件可供处理时定期运行。
  • 删除这些文件后、它们引用的数据块将添加到列表中
  • AltaVault 使用本地缓存中总文件的5%或总数据的5%
  • 运行云回收服务以确定AltaVault上存储的其他文件仍引用每个数据块的多少。如果没有文件引用该数据块、则在云和本地副本中、如果存在该数据块、则该数据块将被删除。
  • 如果此层块仍包含仍在引用的数据段、则无法删除此层块。
  • 但是、如果不再需要超过50%的数据块、并且该数据块位于本地缓存中、则会对其进行数据压缩并重新排队、以便复制到覆盖较大版本的云。
  • 为了减少所记录的消息数量、AltaVault 不再打印对单个数据块操作执行垃圾收集的消息。

消息:

Oct  8 01:27:10 altavault1 rfsd[19024]: [gc.INFO] (14306) bitmaps set up for 251656 slabs, using 32211968 bytes

Oct  8 02:08:43 altavault1 rfsd[19024]: [scan.INFO] (14306) processed 15403 labelmaps, 13166362825 labels in 1098.926 secs (00:18:18), 11981119.365 labels/sec, 10318004471 (9.6GB) lm bytes; 96682492516524 (87.9TB) expanded bytes

Oct  8 02:08:43 altavault1 rfsd[19024]: [gc.INFO] (14306) 251656 total slabs, (0 resized)

Oct  8 02:08:43 altavault1 rfsd[19024]: [gc.INFO] (14306) deleting metadata from cloud

Oct  8 02:08:51 altavault1 rfsd[19024]: [gc.INFO] (14306) enqueuing slabs for reclamation

Oct  8 02:08:51 altavault1 rfsd[19024]: [gc.INFO] (14306) slab: 0x000001560592 (128b) 0/1 0% :

Oct  8 02:08:51 altavault1 rfsd[19024]: [gc.INFO] (14306) slab: 0x000001560597 (128b) 16/250 6.4% : 0300e0a240000000020000000000000000000000800000018000000000008c00

Oct  8 02:08:51 altavault1 rfsd[19024]: [gc.INFO] (14306) slab: 0x0000015605a0 (128b) 77/223 34.5% : 000000007bc0000000000000000000000000000640c007ffe6fffff03fbffffb

Oct  8 02:08:51 altavault1 rfsd[19024]: [gc.INFO] (14306) slab: 0x0000015605a4 (128b) 29/228 12.7% : 0000000c2000000000000000c7f80000203800004001c041c380000000040000

Oct  8 02:08:51 altavault1 rfsd[19024]: [gc.INFO] (14306) slab: 0x0000015605a9 (128b) 68/162 42% : 0000000303e401ff80000007db9f04fcffffde3f00000000

  • 如果确定为0%引用的数据块、则会将其删除:

Oct  8 02:08:51 altavault1 rfsd[19024]: [gc.INFO] (14306) slab: 0x0000015605ab (128b) 0/1 0% :

Oct  8 02:08:51 altavault1 rfsd[19024]: [gc.INFO] (32480) removed slab 0x15605ab

  • 如果引用的数据块小于50%、并且位于本地缓存中、则会对其进行压缩:

Oct  8 02:08:51 altavault1 rfsd[19024]: [gc.INFO] (14306) slab: 0x0000015605e2 (128b) 22/220 10% : 000000000900400000080120008015000200000b885808000000000010000200

Oct  8 02:08:51 altavault1 rfsd[19024]: [gc.INFO] (32480) compacted slab 0x15605e2

Oct  8 02:12:34 altavault1 rfsd[19024]: [replicator.INFO] (23497) replicated slab 0000015605E2.slab

  • 在云回收周期结束时、将显示一条摘要消息:

Oct  5 15:09:02 altavault1 rfsd[19024]: [gc.INFO] (7198) compacted 5790 slabs, removed 3960 slabs, (0 slabs already unlinked), 947652 segments, 14313056733 bytes (13.3GB) recovered, 4160.11s elapsed

  • 可恢复的数据量取决于已发生的重复数据删除量、4 MB数据块对象中未使用数据的百分比以及数据是否仍位于本地缓存中。 
  • 如果平均逐出期限(即要从本地缓存中删除以为新数据腾出空间的数据的期限)大于备份的到期期限、从而确保该期限是本地的且符合数据缩减条件、则会获得最佳的回收性能。可以在WebUI 中的报告下查看平均逐出期限
  • 如果需要执行其他云回收检查、则可以运行以下命令:

enable
Configure terminal
rfsctl exec "-c gc.complete_check"

  • 您也可以通过以下方式计划每日GC、例如10:00:00: 

enable
Configure terminal
job 1 command 1 "rfsctl exec '-c complete_check'"
job 1 date-time 10:00:00
job 1 recurring 86400
job 1 enable

 

追加信息

附加信息 _text

 

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.