跳转到主内容

SnapLock :无法使用PowerShell延长WORM文件的保留时间

Views:
1
Visibility:
Public
Votes:
0
Category:
snaplock<a>fas3200/V3200</a><a>Data ONTAP 8.2 7-模式</a><a>1014161</a><a>用于转换</a>
Specialty:
dp
Last Updated:

适用场景

  • ONTAP 9
  • Data ONTAP 8.2 7-模式
  • Data ONTAP
  • SnapLock

问题描述

  • 无法延长SnapLock 合规WORM锁定文件的保留日期。
  • 无法使用PowerShell修改文件的atime。
  • 在尝试延长其中一个WORM文件的保留日期时、如果将文件的atime更改为稍后的时间戳、则会报告一条错误消息、拒绝执行此操作。尝试使用PowerShell更改通过CIFS共享访问的文件上的atime时。

PowerShell脚本示例如下:
$a = Get-Item "z:\test\test2.txt"$a.LastAccessTime = (Get-Date).AddDays(2)$a.IsReadOnly = $true$a.LastAccessTime = (Get-Date).AddDays(5)

  • 尝试运行最后一个命令以更新atime时、会报告以下错误:

Exception setting "LastAccessTime": "Access to the path 'Z:\test\test2.txt' is denied."At line:1 char:1+ $a.LastAccessTime = (Get-Date).AddDays(5)+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], SetValueInvocationException + FullyQualifiedErrorId : ExceptionWhenSetting

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

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.