mkdir too many links.
There is a limit to the number of directories that can be created in one directory. For the VXFS filesystem this limit is controlled by a tunable vx_maxlink, in most cases the default is 32,767.
Solution: (Solaris)
https://support-staff.cloud.com/wolken/esd/knowledgebase_list?articleNumber=100000579
https://support-staff.cloud.com/wolken/esd/knowledgebase_list?articleNumber=100033962
https://support-staff.cloud.com/wolken/esd/knowledgebase_list?articleNumber=100006482
Applies To
VXFS filesystem on Solaris, RHEL and AIX. Probably also on SUSE and HP-UX as well.
Note for CFS filesystems
The situation gets a little more complicated for CFS filesystems. Basically the master node for the filesystem needs to be rebooted to get the change to take effect. However, once you attempt to reboot the master node for the CFS filesystem, the cluster will elect a new master while the old master reboots. Thus in order to get this to take effect for a CFS filesystem, the above changes will have to be made on each node and each node needs to be rebooted. It’s up to the customer if they want to do one at a time, or all at once.
Maximum number of subdirectories, in a single directory, is limited to 32767, or the value of vx_maxlink tunable.