SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Deleting savesets
Author Message
Post Deleting savesets 
In writing my other question to the group, I realized another that I had
meant to ask.



As part of our nightly backups, we have a repairdisk save coming from a
dozen or so NT4 clients that are left lingering out there on our network.
They save to a single adv_file device, and I'd always meant to make sure
that they're getting cleaned up.



Now that they've been running a couple months, I keep watching the volume
grow in size, and as I expected, it doesn't seem to be cleaning them up as
they expire. I know I can handle this through staging fairly easily,
however, I was wondering if there's a way that a single saveset can be
deleted from a volume. I've seen a few people hint at it, but never an
explanation of how it's accomplished. I have already been able to get a
list of ssids and savetimes from mminfo, but don't know what set of commands
might erase that saveset and free up the space.



If there is no way to do this, I planned on just staging the savesets off to
our sets of daily tapes and letting them die along with the dailys.



Andrew Harkin




____________________
Confidentiality Notice: This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure, or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.

Note: To sign off this list, send a "signoff networker" command via email
should be sent to stan < at > temple.edu

Post Deleting savesets 
Andrew

You use the nsrmm command to achieve this.

Nsrmm -d -y -S SSID

Regards

Richard


-----Original Message-----
From: Legato NetWorker discussion [mailto:NETWORKER < at > LISTMAIL.TEMPLE.EDU] On
Behalf Of Andrew Harkin
Sent: Tuesday, 28 December 2004 7:48 a.m.
To: NETWORKER < at > LISTMAIL.TEMPLE.EDU
Subject: [Networker] Deleting savesets

In writing my other question to the group, I realized another that I had
meant to ask.



As part of our nightly backups, we have a repairdisk save coming from a
dozen or so NT4 clients that are left lingering out there on our network.
They save to a single adv_file device, and I'd always meant to make sure
that they're getting cleaned up.



Now that they've been running a couple months, I keep watching the volume
grow in size, and as I expected, it doesn't seem to be cleaning them up as
they expire. I know I can handle this through staging fairly easily,
however, I was wondering if there's a way that a single saveset can be
deleted from a volume. I've seen a few people hint at it, but never an
explanation of how it's accomplished. I have already been able to get a
list of ssids and savetimes from mminfo, but don't know what set of commands
might erase that saveset and free up the space.



If there is no way to do this, I planned on just staging the savesets off to
our sets of daily tapes and letting them die along with the dailys.



Andrew Harkin




____________________
Confidentiality Notice: This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure, or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.

Note: To sign off this list, send a "signoff networker" command via email
should be sent to stan < at > temple.edu

Note: To sign off this list, send a "signoff networker" command via email
should be sent to stan < at > temple.edu

Post Deleting savesets 
Andrew

You use the nsrmm command to achieve this.

Nsrmm -d -y -S SSID

On a normal volume, this wouldn't affect the data at all, only the
databases for the data. Does this actually delete the data when it's an
adv_file device?

Darren Dunham ddunham < at > taos.com
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >

Note: To sign off this list, send a "signoff networker" command via email
should be sent to stan < at > temple.edu

Post Deleting savesets 
Andrew

You use the nsrmm command to achieve this.

Nsrmm -d -y -S SSID

On a normal volume, this wouldn't affect the data at all, only the
databases for the data. Does this actually delete the data when it's
an adv_file device?

I had seen the -d option, but got the same impression. According to the CLI
guide, it says that it will delete the file indexes and media DB entries,
but not destroy the volume. It's talking about doing it to a whole volume,
but I took it as meaning that on a saveset level, it wouldn't free up the
space on the device.

Andrew Harkin

____________________
Confidentiality Notice: This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure, or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.

Note: To sign off this list, send a "signoff networker" command via email
should be sent to stan < at > temple.edu

Post Deleting savesets 
Darren,

On 28 Dec 2004, at 06:42, Darren Dunham wrote:

Andrew

You use the nsrmm command to achieve this.

Nsrmm -d -y -S SSID

On a normal volume, this wouldn't affect the data at all, only the
databases for the data. Does this actually delete the data when it's
an
adv_file device?

No, it doesn't - not until NetWorker does a volume clean operation or
you explicitly invoke one via:

nsrstage -C -V "Volume Label"

Cheers,

-Preston de Guise.

Never do for yourself that which you can make someone else do for you.

Note: To sign off this list, send a "signoff networker" command via email
should be sent to stan < at > temple.edu

Post Deleting savesets 
Thanks! The combination of those two seems to work perfectly. I'll do some
more testing with it to make sure, but I think I can use this to do exactly
what I wanted in production.


In case anyone wants to do something like this, here's a hacked together
batch file using the ported unix utilites from
http://unxutils.sourceforge.net/. This is for 7.1.2, not sure if there's
any differences in mminfo output between versions. If there are, the gawk
may need to be changed to a different field.


mminfo -av VolumeName | grep " cE " %TEMP%\cleanup.txt | gawk {print$8} >
%TEMP%\cleanup.txt for /F %%s in (%TEMP%\cleanup.txt) do nsrmm -d -y -S %%s
nsrstage -C -V "VolumeName"


The basic function is to retrieve a list of expired savesets from a volume,
delete them, then clean the volume with nsrstage. It's very basic, could
probably be done more efficiently, and I need to add error trapping into it,
but it's a decent starting place.





Darren,

On 28 Dec 2004, at 06:42, Darren Dunham wrote:

Andrew

You use the nsrmm command to achieve this.

Nsrmm -d -y -S SSID

On a normal volume, this wouldn't affect the data at all, only the
databases for the data. Does this actually delete the data when it's
an
adv_file device?

No, it doesn't - not until NetWorker does a volume clean operation or
you explicitly invoke one via:

nsrstage -C -V "Volume Label"

Cheers,

-Preston de Guise.

____________________
Confidentiality Notice: This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure, or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.

Note: To sign off this list, send a "signoff networker" command via email
should be sent to stan < at > temple.edu

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB