使用-snapsnapsnapsnap-expy-time改进程序创建SnapLock无法按预期运行
适用场景
- ONTAP 9.12.1 或更高版本
- SnapLock
- Snapshot副本锁定
- 防篡改快照
问题描述
如果将 snapSnapshot create与-snap-expy-time结合使用,则+和-个SnapLock 键无法按预期工作。
用法:
[-snaplock-expiry-time {MM/DD/YYYY HH:MM:SS [{+|-}hh:mm] | infinite}]
示例:
如果将可选的+或-修饰符与时间参数结合使用、则+修饰符似乎会从定义的HH:MM:SS中减去时间、而-修饰符则会增加时间。
示例:
snapshot create "test_snapshot" -snaplock-expiry-time -5m -vserver svm1_cluster1 -snapshot test1'
Error: "-5m" is an invalid value for field "-snaplock-expiry-time <"MM/DD/YYYYHH:MM:SS [{+|-}hh:mm] | infinite">"