2017-01-26 01:48 AM
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
Solved! See The Solution
3 REPLIES 3
2017-01-29 04:04 PM
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
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
Re: Adding parameter to New-NcClone
2017-01-30 02:23 AM
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.