HPE Storage Users Group

A Storage Administrator Community




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: find rmv snapshot and present to host script examples
PostPosted: Tue Dec 10, 2013 4:29 pm 

Joined: Tue Dec 10, 2013 4:05 pm
Posts: 1
Hi,

Ideally RMV would have a scriptable create snap and mount option but alas it does not have the mount capability. So to save me re-inventing the wheel. Does anyone have any (windows based) scripting examples that would search for the most current copy of an RMV snapshot and then present it to a host?

run backup – pre exec script…
showvv -showcols Name,CreationTime -p -copyof r.p.e.rock.16 -sortcol 1
showvv -showcols Name,CreationTime -p -copyof r.p.e.rock.17 -sortcol 1

createvlun rmv_ccd41e2a4b8d0c3c8e36efb28 0 n.p.e.nextman1
createvlun rmv_c20b051b5a8d0c3c8e36efb28 1 n.p.e.nextman1

diskpart
rescan
list disk
select disk 1
attributes disk clear readonly
online disk
select disk 2
attributes disk clear readonly
online disk
select volume 3
assign mount=c:\Data-1
select volume 4
assign mount=c:\Data-2

run backup to tape
run backup – post exec script…
diskpart
select disk 1
offline disk
select disk 2
offline disk

showvlun -host n.p.e.nextman1 -v rmv*

removevlun rmv_ccd41e2a4b8d0c3c8e36efb28 0 n.p.e.nextman1
removevlun rmv_c20b051b5a8d0c3c8e36efb28 1 n.p.e.nextman1

rescan

exit



Regards Richard


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 


Who is online

Users browsing this forum: No registered users and 32 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group | DVGFX2 by: Matt