- Community Home
- >
- Storage
- >
- Midrange and Enterprise Storage
- >
- HPE EVA Storage
- >
- Re: RSM scripts
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2007 02:32 AM - last edited on 01-18-2015 11:27 PM by Maiko-I
04-20-2007 02:32 AM - last edited on 01-18-2015 11:27 PM by Maiko-I
RSM scripts
Hi there,
I am trying to setup rolling snapshots of a few EVA vdisks. Has anyone got a script to do this already? I am looking at doing a few snapshots a day, and rolling this round day after day.
I can do the snapshot via rsm, but i cant work out how to do a rolling snapshot and how to delete the oldest snapshots.
Thanks,
me
P.S. This thread has been moevd from General to Storage Area Networks (SAN) (Enterprise). - Hp Forum Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2011 03:50 PM
07-13-2011 03:50 PM
Re: RSM scripts
I am also facing the same issue here.. Have you found a solution yet??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2013 06:02 AM
08-02-2013 06:02 AM
Re: RSM scripts
OK
This is one of four rolling Jobs:
You can create a empty Job and paste it with strg+v.
// Replicate host volume(s), and mount to a host.
//
// An e-mail will be sent when the job changes state (completion, failure, etc.).
SetNotificationPolicy ( "name@abc.com", 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-Snap2" )
$snap_vol = SetVariable ( "\\EVA2\SAP\SAPORAC20-E\SAPORAC20-E-Snap2" )
//
// 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 )