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