Sunteți pe pagina 1din 19

Snapshot Adminstration

Data ONTAP Fundamentals

Objectives
Upon completion of this module you will be
able to

Describe how a Snapshot functions


Recognize and perform Snapshot commands
Set and modify Snapshot options
Create a Snapshot schedule

Snapshot Technology Overview

Key element in WAFL architecture


Read-only copy of file system
Location data only, does not contain data files
Consumes little disk space initially
Supports backup, error recovery, and
commands related to Snapshot technology

Snapshot Technology Overview

Volumes
Snapshot subdirectory accessible to users
Users can access and recover files
Aggregates
5% of aggregate reserved for aggregate
Snapshots
Primary function is to support functions
related to Snapshot technology

Snapshot Overview

Snapshots are scheduled on the Storage Appliance:


Weekly
Nightly
hourly
Administrators can do backups without taking the system offline.

Snapshot Overview

Snapshot Overview

How Disk Space Is Allocated for Flexible


Volumes
Aggregate
Aggregates
Space
Each aggregate has 5% allocated
for Snapshot reserve and 10%
10%
allocated for WAFL.

WAFL Aggregate Space

Flexible Volumes
Each volume has 20% allocated
for Snapshot reserve. The
remainder is used for client data.
Snapshot Reserve
The amount of space allocated for
Snapshot reserve is adjustable. To
use this space for data (not
recommended), you must
manually override the allocation
used for Snapshots.

WAFL Overhead

FlexVol1
80%
.snapshot

90%

FlexVol
Space
95% plus
Aggregate
Snapshot
Reserve

20%

FlexVol#n
80%
.snapshot

20%

5%
(adjustable)

Aggregate Snapshot Reserve

How Disk Space Is Allocated for Traditional


Volumes
Aggregates with a Traditional
Volume
Each aggregate has 10%
allocated for WAFL.

Aggregate
Space
10%

WAFL Overhead
WAFL Traditional Volume
Space

Traditional Volumes
Each volume has 20% allocated
for Snapshot reserve. The
remainder is used for client data.

80%

Snapshot Reserve
The amount of space allocated for
Snapshot reserve is adjustable. To
use this space for data (not
recommended), you must
manually override the allocation
used for Snapshots.

90%

Snapshot Reserve

20%
(adjustable)

Snapshot Commands

snap create [ -A | -V ] [volume_name] [snapshot_name]


snap list [ -A | -V ] [volume_name]
snap delete [ -A | -V ] [volume_name] [snapshot_name]
snap delete [ -A | -V ] -a [volume_name]
snap rename [ -A | -V ] [volume_name] [old_file_name] [new_file_name]
snap reserve [ -A | -V ] [volume_name] [percent]
snap sched [ -A | -V ] [volume_name

[weeks [days [ hours[@list]]]]]

Snapshot Schedule

Snapshot Command Syntax


snap sched [volume_name

[weeks [days [ hours[@list]]]]]

Example: snap sched vol2 0 2 6@8,12,16,20

The snap schedule in the example above would keep the following snapshots for vol2:
No weekly Snapshots
2 nightly Snapshots
6 hourly Snapshots taken at 8:00 AM, 12:00 PM, 4:00 PM and 8:00 PM

snap list Command

Configure Snapshots in FilerView

Snapshot Options
Disable automatic Snapshots:
vol options volname nosnap [on|off]

Make .snapshot directory invisible to clients,


and turn off access to .snapshot directory:
vol options volname nosnapdir [on|off]

Make ~snapshot directory visible to CIFS


clients:
options cifs.show_snapshot [on|off]

Snapshot Options

Snapshot View from a UNIX Client

# pwd
/filer /.snapshot
# ls -l
total 240
drwxrwxrwx
9 root
drwxrwxrwx
9 root
drwxrwxrwx
9 root
drwxrwxrwx
9 root
drwxrwxrwx
9 root
drwxrwxrwx
9 root
drwxrwxrwx
9 root
drwxrwxrwx
9 root
drwxrwxrwx
9 root
drwxrwxrwx
9 root
#

other
other
other
other
other
other
other
other
other
other

12288
12288
12288
12288
12288
12288
12288
12288
12288
12288

Jan
Jan
Jan
Jan
Jan
Jan
Jan
Jan
Jan
Jan

29
29
29
29
29
29
29
29
29
29

16:19
16:19
16:19
16:19
16:19
16:19
16:19
16:19
16:19
16:19

hourly.0
hourly.1
hourly.2
hourly.3
hourly.4
hourly.5
nightly.0
nightly.1
weekly.1
weekly.2

Snapshot View from a Windows Client

Note:
Note:Snapshots
Snapshotsare
arevisible
visible
totoWindows
clients
that
Windows clients thathave
have
File
Manager
configured
File Manager configuredtoto
display
displayhidden
hiddenfiles
files

Topic Review

How does Snapshot function?

When a Snapshot is created, it identifies all the blocks in the active


file system.

What are some of the Snapshot commands?

snap create, snap delete,snap list, snap sched, snap


reserve

What option would you use to manually create an


aggregate Snapshot?
The A option.

What are some of the snapshot options?


vol options volname nosnap
vol options volname nosnapdir
options cifs.show_snapshot

Describe the Snapshot schedule syntax


snap sched vol0 2 6 8@8,12,16,20

Exercises

S-ar putea să vă placă și