19
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

04 Volume Removal v4.1

  • Upload
    olguer

  • View
    194

  • Download
    2

Embed Size (px)

Citation preview

Page 1: 04 Volume Removal v4.1

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

Page 2: 04 Volume Removal v4.1

Data ONTAP 7.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

Page 3: 04 Volume Removal v4.1

Flexible Volume and Aggregate Removal

Aggregate and Flexible Volume Removal

Aggregates cannot be removed until all flexible volumes on the aggregate are removedBoth flexible volumes and aggregates can be removed using CLI commands and FilerView– For flexible volumes use CLI commands:

• vol offline <flexvol-name> andvol 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

Page 4: 04 Volume Removal v4.1

Data ONTAP 7.0 Update: Introduction to Aggregates

Flexible Volume Removal CLI Command Examples

NetApp> df -A -g -r aggr2Aggregate total used avail reservedaggr2 85GB 60GB 25GB 0GBaggr2/.snapshot 4GB 0GB 4GB 0GB

NetApp> aggr offline aggr2aggr offline: Cannot offline aggregate 'aggr2' because it containsone or more flexible volumes.

NetApp> df -g -r flex_1Filesystem total used avail reserved Mounted on

/vol/flex_1/ 12GB 4GB 7GB 1GB /vol/flex_1//vol/flex_1/.snapshot 3GB 0GB 2GB 0GB /vol/flex_1/.snapshot

NetApp> vol offline flex_1.Thu Oct 7 19:27:33 PDT [wafl.vvol.offline:info]: Volume 'flex_1‘has been set temporarily offline Volume 'flex_1' is now offline.

Aggregate must have no flexible volumes to offline.

Flexible volume can be off-lined at any time.

15GB flexible volume with 4GB (1GB reserved) used

4-4 Do Not Duplicate – October 2004 Student Guide

Page 5: 04 Volume Removal v4.1

Flexible Volume and Aggregate Removal

Flexible Volume Removal CLI Command Examples

NetApp> df -A -g -r aggr2Aggregate total used avail reservedaggr2 85GB 47GB 38GB 0GBaggr2/.snapshot 4GB 0GB 4GB 0GB

NetApp> vol create flex_4 aggr2 35gCreation of volume 'flex_4' with size 35g on containing aggregate'aggr2' has completed.

NetApp> df -A -g -r aggr2Aggregate total used avail reservedaggr2 85GB 82GB 3GB 0GBaggr2/.snapshot 4GB 0GB 4GB 0GB

NetApp> vol online flex_1vol online: Unable to online volume as space cannot be guaranteed for the volume.

New flexible volume consumes most ofremainder of the aggregate space

All but used space returned to aggregate when offlineNote reserved returned as well -12 (15-3)GB

Needs it’s +12GB back to come online, but not available at this time (guarantee =volume).

Student Guide Do Not Duplicate – October 2004 4-5

Page 6: 04 Volume Removal v4.1

Data ONTAP 7.0 Update: Introduction to Aggregates

Flexible Volume Removal CLI Command Examples

NetApp> vol online flex_1 -fThu Oct 7 19:47:01 PDT [wafl.vol.guarantee.fail:error]: Space for volume flex_1 is NOT guaranteedVolume 'flex_1' is now online.

NetApp> vol status flex_1Volume State Status Optionsflex_1 online raid4, flex nosnap=on,

guarantee=volume(disabled)Containing aggregate: 'aggr2'

NetApp> df -g -r flex_1Filesystem total used avail reserved Mounted on

/vol/flex_1/ 12GB 4GB 3GB (1GB) /vol/flex_1//vol/flex_1/.snapshot 3GB 0GB 2GB 0GB /vol/flex_1/.snapshot

NetApp> df -A -g -r aggr2Aggregate total used avail reservedaggr2 85GB 82GB 3GB 0GBaggr2/.snapshot 4GB 0GB 4GB 0GB

Force back on line without guarantee=volume

Like volume=none

No additional space, already accounted forflex_1 used space, use space as needed

4-6 Do Not Duplicate – October 2004 Student Guide

Page 7: 04 Volume Removal v4.1

Flexible Volume and Aggregate Removal

Flexible Volume Removal CLI Command Examples

NetApp> vol offline flex_4.Thu Oct 7 19:58:01 PDT [wafl.vvol.offline:info]: Volume 'flex_4' has been set temporarily offlineVolume 'flex_4' is now offline.

