An example script to Resync a Mirrorclone daily with its Parent Vdisk (817 Views)
Reply
Trusted Contributor
susanta_dutta
Posts: 82
Registered: ‎11-19-2009
Message 1 of 1 (817 Views)

An example script to Resync a Mirrorclone daily with its Parent Vdisk

Below is an example script which runs every day at 5:00pm to Resync a Mirrorclone with its Parent Vdisk

 

# pwd

/work

# cat mc.txt

SELECT MANAGER 192.168.0.1 username=administrator password=password

SET OPTIONS NOCOMMAND_DELAY

SET OPTIONS ON_ERROR=CONTINUE

SELECT SYSTEM LE_6A30

DELETE LUN "\Hosts\Host_MC\23"

SET VDISK "\Virtual Disks\Vdisk_MC\Test_MC" RESYNC

WAIT_UNTIL VDISK "\Virtual Disks\Vdisk_MC\Test_MC" SYNCHRONISED

SET VDISK "\Virtual Disks\Vdisk_MC\Test_MC" FRACTURE

WAIT_UNTIL VDISK "\Virtual Disks\Vdisk_MC\Test_MC" FRACTURED

ADD LUN 23 VDISK="\Virtual Disks\Vdisk_MC\Test_MC" HOST="\Hosts\Host_MC"

 

#

# sssu "file mc.txt"

 

SSSU for HP P6000 Command View

 

Version: 10.1.0

 

Build: 012412A

 

NoSystemSelected> file mc.txt

 

NoSystemSelected> SET OPTIONS NOCOMMAND_DELAY

 

NoSystemSelected> SET OPTIONS ON_ERROR=CONTINUE

 

NoSystemSelected> SELECT SYSTEM LE_6A30

 

LE_6A30>

 

LE_6A30> DELETE LUN "\Hosts\Host_MC\23"

 

LE_6A30> SET VDISK "\Virtual Disks\Vdisk_MC\Test_MC" RESYNC

 

LE_6A30> WAIT_UNTIL VDISK "\Virtual Disks\Vdisk_MC\Test_MC" SYNCHRONISED

 

LE_6A30> SET VDISK "\Virtual Disks\Vdisk_MC\Test_MC" FRACTURE

 

LE_6A30> WAIT_UNTIL VDISK "\Virtual Disks\Vdisk_MC\Test_MC" FRACTURED

 

LE_6A30> ADD LUN 23 VDISK="\Virtual Disks\Vdisk_MC\Test_MC" HOST="\Hosts\Host_MC"

 

LE_6A30>

 

LE_6A30>

#

# crontab -l

00 17 * * * sssu "file /work/mc.txt"

#

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.