vx_maxlink tunable setting introduced on Linux with 5.0 MP3 RP3

Article: 100000579
Last Published: 2022-02-15
Ratings: 0 0
Product(s): InfoScale & Storage Foundation

Problem

The vx_maxlink tunable setting is introduced for Linux with Storage Foundation 5.0 MP3 RP3.

Solution

The VxFS vx_maxlink tunable determines the number of sub-directories that can be created under a directory.

A new tunable vx_maxlink has been added to 5.0 MP3 RP3 onwards with Linux, which will allow you to increase the maximum number of subdirectories of a directory from 32767 to 65534. When the tunable is set to a value greater than 65534, the operating system will reset it to 65534

This is a load time vxfs module setting.
 
# modinfo vxfs
filename: /lib/modules/2.6.9-78.ELsmp/veritas/vxfs/vxfs.ko
parm: vx_maxlink:Maximum number of hardlinks


The VxFS tunable need to be set in the modprobe.conf configuration file, and is set when the module are loaded.

A VxFS file system obtains the value of vx_maxlink from the system configuration file /etc/modprobe.conf. By default, vx_maxlink is 32K. To change the computed value of vx_maxlink, you can add an entry to the /etc/modprobe.conf configuration file.


Example:

options vxfs vx_maxlink=65534



The crash utility can be used to establish the current vx_maxlink tunable value.
 
# echo "rd -D vx_maxlink"| crash -s
ffffffffa0997208: 32767


The new parameters take affect after a reboot or after the VxFS module is unloaded and reloaded. The VxFS module can be loaded using the modprobe command or automatically when a file system is mounted.
See the modprobe(8) manual page.

Note: New parameters in the /etc/modprobe.conf file are not read by the insmod
 
# echo "rd -D vx_maxlink"| crash -s
ffffffffa0997208: 65532


5.0 MP3 RP3 or higher is required to increase the vx_maxlink tunable value on Linux.

Was this content helpful?