NetApp> df -A -g -r aggr2Aggregate total used avail reservedaggr2 85GB 47GB 38GB 0GBaggr2/.snapshot 4GB 0GB 4GB 0GB

NetApp> vol destroy flex_4Are you sure you want to destroy this volume? y

Thu Oct 7 20:03:49 PDT [wafl.vol.add.spcGuar:info]: Space for volume flex_1 is guaranteed.

Volume 'flex_4' destroyed.

flex_4 off-lined returns unused space toaggregate

Any flexible volumedestroyed, checks for any (disabled) to see if can provide space.

“Automatically”

Student Guide Do Not Duplicate – October 2004 4-7

Page 8: 04 Volume Removal v4.1

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

Page 9: 04 Volume Removal v4.1

Flexible Volume and Aggregate Removal

Aggregate Removal Example

NetApp> aggr status aggr2Aggr State Status Optionsaggr2 online raid4, aggr

Volumes: flex_1, flex_2, flex_3

Plex /aggr2/plex0: online, normal, activeRAID group /aggr2/plex0/rg0: normal

NetApp> vol offline flex_1Thu Oct 7 20:06:53 PDT [wafl.vvol.offline:info]: Volume 'flex_1' has been set temporarily offlineVolume 'flex_1' is now offline.

NetApp> vol offline flex_2Thu Oct 7 20:08:47 PDT [wafl.vvol.offline:info]: Volume 'flex_2' has been set temporarily offlineVolume 'flex_2' is now offline.

Offline all flexiblevolumes withaggregate

Student Guide Do Not Duplicate – October 2004 4-9

Page 10: 04 Volume Removal v4.1

Data ONTAP 7.0 Update: Introduction to Aggregates

Aggregate Removal Example

NetApp> vol offline flex_3Thu Oct 7 20:08:53 PDT [wafl.vvol.offline:info]: Volume 'flex_3' has been set temporarily offlineVolume 'flex_3' is now offline.

NetApp> vol destroy flex_1Are you sure you want to destroy this volume? yVolume 'flex_1' destroyed.

NetApp> vol destroy flex_2Are you sure you want to destroy this volume? yVolume 'flex_2' destroyed.

NetApp> vol destroy flex_3Are you sure you want to destroy this volume? yVolume 'flex_3' destroyed.

Destroy allflexiblevolumes withinaggregate

4-10 Do Not Duplicate – October 2004 Student Guide

Page 11: 04 Volume Removal v4.1

Flexible Volume and Aggregate Removal

Aggregate Removal Example

NetApp> aggr offline aggr2Aggregate 'aggr2' is now offline.

NetApp> aggr destroy aggr2Are you sure you want to destroy this aggregate? yThu Oct 7 20:15:58 PDT [raid.config.vol.destroyed:info]: Aggregate 'aggr2' destroyed.

NetApp> aggr status -sSpare disksRAID Disk Device HA SHELF BAY CHAN Pool Type RPM Used(MB/blk)Phys(MB/blk)--------- ------ ------------- ---- ---- ---- ----- --------------Spare disks for zoned checksum traditional volumes or aggregates onlyspare 0a.1 0a 0 1 - SCSI 10000 34000/69632000 34732/71132952spare 0b.1 0b 0 1 - SCSI 10000 34000/69632000 34732/71132952spare 0b.2 0b 0 2 - SCSI 10000 34000/69632000 34732/71132952 (not zeroed)spare 0b.3 0b 0 3 - SCSI 10000 34000/69632000 34732/71132952 (not zeroed)spare 0b.4 0b 0 4 - SCSI 10000 34000/69632000 34732/71132952 (not zeroed)spare 0b.5 0b 0 5 - SCSI 10000 34000/69632000 34732/71132952 (not zeroed)

Offline successful, can now destroy

Aggregate disk returned

Student Guide Do Not Duplicate – October 2004 4-11

Page 12: 04 Volume Removal v4.1

Data ONTAP 7.0 Update: Introduction to Aggregates

FilerView Options for Aggregate Removal

Aggregates ? Manage

4-12 Do Not Duplicate – October 2004 Student Guide

Page 13: 04 Volume Removal v4.1

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

Page 14: 04 Volume Removal v4.1

Data ONTAP 7.0 Update: Introduction to Aggregates

Exercise Slide

Exercises

4-14 Do Not Duplicate – October 2004 Student Guide

Page 15: 04 Volume Removal v4.1

Flexible Volume and Aggregate Removal

Exercise: Flexible Volume and Aggregate Removal

