Subscribe

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

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

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

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.

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

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

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

Hello Mariko, yes this would do the job.

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

Mariko -

Just try this

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

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

Vinith.

Thanks. It worked.

Thanks a lot.

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

Hi, JGPSHNTAP,

Thanks. It worked too.

Thanks a lot.