- Sun Storage Virtual Tape Library VTL User Guide
Replication
96267 • G Appendix A VTL command line reference 203
Promoteareplica
iscon promotereplica -s <server-name> -v <vdevid> | -S <target-name> -V
<replicaid>
[-u <username> -p <password>] [-U <target-username> -P <target-password>] [-
f]
[-X <rpc-timeout>]
iscon promotereplica --server-name=<server-name> --vdevid=<vdevid> |
--target-name=<target-name> --replicaid=<replicaid> [--server-
username=<username>
--server-password=<password>] [--target-username=<target-username>
--target-password=<target-password>] [--force] [--rpc-timeout=<rpc-timeout>]
Description:
Thiscomma n d allowsyoutopromotea replicatoaregularvirtualdeviceifthe
primarydiskisavailableandthereplicadiskisina validstate.
SpecifyeithertheprimaryserverandthesourcevirtualtapeIDorthetargetserver
andthetapereplicaID.Theusername
andpasswordmustbepr ovi de dforboth
servers,iftheserverswerenotre gistered usingthelogincommand.
‐v(‐‐vdevid)istheIDofthesourcevirtualtapeand‐V(‐‐replicaid)istheIDofthe
tapereplica.
Ifthesourcevirtualtapeisstillvalidandavailable,and
thetapereplicaisinan
invalidstate,thetapereplicacan bepromotedwiththeforceop ti on. But,itis
recommendedtosynchronizethetapereplicawiththesourcevirtualtapefirst
unlessthesourc evirtualtapeisphysicallydefectiveorunavailable.
‐f(‐‐force)isanoptionto enforce
thepromotionifthesourcevi r t u altapeisno
longeravailableorthetapereplicaisin invalidstate,ifyouaresurethedataon the
tapereplicaisuseful.
‐X(‐‐rpc‐timeout)isanoptiontospecifyanumberbetween1and30000inseconds
forthe
RPCtimeout.Thesystemwillretrythecommandfortheamountoftime
specifiedif theserverdoesnotrespond.ThedefaultRPCtimeoutis30seconds.
Removereplication
iscon removereplication -s <server-name> -v <vdevid> | -S <target-name> -V
<replicaid>
[-u <username> -p <password>] [-U <target-username> -P <target-password>] [-
f]
[-X <rpc-timeout>]
iscon removereplication --server-name=<server-name> --vdevid=<vdevid> |
--target-name=<target-name> --replicaid=<replicaid> [--server-
username=<username>