HPE EVA Storage

Create EVA P6500 RSM Snapshot

 
jayhal
Visitor

Create EVA P6500 RSM Snapshot

Hello All,

I am trying to create a RSM script which will create a snapshot of a EVA Vdisk everyday and then delete old snapshots after 7 days. Since I am new to this, Can anyone please share any template if possible?

Many thanks!

Jay

2 REPLIES 2
giladzzz
Honored Contributor

Re: Create EVA P6500 RSM Snapshot

Hi

its built into the RSM if you choose a disk from RSM and right click it  RSM can 

create this job automaticly

Regards

 

Cali
Honored Contributor

Re: Create EVA P6500 RSM Snapshot

Hi,

here is a sample from me, that i used.
I plan 4 of this Scripts with Snap1 to Snap4

// An e-mail will be sent when the job changes state (completion, failure, etc.).                        
SetNotificationPolicy ( "evamgmt@somewhere.de", "admin@somewhere.de", JOB_STARTED_OR_STOPPED )
//                        
// Assign some variables that will be used in this job.                        
$source_eva = SetVariable ( "EVA2" )
$source_vol = SetVariable ( "\\EVA2\SAP\SAPORAC20-E" )
$source_host = SetVariable ( "saporac20" )
$snap_volname = SetVariable ( "SAPORAC20-E-Snap1" )
$snap_vol = SetVariable ( "\\EVA2\SAP\SAPORAC20-E\SAPORAC20-E-Snap1" )
//                        
// Validate that resources are as expected.                        
ValidateStorageSystem ( $source_eva ) onerror goto E1:
ValidateStorageVolume ( $source_vol ) onerror goto E1:
ValidateHost ( $source_host ) onerror goto E1:
E2: ValidateStorageVolume ( $snap_vol ) onerror goto E3:
//                     
// Delete old Snapshot                     
DeleteStorageVolume ( $snap_vol ) onerror goto E2:
//                     
// Make Snapshot                     
E3: ValidateSnapshotStorageVolume ( $source_vol ) onerror goto E1:
//                        
// Suspend the host application.                        
DO {
Launch ( $source_host, "e:\snap\Snap-Pre.bat", "", WAIT, "0" )
$repl1 = SnapshotStorageVolume ( $source_vol, DEMAND_ALLOCATED, SAME, $snap_volname, NOWAIT ) onerror goto E1:
} ALWAYS {
// Resume the host application                     
Launch ( $source_host, "e:\snap\Snap-Post.bat", "", WAIT, "0" )
}
//                        
//                     
// Wait for replicated storage to appear.                        
WaitForStorageVolumeDiscovery ( $repl1 ) onerror goto E1:
//                        
Exit ( SUCCESS )
//                        
// Failure exit - no rollback needed.                        
E1: Exit ( FAILURE )


======================
I'm not an HPE employee, so I can be wrong.