Resizing NetApp Volume with SnapMirroring
From Labrats.us
Jump to navigationJump to searchManaging NetApp Volumes
Application Purpose and Scope
This document covers the management of volume size on NetApp filers
NetApp OnTap 7.X (7-mode systems)
The older systems running OnTap 7.x. This section will cover managing volumes on this version of the OS.
Adding space
Log into the (source) NetApp
admin$ ssh netapp-filer1 admin@netapp-filer1's password: netapp-filer1>
Verify the volume size that you wish to increase
netapp-filer1> df -h vol2 Filesystem total used avail capacity Mounted on /vol/vol2/ 42GB 41GB 60KB 100% /vol/vol2/ /vol/vol2/.snapshot 14GB 5394MB 8941MB 38% /vol/vol2/.snapshot netapp-filer1>
Add space
netapp-filer1> vol size vol2 +10G vol size: Flexible volume 'vol2' size set to 66g. netapp-filer1>
Verify Space has been added
netapp-filer1> df -h vol2 Filesystem total used avail capacity Mounted on /vol/vol2/ 49GB 41GB 7762MB 85% /vol/vol2/ /vol/vol2/.snapshot 16GB 5435MB 11GB 32% /vol/vol2/.snapshot netapp-filer1>
Verify SnapMirror status
netapp-filer1> snapmirror status netapp-filer1:vol2 Snapmirror is on. Source Destination State Lag Status netapp-filer1:vol2 netapp-filer2:vol5 Source 00:02:39 Idle netapp-filer1>
Exit NetApp management console
netapp-filer1> exit Use control-D to exit netapp-filer1> Connection to netapp-filer1 closed by remote host. Connection to netapp-filer1 closed.
Note: If SnapMirror is not active on this volume, you can stop here.
Log into the (destination) NetApp
admin$ ssh netapp-filer2 admin@netapp-filer2's password: netapp-filer2>
Verify SnapMirror destination volume to increase
netapp-filer2> df -h vol5 Filesystem total used avail capacity Mounted on /vol/vol5/ 42GB 41GB 60KB 100% /vol/vol5/ /vol/vol5/.snapshot 14GB 5394MB 8941MB 38% /vol/vol5/.snapshot netapp-filer2>
Quiesce the SnapMirror destination volume
netapp-filer2> snapmirror quiesce vol5 snapmirror quiesce: in progress This can be a long-running operation. Use Control - C (^C) to interrupt. snapmirror quiesce: vol5 : Successfully quiesced netapp-filer2>
Break the SnapMirror volume
netapp-filer2> snapmirror break vol5 snapmirror break: Destination vol5 is now writable. Volume size is being retained for potential snapmirror resync. If you would like to grow the volume and do not expect to resync, set vol option fs_size_fixed to off. netapp-filer2>
Change options on SnapMirror destination volume
netapp-filer2> vol options vol5 fs_size_fixed off Wed Aug 29 11:45:00 MDT last message repeated 19 times Wed Aug 29 11:45:49 MDT [wafl.vv.set.size:warning]: Setting volume size for vol5 to match nominal size. netapp-filer2>
Add same amount of space to SnapMirror destination volume
netapp-filer2> vol size vol5 +10g vol size: Flexible volume 'vol5' size set to 76g. netapp-filer2>
Verify the space has been added to teh SnapMirror destination volume
netapp-filer2> df -h vol5 Filesystem total used avail capacity Mounted on /vol/vol5/ 49GB 41GB 7762MB 85% /vol/vol5/ /vol/vol5/.snapshot 16GB 5435MB 11GB 32% /vol/vol5/.snapshot netapp-filer2>
Resync SnapMirror destination volume
netapp-filer2> snapmirror resync vol5 The resync base snapshot will be: netapp-filer2(0135107210)_vol5.85164 These older snapshots have already been deleted from the source and will be deleted from the destination: netapp-filer2(0135107210)_vol5.85163 Are you sure you want to resync the volume? y Wed Aug 29 11:46:35 MDT [snapmirror.dst.resync.info:notice]: SnapMirror resync of vol5 to netapp-filer1:vol2 is using netapp-filer2(0135107210)_vol5.85164 as the base snapshot. Volume vol5 will be briefly unavailable before coming back online. Wed Aug 29 11:46:36 MDT [wafl.snaprestore.revert:notice]: Reverting volume vol5 to a previous snapshot. Revert to resync base snapshot was successful. Wed Aug 29 11:46:37 MDT [replication.dst.resync.success:notice]: SnapMirror resync of vol5 to netapp-filer1:vol2 was successful. Transfer started. Monitor progress with 'snapmirror status' or the snapmirror log. netapp-filer2>
Verify SnapMirror operation on destination volume
netapp-filer2> snapmirror status netapp-filer2:vol5 Snapmirror is on. Source Destination State Lag Status netapp-filer1:vol2 netapp-filer2:vol5 Snapmirrored 00:00:07 Idle netapp-filer2>
Exit NetApp management console
netapp-filer2> exit Use control-D to exit netapp-filer2> Connection to netapp-filer2 closed by remote host. Connection to netapp-filer2 closed.