Microsoft Virtualization Discussions

Adding parameter to New-NcClone

Murat
4,450 Views

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.

1 ACCEPTED SOLUTION

mbeattie
4,359 Views

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

 

 

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

View solution in original post

3 REPLIES 3

Murat
4,421 Views

Sorry for bothering guys. Looks like the problem is ONTAP version. They have 8.3 while this parameter comes with 8.3.2p2.

 

Regards

mbeattie
4,360 Views

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

 

 

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Murat
4,338 Views

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.

Public