Operating System - HP-UX
1751854 Members
5814 Online
108782 Solutions
New Discussion юеВ

vx_maxlink parameter current value

 
SOLVED
Go to solution
ankitj1983
Frequent Advisor

vx_maxlink parameter current value

Hello All,

Can any let me know how to check curent used value of vx_maxlink parameter.

I think this value has reached the limit.

i know default size if 32767 using kctune.



Regards

Ankit
16 REPLIES 16
ankitj1983
Frequent Advisor

Re: vx_maxlink parameter current value

Kindly Reply
Horia Chirculescu
Honored Contributor
Solution

Re: vx_maxlink parameter current value

Hello,

kctune -v vx_maxlink

Should give you the current value of vx_maxlink parameter.

Are you sure that you have reached that limit?

For one file, you can find out the number of hard links like this:

ls -l your_file

-rw------- 1 root root 2379 Nov 12 2008 your_file

The second column (1 in this sample) contain has this info.


From man vx_maxlink:

vx_maxlink ├в Configure the number of links to a file

....

DESCRIPTION

The vx_maxlink tunable is used to configure the number of links possible to a file on VxFS filesystem

As vx_maxlink is initialized when system is booted, the changes made to vx_maxlink will take effect only from the next system reboot.

Horia.
Best regards from Romania,
Horia.
Dennis Handly
Acclaimed Contributor

Re: vx_maxlink parameter current value

>I think this value has reached the limit.

As Horia asked, any reason you think you need more than that many hardlinks to the same file?
SoorajCleris
Honored Contributor

Re: vx_maxlink parameter current value

Hi,

You can use #kcusage to check the usage

http://nixdoc.net/man-pages/HP-UX/kcusage.1m.html

Regards,
Sooraj

"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Dennis Handly
Acclaimed Contributor

Re: vx_maxlink parameter current value

>Sooraj: You can use kcusage to check the usage

Not for vx_maxlink: Unsupported Tunable: vx_maxlink
ankitj1983
Frequent Advisor

Re: vx_maxlink parameter current value

Hello All,

Thansk to all for replying.

will let u know the error tmrw once i reach to office when i am creating any link.

Regards

Ankit
Dennis Handly
Acclaimed Contributor

Re: vx_maxlink parameter current value

>will let you know the error when I am creating any link.

If you go crazy, you get this error:
ln: too many links to make_hlink
-rwxrwxr-x 32767 326 Apr 20 15:42 make_hlink

EMLINK The maximum number of links to a file would be exceeded.
Horia Chirculescu
Honored Contributor

Re: vx_maxlink parameter current value

>when I am creating any link

Any link to any file? Meaning that you get an error even if you try to make a link to a file with a small number of links to it? Try to make a new file (touch test.txt) and then try to make a hard link to it (ln -f test.txt link1.txt)

This parameter (vx_maxlink) sets the number of possible links to a file. Not to all files (combined - sum of all links to all files from the filesystem).

Horia.
Best regards from Romania,
Horia.
ankitj1983
Frequent Advisor

Re: vx_maxlink parameter current value

The error is below.

mkdir:
cannot create
/LOG_RECV/EDI/R00002/EDIorders/k8c35: Too many
links