09-17-2013 01:01 AM
Hi,
I have below environment,
node 1 & node 2
SFW HA 6.0.1, Windows 2008 R2
node 3 with shared folder (\\node3\folder) use as Vault Store
EV service group
i need \\node3\folder to be part of EV service group and failed over between nodes as part of EV cluster. it should only be mounted on active node and not on the passive node. can i do this? if so, how?
normal way i can mount a share via CLI like "c:\ net use Z: \\node3\folder", is there a resource where i can only specify this syntax so it will be part of the service group and the failover process?
Solved! Go to Solution.
09-17-2013 03:35 AM
A trigger script is not a resource it is a script that is run for specific events, so you could use:
preonline trigger: Mount share, just before EV service group is onlined
postonline trigger: Mount share, just after EV service group completes its online
To implement the trigger you need to copy the trigger from %VCS_HOME%\bin\sample_triggers to %VCS_HOME%\bin\triggers. These triggers are written in perl
All triggers apart from preonline are automatically enabled once you put there in the triggers directory, so if you use preonline you need to set "PreOnline" = 1 for the EV service group. If you use postonline, the postonline script will run for all service groups so if you have other service groups you will need an "if" statement so the script only mounts the share for the EV service group.
Example if you use postonline, then your code (perl) will be something like:
$group = $ARGV[1];
if ($group eq "EV") {
VCSAG_SYSTEM("net use Z: \\node3\folder");
}
09-17-2013 02:41 AM
If node3 is part of the cluster and you want to share \folder using VCS, then the resource type you need to use is "FileShare" - see the VCS bundled agent guide http://sort-cdn.symantec.com/public/documents/sfha/6.0.1/windows/productguides/pdf/VCS_BundledAgents...- here it gives an example:
FileShare FileShare_SG-FileShare (PathName = "\\ToShare"ShareName = ToShareLanmanResName = FileShare_SG-LanmanMaxUsers = 100MountResName = FileShare_SG-MountVUserPermissions = { "VCSNET\\Administrator" = READ_ACCESS }ShareSubdirectories = 1HideChildShares = 1AccessBasedEnumeration = 1)
09-17-2013 03:00 AM
Thanks Mike for the post.
You're right on the 2nd part, node 3 is not part of the cluster nodes. It can share the folder as nfs for unix but the cluster nodes are Windows so CIFS is in use.
If that is not possible, I might go with the trigger script. How can i include that on the service group? what resource i can use? can you pls tell me more about that a sit seems to be my only hope.
09-17-2013 03:35 AM
A trigger script is not a resource it is a script that is run for specific events, so you could use:
preonline trigger: Mount share, just before EV service group is onlined
postonline trigger: Mount share, just after EV service group completes its online
To implement the trigger you need to copy the trigger from %VCS_HOME%\bin\sample_triggers to %VCS_HOME%\bin\triggers. These triggers are written in perl
All triggers apart from preonline are automatically enabled once you put there in the triggers directory, so if you use preonline you need to set "PreOnline" = 1 for the EV service group. If you use postonline, the postonline script will run for all service groups so if you have other service groups you will need an "if" statement so the script only mounts the share for the EV service group.
Example if you use postonline, then your code (perl) will be something like:
$group = $ARGV[1];
if ($group eq "EV") {
VCSAG_SYSTEM("net use Z: \\node3\folder");
}
09-17-2013 04:45 AM
Thanks so much for the post Mike.
I think this is the workaround I'm looking for. I'll go through the details of event triggers.