NetApp Snapshot Management (Create, List, Reserve, Schedule)

Обновлено 30.12.2014

What is a NetApp Snapshot ?

A NetApp Snapshot is a “Point in time” data copy using software which uses minimal storage space and does not affect performance.

This Netapp HowTo is useful for the following

  • NetApp Show Snapshots on volume
  • NetApp Create Snapshot
  • Schedule NetApp Snapshot
  • Show / Set Snapshot space in volume

NetApp Create Snapshot

To create a snapshot called “cifs1-snap” manually enter:

1
netapp> snap create cifs1 cifs1-snap

We can confirm this snapshot has been created with:

1
2
3
4
5
6
7
8
9
10
11
12
netapp01> snap list cifs1
Volume cifs1
working...

  %/used       %/total  date          name
----------  ----------  ------------  --------
 28% (28%)    0% ( 0%)  May 19 17:09  cifs1-snap
 44% (29%)    0% ( 0%)  May 19 16:00  hourly.0
 54% (29%)    0% ( 0%)  May 19 12:00  hourly.1
 61% (29%)    0% ( 0%)  May 19 08:00  hourly.2
 67% (30%)    0% ( 0%)  May 05 20:00  hourly.3
 72% (35%)    0% ( 0%)  May 05 16:14  hourly.4

Schedule NetApp Snapshot

To schedule a NetApp snapshot enter:

1
snap sched volname schedule

This command is a little complicated, the following example will create a snapshot backup schedule for the volume “cifs1” for 4 weekly, 7 daily and 10 hourly snapshot backups. The numbers after the @ sign represent the time of the hourly snapshot, so in this example a snapshot would be taken every hour from 0900 to 1800 hours.

Example:

1
netapp> snap sched cifs1 4 7 10@9,10,11,12,13,14,15,16,17,18

NetApp Show Snap Reserve Space

To show the snapshot reserve space for a volume enter:

1
2
netapp> snap reserve cifs1
Volume cifs1: current snapshot reserve is 5% or 25600 k-bytes.

NetApp Set Snapshot Reserve Size

To set the snapshot reserve space to 10% enter:

1
netapp> snap reserve cifs1 10

You can confirm the snapshot size change using:

1
2
3
netapp> snap reserve cifs1 10
netapp> snap reserve cifs1
Volume cifs1: current snapshot reserve is 10% or 51200 k-bytes.

NetApp Show Snapshots

To show NetApp snapshots enter the following command:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
netapp01> snap list
Volume vol0
working...

  %/used       %/total  date          name
----------  ----------  ------------  --------
  2% ( 2%)    0% ( 0%)  May 19 16:00  hourly.0
  6% ( 5%)    1% ( 1%)  May 19 12:00  hourly.1
 10% ( 5%)    2% ( 1%)  May 19 08:00  hourly.2
 20% (12%)    5% ( 3%)  May 05 20:00  hourly.3
 23% ( 5%)    6% ( 1%)  May 05 16:01  hourly.4
 26% ( 5%)    6% ( 1%)  May 05 12:00  hourly.5
 33% (12%)    9% ( 2%)  Apr 30 00:00  nightly.0
 35% ( 4%)   10% ( 1%)  Apr 29 00:00  nightly.1

Volume cifs1
working...

  %/used       %/total  date          name
----------  ----------  ------------  --------
 28% (28%)    0% ( 0%)  May 19 16:00  hourly.0
 44% (29%)    0% ( 0%)  May 19 12:00  hourly.1
 54% (29%)    0% ( 0%)  May 19 08:00  hourly.2
 62% (30%)    0% ( 0%)  May 05 20:00  hourly.3
 68% (35%)    0% ( 0%)  May 05 16:14  hourly.4

The above shows the snapshots for the volume vol1 and cifs1.

Автор - Сёмин Иван

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *