15 aggr command Netapp cluster mode practical examples

The storage aggregate command family manages aggregates. The storage aggregate commands can create new aggregates, add more disks to an aggregate, delete the existing ones, change aggregate status and apply options to an aggregate. Aggregate commands often affect the volumes contained within aggregates. Let’s see 15 aggr command Netapp cluster mode practical examples which are more useful in regular Netapp administrator job.

15 aggr command Netapp

The first command to see aggregates and there status

ARKITCLU::> aggr show

Aggregate Size Available Used% State #Vols Nodes RAID Status
--------- -------- --------- ----- ------- ------ ---------------- ------------
aggr0 855MB 42.12MB 95% online 1 ARKITCLU-01 raid_dp,
 normal
aggr1 3.52GB 3.48GB 1% online 2 ARKITCLU-01 raid_dp,
 normal
aggr2 3.52GB 3.44GB 2% online 2 ARKITCLU-01 raid_dp,
 normal
3 entries were displayed.

Display details of space utilisation within aggregate

ARKITCLU::> aggr show-space

Aggregate : aggr0

Feature Used Used%
 -------------------------------- ---------- ------
 Volume Footprints 812.7MB 90%
 Aggregate Metadata 316KB 0%
 Snapshot Reserve 45MB 5%

Total Used 858.0MB 95%

Total Physical Used 389.8MB 43%
ARKITCLU::> aggr show-space aggr1

Aggregate Name: aggr1
 Volume Footprints: 40.41MB
 Volume Footprints Percent: 1%
Total Space for Snapshot Copies in Bytes: 0B
 Space Reserved for Snapshot Copies: 0%
 Aggregate Metadata: 284KB
 Aggregate Metadata Percent: 0%
 Total Used: 40.68MB
 Total Used Percent: 1%
 Size: 3.52GB
 Snapshot Reserve Unusable: -
 Snapshot Reserve Unusable Percent: -
 Total Physical Used Size: 4.52MB
 Physical Used Percentage: 0%

Do aggregate offline / online

ARKITCLU::> aggr offline aggr1

Warning: The aggregate contains one or more volumes. In order to offline the aggregate, all of these volumes must be unmounted. Do you want to unmount all of the volumes hosted by the aggregate?
{y|n}: y

Aggregate offline successful on aggregate: aggr1

Now let’s bring aggregate online

ARKITCLU::> aggr show

Aggregate Size Available Used% State #Vols Nodes RAID Status
--------- -------- --------- ----- ------- ------ ---------------- ------------
aggr1 0B 0B 0% offline 0 ARKITCLU-01 raid_dp,
 normal

ARKITCLU::> aggr online aggr1

Aggregate online successful on aggregate: aggr1

Listing Disk within Aggregate & Adding New Disks

 Before adding disk aggregate

ARKITCLU::> aggr show aggr0

Aggregate: aggr0
 Storage Type: hdd
 Checksum Style: block
 Number Of Disks: 4
 Mirror: false
 Node: ARKITCLU-01
 Disks for First Plex: NET-1.15, NET-1.16,
 NET-1.17, NET-1.4

ARKITCLU::> aggr show -aggregate aggr1 -disk
Aggregate #disks Disks
--------- ------ ---------------------------
aggr1 6 NET-1.18, NET-1.19, NET-1.20, NET-1.21, NET-1.22, NET-1.23

After adding disks to aggregate

ARKITCLU::> aggr add-disks -aggregate aggr0 -diskcount 6 -disktype FCAL -raidgroup all

ARKITCLU::> aggr show aggr0

Aggregate: aggr0
 Storage Type: hdd
 Checksum Style: block
 Number Of Disks: 10
 Mirror: false
 Node: ARKITCLU-01
 Disks for First Plex: NET-1.15, NET-1.16,
 NET-1.17, NET-1.4, NET-1.5,
 NET-1.27, NET-1.6,
 NET-1.28, NET-1.7, NET-1.8

Renaming the Aggregate Name

renaming the aggregate is very easy process in Netapp cluster mode, below is the command example to rename aggregate

ARKITCLU::> aggr rename -aggregate aggr0 -newname arkaggr
[Job 25] Job succeeded: DONE

As per the above command aggr0 is the actual aggregate and new aggregate name is arkaggr

ARKITCLU::> aggr status

Aggregate Size Available Used% State #Vols Nodes RAID Status
--------- -------- --------- ----- ------- ------ ---------------- ------------
aggr1 3.52GB 3.48GB 1% online 2 ARKITCLU-01 raid_dp,
 normal
aggr2 3.52GB 3.44GB 2% online 2 ARKITCLU-01 raid_dp,
 normal
arkaggr 6.68GB 5.89GB 12% online 1 ARKITCLU-01 raid_dp,
 normal
3 entries were displayed.

 

Deleting Aggregate

Deleting aggregate highly not recommended, until unless your decommissioning appropriate aggregate. Before your going to run Aggregate delete option you have to offline volumes and delete volumes, Delete all snapmirror relationships.

ARKITCLU::> vol delete -vserver VSRV01 -volume test1

Warning: Are you sure you want to delete volume "test1" in Vserver "VSRV01" ? {y|n}: y
[Job 27] Job succeeded: Successful

ARKITCLU::> aggr delete aggr2

Warning: Are you sure you want to destroy aggregate "aggr2"? {y|n}: y
[Job 28] Job succeeded: DONE

Mirror Aggregate

ARKITCLU::> aggr mirror -aggregate aggr1 -mirror-disklist NET-1.1, NET-1.2, NET-1.3, NET-1.9, NET-1.10, NET-1.11, NET-1.12

above command will mirror your aggregate to spare disks.

Note: Disks should not be in same pool

Thanks for reading the article, your Feedback is more important to us.

Related Articles

Storage Virtualization – Server Virtualization is Explained

Volume from One SVM to another SVM

Netapp AutoSupport Manual Configuration Step by Step Guide Cluster mode

15 aggr command Netapp 15 aggr command Netapp 15 aggr command Netapp 15 aggr command Netapp

Thanks for your wonderful Support and Encouragement

Ravi Kumar Ankam

My Name is ARK. Expert in grasping any new technology, Interested in Sharing the knowledge. Learn more & Earn More

Leave a Reply

Your email address will not be published. Required fields are marked *