- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vx_maxlink parameter current value
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2010 07:00 PM
04-15-2010 07:00 PM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2010 06:02 AM
04-18-2010 06:02 AM
Re: vx_maxlink parameter current value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2010 09:13 PM
04-18-2010 09:13 PM
Solutionkctune -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.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2010 09:21 PM
04-19-2010 09:21 PM
Re: vx_maxlink parameter current value
As Horia asked, any reason you think you need more than that many hardlinks to the same file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2010 09:33 PM
04-19-2010 09:33 PM
Re: vx_maxlink parameter current value
You can use #kcusage to check the usage
http://nixdoc.net/man-pages/HP-UX/kcusage.1m.html
Regards,
Sooraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2010 09:53 PM
04-19-2010 09:53 PM
Re: vx_maxlink parameter current value
Not for vx_maxlink: Unsupported Tunable: vx_maxlink
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2010 07:30 AM
04-20-2010 07:30 AM
Re: vx_maxlink parameter current value
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2010 03:01 PM
04-20-2010 03:01 PM
Re: vx_maxlink parameter current value
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2010 09:25 PM
04-20-2010 09:25 PM
Re: vx_maxlink parameter current value
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.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2010 11:33 PM
04-20-2010 11:33 PM
Re: vx_maxlink parameter current value
mkdir:
cannot create
/LOG_RECV/EDI/R00002/EDIorders/k8c35: Too many
links
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2010 12:10 AM
04-21-2010 12:10 AM
Re: vx_maxlink parameter current value
links
Doh! When I created my test case, I deliberately avoided the above issue.
You can't have more than vx_maxlink - 2 directories in a directory.
What's in /LOG_RECV/EDI/R00002/EDIorders?
I suppose you could cheat and create the directories elsewhere and use a symlink.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2010 12:30 AM
04-21-2010 12:30 AM
Re: vx_maxlink parameter current value
/LOG_RECV/EDI/R00002/EDIorders
are created by some application that runs periodically, right?
Can't you archive those directories then perform cleanup (delete the directories and the content) after the data has been processed? You could do that on regular basis as a cron job.
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2010 08:24 PM
04-21-2010 08:24 PM
Re: vx_maxlink parameter current value
I understood you solution 70% can you explain further for better understanding.
Honia,
I can't remove the files as its managed by appliaction team so virtually they have to decide whether to keep the files or not.
Regards
Ankit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2010 08:49 PM
04-21-2010 08:49 PM
Re: vx_maxlink parameter current value
Yes, virtually... But do they ever delete any sub-directory from that location?
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2010 10:36 PM
04-21-2010 10:36 PM
Re: vx_maxlink parameter current value
By default, the number of subdirectories (and
links too) on HP-UX is 32767.
It can be viewed by:
# kctune -v vx_maxlink
Tunable vx_maxlink
Description Maximum number of links to a VxFS file
Module vxfs50
Current Value 32767 [Default]
Value at Next Boot 32767 [Default]
Value at Last Boot 32767
Default Value 32767
Constraints vx_maxlink >= 32767
vx_maxlink <= 65534
Can Change At Next Boot Only
This is a static kernel parameter so
a reboot is required.
The other method to check the defaults is:
# grep LINK_MAX /usr/include/limits.h
# define _POSIX_LINK_MAX 8 /* The value of a files link count */
# define _POSIX_SYMLINK_MAX 255 /* Number of bytes in a symbolic link */
# define LINK_MAX 32767 /* Max number of links to a single file */
In your specific case, it seems that
it is not the number of symbolic links that
is hurting but number of subdirectories.
So, quite probably your directory
/LOG_RECV/EDI/R00002/EDIorders
already contains 32767 - 2 = 32767
subdirectories.
Possible cleanup:
a) Move some directories into other places;
or
b) Remove some of them;
or
c) Increase the value of parameter
vx_maxlink to up to 65534, which means you
can have 65532 subdirectories in
/LOG_RECV/EDI/R00002/EDIorders
Cheers,
VK2COT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2010 10:42 PM
04-21-2010 10:42 PM
Re: vx_maxlink parameter current value
Hmm, silly mathematics by me, that might
work for accountants but not
for IT staff and scientists :)
32767 - 2 = 32767
It should say:
32767 - 2 = 32765
Bad typing, sorry.
VK2COT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2010 12:53 AM
04-22-2010 12:53 AM
Re: vx_maxlink parameter current value
Subdirectories point to themselves and their parents. The latter increments the link count in the parent so that's why you are limited to 32767 - 2.
>I can't remove the files as its managed by application team so virtually they have to decide whether to keep the files or not.
You don't have to remove them, just move them and add a symlink.