How to verify major and minor numbers with RedHat Linux for VERITAS Cluster Server (tm) NFS service group

Article:TECH28381  |  Created: 2003-01-30  |  Updated: 2010-01-14  |  Article URL http://www.symantec.com/docs/TECH28381
Article Type
Technical Solution

Product(s)

Environment

Issue



How to verify major and minor numbers with RedHat Linux for VERITAS Cluster Server (tm) NFS service group

Solution



Unlike Solaris, RedHat Linux assigns a minor number for each volume instead for each disk group:

[guest@posterboy /]# ls -l /dev/vx/dsk/datadg/vol01
brw-------    1 root     root     199,   7 Aug 22 16:40 /dev/vx/dsk/datadg/vol01

The minor number assigned to a volume will depend on in what order the disk groups are created. So when Cluster Server fails over the service groups and import disk groups, if Volume Manager finds out there are conflicting minor numbers, it will assign a temporary minor number to the conflicting volume, this will cause an NFS stale handle on NFS clients if the volume is used by an NFS share.

[guest@posterboy /]# vxdg import data2dg
vxvm:vxdg: WARNING: Volume vol01: Temporarily renumbered due to conflict
vxvm:vxdg: WARNING: Volume vol02: Temporarily renumbered due to conflict

Best practice to configure the NFS service group's disk groups:

1.  Create all NFS disk groups and volumes in one node ( system )
2.  Verify the all disk group volumes minor number; make sure these minor numbers are not used in other nodes by other volumes
3.  Change the conflicting minor numbers if needed.  It will be a good idea to make a range of minor numbers available on both system to use for NFS disk groups only

To change the minor number, use the vxdg reminor command as following. Please note that the first volume in the disk group will use the given minor number, the second volume will use the next serialized minor number, and so on.

[guest@posterboy /]# vxdg -g data2dg -f reminor data2dg 11
[guest@posterboy /]# ls -l /dev/vx/dsk/data2dg/vol01
brw-------    1 root     root     199,  11 Aug 29 17:46 /dev/vx/dsk/data2dg/vol01
[guest@posterboy /]# ls -l /dev/vx/dsk/data2dg/vol02
brw-------    1 root     root     199,  12 Aug 29 17:47 /dev/vx/dsk/data2dg/vol02


Legacy ID



262882


Article URL http://www.symantec.com/docs/TECH28381


Terms of use for this information are found in Legal Notices