<?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: Running out of space in /var/tmp when unpacking a patch in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/running-out-of-space-in-var-tmp-when-unpacking-a-patch/m-p/3620567#M235909</link>
    <description>Hi,&lt;BR /&gt;You can download the patch including the create_depot_hp-ux_11 script and you can make patch depot wherever you want.&lt;BR /&gt;Regards,&lt;BR /&gt;Borislav</description>
    <pubDate>Wed, 07 Sep 2005 07:09:33 GMT</pubDate>
    <dc:creator>Borislav Perkov</dc:creator>
    <dc:date>2005-09-07T07:09:33Z</dc:date>
    <item>
      <title>Running out of space in /var/tmp when unpacking a patch</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-out-of-space-in-var-tmp-when-unpacking-a-patch/m-p/3620566#M235908</link>
      <description>I am trying to unpack a patch using:&lt;BR /&gt;sh PHSS_XXXX.&lt;BR /&gt;The patch is quite large and the process keeps filling up /var/tmp and therefore fails.&lt;BR /&gt;I have set TMPDIR to a large filesystem as recommended in the shar man page but it is still using /var/tmp.&lt;BR /&gt;&lt;BR /&gt;How can I get it to use another directory to do its background stuff?</description>
      <pubDate>Wed, 07 Sep 2005 07:05:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-out-of-space-in-var-tmp-when-unpacking-a-patch/m-p/3620566#M235908</guid>
      <dc:creator>John Walker_1</dc:creator>
      <dc:date>2005-09-07T07:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Running out of space in /var/tmp when unpacking a patch</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-out-of-space-in-var-tmp-when-unpacking-a-patch/m-p/3620567#M235909</link>
      <description>Hi,&lt;BR /&gt;You can download the patch including the create_depot_hp-ux_11 script and you can make patch depot wherever you want.&lt;BR /&gt;Regards,&lt;BR /&gt;Borislav</description>
      <pubDate>Wed, 07 Sep 2005 07:09:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-out-of-space-in-var-tmp-when-unpacking-a-patch/m-p/3620567#M235909</guid>
      <dc:creator>Borislav Perkov</dc:creator>
      <dc:date>2005-09-07T07:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Running out of space in /var/tmp when unpacking a patch</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-out-of-space-in-var-tmp-when-unpacking-a-patch/m-p/3620568#M235910</link>
      <description>I mean you go to&lt;BR /&gt;&lt;A href="http://www.itrc.hp.com/service/patch/" target="_blank"&gt;http://www.itrc.hp.com/service/patch/&lt;/A&gt;&lt;BR /&gt;find the needed patch. Select it and click on download bottom not on downloading only the patch.</description>
      <pubDate>Wed, 07 Sep 2005 07:13:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-out-of-space-in-var-tmp-when-unpacking-a-patch/m-p/3620568#M235910</guid>
      <dc:creator>Borislav Perkov</dc:creator>
      <dc:date>2005-09-07T07:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Running out of space in /var/tmp when unpacking a patch</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-out-of-space-in-var-tmp-when-unpacking-a-patch/m-p/3620569#M235911</link>
      <description>Sorry here is the link:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www4.itrc.hp.com/service/patch/crumbRequest.do?crumb=patch.breadcrumb.main&amp;amp;BC=" target="_blank"&gt;http://www4.itrc.hp.com/service/patch/crumbRequest.do?crumb=patch.breadcrumb.main&amp;amp;BC=&lt;/A&gt;</description>
      <pubDate>Wed, 07 Sep 2005 07:15:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-out-of-space-in-var-tmp-when-unpacking-a-patch/m-p/3620569#M235911</guid>
      <dc:creator>Borislav Perkov</dc:creator>
      <dc:date>2005-09-07T07:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Running out of space in /var/tmp when unpacking a patch</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-out-of-space-in-var-tmp-when-unpacking-a-patch/m-p/3620570#M235912</link>
      <description>I really could do without downloading a 150Mb patch again if I can avoid it.&lt;BR /&gt;&lt;BR /&gt;Is there no way I can get shar to use a filesystem other than /var/tmp?</description>
      <pubDate>Wed, 07 Sep 2005 07:49:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-out-of-space-in-var-tmp-when-unpacking-a-patch/m-p/3620570#M235912</guid>
      <dc:creator>John Walker_1</dc:creator>
      <dc:date>2005-09-07T07:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Running out of space in /var/tmp when unpacking a patch</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-out-of-space-in-var-tmp-when-unpacking-a-patch/m-p/3620571#M235913</link>
      <description>What about rename /var/tmp to /var/tmp2 and then make a softlink which links /var/tmp to a large filesystem. After installing the patch, remove the softlink and rename /var/tmp2 to /var/tmp.</description>
      <pubDate>Wed, 07 Sep 2005 07:56:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-out-of-space-in-var-tmp-when-unpacking-a-patch/m-p/3620571#M235913</guid>
      <dc:creator>Morten Kristiansen</dc:creator>
      <dc:date>2005-09-07T07:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Running out of space in /var/tmp when unpacking a patch</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-out-of-space-in-var-tmp-when-unpacking-a-patch/m-p/3620572#M235914</link>
      <description>It is strange anyway here is how you can install any patch.&lt;BR /&gt;Please follow this procedure.&lt;BR /&gt;1. Back up your system before installing a patch.&lt;BR /&gt;&lt;BR /&gt;2. Login as root.&lt;BR /&gt;&lt;BR /&gt;3. Copy the patch to the /tmp directory.&lt;BR /&gt;&lt;BR /&gt;4. Move to the /tmp directory and unshar the patch:&lt;BR /&gt;&lt;BR /&gt;  cd /tmp&lt;BR /&gt;  sh PHSS_XXXX&lt;BR /&gt;&lt;BR /&gt;5. Run swinstall to install the patch:&lt;BR /&gt;&lt;BR /&gt;swinstall -x autoreboot=true -x patch_match_target=true \&lt;BR /&gt;-s /tmp/PHSS_XXXX.depot&lt;BR /&gt;&lt;BR /&gt; By default swinstall will archive the original software in /var/adm/sw/save/PHSS_XXXX.  If you do not wish to retain a copy of the original software, include the patch_save_files option in the swinstall command above:&lt;BR /&gt;&lt;BR /&gt; -x patch_save_files=false&lt;BR /&gt;&lt;BR /&gt;WARNING: If patch_save_files is false when a patch is installed,the patch cannot be deinstalled.  Please be careful when using this feature.&lt;BR /&gt;&lt;BR /&gt;For future reference, the contents of the PHSS_XXXX.text file is available in the product readme:&lt;BR /&gt;&lt;BR /&gt;swlist -l product -a readme -d @ /tmp/PHSS_XXXX.depot&lt;BR /&gt;&lt;BR /&gt;I think this is solution for your problem.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Borislav</description>
      <pubDate>Wed, 07 Sep 2005 08:16:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-out-of-space-in-var-tmp-when-unpacking-a-patch/m-p/3620572#M235914</guid>
      <dc:creator>Borislav Perkov</dc:creator>
      <dc:date>2005-09-07T08:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Running out of space in /var/tmp when unpacking a patch</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-out-of-space-in-var-tmp-when-unpacking-a-patch/m-p/3620573#M235915</link>
      <description>Is /var/tmp in a filesystem of its own or part of /var? If part of /var, how big is the filesystem?&lt;BR /&gt;&lt;BR /&gt;What I'm getting at is, housekeeping on /var might free up enough space.&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
      <pubDate>Wed, 07 Sep 2005 08:24:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-out-of-space-in-var-tmp-when-unpacking-a-patch/m-p/3620573#M235915</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2005-09-07T08:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Running out of space in /var/tmp when unpacking a patch</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-out-of-space-in-var-tmp-when-unpacking-a-patch/m-p/3620574#M235916</link>
      <description>Also consider that /usr/tmp directory is linked to /var/tmp directory.&lt;BR /&gt;Maybe you can try deleting some older files in /var/tmp:&lt;BR /&gt;&lt;BR /&gt;as an example deleting all files which are modified for more than for days:&lt;BR /&gt;&lt;BR /&gt;cd /var/tmp&lt;BR /&gt;find . -name '*' -mtime +4 -print -exec rm {} \;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Sep 2005 08:29:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-out-of-space-in-var-tmp-when-unpacking-a-patch/m-p/3620574#M235916</guid>
      <dc:creator>Borislav Perkov</dc:creator>
      <dc:date>2005-09-07T08:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Running out of space in /var/tmp when unpacking a patch</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-out-of-space-in-var-tmp-when-unpacking-a-patch/m-p/3620575#M235917</link>
      <description>I'm with Mark.  Housekeeping or simply temporarily moving something large out of /var could easily free up the required space.  Take a look at what occupies the most space:&lt;BR /&gt;&lt;BR /&gt;du -sk /var/* |sort -n&lt;BR /&gt;&lt;BR /&gt;Then go through that list looking for something that you can temporarily move to another file system.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Sep 2005 08:29:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-out-of-space-in-var-tmp-when-unpacking-a-patch/m-p/3620575#M235917</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-09-07T08:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Running out of space in /var/tmp when unpacking a patch</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-out-of-space-in-var-tmp-when-unpacking-a-patch/m-p/3620576#M235918</link>
      <description>/var should be very large (several Gb) as it holds very dynamic directories for logs, emil, spooling and temp files. The simplest way is to create a new mountpoint for /var/adm/sw since this is always a large directory that is only used for install/unistall (software depot maintenance) tasks. Start by looking at the distribution of space in /var:&lt;BR /&gt; &lt;BR /&gt;du -kx /var | sort -rn | head 20&lt;BR /&gt; &lt;BR /&gt;Now if you find some directory that is larger than /var/adm/sw, that is a potential location for trimming files (not always, but check the contents). Check the size of /var/adm/sw (the du -k output shows Kbytes) and create an lvol about twice as big. cd to the /var/adm/sw directory and copy all the files to the new lvol. Then create a new mounpoint in /etc/fstab. NOTE: this can all be done without a reboot or single user mode. Just make sure no other root user is running a software or patch install.&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;lvcreate -L 900 -m 1 vg03&lt;BR /&gt;newfs /dev/vg03/lvolXX&lt;BR /&gt;mkdir /mnt1&lt;BR /&gt;mount /dev/vg03/lvolXX&lt;BR /&gt;cd /var/adm/sw&lt;BR /&gt;find .|cpio -pudlmv /mnt1&lt;BR /&gt; &lt;BR /&gt;To verify file and directory counts, use find and wc:&lt;BR /&gt; &lt;BR /&gt;find /var/adm/sw -type f|wc -l&lt;BR /&gt;find /var/adm/sw -type d|wc -l&lt;BR /&gt;find /mnt1 -type f|wc -l&lt;BR /&gt;find /mnt1 -type d|wc -l&lt;BR /&gt;(the above counts should match except -type d will be one larger for the lost+found directory in the new mountpoint)&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;umount /mnt1&lt;BR /&gt;vi /etc/fstab&lt;BR /&gt; &lt;BR /&gt;(add a new mountpoint from /dev/vg03/lvolXX to /var/adm/sw)&lt;BR /&gt; &lt;BR /&gt;At this point, nothing has changed on the system except to make and verify a copy of the /var/adm/sw directory. Now remove all the files in the old directory: rm -r /var/adm/sw/* (be sure to use .../sw/* so you remove everything except the sw directory). Now mount the new location:&lt;BR /&gt; &lt;BR /&gt;mount /var/adm/sw&lt;BR /&gt;bdf /var /var/adm/sw&lt;BR /&gt; &lt;BR /&gt;Now /var should be several hundred megs smaller and /var/adm/sw should be about 50% used. Now the above procedure should be good for a long time as patches will make /var/adm/sw grow. You can now unpack patches in /var/tmp. If the patch set is large, I will unpack them in another directory. shar only uses TMPDIR when building the shar package. You can unshar the package anywhere as well as run swinstall against the .depot file anywhere. /var is only used for interim installation files and /var/adm/sw is used to hold the old files so that patches can be removed if needed.</description>
      <pubDate>Wed, 07 Sep 2005 08:37:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-out-of-space-in-var-tmp-when-unpacking-a-patch/m-p/3620576#M235918</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-09-07T08:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Running out of space in /var/tmp when unpacking a patch</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-out-of-space-in-var-tmp-when-unpacking-a-patch/m-p/3620577#M235919</link>
      <description>/var/tmp is its own filesystem and there is nothing in there to housekeep unfortunately.&lt;BR /&gt;&lt;BR /&gt;It is only 100mb in size which clearly isnt big enough to unshar a 150Mb patch.&lt;BR /&gt;&lt;BR /&gt;I am assuming that it uses /var/tmp during the unpacking process as a kind of holding area before it puts the unpacked patches in the directory where I want them.&lt;BR /&gt;&lt;BR /&gt;I would extend /var/tmp but being a production machine this is difficult since it is constantly in use by one process or another&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Sep 2005 08:37:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-out-of-space-in-var-tmp-when-unpacking-a-patch/m-p/3620577#M235919</guid>
      <dc:creator>John Walker_1</dc:creator>
      <dc:date>2005-09-07T08:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Running out of space in /var/tmp when unpacking a patch</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-out-of-space-in-var-tmp-when-unpacking-a-patch/m-p/3620578#M235920</link>
      <description>/var/tmp is way too small for a typical system as it is defined as the primary application temp directory. 1000 megs would be more appropriate and you will find even more limitations in the future. A single 150 meg patch is nothing compared to your next installation of the quarterly patch bundle (typically 300 megs). Even if you unpack the patch in another directory, swinstall may need some space in /var/tmp during the install. I would place expansion of /var/tmp at the top of your adamin project list.</description>
      <pubDate>Wed, 07 Sep 2005 09:49:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-out-of-space-in-var-tmp-when-unpacking-a-patch/m-p/3620578#M235920</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-09-07T09:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Running out of space in /var/tmp when unpacking a patch</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-out-of-space-in-var-tmp-when-unpacking-a-patch/m-p/3620579#M235921</link>
      <description>&amp;gt;Is there no way I can get shar to use a&lt;BR /&gt;&amp;gt;filesystem other than /var/tmp?&lt;BR /&gt;&lt;BR /&gt;You should note that the problem, here, is that the shell, 'sh', does not honor TMPDIR.&lt;BR /&gt;Sure, 'shar' does, but when you "unshar" it, you are simply using 'sh' -- *not* 'shar'.&lt;BR /&gt;&lt;BR /&gt;The reason that /var/tmp is being used is because the HP patch files use the "here-document" ( "&amp;lt;&amp;lt;" ).  As noted in 'man sh-posix', here-documents use /var/tmp by default, and if it is not accessible for some reason, it uses /tmp.&lt;BR /&gt;&lt;BR /&gt;At one time in the past, in a Galaxy far away, with small disk drives, I wrote a little C program to "decode" the HP patch files and send to STDOUT, thus bypassing 'sh' and its temp file.  I could make the decoded depot go anywhere :&amp;gt;)&lt;BR /&gt;&lt;BR /&gt;However, recently HP has changed the encoding and broke my program.  Happily disk space is rarely a problem these days with huge disk drives being the norm now, so I never updated my program.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The bottom line:&lt;BR /&gt;&lt;BR /&gt;. unsharing HP patches always uses /var/tmp (well, rarely sometimes /tmp ;&amp;gt;).&lt;BR /&gt;&lt;BR /&gt;. as stated by previous posters, you will need to increase free space in /var/tmp&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bv</description>
      <pubDate>Fri, 09 Sep 2005 19:00:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-out-of-space-in-var-tmp-when-unpacking-a-patch/m-p/3620579#M235921</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2005-09-09T19:00:07Z</dc:date>
    </item>
  </channel>
</rss>

