07-09-2012 12:29 AM
Hi All,
Is there any one can help me?
I have 4 server already been configured using veritas cluster and this server already production.
i wanna get my list of mountpoint can be display using command "cfsmntadm display".
based on my knowledge this can effect the configuration. (CMIIW)
im using RHEL5 and SF6.
Thanks
Solved! Go to Solution.
07-18-2012 12:26 AM
sorry to disturb all you guys,
# /opt/VRTS/bin/cfsmntadm display
Cluster Configuration for Node: CBTCNBSMBATCH01
MOUNT POINT TYPE SHARED VOLUME DISK GROUP STATUS
Cluster Configuration for Node: CBTCNBSMBATCH02
MOUNT POINT TYPE SHARED VOLUME DISK GROUP STATUS
Cluster Configuration for Node: CBTCNBSMBATCH03
MOUNT POINT TYPE SHARED VOLUME DISK GROUP STATUS
Cluster Configuration for Node: CBTCNBSMBATCH04
MOUNT POINT TYPE SHARED VOLUME DISK GROUP STATUS
List of mount points registered with cluster-configuration
but not associated with any node : /dcs/appl01 /dcs/data01 /dcs/data02 /dcs/data03 /dcs/data04 /dcs/data05 /dcs/data06 /dcs/data07 /dcs/data08 /dcs/data09 /dcs/data10 /dcs/data11 /dcs/data12 /dcs/data13 /dcs/data14 /dcs/data15 /dcs/data16 /dcs/data17 /dcs/data18 /dcs/data19 /dcs/data20 /dcs/data21 /dcs/data22 /dcs/data23 /dcs/data24 /dcs/data25 /dcs/data26 /dcs/data27 /dcs/data28 /dcs/data29 /dcs/data30 /dcs/data31 /dcs/data32 /dcs/data33 /dcs/data34 /dcs/data35 /dcs/data36 /dcs/data37 /dcs/data38 /dcs/data39 /dcs/data40 /dcs/drd01 /dcs/drd02 /dcs/drd03 /dcs/drd04 /dcs/drd05
cfsmntadm display command did not display correct mount point association
# /opt/VRTS/bin/cfsmntadm display
Cluster Configuration for Node: CBTCNBSMBATCH01
MOUNT POINT TYPE SHARED VOLUME DISK GROUP STATUS
/dcs/appl01 Regular appl01 appldg MOUNTED
/dcs/data01 Regular data01 datadg MOUNTED
/dcs/data02 Regular data02 datadg MOUNTED
/dcs/data03 Regular data03 datadg MOUNTED
/dcs/data04 Regular data04 datadg MOUNTED
/dcs/data05 Regular data05 datadg MOUNTED
/dcs/data06 Regular data06 datadg MOUNTED
/dcs/data07 Regular data07 datadg MOUNTED
/dcs/data08 Regular data08 datadg MOUNTED
/dcs/data09 Regular data09 datadg MOUNTED
/dcs/data10 Regular data10 datadg MOUNTED
/dcs/data11 Regular data11 datadg MOUNTED
/dcs/data12 Regular data12 datadg MOUNTED
/dcs/data13 Regular data13 datadg MOUNTED
/dcs/data14 Regular data14 datadg MOUNTED
/dcs/data15 Regular data15 datadg MOUNTED
/dcs/data16 Regular data16 datadg MOUNTED
/dcs/data17 Regular data17 datadg MOUNTED
/dcs/data18 Regular data18 datadg MOUNTED
/dcs/data19 Regular data19 datadg MOUNTED
/dcs/data20 Regular data20 datadg MOUNTED
07-09-2012 12:43 AM
Hi,
To enable to get mounts display in cfsmntadm command, you need to configure Cluster Volume Manager / Culuster Filesystem. aka CFS/CVM Are you using CVM/CFS, have you enabled CVM/CFS license ?
CVM/CFS is product for parallel clustering, a normal mount point without CFS/CVM can not be displayed using cfsmntadm command .. To see whether you are using CFS/CVM ... can u paste
# gabconfig -a
# hastatus -sum
Also refer to " Storage Foundation Cluster File System Guides" here:
https://sort.symantec.com/documents/doc_details/sfha/5.1%20SP1/Linux/ProductGuides/
G
07-09-2012 12:56 AM
07-09-2012 12:59 AM
here is gabconfig -a and hastatus -sum
# /sbin/gabconfig -a
GAB Port Memberships
===============================================================
Port a gen 741603 membership 0123
Port b gen 74161c membership 0123
Port d gen 741613 membership ;123
Port d gen 741613 visible 0
Port f gen 741629 membership 0123
Port h gen 74162e membership 0123
Port u gen 741626 membership 0123
Port v gen 741624 membership 0123
Port w gen 741624 membership 0123
Port y gen 741623 membership 0123
# /opt/VRTSvcs/bin/hastatus -sum
-- SYSTEM STATE
-- System State Frozen
A CBTCNBSMBATCH01 RUNNING 0
A CBTCNBSMBATCH02 RUNNING 0
A CBTCNBSMBATCH03 RUNNING 0
A CBTCNBSMBATCH04 RUNNING 0
-- GROUP STATE
-- Group System Probed AutoDisabled State
B appl CBTCNBSMBATCH01 Y N ONLINE
B appl CBTCNBSMBATCH02 Y N ONLINE
B appl CBTCNBSMBATCH03 Y N ONLINE
B appl CBTCNBSMBATCH04 Y N ONLINE
B cvm CBTCNBSMBATCH01 Y N ONLINE
B cvm CBTCNBSMBATCH02 Y N ONLINE
B cvm CBTCNBSMBATCH03 Y N ONLINE
B cvm CBTCNBSMBATCH04 Y N ONLINE
B data CBTCNBSMBATCH01 Y N ONLINE
B data CBTCNBSMBATCH02 Y N ONLINE
B data CBTCNBSMBATCH03 Y N ONLINE
B data CBTCNBSMBATCH04 Y N ONLINE
B drd CBTCNBSMBATCH01 Y N ONLINE
B drd CBTCNBSMBATCH02 Y N ONLINE
B drd CBTCNBSMBATCH03 Y N ONLINE
B drd CBTCNBSMBATCH04 Y N ONLINE
B vxfen CBTCNBSMBATCH01 Y N OFFLINE
B vxfen CBTCNBSMBATCH02 Y N OFFLINE
B vxfen CBTCNBSMBATCH03 Y N OFFLINE
B vxfen CBTCNBSMBATCH04 Y N OFFLINE
07-09-2012 01:02 AM
is this gonna changes the configuration? because the server already production.
07-09-2012 01:26 AM
Running "cfsmntadm display" does not effect the configuration - this is just a query to list your CFS Mountpoints - it does not change anything.
Mike
07-09-2012 01:43 AM
You can do a man on cfsmntadm to see that it only displays things or look at https://sort.symantec.com/public/documents/sfha/6.0/linux/manualpages/html/man/storage_foundation_cl...:
display When used with the mount_point argument, displays the cluster file system properties associated with a mount point. The following are displayed for a shared volume or a mount point:
o Name of the shared volume o Name of the shared disk group to which the shared volume belongs o List of nodes on which the shared volume can be mounted o List of nodes on which shared volume is currently mounted o Mount options for each node o Primary node for the file system mounted at mount_point o Displays the primary election policy, if any, for the file system When used with the node_name argument, displays the list of shared volumes mounted on the specified node. The following are displayed for each mounted shared volume:
o Name of the shared volume o Type of mount point
There are several other ways to get list of mount points:
df
df shows the block device which shows you what the disk group is, so any shared diskgroups will most likely have CFS mounts on them. "vxdisk list" will show you shared diskgroups where the "STATUS" column is "online shared" (I think "vxdg list" will also show you this)
mount
If the mount options show "cluster" then that mount is a CFS (shared) mount
hares
hares -display -attribute MountPath -type CFSMount
You can list normal mounts by:
hares -display -attribute MountPath -type Mount
Mike
07-09-2012 03:00 AM
OK so you do use CFS/CVM as we can see the CVM service group as well, also you have CVM/CFS ports available in gabconfig -a output ..
So to address your original query, if you want to display mount points under cfsmntadm display command .., you should see that mount points are mounted with "cluster" option..
If you add any mount point in CFS configuration by using "cfsmntadm" add command, CFS registers the same in configuration & would report the CFS mount points in "cfsmntadm display" output....
Else, if you have configured mounts manually though they are mounted with "cluster" option... they should still be able to see under cfsmntadm display output ..
hope this helps..
G
07-09-2012 06:45 AM
so if i use this command using cfsmntadm add it doesnt change anything in teh configuration?
07-09-2012 06:49 AM
If you use "cfsmntadm display" it will not change anything in the configuration - if you use other options like add and delete, then these will change configuration.
Mike
07-09-2012 07:07 AM
only display won't change, add will change the config ....
07-10-2012 09:08 PM
# /opt/VRTS/bin/cfsmntadm display
Cluster Configuration for Node: CBTCNBSMBATCH01
MOUNT POINT TYPE SHARED VOLUME DISK GROUP STATUS
Cluster Configuration for Node: CBTCNBSMBATCH02
MOUNT POINT TYPE SHARED VOLUME DISK GROUP STATUS
Cluster Configuration for Node: CBTCNBSMBATCH03
MOUNT POINT TYPE SHARED VOLUME DISK GROUP STATUS
Cluster Configuration for Node: CBTCNBSMBATCH04
MOUNT POINT TYPE SHARED VOLUME DISK GROUP STATUS
List of mount points registered with cluster-configuration
but not associated with any node : /dcs/appl01 /dcs/data01 /dcs/data02 /dcs/data03 /dcs/data04 /dcs/data05 /dcs/data06 /dcs/data07 /dcs/data08 /dcs/data09 /dcs/data10 /dcs/data11 /dcs/data12 /dcs/data13 /dcs/data14 /dcs/data15 /dcs/data16 /dcs/data17 /dcs/data18 /dcs/data19 /dcs/data20 /dcs/data21 /dcs/data22 /dcs/data23 /dcs/data24 /dcs/data25 /dcs/data26 /dcs/data27 /dcs/data28 /dcs/data29 /dcs/data30 /dcs/data31 /dcs/data32 /dcs/data33 /dcs/data34 /dcs/data35 /dcs/data36 /dcs/data37 /dcs/data38 /dcs/data39 /dcs/data40 /dcs/drd01 /dcs/drd02 /dcs/drd03 /dcs/drd04 /dcs/drd05
what i means is : list off mount points can be display if i using command cfsmntadm display without changing the configuration. is that possible?
Thanks
07-11-2012 12:50 AM
Sorry, I don't understand what you are asking. If cfsmntadm does not work, then the following command should - could you post the output from:
hares -display -attribute MountPath -type CFSMount
Mike
07-12-2012 03:45 AM
Hi Mike
is that a typo, should it be MountPoint instead of MountPath ?
tony
07-12-2012 04:45 AM
Just want to understand, what exactly is the outstanding query now ?
I think the outstanding question was answered already before ..
If the mount points are mounted with "cluster" option, should be visible under cfsmntadm display ... & for this there is no change in configuration ..
G
07-18-2012 12:26 AM
sorry to disturb all you guys,
# /opt/VRTS/bin/cfsmntadm display
Cluster Configuration for Node: CBTCNBSMBATCH01
MOUNT POINT TYPE SHARED VOLUME DISK GROUP STATUS
Cluster Configuration for Node: CBTCNBSMBATCH02
MOUNT POINT TYPE SHARED VOLUME DISK GROUP STATUS
Cluster Configuration for Node: CBTCNBSMBATCH03
MOUNT POINT TYPE SHARED VOLUME DISK GROUP STATUS
Cluster Configuration for Node: CBTCNBSMBATCH04
MOUNT POINT TYPE SHARED VOLUME DISK GROUP STATUS
List of mount points registered with cluster-configuration
but not associated with any node : /dcs/appl01 /dcs/data01 /dcs/data02 /dcs/data03 /dcs/data04 /dcs/data05 /dcs/data06 /dcs/data07 /dcs/data08 /dcs/data09 /dcs/data10 /dcs/data11 /dcs/data12 /dcs/data13 /dcs/data14 /dcs/data15 /dcs/data16 /dcs/data17 /dcs/data18 /dcs/data19 /dcs/data20 /dcs/data21 /dcs/data22 /dcs/data23 /dcs/data24 /dcs/data25 /dcs/data26 /dcs/data27 /dcs/data28 /dcs/data29 /dcs/data30 /dcs/data31 /dcs/data32 /dcs/data33 /dcs/data34 /dcs/data35 /dcs/data36 /dcs/data37 /dcs/data38 /dcs/data39 /dcs/data40 /dcs/drd01 /dcs/drd02 /dcs/drd03 /dcs/drd04 /dcs/drd05
cfsmntadm display command did not display correct mount point association
# /opt/VRTS/bin/cfsmntadm display
Cluster Configuration for Node: CBTCNBSMBATCH01
MOUNT POINT TYPE SHARED VOLUME DISK GROUP STATUS
/dcs/appl01 Regular appl01 appldg MOUNTED
/dcs/data01 Regular data01 datadg MOUNTED
/dcs/data02 Regular data02 datadg MOUNTED
/dcs/data03 Regular data03 datadg MOUNTED
/dcs/data04 Regular data04 datadg MOUNTED
/dcs/data05 Regular data05 datadg MOUNTED
/dcs/data06 Regular data06 datadg MOUNTED
/dcs/data07 Regular data07 datadg MOUNTED
/dcs/data08 Regular data08 datadg MOUNTED
/dcs/data09 Regular data09 datadg MOUNTED
/dcs/data10 Regular data10 datadg MOUNTED
/dcs/data11 Regular data11 datadg MOUNTED
/dcs/data12 Regular data12 datadg MOUNTED
/dcs/data13 Regular data13 datadg MOUNTED
/dcs/data14 Regular data14 datadg MOUNTED
/dcs/data15 Regular data15 datadg MOUNTED
/dcs/data16 Regular data16 datadg MOUNTED
/dcs/data17 Regular data17 datadg MOUNTED
/dcs/data18 Regular data18 datadg MOUNTED
/dcs/data19 Regular data19 datadg MOUNTED
/dcs/data20 Regular data20 datadg MOUNTED
07-18-2012 02:03 AM
Still not quite sure what you are asking. Let me start off by saying, I have never actually used cfsmntadm for anything (adding, delete or displaying) - I always used VCS. As I understand, cfsmntadm is designed for people who are purely using CFS (i.e they have SFCFS licence, not SFCFS HA) license and so if you don't want to learn VCS, then you can use cfsmntadm, but if you are comfortable using VCS, then I would do so.
First thing I don't understand is what the difference is between the 2 "cfsmntadm display" commands - did you run these from different nodes or does the command intermittently show different outputs or something else.
Secondly, I am unsure what you mean by "cfsmntadm display command did not display correct mount point association". This sounds like it means Volume or diskgroup is wrong for a given Mount point, but they look right, unless you have an inconsistent naming convention for mounts and volumes. What I think you MIGHT mean is that the wrong columns are displayed and I would agree with you there as the manual says you should see:
Your output is definatley not showing 3, 5, 6 and 7 and it is not showing 4 very well either and your output shows " MOUNT POINT" and "TYPE" which are not mentioned in manual. Maybe you need to specify "-v" option to get the information the manual says, but this is not clear in the manual.
If "-v" does not show the correct information as in the manual, then I would log a call with Symantec if you would prefer to use this command, rather than VCS. Likewise you should log a call if the output is different when run from different nodes or if the output changes when there is no state change of the mounts.
As Tony pointed out, if you want to use hares commands, you need to use "MountPoint", not "MountPath" and I think the following command should work too if you want to see more information:
hares -display -type CFSMount | egrep "MountPoint|State|BlockDevice|MountOpt|Policy|Primary"
Of course, you can choose whatever attributes you want to see in the egrep or don't use egrep at all to see the full list of attributes which will include a lot of system attributes which won't be of interest.
Mike
07-18-2012 02:20 AM