Vous êtes sur la page 1sur 5

Time finder Clone

Requirements for Lab Session:


To perform clone operations two standard devices or bcv devices are required.
Sun7uction Host (sun7) and Bacup Host (sun!) s"ould act as source and tar#et
$"ec if an% devices are assi#ned to Host.
Sun7& s%minq ' more
Sun!& s%minq ' more
(f devices are not assi#ned update t"e vcm database wit" new devices.
$"ec t"e ports
Sun7& s%mcf# ) sid *77 list ) connections
+ow assi#n t"e devices to production "ost(sun7).
Sun7& s%mmas ) sid *77 add dev ,,,a ) awn sun7-port, ) p, )dir .c
Sun7& s%mmas ) sid *77 add dev ,,,a ) awn sun7-port, ) p, )dir *c
Sun7& s%mmas ) sid *77 add dev ,,,a ) awn sun7-port, ) p, )dir ./c
Sun7& s%mmas ) sid *77 add dev ,,,a ) awn sun7-port, ) p, )dir .0c
+ow assi#n t"e devices to bacup "ost(sun!).
Sun7& s%mmas ) sid *77 add dev ,,,b ) awn sun!-port, ) p, )dir .c
Sun7& s%mmas ) sid *77 add dev ,,,b ) awn sun!-port, ) p, )dir *c
Sun7& s%mmas ) sid *77 add dev ,,,b ) awn sun!-port, ) p, )dir ./c
Sun7& s%mmas ) sid *77 add dev ,,,b ) awn sun!-port, ) p, )dir .0c

Refres" t"e database
Sun7& s%mmas refres"
1pdate s%mapi2db.bin
Sun7& s%mcf# discover
$"ec if devices are assi#ned to "ost.
Sun7& s%minq ' more
Sun7& s%mpd list
Sun7& s%mmasdb list database
$reate a device #roup
Sun7& s%md# create clone#rp ) t%pe re#ular
3dd devices to t"e device #roup
Sun7& s%mld )# clone#rp add dev ,,,a
Sun7& s%mld )# clone#rp add dev ,,,b
To (dentif% t"e Lo#ical 4evice name of clone source and tar#et
Sun7& s%mld )# clone#rp list (or) s%mld )"
$"ec t"e status of t"e controller
Sun7& v5dmpadm list ctlr

$"ec t"e status of t"e controller (f disabled enable it.
Sun7# vxdmpadm enable ctlr c3
6ind t"e device and label it
6ormat
Label
7uit
Imp Notes: Identify the device and enter the device no. and label it.
Scan for t"e dis
Sun7& v5dis scandiss
List t"e diss
Sun7& v5dis list
(nitiali8e t"e dis9 in our e5ample t"e enclosure name #iven to our device is emc2,..
Sun7& v5dis setup )i emc2,.
+ow create :olume ;ana#er 4is (vmdis) b% creatin# dis #roup.
Sun7& v5d# init cloned# dis7 < emc2,.
$reate a volume on meta devices
Sun7& v5assist )# cloned# mae vol,7 .,,m
List t"e dis #roups
Sun7& v5dis )o alld#s list
List t"e volume
Sun7& v5print )"
$reate file s%stem on t"e volume
Sun7& newfs -dev-v5-rds-cloned#-vol,7
$reate a mount point
Sun7& mdir -clone.
;ount t"e volume
Sun7& mount -dev-v5-ds-cloned#-vol,7-clone.
Sun7& cd -clone.
3dd t"e data
Sun7& cp )r -etc-r= .
:erif% t"e data
Sun7& ls
>n sun7 "ost create a differential clone session
Sun7& s%mclone )# clone#rp create 4?:,,,. s%m ld 4?:,,* ) precop%
@ differential
$"ec t"e status of clone
Sun7& s%mclone )# clone#rp quer%
List t"e number of protected tracs on t"e source volume
Sun7& s%mld )# clone#rp )"eld )v list
To activate t"e clone session
Sun7& s%mclone )# clone#rp activate 4?:,,,. s%m ld 4?:,,* ) consistent
List t"e number of protected tracs on t"e source volume
Sun7& s%mld )# clone#rp )"eld )v list
ON Backup Host (sun!
To (mport t"e dis #roup cloned#
Sun!& v5dis scandiss
Sun!& v5dis list
Sun!& v5dis )o alld#s list
(mport t"e dis #roup
Sun!& v5d# )$ import cloned#
Start t"e volume
Sun!& v5vol )# cloned# startall
$reate ;ount Aoint
Sun!& mdir clone*
;ount t"e volume
Sun!& mount -dev-v5-ds-cloned#-vol,7 -clone*
Sun!& cd clone*
$"ec t"e data
Sun!& ls
Imp Notes:
". The data entered in the sun#host should be seen in the backup host.
$. The tar%et device can be mounted &as lon% as the clone session is
activated.
'ecreate the clone session
To incrementall% cop% t"e c"an#es made on data in t"e production volume9 recreate
and activate t"e clone session. Recreate terminates and create new session.
3dd data on production "ost sun7

$"ec if t"e volume is mounted
Sun7&df )

