Flexible Volume and Aggregate Removal

Module 4. Flexible Volume and Aggregate Removal

Flexible Volume and Aggregate Removal
Data ONTAP 7g Update: Introduction to Aggregates

Student Guide

Do Not Duplicate – October 2004

4-1

0 Update: Introduction to Aggregates Objectives At the end of this module you will be able to: – Define conditions necessary to remove a flexible volume and aggregate – Perform available methods for removal of flexible volumes and aggregates – Describe the impact of off-lining a flexible volume on an aggregate – Describe automatic space allocation for volume guarantee disabled flexible volumes 4-2 Do Not Duplicate – October 2004 Student Guide .Data ONTAP 7.

Flexible Volume and Aggregate Removal Aggregate and Flexible Volume Removal Aggregates cannot be removed until all flexible volumes on the aggregate are removed Both flexible volumes and aggregates can be removed using CLI commands and FilerView – For flexible volumes use CLI commands: • vol offline <flexvol-name> and vol destroy <flexvol-name> – For aggregates use CLI commands: • aggr offline <aggr-name> and aggr destroy <aggr-name> Student Guide Do Not Duplicate – October 2004 4-3 .

snapshot 4GB used 60GB 0GB avail 25GB 4GB reserved 0GB 0GB Aggregate must have no flexible volumes to offline. 15GB flexible volume with 4GB (1GB reserved) used NetApp> df -g -r flex_1 Filesystem total used avail reserved Mounted on /vol/flex_1/ 12GB 4GB 7GB 1GB /vol/flex_1/ /vol/flex_1/.vvol.snapshot 3GB 0GB 2GB 0GB /vol/flex_1/. NetApp> aggr offline aggr2 aggr offline: Cannot offline aggregate 'aggr2' because it contains one or more flexible volumes. 4-4 Do Not Duplicate – October 2004 Student Guide .Data ONTAP 7.offline:info]: Volume 'flex_1‘ has been set temporarily offline Volume 'flex_1' is now offline.snapshot Flexible volume can be off-lined at any time. Thu Oct 7 19:27:33 PDT [wafl. NetApp> vol offline flex_1 .0 Update: Introduction to Aggregates Flexible Volume Removal CLI Command Examples NetApp> df -A -g -r aggr2 Aggregate total aggr2 85GB aggr2/.

snapshot 4GB used 82GB 0GB avail 3GB 4GB reserved 0GB 0GB Needs it’s +12GB back to come online. vol online: Unable to online volume as space cannot be guaranteed for the volume. Student Guide Do Not Duplicate – October 2004 4-5 . but not NetApp> vol online flex_1 available at this time (guarantee =volume).snapshot 4GB 0GB 4GB 0GB New flexible volume consumes most of NetApp> vol create flex_4 aggr2 35g remainder of the aggregate space Creation of volume 'flex_4' with size 35g on containing aggregate 'aggr2' has completed.Flexible Volume and Aggregate Removal Flexible Volume Removal CLI Command Examples All but used space returned to aggregate when offline NetApp> df -A -g -r aggr2 Note reserved returned as well -12 (15-3)GB Aggregate total used avail reserved aggr2 85GB 47GB 38GB 0GB aggr2/. NetApp> df -A -g -r aggr2 Aggregate total aggr2 85GB aggr2/.

