Sie sind auf Seite 1von 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


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


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


Data ONTAP 7.0 Update: Introduction to Aggregates

Flexible Volume Removal


CLI Command Examples
NetApp> df -A -g -r aggr2
Aggregate total used avail reserved
aggr2 85GB 60GB 25GB 0GB
aggr2/.snapshot 4GB 0GB 4GB 0GB
Aggregate must have no flexible volumes to offline.
NetApp> aggr offline aggr2
aggr offline: Cannot offline aggregate 'aggr2' because it contains
one or more flexible volumes.

NetApp> df -g -r flex_1 15GB flexible volume with 4GB (1GB reserved) used
Filesystem 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 Flexible volume can be off-lined at any time.
.
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.

4-4 Do Not Duplicate – October 2004 Student Guide


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/.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.

NetApp> df -A -g -r aggr2
Aggregate total used avail reserved
aggr2 85GB 82GB 3GB 0GB
aggr2/.snapshot 4GB 0GB 4GB 0GB
Needs it’s +12GB back to come online, but not
NetApp> vol online flex_1 available at this time (guarantee =volume).
vol online: Unable to online volume as space cannot be
guaranteed for the volume.

Student Guide Do Not Duplicate – October 2004 4-5


Data ONTAP 7.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.vol.guarantee.fail:error]:
Space for volume flex_1 is NOT guaranteed
Volume 'flex_1' is now online.

NetApp> vol status flex_1


Volume State Status Options
flex_1 online raid4, flex nosnap=on,
guarantee=volume(disabled)
Containing aggregate: 'aggr2' Like volume=none

NetApp> df -g -r flex_1
Filesystem 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
No additional space, already accounted for
NetApp> df -A -g -r aggr2 flex_1 used space, use space as needed
Aggregate total used avail reserved
aggr2 85GB 82GB 3GB 0GB
aggr2/.snapshot 4GB 0GB 4GB 0GB

4-6 Do Not Duplicate – October 2004 Student Guide


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 offline
Volume 'flex_4' is now offline.
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/.snapshot 4GB 0GB 4GB 0GB

NetApp> vol destroy flex_4 Any flexible volume


destroyed, checks for
Are you sure you want to destroy this volume? y
any (disabled) to see
if can provide space.
Thu Oct 7 20:03:49 PDT [wafl.vol.add.spcGuar:info]:
Space for volume flex_1 is guaranteed.
“Automatically”
Volume 'flex_4' destroyed.

Student Guide Do Not Duplicate – October 2004 4-7


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


Flexible Volume and Aggregate Removal

Aggregate Removal Example

NetApp> aggr status aggr2


Aggr State Status Options
aggr2 online raid4, aggr

Volumes: flex_1, flex_2, flex_3

Plex /aggr2/plex0: online, normal, active


RAID group /aggr2/plex0/rg0: normal

NetApp> vol offline flex_1


Thu Oct 7 20:06:53 PDT [wafl.vvol.offline:info]:
Volume 'flex_1' has been set temporarily offline
Volume 'flex_1' is now offline. c
Offline all flexible
NetApp> vol offline flex_2 volumes with
Thu Oct 7 20:08:47 PDT [wafl.vvol.offline:info]: aggregate
Volume 'flex_2' has been set temporarily offline
Volume 'flex_2' is now offline.

Student Guide Do Not Duplicate – October 2004 4-9


Data ONTAP 7.0 Update: Introduction to Aggregates

Aggregate Removal Example

NetApp> vol offline flex_3


Thu Oct 7 20:08:53 PDT [wafl.vvol.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. d
Destroy all
NetApp> vol destroy flex_2
flexible
Are you sure you want to destroy this volume? y volumes
Volume 'flex_2' destroyed. within
aggregate
NetApp> vol destroy flex_3
Are you sure you want to destroy this volume? y
Volume 'flex_3' destroyed.

4-10 Do Not Duplicate – October 2004 Student Guide


Flexible Volume and Aggregate Removal

Aggregate Removal Example

NetApp> aggr offline aggr2


e
Aggregate 'aggr2' is now offline. Offline successful,
can now destroy
NetApp> aggr destroy aggr2f
Are you sure you want to destroy this aggregate? y
Thu Oct 7 20:15:58 PDT [raid.config.vol.destroyed:info]:
Aggregate 'aggr2' destroyed.

NetApp> aggr status -s Aggregate disk returned


Spare disks
RAID Disk Device HA SHELF BAY CHAN Pool Type RPM Used(MB/blk)Phys(MB/blk)
--------- ------ ------------- ---- ---- ---- ----- --------------
Spare disks for zoned checksum traditional volumes or aggregates only
spare 0a.1 0a 0 1 - SCSI 10000 34000/69632000 34732/71132952
spare 0b.1 0b 0 1 - SCSI 10000 34000/69632000 34732/71132952
spare 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)

Student Guide Do Not Duplicate – October 2004 4-11


Data ONTAP 7.0 Update: Introduction to Aggregates

FilerView Options for Aggregate Removal

 Aggregates ? Manage

4-12 Do Not Duplicate – October 2004 Student Guide


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


Data ONTAP 7.0 Update: Introduction to Aggregates

Exercise Slide
Exercises

4-14 Do Not Duplicate – October 2004 Student Guide


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


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
Off lining aggregates
1.
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? ____________________________
_________________________________________________________

Off lining flexible volumes


2.
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


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?
__________________________________________

Removing flexible volumes


4.
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.

1. Remove aggregates aggr_1 and aggr_2 from your storage appliance.


5.
• 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


Data ONTAP 7.0 Update: Introduction to Aggregates

Filer> disk zero spares

4-18 Do Not Duplicate – October 2004 Student Guide


Flexible Volume and Aggregate Removal

This page intentionally left blank.

Student Guide Do Not Duplicate – October 2004 4-19

Das könnte Ihnen auch gefallen