.) (f volume is mounted9 c"ec AB4
Sun7&pwd

2) (f AB4 is clone.9add some data
Sun7&cp )r -etc-t= .
Sun7&ls
On the backup host sun
1nmount t"e volume
Sun!&cd
Sun!&umount -clone*
4eport t"e volume
Sun!&v5d# )$ deport cloned#
On the production host sun#
Recreate t"e clone session
Sun7&s%mclone )# clone#rp recreate 4?:,,. s%m ld 4?:,,*

3ctivate t"e session
Sun7&s%mclone )# clone#rp activate 4?:,,. s%m ld 4?:,,*
On the backup host sun
(mport t"e dis #roup
Sun!&v5d# import cloned#

Start t"e volume
Sun!&v5vol )# cloned# startall
;ount t"e volume
Sun!&mount -dev-v5-ds-cloned#-vol,7 -clone*
Sun!&cd -clone*
Sun!&ls
(mp +ote: T"e updated data in t"e production volume s"ould be seen on t"e bac up
"ost
'estore date from clone to production volume
On the production host sun#

$"ec if t"e volume is mounted
Sun7&df )

(f volume is mounted9 c"ec AB4
Sun7&pwd

(f AB4 is clone.9 delete entire data
Sun7&rm )r = .
Sun7&ls

1nmount t"e volume
Sun7&cd
Sun7&umount -clone.
4eport t"e dis#roup(volume)
Sun7&v5d# )$ deport clond#
On the backup host sun
3dd some data on t"e clone
Sun!&cp )r -etc-s= .
1nmount t"e volume
Sun!&cd
Sun!&umount -clone*
4eport t"e volume
Sun!&v5d# )$ deport cloned#
On the production host sun#
Restore from clone
Sun7&s%mclone )# clone#rp restore 4?:,,. s%m ld 4?:,,* )nop
$"ec t"e status of clone
Sun7&s%mclone )# clone#rp quer%
(mport t"e production volume
Sun7&v5d# import cloned#

Start t"e volume
Sun7&v5vol )# cloned# startall
;ount t"e volume
Sun7&mount -dev-v5-ds-cloned#-vol,7 -clone.
Sun7&cd -clone.
Sun7&ls
If the data is seen on the production host the restore operation is
successful. The data added by the backup host should also be visible

Clean up
$"ec t"e status of session C terminate
Sun7& s%mclone )# clone#rp status
Sun7& s%mclone )# clone#rp terminate 4ev,,. s%m ld 4?:,,*
Sun7& s%mclone )# clone#rp status

Remove standard devices from device #roup cloned#
Sun7&s%mld )# clone#rp remove 4?:,,.
Sun7&s%mld )# clone#rp remove 4?:,,*
Remove device #roup
Sun7&s%md# delete clone#rp @force

Vous aimerez peut-être aussi