<?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: in order to free space from root filesystem.... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088979#M442021</link>
    <description>As Steve says, /etc cannot be a separate filesystem, so do not do what you planned.&lt;BR /&gt;&lt;BR /&gt;First question: how long has / been 89% full? If it is not growing, there is no problem.&lt;BR /&gt;&lt;BR /&gt;Second question: assuming / has recently grown, do you have any ordinary files in /dev? The most common cause of / suddenly growing is someone mistyping a tape device name and creating a large text file in /dev.&lt;BR /&gt;&lt;BR /&gt;If / is growing and there isn't a large ordinary file in /dev, check to see if any applications are writing to / that would be better writing to a dedicated lvol/filesystem.&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
    <pubDate>Tue, 22 Jan 2008 09:24:30 GMT</pubDate>
    <dc:creator>MarkSyder</dc:creator>
    <dc:date>2008-01-22T09:24:30Z</dc:date>
    <item>
      <title>in order to free space from root filesystem....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088976#M442018</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;My HP-UX 11.11 has a 200M / filesystem.&lt;BR /&gt;Now it is 89%.......including 100M /etc directory in it.&lt;BR /&gt;&lt;BR /&gt;Since root filesystem cannot be extend, I plan to:&lt;BR /&gt;1) create a new filesystem /etcs on a new volumn&lt;BR /&gt;2) copy all files from /etc to /etcs(cp -rp /etc/* /etcs)&lt;BR /&gt;3) remove /etc(rm -Rf /etc)&lt;BR /&gt;4) make a soft link /etc link to /etcs instead(ln -s /etc /etcs)&lt;BR /&gt;&lt;BR /&gt;So that I can reduce the using space of / filesystem......in theory.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But this server is an important production server, I am afraid what I do will cause some critical problem.&lt;BR /&gt;&lt;BR /&gt;Is there anybody has suggestions?&lt;BR /&gt;Can I do what I plan to do as I describe above?&lt;BR /&gt;&lt;BR /&gt;Thanks for any help/suggestion.</description>
      <pubDate>Tue, 22 Jan 2008 09:06:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088976#M442018</guid>
      <dc:creator>Livia</dc:creator>
      <dc:date>2008-01-22T09:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: in order to free space from root filesystem....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088977#M442019</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You need /etc on the root system to reboot.&lt;BR /&gt;&lt;BR /&gt;Stuff like mnttab and fstab.&lt;BR /&gt;&lt;BR /&gt;Moving it is a bad idea&lt;BR /&gt;&lt;BR /&gt;Look at sam&lt;BR /&gt;routine tasks&lt;BR /&gt;system log files&lt;BR /&gt;&lt;BR /&gt;or selective file removal to make space&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;                   Steve Steel</description>
      <pubDate>Tue, 22 Jan 2008 09:17:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088977#M442019</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2008-01-22T09:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: in order to free space from root filesystem....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088978#M442020</link>
      <description>Hi Livia,&lt;BR /&gt;&lt;BR /&gt;Sounds good for me, to extend / filesystem, I would prefer ignite, backup/restore. If that not possible then, doing what you planned sounds good. Just make sure you have a proper backup before you do all that.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sandy</description>
      <pubDate>Tue, 22 Jan 2008 09:18:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088978#M442020</guid>
      <dc:creator>Sandy Chen</dc:creator>
      <dc:date>2008-01-22T09:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: in order to free space from root filesystem....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088979#M442021</link>
      <description>As Steve says, /etc cannot be a separate filesystem, so do not do what you planned.&lt;BR /&gt;&lt;BR /&gt;First question: how long has / been 89% full? If it is not growing, there is no problem.&lt;BR /&gt;&lt;BR /&gt;Second question: assuming / has recently grown, do you have any ordinary files in /dev? The most common cause of / suddenly growing is someone mistyping a tape device name and creating a large text file in /dev.&lt;BR /&gt;&lt;BR /&gt;If / is growing and there isn't a large ordinary file in /dev, check to see if any applications are writing to / that would be better writing to a dedicated lvol/filesystem.&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
      <pubDate>Tue, 22 Jan 2008 09:24:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088979#M442021</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2008-01-22T09:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: in order to free space from root filesystem....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088980#M442022</link>
      <description>I agree with Mark and Steve, not a good idear to move /etc to a seperate filesystem.&lt;BR /&gt;&lt;BR /&gt;Could you post the output of&lt;BR /&gt;&lt;BR /&gt;# du -kx / | sort -rn | head -20&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Tue, 22 Jan 2008 09:32:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088980#M442022</guid>
      <dc:creator>Robert-Jan Goossens_1</dc:creator>
      <dc:date>2008-01-22T09:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: in order to free space from root filesystem....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088981#M442023</link>
      <description>Hi Livia,&lt;BR /&gt;&lt;BR /&gt;first, find out what comsumes the space, e.g.:&lt;BR /&gt;&lt;BR /&gt;# cd /etc&lt;BR /&gt;# du -sk *&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;# find / -type f -xdev -size +3000000c&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K. &lt;BR /&gt;</description>
      <pubDate>Tue, 22 Jan 2008 09:34:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088981#M442023</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2008-01-22T09:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: in order to free space from root filesystem....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088982#M442024</link>
      <description>Your planned action will definitely cause a critical problem.&lt;BR /&gt;&lt;BR /&gt;When HP-UX 11.11 boots, the kernel will find the root filesystem using the information stored by the lvlnboot command. After that, all other filesystems are mounted by the startup scripts, using the mount command and the /etc/fstab file.&lt;BR /&gt;&lt;BR /&gt;If /etc is a soft link to another filesystem, there is no way to find /etc/fstab if /etcs is not mounted... and at boot-time, there is no way for the mount command to find out that it's supposed to mount some LV to /etcs. &lt;BR /&gt;&lt;BR /&gt;You won't even get as far as the single-user mode, as the init process will need to read /etc/inittab immediately after it starts. The location of /etc/inittab is hardcoded: you cannot tell init to find it anywhere else.&lt;BR /&gt;&lt;BR /&gt;In short: Don't do it. There are several very good reasons why /etc must be located on the root filesystem. Moving it will make your system unbootable.&lt;BR /&gt;&lt;BR /&gt;As an alternative, use "du -kx / | sort -rn" to find the biggest consumers of the root filesystem. &lt;BR /&gt;My guesses: &lt;BR /&gt;- maybe a big core file somewhere?&lt;BR /&gt;- a typo may have caused a file to be created in /dev. &lt;BR /&gt;- if you have large volume groups (SAN environment maybe?), /etc/lvmconf may have large vg*.conf and vg*.conf.old files.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Tue, 22 Jan 2008 10:07:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088982#M442024</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2008-01-22T10:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: in order to free space from root filesystem....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088983#M442025</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Also&lt;BR /&gt;&lt;BR /&gt;du -s /var/adm/crash/*&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Look for core files&lt;BR /&gt;&lt;BR /&gt;Large syslog files to prune with sam&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;du -s /var/adm/*|sort -n&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;                   Steve Steel&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Jan 2008 15:03:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088983#M442025</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2008-01-22T15:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: in order to free space from root filesystem....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088984#M442026</link>
      <description>Do you have online jfs?&lt;BR /&gt;&lt;BR /&gt;If so - you may be able to extend root - live!&lt;BR /&gt;&lt;BR /&gt;Yes - all you need is a spare disk (or break your mirror and use it).&lt;BR /&gt;&lt;BR /&gt;See my "not for the faint of heart" instructions here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.met.ca/itrc/index.php?option=com_content&amp;amp;task=view&amp;amp;id=89&amp;amp;Itemid=2" target="_blank"&gt;http://www.met.ca/itrc/index.php?option=com_content&amp;amp;task=view&amp;amp;id=89&amp;amp;Itemid=2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Always have a good backup!&lt;BR /&gt;&lt;BR /&gt;And yes - ignite is the preferred way to do this - but I just can't stand taking a system down (after all - HP-UX isn't Windoze).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 22 Jan 2008 15:51:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088984#M442026</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2008-01-22T15:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: in order to free space from root filesystem....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088985#M442027</link>
      <description>Livia,&lt;BR /&gt;&lt;BR /&gt;You can move *some* of /etc, those being /etc/opt and /etc/lp.&lt;BR /&gt;&lt;BR /&gt;And you'll more than likely fix your problem. It fixed ours.&lt;BR /&gt;&lt;BR /&gt;Go through your same steps, using them for making mount points and moving both /etc/opt and /etc/lp.  &lt;BR /&gt;&lt;BR /&gt;This will take care of a lot of your space issues, and will still allow a clean boot up, because none of the items in /etc/opt and /etc/lp are required for booting (at least for us).  Make sure and TEST THIS on at test server first, because it is possible that you're using something in here that is needed in early in the boot, though I doubt it.  All I have in there is stuff that is started later during the boot (at init level 3), well after /etc/opt and /etc/lp have already been mounted.&lt;BR /&gt;&lt;BR /&gt;On my system, /etc/opt is 34M and /etc/lp is 22M.  Your mileage may vary, but this saved me  56M of my 200 Meg root file system - which was plenty enough to save me from having to reload the OS from ignite.</description>
      <pubDate>Tue, 22 Jan 2008 16:14:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088985#M442027</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2008-01-22T16:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: in order to free space from root filesystem....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088986#M442028</link>
      <description>&lt;!--!*#--&gt;Thanks for all suggestions! (Now I am so glad that I ask before doing so.....)&lt;BR /&gt;&lt;BR /&gt;The / filesystem has been about 85% for at least a year. It has increased resently since lots of patches installed on it.&lt;BR /&gt;&amp;gt; bdf&lt;BR /&gt;Filesystem                      kbytes      used        avail %used Mounted on&lt;BR /&gt;/dev/vx/dsk/rootdg/rootvol      204800     182168       22632   89% /&lt;BR /&gt;/dev/vx/dsk/rootdg/standvol     295024      78432      187088   30% /stand&lt;BR /&gt;/dev/vx/dsk/rootdg/varvol       12288000   4045960    8178280   33% /var&lt;BR /&gt;/dev/vx/dsk/rootdg/usrvol       3268608    1195992    2056488   37% /usr&lt;BR /&gt;/dev/vx/dsk/rootdg/tmpvol       3268608    2451752     810608   75% /tmp&lt;BR /&gt;/dev/vx/dsk/rootdg/optvol       3268608    1338256    1915288   41% /opt&lt;BR /&gt;/dev/vx/dsk/rootdg/homevol      4317184    2621456    1683184   61% /home&lt;BR /&gt;/dev/vx/dsk/rootdg/data         36700160   29834588   6651060   82% /data&lt;BR /&gt;/dev/vx/dsk/DEVDG/oracle        133693440  81058504  52223760   61% /DEVDB/oracle&lt;BR /&gt;/dev/vx/dsk/DEVDG/oracle1       89313504   42312496  46633856   48% /DEVDB/oracle/oradata/INSTANCE2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; du -kx / | sort -rn | head -20 &lt;BR /&gt;174840  /&lt;BR /&gt;94960   /etc&lt;BR /&gt;64032   /etc/vx&lt;BR /&gt;48480   /sbin&lt;BR /&gt;32992   /etc/vx/type&lt;BR /&gt;29480   /etc/vx/static.d&lt;BR /&gt;28768   /etc/vx/static.d/build&lt;BR /&gt;18456   /etc/opt&lt;BR /&gt;16328   /nsr&lt;BR /&gt;16176   /nsr/applogs&lt;BR /&gt;15632   /nsr/applogs/msglog&lt;BR /&gt;14936   /etc/vx/type/static&lt;BR /&gt;13912   /.VRTSob&lt;BR /&gt;13856   /.VRTSob/extensions&lt;BR /&gt;13032   /etc/opt/resmon&lt;BR /&gt;8960    /etc/vx/type/gen&lt;BR /&gt;7800    /etc/opt/resmon/lbin&lt;BR /&gt;6784    /etc/vx/type/raid5&lt;BR /&gt;5912    /sbin/fs&lt;BR /&gt;4448    /etc/emc&lt;BR /&gt;&lt;BR /&gt;It seems /sbin should keep on root filesystem.&lt;BR /&gt;I use vxvm on this server, so /etc/vx should not be moved(?)&lt;BR /&gt;I think /nsr is safe to be moved to another filesystem, but it only take 8% space of the whole / filessystem.&lt;BR /&gt;/etc/lp is very small, /etc/opt is safe to be moved to another filesystem (according to  TwoProc's experience), but it takes only 9% of the whole / filesystem......&lt;BR /&gt;&lt;BR /&gt;So, maybe I could try  Geoff Wild's resolution first to see if it works on vxvm first....?</description>
      <pubDate>Wed, 23 Jan 2008 01:32:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088986#M442028</guid>
      <dc:creator>Livia</dc:creator>
      <dc:date>2008-01-23T01:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: in order to free space from root filesystem....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088987#M442029</link>
      <description>174840  /&lt;BR /&gt;94960   /etc&lt;BR /&gt;64032   /etc/vx&lt;BR /&gt;48480   /sbin&lt;BR /&gt;32992   /etc/vx/type&lt;BR /&gt;...&lt;BR /&gt; &lt;BR /&gt;Yes, /sbin must remain on the root filesystem. Note that a small to mid-sized server will use about 30-40 megs for both /etc and /sbin, so /sbin is fine. /etc is about 3x the usual size but because most of the space is in the /etc/vx tree, it would seem that you have an enormous disk farm. However, I don't see dozens of mountpoints or multi-terabyte volumes, so it would seem there might be a lot of small LUNs. If this system will continue to grow with more disk LUNs, you'll have to re-ignite the system with a much bigger /, at least 500 megs.</description>
      <pubDate>Wed, 23 Jan 2008 02:33:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088987#M442029</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2008-01-23T02:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: in order to free space from root filesystem....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088988#M442030</link>
      <description>HI&lt;BR /&gt;i hane HP 9000 K450&lt;BR /&gt;ROOT FILE SYSTEM IS FULL&lt;BR /&gt;CORE FILE ALWAYS BIG&lt;BR /&gt;I REMOVE CORE FILE DAILY&lt;BR /&gt;AFTER CORE FILE REMOVE ROOT FILE SYSTEM CAME 22%&lt;BR /&gt;root file system is 92 M&lt;BR /&gt;&lt;BR /&gt;WHY CORE FILE DAILY INCREASE&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Abdullah Omar</description>
      <pubDate>Sat, 16 Feb 2008 06:52:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088988#M442030</guid>
      <dc:creator>omar abdullah</dc:creator>
      <dc:date>2008-02-16T06:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: in order to free space from root filesystem....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088989#M442031</link>
      <description>&amp;gt;Abdullah Omar: WHY CORE FILE DAILY INCREASE&lt;BR /&gt;&lt;BR /&gt;You need to ask your questions in your own thread so you can give proper credit for the answers.  You can point to this thread if there is any background that is useful for your question.</description>
      <pubDate>Sat, 16 Feb 2008 07:20:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088989#M442031</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-02-16T07:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: in order to free space from root filesystem....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088990#M442032</link>
      <description>Because most of thefilesystem cannot be moved from root filesystem, I think maybe the best way to make enough space in root filesystem is expand filesystem space be using Ignite.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Jul 2008 01:54:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/in-order-to-free-space-from-root-filesystem/m-p/5088990#M442032</guid>
      <dc:creator>Livia</dc:creator>
      <dc:date>2008-07-02T01:54:22Z</dc:date>
    </item>
  </channel>
</rss>

