|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: New-NaVolClone
NAME
New-NaVolClone
SYNOPSIS
Create a flexible volume that is a clone of a "backing" or "parent" flexible
volume.
SYNTAX
New-NaVolClone [-ParentVolume] <String> [-CloneVolume] <String> [-SpaceReser
ve <String>] [-Controller <NaController>] [[-ParentSnapshot] <String>] [-War
ningAction <ActionPreference>] [-WarningVariable <String>] [-WhatIf] [-Confi
rm] [<CommonParameters>]
DESCRIPTION
Create a flexible volume that is a clone of a "backing" or "parent" flexible
volume. A clone is a volume that is a writable snapshot of another volume.
Initially, the clone and its parent share the same storage; more storage s
pace is consumed only as one volume or the other changes.
If a specific snapshot name within the parent volume is provided, it is chos
en as the parent snapshot. Otherwise, the filer will create a new, distincti
vely-named snapshot in the parent volume for that purpose.
The parent snapshot is locked in the parent volume, preventing its deletion
until the clone is either destroyed or split from the parent using the 'volu
me-clone-split-start' command (see below).
This command fails if the chosen parent volume is currently involved in a sp
lit operation. This command also fails if the chosen parent volume is a tra
ditional volume. Cloning is a new capability that applies exclusively to fl
exible volumes.
PARAMETERS
-ParentVolume <String>
Name of the parent flexible volume for the clone.
Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-CloneVolume <String>
Desired name of the clone.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-SpaceReserve <String>
Specifies the type of volume guarantee for the clone. Possible values: n
one, file, volume. If this argument is not provided, the default volume
guarantee type is volume.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Controller <NaController>
The DataONTAP controller object, embodied by an NaController object. Th
is parameter is returned by the Connect-NaController cmdlet. If not spe
cified, the value in the global variable CurrentNaController is used.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ParentSnapshot <String>
Name of the snapshot within 'parent-volume' that is to serve as the pare
nt snapshot for the clone. If not provided, the filer will create a new
snapshot named 'clone_parent_<UUID>' (using a freshy-generated UUID) in
'parent-volume' for this purpose.
Required? false
Position? 3
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-WarningAction <ActionPreference>
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WarningVariable <String>
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".
INPUTS
OUTPUTS
NetApp.Ontapi.Filer.Volume.VolumeInfo
NOTES
Category: volume
API: volume-clone-create
-------------- Example 1 --------------
C:\PS>New-NaVolClone vol2clone vol2 -SpaceReserve none
Create a clone volume 'vol2clone' backed by a snapshot of volume 'vol2'.
ChecksumStyle : block
CloneChildren :
CloneParent : {clone_vol2clone.2}
ContainingAggregate : aggr1
DiskCount : 8
FilesTotal : 6381567
FilesUsed : 179
IsChecksumEnabled : True
IsInconsistent : False
IsSnaplock : False
IsUnrecoverable : False
MirrorStatus : unmirrored
Name : vol2clone
PercentageUsed : 85
PlexCount : 1
Plexes : {/aggr1/plex0}
QuotaInit : 0
RaidSize : 16
RaidStatus : raid_dp,sis
Reserve : 10110799872
ReserveRequired : 10110799872
ReserveUsed : 0
Sis : NetApp.Ontapi.Filer.Volume.Sis
SizeAvailable : 29383651328
SizeTotal : 198073786368
SizeUsed : 168690110464
SnaplockType :
SpaceReserve : none
SpaceReserveEnabled : True
State : online
Type : flex
Uuid : f7b5f966-11b4-11df-9caa-00a09806c227
IsUnrecoverableSpecified : True
PercentageUsedSpecified : True
SpaceReserveEnabledSpecified : True
RELATED LINKS
Start-NaVolCloneSplit
| Copyright © 2010 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|