Microsoft Virtualization Discussions
Microsoft Virtualization Discussions
Hi team,
We need to add "-is-backup true" parameter to new file clone create script due to a bug (they get Device Busy warning) but customer says they cannot make it. Below you can find the command that they run, how should I add "-is-backup true" parameter ?
New-NcClone -Volume /vol/BIAB_A/ -SourcePath ORACLEVM/OraDB01.STAGEA-Data01 -DestinationPath ORACLEVM/OraDB01.STAGEB-Data01
New-NcClone : Clone operation failed to start: Device busy
Thanks.
Solved! See The Solution
Hi,
Looking at the New-NcClone CmdLet help (Get-Help New-NcClone -full)
-IsBackup [<Boolean>] Specifies whether the clone is being created for backup - that is source file will get periodically modified, but the clone file should not be modified. The default value is false.
So you'd just need to add "-IsBackup $True" to the powershell command. EG
New-NcClone -Volume $volume -SourcePath $sourcePath -DestinationPath $destinationPath -IsBackup $True
/Matt
Sorry for bothering guys. Looks like the problem is ONTAP version. They have 8.3 while this parameter comes with 8.3.2p2.
Regards
Hi,
Looking at the New-NcClone CmdLet help (Get-Help New-NcClone -full)
-IsBackup [<Boolean>] Specifies whether the clone is being created for backup - that is source file will get periodically modified, but the clone file should not be modified. The default value is false.
So you'd just need to add "-IsBackup $True" to the powershell command. EG
New-NcClone -Volume $volume -SourcePath $sourcePath -DestinationPath $destinationPath -IsBackup $True
/Matt
Hi,
Thanks for the answer. They got parameter not found error for this
1/27/2017 12:26:12 PM | Info | 1120 | CloneLuns | Env:devops - Cloning /vol/BIAB_A/HYPERV/GoldenLiveB as /vol/BIAB_A/HYPERV/devops on Controller: DC2STRTD01_FC
1/27/2017 12:26:17 PM | Error | 3120 | CloneLuns | A parameter cannot be found that matches parameter name 'IsBackup'.
1/27/2017 12:26:17 PM | Error | 3120 | CloneLuns | Exception calling "CloneLuns" with "0" argument(s): "A parameter cannot be found that matches parameter name 'IsBackup'."
They have currently 8.3.2P5.
Regards.