I have got a file system not automatically getting mounted on cluster even though there is an entry in /etc/vfstab. I have to run metaset -s <setname> -t & then mount the file system manually.
Thanks in advance...
You need to create a resource group and resource to mount the file system. Let's assume that your file system is going to be mounted on /failover/mydata
You put entries in /etc/vfstab, but you mark it as mount at boot is no. You create the mount point on all nodes and then create a resource group:
# clrg create my-rg
You then register the SUNW.HAStoragePlus resource type if it isn't registered already.
# clrt register SUNW.HAStoragePlus
You then create the resource to mount your file system
# clrs create -g my-rg -t SUNW.HAStoragePlus -p filesystemmountpoints=/failover/mydata my-hasp-rs
You then bring the resource group online and managed.
# clrg online -emM my-rg
(ignore the warnings)
You can find a lot more step by step examples of setting up Solaris Cluster features in the "Oracle Solaris Cluster Essentials" book.
This is what i have been asking for.
_1. List existing mount points under sun cluster_ scrgadm -vvp|egrep 'FilesystemMountPoints'|grep 'ora-dc-rg'|grep 'Res property value'
(ora-dc-rg:ora-dc-hastp-rs:FilesystemMountPoints) Res property value: /oracle10g /oracle/log /oracle/archive
_2. Add new mount point to sun cluster_ scrgadm -c -j ora-dc-rg –x \ FilesystemMountPoints="/oracle10g,/oracle/log,/oracle/archive,/<new mount point>"
Note:existing mount points also has to be added in this command.
_3.Verify mount point is added_ scrgadm -vvp|egrep 'FilesystemMountPoints'|grep 'ora-dc-rg'|grep 'Res property value'
(ora-dc-rg:ora-dc-hastp-rs:FilesystemMountPoints) Res property value: /oracle10g /oracle/log /oracle/archive /<new mount point>
OK, I'm glad you solved your problem. I clearly didn't quite understand what you were asking for.
If you have an existing HASP resource and you need to add a file system then the command in new CLI is:
# clrs set -p filesystemmountpoints+=<extra_mount_point> my-hasp-rs
Assuming my example above.
As long as you just add mount points this has no impact except that you have a new mount point under cluster control :-) When setting this property or removing mount points (is this possible at all) you can produce some mess.
sorry if my statement was not clear.
If you create the following:
clrs create -g test-rg -t SUNW.HAStoragePlus -p FilesystemMountpoints=/abc test-hasp
and then want to add another filesystem to the resource like in
clrs set -p FilesystemMountpoints+=/xyz test-hasp
then you are fine.
If you are playing with the absolute setting of this property like in:
clrs set -p FilesystemMountpoints=/xyz test-hasp
which means, you have removed the mount point /abc but added the new mountpoint=/xyz
then you may be in trouble.
I am not sure whether the cluster framework prevents such configuration changes.