fail:error]: Space for volume flex_1 is NOT guaranteed Volume 'flex_1' is now online.snapshot No additional space.Data ONTAP 7. flex NetApp> df -g -r flex_1 Filesystem total /vol/flex_1/ 12GB /vol/flex_1/.snapshot 4GB used avail reserved Mounted on 4GB 3GB (1GB) /vol/flex_1/ 0GB 2GB 0GB /vol/flex_1/.0 Update: Introduction to Aggregates Flexible Volume Removal CLI Command Examples NetApp> vol online flex_1 -f Force back on line without guarantee=volume Thu Oct 7 19:47:01 PDT [wafl. use space as needed used 82GB 0GB avail 3GB 4GB reserved 0GB 0GB 4-6 Do Not Duplicate – October 2004 Student Guide . NetApp> vol status flex_1 Volume State flex_1 online Options nosnap=on.vol.guarantee. already accounted for flex_1 used space.snapshot 3GB NetApp> df -A -g -r aggr2 Aggregate total aggr2 85GB aggr2/. guarantee=volume(disabled) Containing aggregate: 'aggr2' Like volume=none Status raid4.

checks for any (disabled) to see if can provide space.spcGuar:info]: Space for volume flex_1 is guaranteed. Student Guide Do Not Duplicate – October 2004 4-7 . Any flexible volume destroyed.Flexible Volume and Aggregate Removal Flexible Volume Removal CLI Command Examples NetApp> vol offline flex_4 . flex_4 off-lined returns unused space to aggregate NetApp> df -A -g -r aggr2 Aggregate total used avail reserved aggr2 85GB 47GB 38GB 0GB aggr2/.vol. “Automatically” Volume 'flex_4' destroyed.offline:info]: Volume 'flex_4' has been set temporarily offline Volume 'flex_4' is now offline.vvol. Thu Oct 7 19:58:01 PDT [wafl.add.snapshot 4GB 0GB 4GB 0GB NetApp> vol destroy flex_4 Are you sure you want to destroy this volume? y Thu Oct 7 20:03:49 PDT [wafl.

Data ONTAP 7.0 Update: Introduction to Aggregates FilerView Options for Flexible Volume Removal Volumes ? Manage 4-8 Do Not Duplicate – October 2004 Student Guide .

Offline all flexible volumes with aggregate Student Guide Do Not Duplicate – October 2004 4-9 .vvol. normal. aggr Options Volumes: flex_1. NetApp> vol offline flex_2 Thu Oct 7 20:08:47 PDT [wafl. flex_3 Plex /aggr2/plex0: online. active RAID group /aggr2/plex0/rg0: normal NetApp> vol offline flex_1 Thu Oct 7 20:06:53 PDT [wafl. flex_2.vvol.offline:info]: Volume 'flex_1' has been set temporarily offline Volume 'flex_1' is now offline.offline:info]: Volume 'flex_2' has been set temporarily offline Volume 'flex_2' is now offline.Flexible Volume and Aggregate Removal Aggregate Removal Example NetApp> aggr status aggr2 Aggr State aggr2 online Status raid4.

offline:info]: Volume 'flex_3' has been set temporarily offline Volume 'flex_3' is now offline. NetApp> vol destroy flex_1 Are you sure you want to destroy this volume? y Volume 'flex_1' destroyed. NetApp> vol destroy flex_2 Are you sure you want to destroy this volume? y Volume 'flex_2' destroyed.Data ONTAP 7.0 Update: Introduction to Aggregates Aggregate Removal Example NetApp> vol offline flex_3 Thu Oct 7 20:08:53 PDT [wafl. Destroy all flexible volumes within aggregate 4-10 Do Not Duplicate – October 2004 Student Guide . NetApp> vol destroy flex_3 Are you sure you want to destroy this volume? y Volume 'flex_3' destroyed.vvol.

-----.SCSI 10000 34000/69632000 34732/71132952 (not zeroed) Student Guide Do Not Duplicate – October 2004 4-11 .vol. can now destroy NetApp> aggr destroy aggr2 Are you sure you want to destroy this aggregate? y Thu Oct 7 20:15:58 PDT [raid. Aggregate disk returned NetApp> aggr status -s Spare disks RAID Disk Device HA SHELF BAY CHAN Pool Type RPM Used(MB/blk)Phys(MB/blk) --------.SCSI 10000 34000/69632000 34732/71132952 spare 0b.2 0b 0 2 .------------.SCSI 10000 34000/69632000 34732/71132952 (not zeroed) spare 0b.---.SCSI 10000 34000/69632000 34732/71132952 (not zeroed) spare 0b.Flexible Volume and Aggregate Removal Aggregate Removal Example NetApp> aggr offline aggr2 Aggregate 'aggr2' is now offline.----.---.SCSI 10000 34000/69632000 34732/71132952 (not zeroed) spare 0b.config.---.destroyed:info]: Aggregate 'aggr2' destroyed.-------------Spare disks for zoned checksum traditional volumes or aggregates only spare 0a.5 0b 0 5 .SCSI 10000 34000/69632000 34732/71132952 spare 0b.3 0b 0 3 .1 0a 0 1 . Offline successful.1 0b 0 1 .4 0b 0 4 .

0 Update: Introduction to Aggregates FilerView Options for Aggregate Removal Aggregates ? Manage 4-12 Do Not Duplicate – October 2004 Student Guide .Data ONTAP 7.

Flexible Volume and Aggregate Removal Topic Review What must be done before you can destroy an aggregate? When you offline a flexible volume. what space is returned to its aggregate as available? Student Guide Do Not Duplicate – October 2004 4-13 .

0 Update: Introduction to Aggregates Exercise Slide Exercises 4-14 Do Not Duplicate – October 2004 Student Guide .Data ONTAP 7.

S. Windows I. Putty. Time Estimate 30 minutes Required Hardware.S. Exercise Overview During this exercise you will be using CLI commands to remove both flexible volumes and aggregates. Client interface software (TeraTerm. Unix Host O. Miscellaneous • N/A Student Guide Do Not Duplicate – October 2004 4-15 .E. you will have performed the following: • • Used CLI commands to remove a flexible volume and an aggregate from a storage appliance. Windows telnet. Examined the impact of flexible volume removal for pending volume guarantees..0. simulator Software • Data ONTAP 7.0. and Tools Hardware • PC platform to host Windows O. with VMware running Linux guest O. supporting Data ONTP 7. You will see what the impact of removing a flexible volume from its containing aggregate has on the aggregates space allocations.Flexible Volume and Aggregate Removal Exercise: Flexible Volume and Aggregate Removal Objective When you have completed this exercise. Space allocation to pending flexible volumes waiting for volume guarantees will also be seen during the exercise.S. Software./FilerView) Tools • None.

From the CLI on your storage appliance.If not. . . From the CLI on your storage appliance. From the CLI on your storage appliance. From the CLI on your storage appliance.Was there a change in its space usage? ________ . use the vol offline command to offline flexvol_1. once again attempt to bring flexvol_1 back online with the vol online command.If so. of aggr_1. which one worked. From the CLI on your storage appliance. From the CLI on your storage appliance.Did it work? _______ . • Again. 2. use the vol online command to bring flexvol_1 back on line. From the CLI on your storage appliance.Is this amount equal to the size of the volume? __________ 3. Off lining flexible volumes 1. . issue a df command to display the current usage in MBs. create a new flexible volume named flexvol_4 with a size equal to the amount of space returned by flexvol_1 when it was off-lined – 3MBs 3.0 Update: Introduction to Aggregates Start of Exercise Destroying Flexible Volumes and Aggregates In this exercise you will use CLI commands to off-line and destroy flexible volumes and aggregates. use a df command on aggr_1 as above. o Was there a change in the space being used? _________ 4-16 Do Not Duplicate – October 2004 Student Guide . You will see the impact of off-lining a flexible volume at the aggregate level. use the aggr offline command to offline both aggr_1 and aggr_2.If not.Did it work for both? _______ . Action Off lining aggregates 1. 1. by how much? ________________________ . why? _________________________________________________ 2. but include the “f” (force) switch. 3.Data ONTAP 7. and the conditions necessary to bring it back on line.Did it come back online this time? ________ • Use a df command on aggr_1 to display space usage in MBs. with space reservations. with space reservation. use a df command to display the current space usage of the aggregate aggr_1 in MBs. Step 1. and why? ____________________________ _________________________________________________________ 2. .

issue vol destroy commands on each flexible volume on aggr_1. issue a vol destroy command to remove flexvol_4. o Does it have a special status? _______ o If so.As a result of this activity. • From the CLI on your storage appliance. Did any other volume activity occur as a result of this command? _____________________________ _________________________________________________________ . o Are space reservation currently enabled? ________ o How can you tell? __________________________________________ 4. issue aggr offline command on aggr_1 (aggr_2 should already be offline). issue aggr destroy commands on aggr_1 and aggr_2. . • From the CLI on your storage appliance.If so.If so. Are there any aggregates left on your storage appliance? _______ Remember that traditional volumes are also aggregates. . 5. 2. From the CLI on your storage appliance. Are there any volumes left on your storage appliance? _________ . by how much? ______________ 2. . please execute the following command: Student Guide Do Not Duplicate – October 2004 4-17 . issue vol offline commands on each flexible volume on aggr_1. offline flexvol_4. Remove aggregates aggr_1 and aggr_2 from your storage appliance. which ones? _________________________________ 3. 1. which ones? ___________________________________________ Are there any flexible volumes? ___________________________________________________ 6. Remove all flexible volume on aggr_1.Was there a change in the space usage on aggr_1? _______ .flexvol_4 should have been destroyed. As a final step in this exercise. From the CLI on your storage appliance. how much space is currently being used on aggregate aggr_1? _________ 3. • From the CLI on your storage appliance. • From the CLI on your storage appliance. Removing flexible volumes 1.If so. what is it? _____________________ Use a df command on flexvol_1 displaying its storage usage in MBs with space reservation included as part of the output.Flexible Volume and Aggregate Removal • • Use a vol status command on flexvol_1 and examine its current volume guarantee attribute.

0 Update: Introduction to Aggregates Filer> disk zero spares 4-18 Do Not Duplicate – October 2004 Student Guide .Data ONTAP 7.

Flexible Volume and Aggregate Removal This page intentionally left blank. Student Guide Do Not Duplicate – October 2004 4-19 .

Sign up to vote on this title
UsefulNot useful