by Vijayababu Dandi
Utility for creating pool snapshots on a particular Pool in regular intervals on OES2 Linux Server.
- Perl must be installed and running on the Linux server where this utility will be used.
- NSS must be installed to get the VFS support.
(The SDK for this API set can be downloaded from http://developer.novell.com/wiki/index.php/Virtual_File_Services_for_NetWare.)
This tool is used to create snapshots on a particular pool in regular intervals. 15 snapshots on OES 2 Linux on any given stored-on partition. This utility will always maintains 15 snapshots on the server. To create a 16th snapshot it will delete the first created snapshot on the server. It always maintains the maximum of 15 snapshots.
It uses Virtual File Services (Originally called Virtual File Services for NetWare) to create the snapshots.
This utility generates the log file(/tmp/snap_logs). Where user can find the snapshot created time.
How to use the utility:
perl snashotautomation.pl --help
Use of uninitialized value in concatenation (.) or string at snashotautomation.pl line 24.
Usage: -t <periodicity time> -s <memory size> -D <device> -P <pool name> -n <name of snapshots> -N <max no of snapshots>
-h | --help
-t | --time Periodicity of snapshots( In seconds )
-s | --size Size to allocate for pool snapshot (in MB)
-D | --device Device on which the partition need to be created (Eg : sda,sdb..)
-n | --name Name of the pool snapshot ( Dont put any special characters )
-N | --noofsnapshots Maximum number of snapshots ( 15 snapshots on OES 2 Linux on any given stored-on partition )
-P | --pool Pool Name ( on which pool needs to take snapshot eg: POOL1, POOL2 ...)
Run "perl snashotautomation.pl -t 12 -s 10 -D sdb -P POOL1 -n snap -N 15" from the terminal.
If you run above command it takes snapshot on POOL1 with name snap<time in seconds> and uses sdb partition with size 10MB.It maintains maximum 15 snapshots on the partition.
And creates a /tmp/snap_logs file. From where the user can find the snapshot created time.
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.