< Back

New-SVTclone

Tue Jan 14, 2020 2:11 am

NAME New-SVTclone



SYNOPSIS

Clone one or more Virtual Machines hosted on SimpliVity storage/hosts





SYNTAX

New-SVTclone [-VMname] <String> [[-NumberOfClones] <Int32>] [[-AppConsistent] <Boolean>] [[-ConsistencyType]

<String>] [<CommonParameters>]





DESCRIPTION

This cmdlet will clone a given VM or VMs up to 20 times. It accepts multiple

SimpliVity Virtual Machine objects and will execute 4 clone operations

simultaneously, waiting so that only maximum of 4 clones are executing at once.





PARAMETERS

-VMname <String>

Specify one or more VMs to clone



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-NumberOfClones <Int32>

Specify the number of clones, 1 to 20.



Required? false

Position? 2

Default value 1

Accept pipeline input? false

Accept wildcard characters? false



-AppConsistent <Boolean>

An indicator to show if the backup represents a snapshot of a virtual machine with data that

was first flushed to disk



Required? false

Position? 3

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-ConsistencyType <String>

The type of backup used for the clone method, DEFAULT is crash-consistent, VSS is

application-consistent using VSS and NONE is application-consistent using a snapshot



Required? false

Position? 4

Default value NONE

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String

HPE.SimpliVity.VirtualMachine





OUTPUTS

System.Management.Automation.PSCustomObject





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>New-SVTclone -VMname NewVM1



Creates a new clone with the name of the original VM plus a datestamp.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-SVTvm | ? {VMname -match 'SQL'} | New-SVTclone -Verbose



This clones every VM with 'SQL' in its name, 4 at a time. Specify the -Verbose parameter

to watch the progress.









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>New-SVTclone -VMname NewVM1 -NumberOfClones 3 -Verbose



C:\\PS>Get-SVTtask | Format-List *



Clone the specified VM three times. The second command monitors the cloning task(s) as they execute.











RELATED LINKS