Professional Documents
Culture Documents
Ex:Volume size is increasing 100M/per hour,then you need minimum 100MB cache
object.If the backJob needs two hours to complete,then you need 1002=200MB cache
volume.
Note:Since we have created the cache volume with size of 10M,if the volume changes
become more than 10M,snapshot become invalid and you need to perform the snapshot
again (Step:2)
#vxassist -g UXDG make cachevol 10M
#vxprint -hvt cachevol
Disk group: UXDGv cachevol - ENABLED ACTIVE 20480 SELECT -
fsgen
pl cachevol-01 cachevol ENABLED ACTIVE 20480 CONCAT - RW
sd UXDISK1-01 cachevol-01 UXDISK1 0 20480 0 disk_0 ENA
#vxmake -g UXDG cache cacheobj cachevolname=cachevol autogrow=on
#vxprint -hvt cachevol
Disk group: UXDG
v cachevol cacheobj ENABLED ACTIVE 20480 SELECT - fsgen
pl cachevol-01 cachevol ENABLED ACTIVE 20480 CONCAT - RW
sd UXDISK1-01 cachevol-01 UXDISK1 0 20480 0 disk_0 ENA
5.Detach/Attach snapshot:
Attach the space optimized snapshot to volume.You can not use the reattach command
for space optimized snapshot.
# vxsnap -g UXDG reattach snap-oravol1 source=oravol1
VxVM vxplex ERROR V-5-1-6390 Cannot reattach space optimized snapshot to a volume
Just refresh snapshot with source to reattach,
# vxsnap -g UXDG refresh snap-oravol1 source=oravol1
To list the space-optimized snapshots that are created using cache objects:
# vxcache -g UXDG listvol cacheobj
snap-oravol1
To stop the cache object,
# vxcache -g UXDG stop cacheobj
VxVM vxcache ERROR V-5-1-6418 Cannot stop cache cacheobj as it has associated subdisk(s)
VxVM vxcache INFO V-5-1-9488Use vxcache [-g diskgroup] -f stop cacheobj to force stop the
cache object
# vxcache -g UXDG -f stop cacheobj