Objective

When you have completed this exercise, you will have performed the following:

• Used CLI commands to remove a flexible volume and an aggregate from a storage appliance.

• Examined the impact of flexible volume removal for pending volume guarantees.

Exercise Overview

During this exercise you will be using CLI commands to remove both flexible volumes and aggregates. You will see what the impact of removing a flexible volume from its containing aggregate has on the aggregates space allocations. Space allocation to pending flexible volumes waiting for volume guarantees will also be seen during the exercise.

Time Estimate

30 minutes

Required Hardware, Software, and Tools

Hardware

• PC platform to host Windows O.S. with VMware running Linux guest O.S. supporting Data ONTP 7.0. simulator

Software

• Data ONTAP 7.0, Unix Host O.S., Client interface software (TeraTerm, Putty, Windows telnet, Windows I.E./FilerView)

Tools

• None.

Miscellaneous

• N/A

Student Guide Do Not Duplicate – October 2004 4-15

Page 16: 04 Volume Removal v4.1

Data ONTAP 7.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. You will see the impact of off-lining a flexible volume at the aggregate level, and the conditions necessary to bring it back on line.

Step Action

1. Off lining aggregates

1. From the CLI on your storage appliance, use the aggr offline command to offline both aggr_1 and aggr_2. - Did it work for both? _______ - If not, which one worked, and why? ____________________________

_________________________________________________________

2. Off lining flexible volumes

1. From the CLI on your storage appliance, use a df command to display the current space usage of the aggregate aggr_1 in MBs.

2. From the CLI on your storage appliance, use the vol offline command to offline flexvol_1. • Again, use a df command on aggr_1 as above. - Was there a change in its space usage? ________ - If so, by how much? ________________________ - Is this amount equal to the size of the volume? __________

3. From the CLI on your storage appliance, 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. 1. From the CLI on your storage appliance, use the vol online command to bring flexvol_1 back on line. - Did it work? _______ - If not, why?

_________________________________________________ 2. From the CLI on your storage appliance, issue a df command to display

the current usage in MBs, with space reservation, of aggr_1. 3. From the CLI on your storage appliance, once again attempt to bring

flexvol_1 back online with the vol online command, but include the “-f” (force) switch.

- Did it come back online this time? ________ • Use a df command on aggr_1 to display space usage in MBs, with

space reservations. o Was there a change in the space being used? _________

4-16 Do Not Duplicate – October 2004 Student Guide

Page 17: 04 Volume Removal v4.1

Flexible Volume and Aggregate Removal

• Use a vol status command on flexvol_1 and examine its current volume guarantee attribute.

o Does it have a special status? _______ o 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.

o Are space reservation currently enabled? ________ o How can you tell?

__________________________________________

4. Removing flexible volumes

1. From the CLI on your storage appliance, offline flexvol_4. - Was there a change in the space usage on aggr_1? _______ - If so, by how much? ______________

2. From the CLI on your storage appliance, issue a vol destroy command to remove flexvol_4. - flexvol_4 should have been destroyed. Did any other volume activity

occur as a result of this command? _____________________________ _________________________________________________________

- As a result of this activity, how much space is currently being used on aggregate aggr_1? _________

3. Remove all flexible volume on aggr_1. • From the CLI on your storage appliance, issue vol offline

commands on each flexible volume on aggr_1. • From the CLI on your storage appliance, issue vol destroy commands

on each flexible volume on aggr_1.

5. 1. Remove aggregates aggr_1 and aggr_2 from your storage appliance. • From the CLI on your storage appliance, issue aggr offline

command on aggr_1 (aggr_2 should already be offline). • From the CLI on your storage appliance, issue aggr destroy

commands on aggr_1 and aggr_2. 2. Are there any aggregates left on your storage appliance? _______

Remember that traditional volumes are also aggregates. - If so, which ones? _________________________________

3. Are there any volumes left on your storage appliance? _________ - If so, which ones?

___________________________________________

- Are there any flexible volumes? ___________________________________________________

6. As a final step in this exercise, please execute the following command:

Student Guide Do Not Duplicate – October 2004 4-17

Page 18: 04 Volume Removal v4.1

Data ONTAP 7.0 Update: Introduction to Aggregates

Filer> disk zero spares

4-18 Do Not Duplicate – October 2004 Student Guide

Page 19: 04 Volume Removal v4.1

Flexible Volume and Aggregate Removal

This page intentionally left blank.

Student Guide Do Not Duplicate – October 2004 4-19