<?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: cannot delete recursive directory in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201158#M324705</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Its not possible.&lt;BR /&gt;&lt;BR /&gt;find . -inum 1233 |xargs rm -r&lt;BR /&gt;&lt;BR /&gt;cannot  open ./core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/: No such file or directory&lt;BR /&gt;pwd: Too many open files&lt;BR /&gt;</description>
    <pubDate>Tue, 20 May 2008 08:48:06 GMT</pubDate>
    <dc:creator>Carme Torca</dc:creator>
    <dc:date>2008-05-20T08:48:06Z</dc:date>
    <item>
      <title>cannot delete recursive directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201155#M324702</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have one directory with a lot of recursive directories...&lt;BR /&gt;  core/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/..../core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237&lt;BR /&gt;&lt;BR /&gt;I have prove to remove with the inum&lt;BR /&gt;  find . -inum 1233 -exec rm -r {}\;&lt;BR /&gt;, but it does not work. I have prove to remove with rm -r&lt;BR /&gt;  rm -r core&lt;BR /&gt;, but it does not works ok.  The two commands saids: "pwd: File name too long"&lt;BR /&gt;&lt;BR /&gt;Could anyone help me?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Carmen.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 May 2008 07:28:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201155#M324702</guid>
      <dc:creator>Carme Torca</dc:creator>
      <dc:date>2008-05-20T07:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: cannot delete recursive directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201156#M324703</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;find . -inum 1233 -exec rm -r {} \;&lt;BR /&gt;&lt;BR /&gt;But before you use rm, try listing the files by ll and once you are confirmed that the files are ok to be deleted, then use.&lt;BR /&gt;&lt;BR /&gt;Your issue was that you omitted a space in between the {} and \&lt;BR /&gt;&lt;BR /&gt;Rgds.&lt;BR /&gt;Rasheed Tamton.&lt;BR /&gt;</description>
      <pubDate>Tue, 20 May 2008 07:36:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201156#M324703</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2008-05-20T07:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: cannot delete recursive directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201157#M324704</link>
      <description>Hi Carmen,&lt;BR /&gt;&lt;BR /&gt;Try&lt;BR /&gt;&lt;BR /&gt;Inodes are only unique to one filesystem!&lt;BR /&gt;&lt;BR /&gt;# find /your_filesystem -inum 1233 | xargs rm &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Tue, 20 May 2008 08:15:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201157#M324704</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2008-05-20T08:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: cannot delete recursive directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201158#M324705</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Its not possible.&lt;BR /&gt;&lt;BR /&gt;find . -inum 1233 |xargs rm -r&lt;BR /&gt;&lt;BR /&gt;cannot  open ./core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/core_16237/: No such file or directory&lt;BR /&gt;pwd: Too many open files&lt;BR /&gt;</description>
      <pubDate>Tue, 20 May 2008 08:48:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201158#M324705</guid>
      <dc:creator>Carme Torca</dc:creator>
      <dc:date>2008-05-20T08:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: cannot delete recursive directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201159#M324706</link>
      <description>&amp;gt;Robert-Jan: # find /your_filesystem -inum 1233 | xargs rm&lt;BR /&gt;&lt;BR /&gt;When doing -inum there will only be the one file/directory, so why use xargs?&lt;BR /&gt;&lt;BR /&gt;An if you want performance with find you should use a "+":&lt;BR /&gt;find . -inum 1233 -exec rm -r {} +&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 May 2008 08:50:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201159#M324706</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-05-20T08:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: cannot delete recursive directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201160#M324707</link>
      <description>Hi Carmen.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Too many open files&lt;BR /&gt;--&lt;BR /&gt;You running into a kernel parameter limit or a ulimit problem, could post the the output of "ulimit -a" and your current kernel parameters settings for below parameters.&lt;BR /&gt;&lt;BR /&gt;maxfiles&lt;BR /&gt;maxfiles_lim&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Tue, 20 May 2008 08:58:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201160#M324707</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2008-05-20T08:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: cannot delete recursive directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201161#M324708</link>
      <description>Dennis, the inode can still be a directory with to many files for the shell to remove (exceeding the command line's maximum length), using xargs or find ... + will bypass the shell limits.&lt;BR /&gt;&lt;BR /&gt;Im not going to argue all remarks you make in the threads, because I feel this is not the intent of this forum.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Tue, 20 May 2008 09:16:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201161#M324708</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2008-05-20T09:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: cannot delete recursive directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201162#M324709</link>
      <description>&amp;gt;cannot open ./core_16237/core_16237/...&lt;BR /&gt;pwd: Too many open files&lt;BR /&gt;&lt;BR /&gt;The last time this happened to me, I had to descend into the directory tree way down then remove the files from a subtree using "rm -rf .".&lt;BR /&gt;Once this is done, you can restart at the top.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Robert-Jan: the inode can still be a directory with too many files for the shell to remove (exceeding the command line's maximum length)&lt;BR /&gt;&lt;BR /&gt;That can't happen, the shell isn't involved, only rm(1).  The result of "find . -inum" is likely to be just one file.  So you are executing:&lt;BR /&gt;rm -r long-directory-path&lt;BR /&gt;&lt;BR /&gt;This should fit in the shell's command line.&lt;BR /&gt;Note: "rm -r" doesn't recursively fork/exec itself to remove the files.  The recursion is within the process.  Obviously rm(1) can't handle this tree as is but neither would using xargs(1) and then rm(1).&lt;BR /&gt;&lt;BR /&gt;&amp;gt;using xargs or find ... + will bypass the shell limits.&lt;BR /&gt;&lt;BR /&gt;Naturally but this trick isn't needed when using "-inum".</description>
      <pubDate>Tue, 20 May 2008 10:29:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201162#M324709</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-05-20T10:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: cannot delete recursive directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201163#M324710</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have increase it,&lt;BR /&gt;&lt;BR /&gt;# ulimit -a&lt;BR /&gt;  nofiles(descriptors) 64&lt;BR /&gt;to  &lt;BR /&gt;  nofiles(descriptors) 8192&lt;BR /&gt;&lt;BR /&gt;but it aborts again.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 May 2008 10:33:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201163#M324710</guid>
      <dc:creator>Carme Torca</dc:creator>
      <dc:date>2008-05-20T10:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: cannot delete recursive directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201164#M324711</link>
      <description>Sorry....I forget one this!! this directory its on  /disc/lost+found/  core_16237/....&lt;BR /&gt;&lt;BR /&gt;its anyone to eliminate de lost+found and recreate again??&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;Carmen.</description>
      <pubDate>Tue, 20 May 2008 10:35:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201164#M324711</guid>
      <dc:creator>Carme Torca</dc:creator>
      <dc:date>2008-05-20T10:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: cannot delete recursive directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201165#M324712</link>
      <description>Can you post the output:&lt;BR /&gt;&lt;BR /&gt;ncheck -F vxfs /dev/vg??/rlvol?|grep 1233&lt;BR /&gt;ll -i /dir |grep 1233&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 May 2008 10:37:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201165#M324712</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2008-05-20T10:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: cannot delete recursive directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201166#M324713</link>
      <description>Here you are,&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;1233  /lost+found/#1233/.&lt;BR /&gt;478465  /lost+found/#1233/core_16237/core_16237/core_16237/.&lt;BR /&gt;227910  /lost+found/#1233/core_16237/core_16237/core_16237/core_16237/core_162     37/core_16237/core_16237/core_16237/core_16237/core_16237/.&lt;BR /&gt;358858  .../#1233/core_16237/core_16237/core_16237/core_16237/core_16237/core_     16237/core_16237/core_16237/core_16237/core_16237/core_16237/.&lt;BR /&gt;626633  /lost+found/#1233/core_16237/core_16237/core_16237/core_16237/.&lt;BR /&gt;677899  /lost+found/#1233/core_16237/core_16237/core_16237/core_16237/core_162     37/.&lt;BR /&gt;717773  /lost+found/#1233/core_16237/.&lt;BR /&gt;717774  /lost+found/#1233/core_16237/core_16237/core_16237/core_16237/core_162     37/core_16237/.&lt;BR /&gt;68427   /lost+found/#1233/core_16237/core_16237/.&lt;BR /&gt;751944  /lost+found/#1233/core_16237/core_16237/core_16237/core_16237/core_162     37/core_16237/core_16237/.&lt;BR /&gt;797513  /lost+found/#1233/core_16237/core_16237/core_16237/core_16237/core_162     37/core_16237/core_16237/core_16237/.&lt;BR /&gt;68428   /lost+found/#1233/core_16237/core_16237/core_16237/core_16237/core_162     37/core_16237/core_16237/core_16237/core_16237/.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; $ls -i /disc/lost+found |grep 1233&lt;BR /&gt;1233 #1233&lt;BR /&gt;</description>
      <pubDate>Tue, 20 May 2008 10:58:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201166#M324713</guid>
      <dc:creator>Carme Torca</dc:creator>
      <dc:date>2008-05-20T10:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: cannot delete recursive directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201167#M324714</link>
      <description>Have you tried:&lt;BR /&gt;cd /lost+found/#1233/core_16237&lt;BR /&gt;cd core_16237/core_16237/core_16237/core_16237&lt;BR /&gt;rm -rf .&lt;BR /&gt;&lt;BR /&gt;If the rm fails, repeat the cd to go deeper, then repeat.</description>
      <pubDate>Tue, 20 May 2008 11:14:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201167#M324714</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-05-20T11:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: cannot delete recursive directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201168#M324715</link>
      <description>Hi Carmen:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; its anyone to eliminate the lost+found and recreate again??&lt;BR /&gt;&lt;BR /&gt;In the case you describe, you aren't going to be able to remove from this level if you can't remove from a subordinate directory.&lt;BR /&gt;&lt;BR /&gt;That said, for your information, yes.  You can recreate the 'lost+found' directory in a filesystem with 'mklost+found'.  See the manpages for more information.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 20 May 2008 11:33:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201168#M324715</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-05-20T11:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: cannot delete recursive directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201169#M324716</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;@Dennis: you can't remove the tree you're sitting on (rm -rf .):&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;cd /lost+found/#1233/core_16237&lt;BR /&gt;cd core_16237/core_16237/core_16237/core_16237&lt;BR /&gt;rm -rf .&lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;Try instead&lt;BR /&gt;&lt;BR /&gt;cd /lost+found/#1233/core_16237&lt;BR /&gt;cd core_16237/core_16237/core_16237/core_16237&lt;BR /&gt;rm -rf core_16237&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Tue, 20 May 2008 13:54:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201169#M324716</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2008-05-20T13:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: cannot delete recursive directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201170#M324717</link>
      <description>&amp;gt;Here you are,&lt;BR /&gt;1233 /lost+found/#1233/.&lt;BR /&gt;478465 /lost+found/#1233/core_16237/core_16237/core_16237/.&lt;BR /&gt;&lt;BR /&gt;It doesn't look like there is a cycle in the directories.  It looks like my previous case of some script gone awry.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Peter: @Dennis: you can't remove the tree you're sitting on (rm -rf .):&lt;BR /&gt;&lt;BR /&gt;Oops, I thought rm(1) would at least try to get the others.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;rm -rf core_16237&lt;BR /&gt;&lt;BR /&gt;Yes or "*" if there is only the one directory there.&lt;BR /&gt;&lt;BR /&gt;Also, if the tree is really deep, you can cd 10s of directories at a time:&lt;BR /&gt;DD=core_16237/core_16237/core_16237/core_16237/core_16237&lt;BR /&gt;DD20=$DD/$DD/$DD/$DD&lt;BR /&gt;cd $DD20</description>
      <pubDate>Tue, 20 May 2008 19:15:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-recursive-directory/m-p/4201170#M324717</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-05-20T19:15:15Z</dc:date>
    </item>
  </channel>
</rss>

