<?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: Removig large directory in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/removig-large-directory/m-p/4268858#M333907</link>
    <description>No, you dont have any option for any change in any kernal parameter for this type of task&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;SKR</description>
    <pubDate>Sun, 14 Sep 2008 09:46:24 GMT</pubDate>
    <dc:creator>SKR_1</dc:creator>
    <dc:date>2008-09-14T09:46:24Z</dc:date>
    <item>
      <title>Removig large directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removig-large-directory/m-p/4268854#M333903</link>
      <description>Dear Masters,&lt;BR /&gt;&lt;BR /&gt;OS HP-UX 11.11&lt;BR /&gt;&lt;BR /&gt;I wanna remove one directory which is having application logs more than 400000 andsize 20GB+&lt;BR /&gt;I tried rm -rf command for remove logs directory but its taking to much time.&lt;BR /&gt;&lt;BR /&gt;Please suggest me any solution which will took 2-3 Hrs</description>
      <pubDate>Sun, 14 Sep 2008 07:10:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removig-large-directory/m-p/4268854#M333903</guid>
      <dc:creator>HrishiMV</dc:creator>
      <dc:date>2008-09-14T07:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Removig large directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removig-large-directory/m-p/4268855#M333904</link>
      <description>Why are you removing this application log directory?&lt;BR /&gt;&lt;BR /&gt;You should clear the logs inside this directory if you dont need that logs.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; log file name ( to trim the log file )&lt;BR /&gt;&lt;BR /&gt;rm -rf directory ( to remove the directory )&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;SKR</description>
      <pubDate>Sun, 14 Sep 2008 07:50:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removig-large-directory/m-p/4268855#M333904</guid>
      <dc:creator>SKR_1</dc:creator>
      <dc:date>2008-09-14T07:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Removig large directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removig-large-directory/m-p/4268856#M333905</link>
      <description>you have created three threads for the same question, please close the other two threads.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;SKR</description>
      <pubDate>Sun, 14 Sep 2008 07:52:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removig-large-directory/m-p/4268856#M333905</guid>
      <dc:creator>SKR_1</dc:creator>
      <dc:date>2008-09-14T07:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Removig large directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removig-large-directory/m-p/4268857#M333906</link>
      <description>Dear SKR&lt;BR /&gt;&lt;BR /&gt;We tried rm -rf directory command. But it is taking time in hours. But Is there any faster way? Is it possible to change any kernel parameter for quicker result?&lt;BR /&gt;</description>
      <pubDate>Sun, 14 Sep 2008 08:57:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removig-large-directory/m-p/4268857#M333906</guid>
      <dc:creator>HrishiMV</dc:creator>
      <dc:date>2008-09-14T08:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Removig large directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removig-large-directory/m-p/4268858#M333907</link>
      <description>No, you dont have any option for any change in any kernal parameter for this type of task&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;SKR</description>
      <pubDate>Sun, 14 Sep 2008 09:46:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removig-large-directory/m-p/4268858#M333907</guid>
      <dc:creator>SKR_1</dc:creator>
      <dc:date>2008-09-14T09:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Removig large directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removig-large-directory/m-p/4268859#M333908</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;to rm a file a lot of things have to be done:&lt;BR /&gt;e.g.&lt;BR /&gt;maintaining file system journal, change filesystem blocklist, change directory entry, commit journal.&lt;BR /&gt;this has to be done for each file and for millions of files .... a lot of work.&lt;BR /&gt;&lt;BR /&gt;Think of a cleaning job that runs more frequently.&lt;BR /&gt;&lt;BR /&gt;Think about splitting the logfiles into different directories by application or date.&lt;BR /&gt;&lt;BR /&gt;Also think about a dedicated filesystem. Then you can play with vxfs-mountoptions:&lt;BR /&gt;see mount_vxfs(1m). &lt;BR /&gt;&lt;BR /&gt;Generally it is a bad idea having that much files in one directory. Every "ls -l" causes huge load. Think about all that poor programmed scripts with lots of "ls -l | awk ...". And if that directory is shared via nfs/cifs situation gets worse.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;HGH</description>
      <pubDate>Sun, 14 Sep 2008 11:44:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removig-large-directory/m-p/4268859#M333908</guid>
      <dc:creator>Hemmetter</dc:creator>
      <dc:date>2008-09-14T11:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Removig large directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removig-large-directory/m-p/4268860#M333909</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;and what about renaming the directory "away", recreate it for new logs and then slowly delete the old?&lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;HGH</description>
      <pubDate>Sun, 14 Sep 2008 12:38:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removig-large-directory/m-p/4268860#M333909</guid>
      <dc:creator>Hemmetter</dc:creator>
      <dc:date>2008-09-14T12:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Removig large directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removig-large-directory/m-p/4268861#M333910</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I guess if the filesystem the directory is in is a VxFS filesystem you could try remounting it temporarily with the tmplog option to reduce the amount of metadata logging VxFS has to do. Something like this should work:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;mount -F vxfs -o remount,tmplog /myfilesystem&lt;BR /&gt;&lt;BR /&gt;Obviously substituting your filesystems name. Once complete you should be able to reinstate the original filesystem options by using:&lt;BR /&gt;&lt;BR /&gt;mount -F vxfs -o remount /myfilesystem&lt;BR /&gt;&lt;BR /&gt;This is all assuming your filesystem is in /etc/fstab. I also have no idea whether this will work on a system without OnlineJFS, and whether it will make any difference at all to the performance of the "rm -rf" command - you'll just have to give it a try...&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan&lt;BR /&gt;</description>
      <pubDate>Sun, 14 Sep 2008 13:53:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removig-large-directory/m-p/4268861#M333910</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2008-09-14T13:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Removig large directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removig-large-directory/m-p/4268862#M333911</link>
      <description>Hi hrishiMV&lt;BR /&gt;&lt;BR /&gt;This is normal behavior that can be checked for progress with a find command.&lt;BR /&gt;&lt;BR /&gt;find /filesystem  | wc -l</description>
      <pubDate>Sun, 14 Sep 2008 14:16:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removig-large-directory/m-p/4268862#M333911</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2008-09-14T14:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Removig large directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removig-large-directory/m-p/4268863#M333912</link>
      <description>If you don't care about the 20 Gb, you can just unlink the directory.&lt;BR /&gt;&lt;BR /&gt;I suppose emptying each file (as SKR says) and then unlinking the directory wouldn't lose most of the space.&lt;BR /&gt;&lt;BR /&gt;If there is nothing else in the filesystem, you could just recreate it.</description>
      <pubDate>Sun, 14 Sep 2008 16:06:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removig-large-directory/m-p/4268863#M333912</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-09-14T16:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Removig large directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removig-large-directory/m-p/4268864#M333913</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you want to delete the directory then first trim the logfiles with &lt;BR /&gt;&amp;gt; logfile  (trim the log file)&lt;BR /&gt;once the files got trimed then apply the rm -Rf directory, it will remove your directory more faster then only doning rm -Rf &lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Mon, 15 Sep 2008 04:52:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removig-large-directory/m-p/4268864#M333913</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2008-09-15T04:52:01Z</dc:date>
    </item>
  </channel>
</rss>

