Microsoft Virtualization Discussions

Adding parameter to New-NcClone

Murat

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

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

mbeattie

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

Murat

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.

Murat

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

 

Regards

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

Public