<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: vx_maxlink parameter current value in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618723#M553452</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can use #kcusage to check the usage &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://nixdoc.net/man-pages/HP-UX/kcusage.1m.html" target="_blank"&gt;http://nixdoc.net/man-pages/HP-UX/kcusage.1m.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sooraj&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 20 Apr 2010 04:33:16 GMT</pubDate>
    <dc:creator>SoorajCleris</dc:creator>
    <dc:date>2010-04-20T04:33:16Z</dc:date>
    <item>
      <title>vx_maxlink parameter current value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618719#M553448</link>
      <description>Hello All,&lt;BR /&gt;&lt;BR /&gt;Can any let me know how to check curent used value of vx_maxlink parameter.&lt;BR /&gt;&lt;BR /&gt;I think this value has reached the limit.&lt;BR /&gt;&lt;BR /&gt;i know default size if 32767 using kctune.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Ankit</description>
      <pubDate>Fri, 16 Apr 2010 02:00:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618719#M553448</guid>
      <dc:creator>ankitj1983</dc:creator>
      <dc:date>2010-04-16T02:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: vx_maxlink parameter current value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618720#M553449</link>
      <description>Kindly Reply</description>
      <pubDate>Sun, 18 Apr 2010 13:02:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618720#M553449</guid>
      <dc:creator>ankitj1983</dc:creator>
      <dc:date>2010-04-18T13:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: vx_maxlink parameter current value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618721#M553450</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;kctune -v vx_maxlink&lt;BR /&gt;&lt;BR /&gt;Should give you the current value of vx_maxlink parameter.&lt;BR /&gt;&lt;BR /&gt;Are you sure that you have reached that limit?&lt;BR /&gt;&lt;BR /&gt;For one file, you can find out the number of hard links like this:&lt;BR /&gt;&lt;BR /&gt;ls -l your_file&lt;BR /&gt;&lt;BR /&gt;-rw------- 1 root root  2379 Nov 12  2008 your_file&lt;BR /&gt;&lt;BR /&gt;The second column (1 in this sample) contain has this info.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;From man vx_maxlink:&lt;BR /&gt;&lt;BR /&gt;vx_maxlink â   Configure the number of links to a file&lt;BR /&gt;&lt;BR /&gt;....&lt;BR /&gt;&lt;BR /&gt;DESCRIPTION&lt;BR /&gt;&lt;BR /&gt;The vx_maxlink tunable is used to configure the number of links possible to a file on VxFS filesystem&lt;BR /&gt;&lt;BR /&gt;As vx_maxlink is initialized when system is booted, the changes made to vx_maxlink will take effect only from the next system reboot.&lt;BR /&gt;&lt;BR /&gt;Horia.</description>
      <pubDate>Mon, 19 Apr 2010 04:13:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618721#M553450</guid>
      <dc:creator>Horia Chirculescu</dc:creator>
      <dc:date>2010-04-19T04:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: vx_maxlink parameter current value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618722#M553451</link>
      <description>&amp;gt;I think this value has reached the limit.&lt;BR /&gt;&lt;BR /&gt;As Horia asked, any reason you think you need more than that many hardlinks to the same file?</description>
      <pubDate>Tue, 20 Apr 2010 04:21:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618722#M553451</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-04-20T04:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: vx_maxlink parameter current value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618723#M553452</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can use #kcusage to check the usage &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://nixdoc.net/man-pages/HP-UX/kcusage.1m.html" target="_blank"&gt;http://nixdoc.net/man-pages/HP-UX/kcusage.1m.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sooraj&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Apr 2010 04:33:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618723#M553452</guid>
      <dc:creator>SoorajCleris</dc:creator>
      <dc:date>2010-04-20T04:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: vx_maxlink parameter current value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618724#M553453</link>
      <description>&amp;gt;Sooraj: You can use kcusage to check the usage&lt;BR /&gt;&lt;BR /&gt;Not for vx_maxlink: Unsupported Tunable: vx_maxlink</description>
      <pubDate>Tue, 20 Apr 2010 04:53:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618724#M553453</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-04-20T04:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: vx_maxlink parameter current value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618725#M553454</link>
      <description>Hello All,&lt;BR /&gt;&lt;BR /&gt;Thansk to all for replying.&lt;BR /&gt;&lt;BR /&gt;will let u know the error tmrw once i reach to office when i am creating any link.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Ankit</description>
      <pubDate>Tue, 20 Apr 2010 14:30:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618725#M553454</guid>
      <dc:creator>ankitj1983</dc:creator>
      <dc:date>2010-04-20T14:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: vx_maxlink parameter current value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618726#M553455</link>
      <description>&amp;gt;will let you know the error when I am creating any link.&lt;BR /&gt;&lt;BR /&gt;If you go crazy, you get this error:&lt;BR /&gt;ln: too many links to make_hlink&lt;BR /&gt;-rwxrwxr-x  32767 326 Apr 20 15:42 make_hlink&lt;BR /&gt;&lt;BR /&gt;EMLINK The maximum number of links to a file would be exceeded.</description>
      <pubDate>Tue, 20 Apr 2010 22:01:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618726#M553455</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-04-20T22:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: vx_maxlink parameter current value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618727#M553456</link>
      <description>&amp;gt;when I am creating any link&lt;BR /&gt;&lt;BR /&gt;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)&lt;BR /&gt;&lt;BR /&gt;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).&lt;BR /&gt;&lt;BR /&gt;Horia.</description>
      <pubDate>Wed, 21 Apr 2010 04:25:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618727#M553456</guid>
      <dc:creator>Horia Chirculescu</dc:creator>
      <dc:date>2010-04-21T04:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: vx_maxlink parameter current value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618728#M553457</link>
      <description>The error is below.&lt;BR /&gt;&lt;BR /&gt;mkdir:&lt;BR /&gt;    cannot create&lt;BR /&gt;    /LOG_RECV/EDI/R00002/EDIorders/k8c35: Too many&lt;BR /&gt;    links&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Apr 2010 06:33:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618728#M553457</guid>
      <dc:creator>ankitj1983</dc:creator>
      <dc:date>2010-04-21T06:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: vx_maxlink parameter current value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618729#M553458</link>
      <description>&amp;gt;mkdir: cannot create /LOG_RECV/EDI/R00002/EDIorders/k8c35: Too many&lt;BR /&gt;links&lt;BR /&gt;&lt;BR /&gt;Doh!  When I created my test case, I deliberately avoided the above issue.&lt;BR /&gt;&lt;BR /&gt;You can't have more than vx_maxlink - 2 directories in a directory.&lt;BR /&gt;What's in /LOG_RECV/EDI/R00002/EDIorders?&lt;BR /&gt;&lt;BR /&gt;I suppose you could cheat and create the directories elsewhere and use a symlink.</description>
      <pubDate>Wed, 21 Apr 2010 07:10:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618729#M553458</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-04-21T07:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: vx_maxlink parameter current value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618730#M553459</link>
      <description>I assume the sub-directories on&lt;BR /&gt;/LOG_RECV/EDI/R00002/EDIorders&lt;BR /&gt;are created by some application that runs periodically, right?&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Horia.</description>
      <pubDate>Wed, 21 Apr 2010 07:30:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618730#M553459</guid>
      <dc:creator>Horia Chirculescu</dc:creator>
      <dc:date>2010-04-21T07:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: vx_maxlink parameter current value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618731#M553460</link>
      <description>Hello Dennis,&lt;BR /&gt;&lt;BR /&gt;I understood you solution 70% can you explain further for better understanding.&lt;BR /&gt;&lt;BR /&gt;Honia,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Ankit</description>
      <pubDate>Thu, 22 Apr 2010 03:24:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618731#M553460</guid>
      <dc:creator>ankitj1983</dc:creator>
      <dc:date>2010-04-22T03:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: vx_maxlink parameter current value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618732#M553461</link>
      <description>&amp;gt;so virtually they have to decide whether to keep the files or not.&lt;BR /&gt;&lt;BR /&gt;Yes, virtually... But do they ever delete any sub-directory from that location?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Horia.</description>
      <pubDate>Thu, 22 Apr 2010 03:49:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618732#M553461</guid>
      <dc:creator>Horia Chirculescu</dc:creator>
      <dc:date>2010-04-22T03:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: vx_maxlink parameter current value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618733#M553462</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;By default, the number of subdirectories (and&lt;BR /&gt;links too) on HP-UX is 32767.&lt;BR /&gt;&lt;BR /&gt;It can be viewed by:&lt;BR /&gt;&lt;BR /&gt;# kctune -v vx_maxlink&lt;BR /&gt;&lt;BR /&gt;Tunable             vx_maxlink&lt;BR /&gt;Description         Maximum number of links to a VxFS file&lt;BR /&gt;Module              vxfs50&lt;BR /&gt;Current Value       32767 [Default]&lt;BR /&gt;Value at Next Boot  32767 [Default]&lt;BR /&gt;Value at Last Boot  32767&lt;BR /&gt;Default Value       32767&lt;BR /&gt;Constraints         vx_maxlink &amp;gt;= 32767&lt;BR /&gt;                    vx_maxlink &amp;lt;= 65534&lt;BR /&gt;Can Change          At Next Boot Only&lt;BR /&gt;&lt;BR /&gt;This is a static kernel parameter so&lt;BR /&gt;a reboot is required.&lt;BR /&gt;&lt;BR /&gt;The other method to check the defaults is:&lt;BR /&gt;&lt;BR /&gt;# grep LINK_MAX /usr/include/limits.h&lt;BR /&gt;&lt;BR /&gt;#  define _POSIX_LINK_MAX       8       /* The value of a files link count */&lt;BR /&gt;#  define _POSIX_SYMLINK_MAX    255 /* Number of bytes in a symbolic link */&lt;BR /&gt;#    define LINK_MAX    32767   /* Max number of links to a single file */&lt;BR /&gt;&lt;BR /&gt;In your specific case, it seems that&lt;BR /&gt;it is not the number of symbolic links that&lt;BR /&gt;is hurting but number of subdirectories.&lt;BR /&gt;&lt;BR /&gt;So, quite probably your directory&lt;BR /&gt;/LOG_RECV/EDI/R00002/EDIorders&lt;BR /&gt;already contains 32767 - 2 = 32767 &lt;BR /&gt;subdirectories.&lt;BR /&gt;&lt;BR /&gt;Possible cleanup:&lt;BR /&gt;&lt;BR /&gt;a) Move some directories into other places;&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;b) Remove some of them;&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;c) Increase the value of parameter&lt;BR /&gt;vx_maxlink to up to 65534, which means you&lt;BR /&gt;can have 65532 subdirectories in&lt;BR /&gt;/LOG_RECV/EDI/R00002/EDIorders&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Thu, 22 Apr 2010 05:36:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618733#M553462</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2010-04-22T05:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: vx_maxlink parameter current value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618734#M553463</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Hmm, silly mathematics by me, that might&lt;BR /&gt;work for accountants but not&lt;BR /&gt;for IT staff and scientists :)&lt;BR /&gt;&lt;BR /&gt; 32767 - 2 = 32767&lt;BR /&gt;&lt;BR /&gt;It should say:&lt;BR /&gt;&lt;BR /&gt; 32767 - 2 = 32765&lt;BR /&gt;&lt;BR /&gt;Bad typing, sorry.&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Thu, 22 Apr 2010 05:42:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618734#M553463</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2010-04-22T05:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: vx_maxlink parameter current value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618735#M553464</link>
      <description>&amp;gt;I understood your solution 70% can you explain further for better understanding.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;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.&lt;BR /&gt;&lt;BR /&gt;You don't have to remove them, just move them and add a symlink.&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Apr 2010 07:53:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vx-maxlink-parameter-current-value/m-p/4618735#M553464</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-04-22T07:53:17Z</dc:date>
    </item>
  </channel>
</rss>

