Snapshot Automation

0 Likes

by Vijayababu Dandi



Utility for creating pool snapshots on a particular Pool in regular intervals on OES2 Linux Server.



Prerequisites




  1. Perl must be installed and running on the Linux server where this utility will be used.




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>
Options:
-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 ...)






Usage:



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.

Labels:

Collateral
Comment List
Anonymous
Related Discussions
Recommended