how can list of mountpoint can be display using cfsmntadm
Created: 09 Jul 2012 | Updated: 18 Jul 2012 | 17 comments
This issue has been solved. See solution.
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
Discussion Filed Under:
Comments 17 Comments • Jump to latest comment
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/sf...
G
PS: If you are happy with the answer provided, please mark the post as solution. You can do so by clicking link "Mark as Solution" below the answer provided.
The man page of cfsmntadm command though is little unclear on the first line ..
https://sort.symantec.com/public/documents/sfha/6....
NAME
cfsmntadm - add, delete, modify, and set policy on cluster mounted file systems <<<<<< This should be mentioned as cluster mounted shared of Cluster filesystems
however if you see rest of options, it is mentioned that operations can be ran only on shared diskgroups ... shared diskgroups are part of CVM where same diskgroup can be imported on multiple nodes at the same time ...
SYNOPSIS
cfsmntadm add [ -D ] shared_disk_group shared_volume
mount_point [ service_group_name ] node_name=[ mount_options ] ...
cfsmntadm add shared_disk_group shared_volume mount_point
PS: If you are happy with the answer provided, please mark the post as solution. You can do so by clicking link "Mark as Solution" below the answer provided.
is this gonna changes the configuration? because the server already production.
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
Running "cfsmntadm display" does not effect the configuration - this is just a query to list your CFS Mountpoints - it does not change anything.
Mike
UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows
If this post has helped you, please vote or mark as solution
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_cluster_file_system/html/man1m/cfsmntadm.1m.html:
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
You can list normal mounts by:
Mike
UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows
If this post has helped you, please vote or mark as solution
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
PS: If you are happy with the answer provided, please mark the post as solution. You can do so by clicking link "Mark as Solution" below the answer provided.
so if i use this command using cfsmntadm add it doesnt change anything in teh configuration?
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
UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows
If this post has helped you, please vote or mark as solution
only display won't change, add will change the config ....
PS: If you are happy with the answer provided, please mark the post as solution. You can do so by clicking link "Mark as Solution" below the answer provided.
# /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
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:
Mike
UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows
If this post has helped you, please vote or mark as solution
Hi Mike
is that a typo, should it be MountPoint instead of MountPath ?
tony
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
PS: If you are happy with the answer provided, please mark the post as solution. You can do so by clicking link "Mark as Solution" below the answer provided.
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
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:
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
UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows
If this post has helped you, please vote or mark as solution
Hi Mike,
previous comment subject line says issue resolve ... so assuming this has been resolved ..
G
PS: If you are happy with the answer provided, please mark the post as solution. You can do so by clicking link "Mark as Solution" below the answer provided.
Would you like to reply?
Login or Register to post your comment.