メインコンテンツまでスキップ

SnapLock :PowerShellを使用してWORMファイルの保持期限を延長できません

環境

  • ONTAP 9
  • Data ONTAP 8.2 7-Mode
  • Data ONTAP
  • SnapLock

問題

  • SnapLock コンプライアンスWORMロックファイルの保持期限を延長できません。
  • PowerShellを使用してファイルのatimeを変更することはできません。
  • これらのWORMファイルのいずれかの保持期限を延長しようとすると、ファイルのatimeをあとのタイムスタンプに変更することで、処理を拒否するエラーメッセージが報告されます。CIFS共有を介してアクセスされるファイルでPowerShellを使用してファイルの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.