Microsoft Virtualization Discussions

New-NAVolClone command displays volume detail. I want to suppress the info.

MARIKOTAGAWA
5,634 Views

Hi, all.

I have a question about New-NaVolClone command option. I wrote a powershell script and run the below command to create a clone volume from a base volume.

I added -Confirm:$False option to suppress volume details but still the below info is shown. Does anyone know how to suppress the volume info after New-NaVolClone?

New-NaVolClone $Clone $Parent -SpaceReserve none -Confirm:$False

Autosize                                   : DataONTAP.Types.Volume.Autosize

BlockType                                  : 32_bit

ChecksumStyle                              : block

CloneChildren                              :

CloneParent                                : {vol_test}

Compression                                :

ContainingAggregate                        : aggr0

DiskCount                                  : 2

ExpiryDate                                 :

ExpiryDateDT                               :

FilesPrivateUsed                           : 504

FilesTotal                                 : 1517

FilesUsed                                  : 97

FormattedExpiryDate                        :

FormattedSnaplockVolumeComplianceClock     :

HybridCacheEligibility                     : read-write

HybridCacheWriteCachingIneligibilityReason :

InodefilePrivateCapacity                   : 1517

InodefilePublicCapacity                    : 1517

IsChecksumEnabled                          : True

IsInconsistent                             : False

IsInSnapmirrorJumpahead                    : False

IsInvalid                                  : False

IsSnaplock                                 : False

IsUnrecoverable                            : False

IsWraparound                               :

MirrorStatus                               : unmirrored

Name                                       : vol_test_clone

OwningVfiler                               : vfiler0

PercentageUsed                             : 0

PlexCount                                  : 1

Plexes                                     : {/aggr0/plex0}

QuotaInit                                  : 0

RaidSize                                   : 7

RaidStatus                                 : raid4

RemoteLocation                             :

Reserve                                    : 0

ReserveRequired                            : 0

ReserveUsed                                : 0

ReserveUsedActual                          : 0

Sis                                        :

SizeAvailable                              : 49664000

SizeTotal                                  : 49807360

SizeUsed                                   : 143360

SnapAutodelete                             : DataONTAP.Types.Volume.SnapAutodelete

SnaplockType                               :

SnaplockVolumeComplianceClock              :

SnapshotBlocksReserved                     : 2560

SnapshotPercentReserved                    : 5

SpaceReserve                               : none

SpaceReserveEnabled                        : True

State                                      : online

Transition                                 :

Type                                       : flex

Uuid                                       : 2c877c6f-a933-11e3-badc-123478563412

VmAlign                                    : DataONTAP.Types.Volume.VmAlign

Volume64bitUpgrade                         : DataONTAP.Types.Volume.Volume64bitUpgradeInfo

ExpiryDateSpecified                        : False

IsInSnapmirrorJumpaheadSpecified           : True

IsInvalidSpecified                         : True

IsUnrecoverableSpecified                   : True

IsWraparoundSpecified                      : False

PercentageUsedSpecified                    : True

SnaplockVolumeComplianceClockSpecified     : False

SpaceReserveEnabledSpecified               : True

TotalSize                                  : 49807360

Used                                       : 0

Available                                  : 49664000

Dedupe                                     : False

Aggregate                                  : aggr0

DedupeEnabled                              : False

IsDedupeEnabled                            : False

Are you sure to create clone volume: vol_test_clone? (y=yes/n=no) [y]: y

Autosize                                   : DataONTAP.Types.Volume.Autosize

BlockType                                  : 32_bit

ChecksumStyle                              : block

CloneChildren                              :

CloneParent                                : {vol_test}

Compression                                :

ContainingAggregate                        : aggr0

DiskCount                                  : 2

ExpiryDate                                 :

ExpiryDateDT                               :

FilesPrivateUsed                           : 504

FilesTotal                                 : 1517

FilesUsed                                  : 97

FormattedExpiryDate                        :

FormattedSnaplockVolumeComplianceClock     :

HybridCacheEligibility                     : read-write

HybridCacheWriteCachingIneligibilityReason :

InodefilePrivateCapacity                   : 1517

InodefilePublicCapacity                    : 1517

IsChecksumEnabled                          : True

IsInconsistent                             : False

IsInSnapmirrorJumpahead                    : False

IsInvalid                                  : False

IsSnaplock                                 : False

IsUnrecoverable                            : False

IsWraparound                               :

MirrorStatus                               : unmirrored

Name                                       : vol_test_clone

OwningVfiler                               : vfiler0

PercentageUsed                             : 0

PlexCount                                  : 1

Plexes                                     : {/aggr0/plex0}

QuotaInit                                  : 0

RaidSize                                   : 7

RaidStatus                                 : raid4

RemoteLocation                             :

Reserve                                    : 0

ReserveRequired                            : 0

ReserveUsed                                : 0

ReserveUsedActual                          : 0

Sis                                        :

SizeAvailable                              : 49664000

SizeTotal                                  : 49807360

SizeUsed                                   : 143360

SnapAutodelete                             : DataONTAP.Types.Volume.SnapAutodelete

SnaplockType                               :

SnaplockVolumeComplianceClock              :

SnapshotBlocksReserved                     : 2560

SnapshotPercentReserved                    : 5

SpaceReserve                               : none

SpaceReserveEnabled                        : True

State                                      : online

Transition                                 :

Type                                       : flex

Uuid                                       : 2c877c6f-a933-11e3-badc-123478563412

VmAlign                                    : DataONTAP.Types.Volume.VmAlign

Volume64bitUpgrade                         : DataONTAP.Types.Volume.Volume64bitUpgradeInfo

ExpiryDateSpecified                        : False

IsInSnapmirrorJumpaheadSpecified           : True

IsInvalidSpecified                         : True

IsUnrecoverableSpecified                   : True

IsWraparoundSpecified                      : False

PercentageUsedSpecified                    : True

SnaplockVolumeComplianceClockSpecified     : False

SpaceReserveEnabledSpecified               : True

TotalSize                                  : 49807360

Used                                       : 0

Available                                  : 49664000

Dedupe                                     : False

Aggregate                                  : aggr0

DedupeEnabled                              : False

IsDedupeEnabled                            : False

6 REPLIES 6

cknight
5,634 Views

In retrospect, the Toolkit should suppress the output by default and offer the -Passthru parameter if the output is desired.  As it is, just assign the output to a variable.

MARIKOTAGAWA
5,634 Views

Thanks Clinton.

Can you show me a code how I can assign the out put to a variable?  Does this work?

$dummy = New-NaVolClone $Clone $Parent -SpaceReserve none -Confirm:$False

vinith
5,634 Views

Hello Mariko, yes this would do the job.

MARIKOTAGAWA
5,634 Views

Vinith.

Thanks. It worked.

Thanks a lot.

JGPSHNTAP
5,634 Views

Mariko -

Just try this

New-NaVolClone $Clone $Parent -SpaceReserve none -Confirm:$False | out-null

MARIKOTAGAWA
5,634 Views

Hi, JGPSHNTAP,

Thanks. It worked too.

Thanks a lot.

Public