Anonymous_User Absent Member.
Absent Member.
937 views

Snapshot rotation scipt

I'm having some undesired effects with my snapshot rotation script.

I would want to use snapshots for easy restores and backups without open
file issues. I want to have the snapshot volumes mounted at all times.
This is my script:

---snipsnip--
mm snap deactivate snap1
mm snap deactivate snap2
mm snap deactivate snap3
mm snap deactivate snap4
mm snap deactivate snap5
# Delete the oldest snapshot
mm snap delete SNAP5

# Rotate snapshots
mm snap rename SNAP4 SNAP5
mm snap rename SNAP3 SNAP4
mm snap rename SNAP2 SNAP3
mm snap rename SNAP1 SNAP2

# Create new snapshot
mm snap create PROGRAMS SNAPSTORE SNAP1

#Activate all snapshots, mount all volumes
mm snap activate snap1
mm snap activate snap2
mm snap activate snap3
mm snap activate snap4
mm snap activate snap5
mount all
--snipsnip--

I want to run this every day and always be able to go back 5 days. This
works fine but i'm getting screwed up volume (volume/pool are named
PROGRAMS) names like CE3A4EB8RM3_AR, PROGRAMS_SV_AR, 8JJHTRDB8RM3_AR. I
would want them to be PROGRAMS_SV, PROGRAMS_SV001, PROGRAMS_SV002, ...
(the higher the numer the older the snapshot)

Creating, deleting, renaming etc... snapshots to troubleshoot this issue
also seemed to make the server unstable, i just got and abend after
running my little script a few times. What's up with snapshots? Should i
keep on trying or just leave them be?

I'm using NW6.5SP5, no other stuff installed on this box.

greets,
Wouter
Labels (2)
0 Likes
2 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Snapshot rotation scipt

Wouter,

It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.

Has your problem been resolved? If not, you might try one of the following options:

- Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
- Check all of the other support tools and options available at
http://support.novell.com.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://support.novell.com/forums)

Be sure to read the forum FAQ about what to expect in the way of responses:
http://support.novell.com/forums/faq_general.html

If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.

Good luck!

Your Novell Product Support Forums Team
http://support.novell.com/forums/


0 Likes
Anonymous_User Absent Member.
Absent Member.

Snapshot rotation scipt

I tried using snapshot with with 6.5 sp6 in production and had to back off.
I had servers freeze, corrupt snapshots and abends. New MM patch avaibale,
I downloaded and installed on test server. Beating it up pretty good, so
far no problems.

> I'm having some undesired effects with my snapshot rotation script.
>
> I would want to use snapshots for easy restores and backups without open
> file issues. I want to have the snapshot volumes mounted at all times.
> This is my script:
>
> ---snipsnip--
> mm snap deactivate snap1
> mm snap deactivate snap2
> mm snap deactivate snap3
> mm snap deactivate snap4
> mm snap deactivate snap5
> # Delete the oldest snapshot
> mm snap delete SNAP5
>
> # Rotate snapshots
> mm snap rename SNAP4 SNAP5
> mm snap rename SNAP3 SNAP4
> mm snap rename SNAP2 SNAP3
> mm snap rename SNAP1 SNAP2
>
> # Create new snapshot
> mm snap create PROGRAMS SNAPSTORE SNAP1
>
> #Activate all snapshots, mount all volumes
> mm snap activate snap1
> mm snap activate snap2
> mm snap activate snap3
> mm snap activate snap4
> mm snap activate snap5
> mount all
> --snipsnip--
>
> I want to run this every day and always be able to go back 5 days. This
> works fine but i'm getting screwed up volume (volume/pool are named
> PROGRAMS) names like CE3A4EB8RM3_AR, PROGRAMS_SV_AR, 8JJHTRDB8RM3_AR. I
> would want them to be PROGRAMS_SV, PROGRAMS_SV001, PROGRAMS_SV002, ...
> (the higher the numer the older the snapshot)
>
> Creating, deleting, renaming etc... snapshots to troubleshoot this issue
> also seemed to make the server unstable, i just got and abend after
> running my little script a few times. What's up with snapshots? Should i
> keep on trying or just leave them be?
>
> I'm using NW6.5SP5, no other stuff installed on this box.
>
> greets,
> Wouter


0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.