To use CLI to add disk to the existing aggregation, follow below steps:
1). First check the aggregation that need to be extended:
lab> aggr status aggr1 -v
Aggr State Status Options
aggr1 online raid_dp, aggr nosnap=off, raidtype=raid_dp,
raidsize=16,
ignore_inconsistent=off,
snapmirrored=off,
resyncsnaptime=60,
fs_size_fixed=off,
snapshot_autodelete=on,
lost_write_protect=on
Volumes: <none>
Plex /aggr1/plex0: online, normal, active
RAID group /aggr1/plex0/rg0: normal
lab> df -Am
Aggregate total used avail capacity
aggr0 256MB 244MB 12MB 95%
aggr0/.snapshot 13MB 10MB 2MB 79%
aggr1 128MB 0MB 128MB 0%
aggr1/.snapshot 6MB 0MB 6MB 0%
2). Check the available spares by run sysconfig -r, in this example,
lab> sysconfig -r
Aggregate aggr1 (online, raid_dp) (zoned checksums)
Plex /aggr1/plex0 (online, normal, active)
RAID group /aggr1/plex0/rg0 (normal)
RAID Disk Device HA SHELF BAY CHAN Pool Type RPM Used (MB/blks) Phys (MB/blks)
--------- ------ ------------- ---- ---- ---- ----- -------------- --------------
dparity v4.24 v4 1 8 FC:B - FCAL N/A 70/144384 77/158848
parity v4.25 v4 1 9 FC:B - FCAL N/A 70/144384 77/158848
data v4.26 v4 1 10 FC:B - FCAL N/A 70/144384 77/158848
data v4.27 v4 1 11 FC:B - FCAL N/A 70/144384 77/158848
data v4.28 v4 1 12 FC:B - FCAL N/A 70/144384 77/158848
Aggregate aggr0 (online, raid0) (zoned checksums)
Plex /aggr0/plex0 (online, normal, active)
RAID group /aggr0/plex0/rg0 (normal)
RAID Disk Device HA SHELF BAY CHAN Pool Type RPM Used (MB/blks) Phys (MB/blks)
--------- ------ ------------- ---- ---- ---- ----- -------------- --------------
data v4.16 v4 1 0 FC:B - FCAL N/A 120/246784 127/261248
data v4.17 v4 1 1 FC:B - FCAL N/A 120/246784 127/261248
data v4.18 v4 1 2 FC:B - FCAL N/A 120/246784 127/261248
Spare disks
RAID Disk Device HA SHELF BAY CHAN Pool Type RPM Used (MB/blks) Phys (MB/blks)
--------- ------ ------------- ---- ---- ---- ----- -------------- --------------
Spare disks for zoned checksum traditional volumes or aggregates only
spare v4.29 v4 1 13 FC:B - FCAL N/A 70/144384 77/158848
spare v4.32 v4 2 0 FC:B - FCAL N/A 70/144384 77/158848
spare v4.33 v4 2 1 FC:B - FCAL N/A 70/144384 77/158848
spare v4.34 v4 2 2 FC:B - FCAL N/A 70/144384 77/158848
spare v4.35 v4 2 3 FC:B - FCAL N/A 70/144384 77/158848
spare v4.36 v4 2 4 FC:B - FCAL N/A 70/144384 77/158848
spare v4.37 v4 2 5 FC:B - FCAL N/A 70/144384 77/158848
spare v4.38 v4 2 6 FC:B - FCAL N/A 70/144384 77/158848
spare v4.39 v4 2 7 FC:B - FCAL N/A 70/144384 77/158848
spare v4.40 v4 2 8 FC:B - FCAL N/A 70/144384 77/158848
spare v4.41 v4 2 9 FC:B - FCAL N/A 70/144384 77/158848
spare v4.42 v4 2 10 FC:B - FCAL N/A 70/144384 77/158848
spare v4.43 v4 2 11 FC:B - FCAL N/A 70/144384 77/158848
spare v4.44 v4 2 12 FC:B - FCAL N/A 70/144384 77/158848
spare v4.45 v4 2 13 FC:B - FCAL N/A 70/144384 77/158848
spare v4.19 v4 1 3 FC:B - FCAL N/A 1020/2089984 1027/2104448
spare v4.20 v4 1 4 FC:B - FCAL N/A 1020/2089984 1027/2104448
spare v4.21 v4 1 5 FC:B - FCAL N/A 1020/2089984 1027/2104448
spare v4.22 v4 1 6 FC:B - FCAL N/A 1020/2089984 1027/2104448
3) Next add 15 spare disk to the Aggr1, because the max size of spindle for Raid Group(Raid-DP) is 16 so when 15 new spindles added, a new Raid Group is created with additional 4 disks.
lab> aggr add aggr1 -d v4.29 v4.32 v4.33 v4.34 v4.35 v4.36 v4.37 v4.38 v4.39 v4.40 v4.41 v4.42 v4.43 v4.44 v4.45
Note: preparing to add 13 data disks and 2 parity disks.
Continue? ([y]es, [n]o, or [p]review RAID layout) p
The RAID group configuration will change as follows:
RAID Group Current NEW
---------- ------- ----
/aggr1/plex0/rg0 5 disks 16 disks
/aggr1/plex0/rg1 4 disks
Continue? ([y]es, [n]o, or [p]review RAID layout) yes
Sun Aug 30 17:25:33 GMT [raid.vol.disk.add.done:notice]: Addition of Disk /aggr1/plex0/rg0/v4.41 Shelf 2 Bay 9 [NETAPP VD-50MB 0042] S/N [37981022] to aggregate aggr1 has completed successfully
Sun Aug 30 17:25:33 GMT [raid.vol.disk.add.done:notice]: Addition of Disk /aggr1/plex0/rg0/v4.40 Shelf 2 Bay 8 [NETAPP VD-50MB 0042] S/N [37981021] to aggregate aggr1 has completed successfully
Sun Aug 30 17:25:33 GMT [raid.vol.disk.add.done:notice]: Addition of Disk /aggr1/plex0/rg0/v4.39 Shelf 2 Bay 7 [NETAPP VD-50MB 0042] S/N [37981020] to aggregate aggr1 has completed successfully
Sun Aug 30 17:25:33 GMT [raid.vol.disk.add.done:notice]: Addition of Disk /aggr1/plex0/rg0/v4.38 Shelf 2 Bay 6 [NETAPP VD-50MB 0042] S/N [37981019] to aggregate aggr1 has completed successfully
Sun Aug 30 17:25:33 GMT [raid.vol.disk.add.done:notice]: Addition of Disk /aggr1/plex0/rg0/v4.37 Shelf 2 Bay 5 [NETAPP VD-50MB 0042] S/N [37980918] to aggregate aggr1 has completed successfully
Sun Aug 30 17:25:33 GMT [raid.vol.disk.add.done:notice]: Addition of Disk /aggr1/plex0/rg0/v4.36 Shelf 2 Bay 4 [NETAPP VD-50MB 0042] S/N [37980917] to aggregate aggr1 has completed successfully
Sun Aug 30 17:25:33 GMT [raid.vol.disk.add.done:notice]: Addition of Disk /aggr1/plex0/rg0/v4.35 Shelf 2 Bay 3 [NETAPP VD-50MB 0042] S/N [13292816] to aggregate aggr1 has completed successfully
Sun Aug 30 17:25:33 GMT [raid.vol.disk.add.done:notice]: Addition of Disk /aggr1/plex0/rg0/v4.34 Shelf 2 Bay 2 [NETAPP VD-50MB 0042] S/N [13292715] to aggregate aggr1 has completed successfully
Sun Aug 30 17:25:33 GMT [raid.vol.disk.add.done:notice]: Addition of Disk /aggr1/plex0/rg0/v4.33 Shelf 2 Bay 1 [NETAPP VD-50MB 0042] S/N [13292614] to aggregate aggr1 has completed successfully
Sun Aug 30 17:25:33 GMT [raid.vol.disk.add.done:notice]: Addition of Disk /aggr1/plex0/rg0/v4.32 Shelf 2 Bay 0 [NETAPP VD-50MB 0042] S/N [13292513] to aggregate aggr1 has completed successfully
Sun Aug 30 17:25:33 GMT [raid.vol.disk.add.done:notice]: Addition of Disk /aggr1/plex0/rg0/v4.29 Shelf 1 Bay 13 [NETAPP VD-50MB 0042] S/N [13292512] to aggregate aggr1 has completed successfully
Sun Aug 30 17:25:33 GMT [raid.vol.disk.add.done:notice]: Addition of Disk /aggr1/plex0/rg1/v4.45 Shelf 2 Bay 13 [NETAPP VD-50MB 0042] S/N [37981126] to aggregate aggr1 has completed successfully
Sun Aug 30 17:25:33 GMT [raid.vol.disk.add.done:notice]: Addition of Disk /aggr1/plex0/rg1/v4.44 Shelf 2 Bay 12 [NETAPP VD-50MB 0042] S/N [37981125] to aggregate aggr1 has completed successfully
Sun Aug 30 17:25:33 GMT [raid.vol.disk.add.done:notice]: Addition of Disk /aggr1/plex0/rg1/v4.43 Shelf 2 Bay 11 [NETAPP VD-50MB 0042] S/N [37981124] to aggregate aggr1 has completed successfully
Sun Aug 30 17:25:33 GMT [raid.vol.disk.add.done:notice]: Addition of Disk /aggr1/plex0/rg1/v4.42 Shelf 2 Bay 10 [NETAPP VD-50MB 0042] S/N [37981123] to aggregate aggr1 has completed successfully
Addition of 15 disks to the aggregate has completed.
lab> aggr status aggr1
Aggr State Status Options
aggr1 online raid_dp, aggr
Volumes: <none>
Plex /aggr1/plex0: online, normal, active
RAID group /aggr1/plex0/rg0: normal
RAID group /aggr1/plex0/rg1: normal
4). Next create volume 1 with 200MB of total.
lab> vol create vol1 aggre1 200m
vol create: Containing aggregate 'aggre1' was not found
lab> vol create vol1 aggr1 200m
Creation of volume 'vol1' with size 200m on containing aggregate
'aggr1' has completed.
lab> vol status
Volume State Status Options
vol0 online raid0, flex root, no_atime_update=on,
create_ucode=on,
convert_ucode=on,
maxdirsize=2621
vol1 online raid_dp, flex create_ucode=on,
convert_ucode=on
lab>
5). Check the aggregation utilization:
lab> df -Am
Aggregate total used avail capacity
aggr0 256MB 244MB 12MB 95%
aggr0/.snapshot 13MB 10MB 2MB 79%
aggr1 684MB 201MB 482MB 30%
aggr1/.snapshot 36MB 0MB 36MB 0%
lab>