If you have snapdrive installed, then you can use the snapdrive CLI to create the snap from the host.
The other options are rsh or ssh to the filer to create the snapshot.
Cheers
Matt
----- Original Message ----- From: owner-toasters@mathworks.com owner-toasters@mathworks.com To: Stephen C. Losen scl@sasha.acc.virginia.edu Cc: toasters@mathworks.com toasters@mathworks.com Sent: Tue Aug 05 17:38:00 2008 Subject: RE: Automatically delete snapshots based on number and not space availability
Everyone is assuming that the NetApp will be taking the snapshots, which is incorrect. I must do the snapshots from the host side in order to quiesce the filesystem (actually, the database). My databases run on LUNs over FCP. I do not want to try and coordinate the databases on the host being quiesced at the same time the filer will automatically take the snapshot.
Daniel
-----Original Message----- From: Stephen C. Losen [mailto:scl@sasha.acc.Virginia.EDU] Sent: Tuesday, August 05, 2008 11:01 AM To: Daniel Keisling Cc: toasters@mathworks.com Subject: Re: Automatically delete snapshots based on number and not space availability
Greetings,
I take a daily snapshots (named ss-YYYYMMDDHHmm) of several volumes on my filers. I would like to automatically delete the oldest snapshot (assuming it's not busy) when a certain number of snapshots are
present
in the volume (ie, only keep the latest 3 snapshots). Is this
possible?
If not, does anyone have any scripts where it can be done from a host?
TIA,
Daniel
Any reason you can't use the "snap sched" command for this?
snap sched volname 0 3 0
This takes a snapshot at midnight and keeps at most 3.
If midnight isn't suitable you can configure the hourly option to take one hourly per day and keep 3. Suppose you want 18:00
snap sched volname 0 0 3@18
Steve Losen scl@virginia.edu phone: 434-924-0640
University of Virginia ITC Unix Support
______________________________________________________________________ This email transmission and any documents, files or previous email messages attached to it may contain information that is confidential or legally privileged. If you are not the intended recipient or a person responsible for delivering this transmission to the intended recipient, you are hereby notified that you must not read this transmission and that any disclosure, copying, printing, distribution or use of this transmission is strictly prohibited. If you have received this transmission in error, please immediately notify the sender by telephone or return email and delete the original transmission and its attachments without reading or saving in any manner.
_____________________________________________________________ This e-mail (including all attachments) is confidential and may be privileged. It is for the exclusive use of the addressee only. If you are not the addressee, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at help@generalatlantic.com mailto:help@generalatlantic.com. Thank You.
I create snapshots all day long using snapdrive.
My question is how to automatically delete snapshots based on the _number_ of snapshots and not space availability (which is what the autodelete setting uses), when those snapshots are taking from the host (ie, snapdrive or regular rsh/ssh command).
Daniel
-----Original Message----- From: Davies,Matt [mailto:MDAVIES@generalatlantic.com] Sent: Tuesday, August 05, 2008 11:51 AM To: Daniel Keisling; scl@sasha.acc.virginia.edu Cc: toasters@mathworks.com Subject: Re: Automatically delete snapshots based on number and not space availability
If you have snapdrive installed, then you can use the snapdrive CLI to create the snap from the host.
The other options are rsh or ssh to the filer to create the snapshot.
Cheers
Matt
----- Original Message ----- From: owner-toasters@mathworks.com owner-toasters@mathworks.com To: Stephen C. Losen scl@sasha.acc.virginia.edu Cc: toasters@mathworks.com toasters@mathworks.com Sent: Tue Aug 05 17:38:00 2008 Subject: RE: Automatically delete snapshots based on number and not space availability
Everyone is assuming that the NetApp will be taking the snapshots, which is incorrect. I must do the snapshots from the host side in order to quiesce the filesystem (actually, the database). My databases run on LUNs over FCP. I do not want to try and coordinate the databases on the host being quiesced at the same time the filer will automatically take the snapshot.
Daniel
-----Original Message----- From: Stephen C. Losen [mailto:scl@sasha.acc.Virginia.EDU] Sent: Tuesday, August 05, 2008 11:01 AM To: Daniel Keisling Cc: toasters@mathworks.com Subject: Re: Automatically delete snapshots based on number and not space availability
Greetings,
I take a daily snapshots (named ss-YYYYMMDDHHmm) of several volumes on my filers. I would like to automatically delete the oldest snapshot (assuming it's not busy) when a certain number of snapshots are
present
in the volume (ie, only keep the latest 3 snapshots). Is this
possible?
If not, does anyone have any scripts where it can be done from a host?
TIA,
Daniel
Any reason you can't use the "snap sched" command for this?
snap sched volname 0 3 0
This takes a snapshot at midnight and keeps at most 3.
If midnight isn't suitable you can configure the hourly option to take one hourly per day and keep 3. Suppose you want 18:00
snap sched volname 0 0 3@18
Steve Losen scl@virginia.edu phone: 434-924-0640
University of Virginia ITC Unix Support
______________________________________________________________________ This email transmission and any documents, files or previous email messages attached to it may contain information that is confidential or legally privileged. If you are not the intended recipient or a person responsible for delivering this transmission to the intended recipient, you are hereby notified that you must not read this transmission and that any disclosure, copying, printing, distribution or use of this transmission is strictly prohibited. If you have received this transmission in error, please immediately notify the sender by telephone or return email and delete the original transmission and its attachments without reading or saving in any manner.
_____________________________________________________________ This e-mail (including all attachments) is confidential and may be privileged. It is for the exclusive use of the addressee only. If you are not the addressee, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at help@generalatlantic.com mailto:help@generalatlantic.com. Thank You.
______________________________________________________________________ This email transmission and any documents, files or previous email messages attached to it may contain information that is confidential or legally privileged. If you are not the intended recipient or a person responsible for delivering this transmission to the intended recipient, you are hereby notified that you must not read this transmission and that any disclosure, copying, printing, distribution or use of this transmission is strictly prohibited. If you have received this transmission in error, please immediately notify the sender by telephone or return email and delete the original transmission and its attachments without reading or saving in any manner.
The way we do it is by the way we order them:
Pseudo logic:
sdcli snap delete snap.3 sdcli snap rename snap.2 snap.3 sdcli snap rename snap.1 snap.2 sdcli snap rename snap.0 snap.1 sdcli snap create snap.0
-----Original Message----- From: owner-toasters@mathworks.com [mailto:owner-toasters@mathworks.com] On Behalf Of Daniel Keisling Sent: Tuesday, August 05, 2008 12:55 PM To: Davies,Matt; scl@sasha.acc.virginia.edu Cc: toasters@mathworks.com Subject: RE: Automatically delete snapshots based on number and not space availability
I create snapshots all day long using snapdrive.
My question is how to automatically delete snapshots based on the _number_ of snapshots and not space availability (which is what the autodelete setting uses), when those snapshots are taking from the host (ie, snapdrive or regular rsh/ssh command).
Daniel
-----Original Message----- From: Davies,Matt [mailto:MDAVIES@generalatlantic.com] Sent: Tuesday, August 05, 2008 11:51 AM To: Daniel Keisling; scl@sasha.acc.virginia.edu Cc: toasters@mathworks.com Subject: Re: Automatically delete snapshots based on number and not space availability
If you have snapdrive installed, then you can use the snapdrive CLI to create the snap from the host.
The other options are rsh or ssh to the filer to create the snapshot.
Cheers
Matt
----- Original Message ----- From: owner-toasters@mathworks.com owner-toasters@mathworks.com To: Stephen C. Losen scl@sasha.acc.virginia.edu Cc: toasters@mathworks.com toasters@mathworks.com Sent: Tue Aug 05 17:38:00 2008 Subject: RE: Automatically delete snapshots based on number and not space availability
Everyone is assuming that the NetApp will be taking the snapshots, which is incorrect. I must do the snapshots from the host side in order to quiesce the filesystem (actually, the database). My databases run on LUNs over FCP. I do not want to try and coordinate the databases on the host being quiesced at the same time the filer will automatically take the snapshot.
Daniel
-----Original Message----- From: Stephen C. Losen [mailto:scl@sasha.acc.Virginia.EDU] Sent: Tuesday, August 05, 2008 11:01 AM To: Daniel Keisling Cc: toasters@mathworks.com Subject: Re: Automatically delete snapshots based on number and not space availability
Greetings,
I take a daily snapshots (named ss-YYYYMMDDHHmm) of several volumes on my filers. I would like to automatically delete the oldest snapshot (assuming it's not busy) when a certain number of snapshots are
present
in the volume (ie, only keep the latest 3 snapshots). Is this
possible?
If not, does anyone have any scripts where it can be done from a host?
TIA,
Daniel
Any reason you can't use the "snap sched" command for this?
snap sched volname 0 3 0
This takes a snapshot at midnight and keeps at most 3.
If midnight isn't suitable you can configure the hourly option to take one hourly per day and keep 3. Suppose you want 18:00
snap sched volname 0 0 3@18
Steve Losen scl@virginia.edu phone: 434-924-0640
University of Virginia ITC Unix Support
______________________________________________________________________ This email transmission and any documents, files or previous email messages attached to it may contain information that is confidential or legally privileged. If you are not the intended recipient or a person responsible for delivering this transmission to the intended recipient, you are hereby notified that you must not read this transmission and that any disclosure, copying, printing, distribution or use of this transmission is strictly prohibited. If you have received this transmission in error, please immediately notify the sender by telephone or return email and delete the original transmission and its attachments without reading or saving in any manner.
_____________________________________________________________ This e-mail (including all attachments) is confidential and may be privileged. It is for the exclusive use of the addressee only. If you are not the addressee, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at help@generalatlantic.com mailto:help@generalatlantic.com. Thank You.
______________________________________________________________________ This email transmission and any documents, files or previous email messages attached to it may contain information that is confidential or legally privileged. If you are not the intended recipient or a person responsible for delivering this transmission to the intended recipient, you are hereby notified that you must not read this transmission and that any disclosure, copying, printing, distribution or use of this transmission is strictly prohibited. If you have received this transmission in error, please immediately notify the sender by telephone or return email and delete the original transmission and its attachments without reading or saving in any manner.