post image

OES Linux NSS Snapshot Automation Command Line SLES 10

Apr 21, 2009 Gethugothemes

<img style=“display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 100px; height: 100px;” src=“http://4.bp.blogspot.com/_kYEysMxY62I/ScwLSYKM39I/AAAAAAAADFY/YmyvnYDDHcY/s200/avatar2.jpg" border=“0” alt=““id=“BLOGGER_PHOTO_ID_5317637670368501714” />

In the traditional NetWare kernel, we were used to running automated snapshots to utilize as a business continuity feature. We have been migrating over to OES Linux, and wanted to do the same thing. The problem is that there is no ‘supported’ way to automate this, and you are left to do things manually via iManager.

After doing some research, I found that it is possible to do via perl scripts using Virtual File Services. I found several Cool Solutions that address this problem posted by Dean Giles.

http://www.novell.com/coolsolutions/author/3406.html

You can add, remove, activate, and deactivate pool snapshots utilizing the perl scripts listed there. He gives examples with each script, so it is pretty straightforward. The issue I had is with the ‘FREE_SPACE_DRIVE_ID’ variable, since we are running a RAID array.

Here is an example of the command I used:

perl linuxAddPoolSnapshot.pl /dev/evms/DPOOL1 cciss/c0d0 15000 snappy01


To mount an NSS volume from a terminal command line, enter:

mount -t nssvol volname mount_point -o name=volname,ns=long



Now I am in the process of automating this with a script and a cron job.

Similar Posts

OpenBSD PF and OpenDNS

At home, I needed a way to prevent anything but OpenDNS from being used for DNS, and needed a rule that would do it in OpenBSD PF. Install and Configure First off, to setup an OpenDNS client on OpenBSD, install the ddclient package via pkg_add ddclient