Snapshot will not snap back with VCS.
I have been working on a more redundant solution for SFWHA 5.1 then what we currently have and am testing this layout.
I have 2 disk arrays that I present 6 LUNs from each to Veritas. In VEA I have one diskgroup that has these 12 drives. 2 of the drives have the data and are mirrored, the other 10 are split into groups of 2 one from each disk array for redundancy. With these 5 groups I am cover for each day of the week. I take a snapshot with one of the drives, then mirror to the other drive so that if one of my disk arrays goes down my service group does not fail. This is working great, I can then remove the mirror, snap back and take a new snap no problems.
Where the problem lies is failover, with all these extra volumes my second server does not know what to do with them when I do a switch. I solved this problem by adding the volumes to my VCS service group. There we go I can now fail all the volumes over with no problem. The new problem know is I can remove the mirror from the snap, but when I then do the snap back I get "Operation not allowed. Volume is configured as a VCS resource. Please change the VCS configuration and retry the operation".
I could remove the disk/volumes from the disk group and not fail them over but I find that doing a snapback and re-snap takes really long as the drives have to resync, basically it is like doing a Prepare all over. I have checked the manuals but cant find an answer, does anyone have an idea of how to configure this to do what I am looking for?
Yes you can schedule by putting all commands in a script and then calling from a scheduling tool like "at" or "schtasks". The script would look something like:
haconf -makerw hares -delete snap-monday vxassist -g diskgroup remove mirror snap-monday-vol vxassist -g diskgroup snapback snap-monday-vol vxassist -g diskgroup snapshot data plex=snap-monday-plex DriveLetter=W snap-monday-vol vxassist -g diskgroup mirror snap-monday-vol Harddisk3 hares -add snap-monday Volume servicegroup hares -modify snap-monday attributes (for all attributes) hares -link (add dependencies - like diskgroup) haconf -dump -makero
Your plexes at the moment probably have default names like data-03, data-04 etc - you can use these names, but I would recommend renaming these using vxedit (example "vxedit -g diskgroup data-04 snap-monday-plex").
Note an alternative to mirroring snapshot is to just take 2 snapshots per day, which could be taken at same time or staggered to give you more range when restoring - i.e at the moment I presume the snapshots are for protection against logical corruption (someone deletes a file rather than loosing a disk), but it is a bit unlikely you would have logical corruption + physical lost of an array. So suppose you took one snapshot Tuesday am on array A and one Tuesday pm on array B, then you then have 2 point-in-times to choose from for restoring file and if you were unlucky enough to loose array A as well, then you still have 2 snapshots 24 hrs apart to restore from Mon pm and Tue pm.
Mike