Storage Software
cancel
Showing results for 
Search instead for 
Did you mean: 

SSSU / Unix scripting for snapshots. HP-UX & EVA3000

David Fanning
Occasional Contributor

SSSU / Unix scripting for snapshots. HP-UX & EVA3000

Hi All,

We have an HP-UX server with Virtual Disks presented to it by an EVA3000.

I need to write an SSSU / UNIX script to run each day to:-
- Delete perious days snapshot(so that it's not seen by the EVA or Unix)
- Pause Database
- Flush the Unix cache
- Take the Snapshot
- Present snapshot to the Unix server
- Resume Database
- Unix commands to mount /make available the snapshot
- Backup the snapshot to tape.

Could anyone help with some example scripts with the appropiate SSSU and UNIX commands to get me started.
Any help would be much apreciated.
David.
5 REPLIES
Uwe Zessin
Honored Contributor

Re: SSSU / Unix scripting for snapshots. HP-UX & EVA3000

I don't have any scripts, but you better create the new snapshot and then trigger the deletion of the old one.
.
Cem Tugrul
Esteemed Contributor

Re: SSSU / Unix scripting for snapshots. HP-UX & EVA3000

David,
First of all i want to say that what you are talking about just really complex but probable...
Last year, i realized it with my HP support
:-))
and nowadays i will modify it (because i
want to do some advance tests)
when i finished then i really promise you
to realize it on your env.
i can not send these scripts now because
first i have to test...
so keep this thread open you may also received some best solutions from the other
members who did it and still use.
Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
Duverney Barros Arevalo
Occasional Contributor

Re: SSSU / Unix scripting for snapshots. HP-UX & EVA3000

Hello David,

I include some fragments of scripts that you need.

to delete vdisk

SELECT MANAGER SWMA1 USER=administrator PASSWORD=administrator
SELECT SYSTEM "EVA1"
DELETE LUN "\Hosts\unix1\10"
DELETE VDISK "\Virtual Disks\data\snap_vdisk1\ACTIVE" WAIT_FOR_COMPLETION

you have to set up your Data Base in begin backup mode before start the snapshot.

to create snapshot

SELECT MANAGER SWMA1 USER=administrator PASSWORD=administrator
SELECT SYSTEM "EVA1"
ADD SNAPSHOT snap_vdisk1 VDISK="\Virtual Disks\data\vdisk1\ACTIVE" DISKGROUP="\Disk Groups\snap"
ADD LUN 1 VDISK="\Virtual Disks\data\snap_vdisk1\ACTIVE" HOST="\Hosts\unix1\10"

I expect this information can help you to built the script.

Goor Luck.
Jamie.MT
Occasional Visitor

Re: SSSU / Unix scripting for snapshots. HP-UX & EVA3000

I confirm that the SSSU part is fine because I used to use it on Solaris systems. However I have problems to mount the snapshot on an HP-UX system...


It's telling me 'vxfs mount: /dev/vg09/snapshot is corrupted. needs checking'
Ivan Ferreira
Honored Contributor

Re: SSSU / Unix scripting for snapshots. HP-UX & EVA3000

Also, take a look to:

HP StorageWorks Replication Solutions Manager

http://h18006.www1.hp.com/products/storage/software/bizcopyeva/
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?