Microsoft Virtualization Discussions

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

MARIKOTAGAWA

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

JGPSHNTAP

Mariko -

Just try this

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

MARIKOTAGAWA

Hi, JGPSHNTAP,

Thanks. It worked too.

Thanks a lot.

cknight

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

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

Hello Mariko, yes this would do the job.

MARIKOTAGAWA

Vinith.

Thanks. It worked.

Thanks a lot.

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.

NetApp Insights to Action
I2A Banner
Public