Unsolved

This post is more than 5 years old

2 Posts

468

January 22nd, 2008 15:00

scripts that mirror/clone an existing lun

Anyone has scripts that clone an existing lun? Our DBAs are constantly cloning Oracle databases that span multiple luns. I've read some of the forum posting and understand that Replication Manager might be a better product to use. However, I was also told that Replication Manager currently is not supported under Linux for Itanium 64 bit (we are using HP Integrity Itanium server running Linux AS 4 Update 5). So looks like we cannot use Replication Manager and have to roll our own scripts.

I'm looking for something as a starting point. It does not have to be fancy and we are going to manually ask the DBA to either shutdown Oracle prior to fracturing the clone.

BTW, I tried to do this by hand last week for the first time (cloning a few luns). Selecting the destination lun for cloning takes a long time - typically at least 2 or 3 minutes. Is this normal or am I doing something wrong? This is part of the reason we are looking to automate through scripting.


Cheers,

Derek

11 Legend

 • 

20.4K Posts

 • 

87.4K Points

January 22nd, 2008 20:00

hey dl,

yeah ..doing cloning through Navisphere is ssoooo slow :) , here are few commands that can get you started:

to create a clone group and add lun 5 as our clone source

NaviSeccli.exe -user admin -password secretpassword -scope 0 -address  snapview -createclonegroup -name sourceLun5totargetLun7 -luns 5 -o


to add target lun 7 and begin clone process

NaviSeccli.exe -user admin -password secretpassword -scope 0 -address  snapview -addclone -name sourceLun5totargetLun7 -luns 7


once state of clones changes to synchronized, put Oracle in hot backup mode, make sure state is still synchronized and issue fracture

NaviSeccli.exe -user admin -password secretpassword -scope 0 -address  snapview -fractureclone -name sourceLun5totargetLun7 -cloneid 0100000000000000 -o


take Oracle out of hot backup mode.


you can configure password file so you don't have to have passwords in your scripts.

check out document called "EMC SnapView Command line interfaces"
No Events found!

Top