HPE Storage Users Group https://3parug.net/ |
|
find rmv snapshot and present to host script examples https://3parug.net/viewtopic.php?f=17&t=517 |
Page 1 of 1 |
Author: | harrisr [ Tue Dec 10, 2013 4:29 pm ] |
Post subject: | find rmv snapshot and present to host script examples |
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 |
Page 1 of 1 | All times are UTC - 5 hours |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |