<?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: Deleting /var/adm/sw/save in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/deleting-var-adm-sw-save/m-p/2617365#M37900</link>
    <description>Hi&lt;BR /&gt;  Deleting from /var/adm/sw/save is not the correct thing to do.&lt;BR /&gt; HP general release patches and other patches occupy lot of space here, This is because old patches are stored as backup.So you can commit the patches to remove the old patches to gain space. See man for swmodify&lt;BR /&gt;Hope this helps&lt;BR /&gt;...BPK...</description>
    <pubDate>Tue, 20 Nov 2001 09:23:23 GMT</pubDate>
    <dc:creator>Praveen Bezawada</dc:creator>
    <dc:date>2001-11-20T09:23:23Z</dc:date>
    <item>
      <title>Deleting /var/adm/sw/save</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deleting-var-adm-sw-save/m-p/2617360#M37895</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;  is it safe deleting /var/adm/sw/save??. One of our sysadmin do it every time he needs space in /var, but I'm not sure if this can be done so easily.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;&lt;BR /&gt;Alex.</description>
      <pubDate>Tue, 20 Nov 2001 08:48:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deleting-var-adm-sw-save/m-p/2617360#M37895</guid>
      <dc:creator>Alex_17</dc:creator>
      <dc:date>2001-11-20T08:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting /var/adm/sw/save</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deleting-var-adm-sw-save/m-p/2617361#M37896</link>
      <description>If you play with fire you will get burnt one day ;)&lt;BR /&gt;&lt;BR /&gt;By default at 11.0 during patch installation, SD-UX makes rollback copies of all&lt;BR /&gt;files and archive library objects modified.  These copies are saved under&lt;BR /&gt;the "/var/adm/sw/save" directory structure and do occupy disk space.&lt;BR /&gt;&lt;BR /&gt;When desired, this disk space can be regained.  Of course, when doing so&lt;BR /&gt;there will be no way to "uninstall" the patch with swremove(1M).&lt;BR /&gt;The rollback copies are removed from the system when the patch is "committed".&lt;BR /&gt;&lt;BR /&gt;The process of "committing" a patch is accomplished with the swmodify(1M)&lt;BR /&gt;command.  It is necessary to specify which patch filesets are to be&lt;BR /&gt;committed; thus, to commit an entire patch you would use a command similar&lt;BR /&gt;to:&lt;BR /&gt;&lt;BR /&gt;        swmodify -x patch_commit=true PHCO_13284.\*&lt;BR /&gt;&lt;BR /&gt;Once a patch is committed, the "patch_state" is changed from "applied" to&lt;BR /&gt;"committed".  This can be observed by the following command:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;        swlist -l patch -a patch_state  [PHCO_13284/PACHRDME/English] &lt;BR /&gt;&lt;BR /&gt;The "cleanup" command may be used to simplify this process when only the&lt;BR /&gt;rollback information for superseded patches is to be removed.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Running the following command will remove space for superseded patches in&lt;BR /&gt;/var/adm/sw/save:&lt;BR /&gt;&lt;BR /&gt;cleanup -c [number_of_time_superseded]&lt;BR /&gt;&lt;BR /&gt;The new "-c" option is added in PHCO_19550.  The cleanup(1) man page explains&lt;BR /&gt;the new option:&lt;BR /&gt;&lt;BR /&gt;-c &lt;BR /&gt;                      Commit patches superseded at least  times.&lt;BR /&gt;                      This option is a front-end to the 'patch_commit'&lt;BR /&gt;                      option of swmodify(1M) that provides an easier&lt;BR /&gt;                      interface to commit multiple patches at once.&lt;BR /&gt;&lt;BR /&gt;Running cleanup -c 1 will display all patches that have been superseded&lt;BR /&gt;at least one time and then prompt for removal of their rollback information.&lt;BR /&gt;As with all cleanup options no patch information will be removed without&lt;BR /&gt;prompting the user first.&lt;BR /&gt;&lt;BR /&gt;NOTE: For more information see the white paper located at&lt;BR /&gt;/usr/share/doc/patch_pgrm.txt and the man page for cleanup.&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Nov 2001 08:52:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deleting-var-adm-sw-save/m-p/2617361#M37896</guid>
      <dc:creator>Alex Glennie</dc:creator>
      <dc:date>2001-11-20T08:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting /var/adm/sw/save</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deleting-var-adm-sw-save/m-p/2617362#M37897</link>
      <description>Hi,&lt;BR /&gt;To commit a list of patch you can use a file :&lt;BR /&gt;swmodify -x patch_commit=true -f &lt;FILE&gt; &lt;BR /&gt;where file contains the list of the patches you want to commit : &lt;BR /&gt;PHxx_xxxxx.* &lt;BR /&gt;Regards&lt;BR /&gt;Fr??d??ric&lt;BR /&gt;&lt;/FILE&gt;</description>
      <pubDate>Tue, 20 Nov 2001 08:57:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deleting-var-adm-sw-save/m-p/2617362#M37897</guid>
      <dc:creator>Frederic Sevestre</dc:creator>
      <dc:date>2001-11-20T08:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting /var/adm/sw/save</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deleting-var-adm-sw-save/m-p/2617363#M37898</link>
      <description>&lt;BR /&gt;No!!! don't just delete files from that directory because all previously overwritten patches were stored there for rollback purpose.  &lt;BR /&gt;&lt;BR /&gt;The proper way of cleaning up files in such dir is to "commit" your recently installed patches.  After that the saved patches in /var/adm/sw/save will be removed.  The commands for commiting patches are,&lt;BR /&gt;&lt;BR /&gt;swlist -l fileset -a name | grep PH &amp;gt; /tmp/patchlist&lt;BR /&gt;swmodify -x patch_commit=true -f /tmp/patchlist&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Philip&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Nov 2001 08:58:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deleting-var-adm-sw-save/m-p/2617363#M37898</guid>
      <dc:creator>Philip Chan_1</dc:creator>
      <dc:date>2001-11-20T08:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting /var/adm/sw/save</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deleting-var-adm-sw-save/m-p/2617364#M37899</link>
      <description>Hi,&lt;BR /&gt;deleting /var/adm/sw/save is very dangerous operation and I do not recommend to do that. Better way is to use cleanup -c command (mentioned above).&lt;BR /&gt;Later,</description>
      <pubDate>Tue, 20 Nov 2001 09:10:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deleting-var-adm-sw-save/m-p/2617364#M37899</guid>
      <dc:creator>Marcin Wicinski</dc:creator>
      <dc:date>2001-11-20T09:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting /var/adm/sw/save</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deleting-var-adm-sw-save/m-p/2617365#M37900</link>
      <description>Hi&lt;BR /&gt;  Deleting from /var/adm/sw/save is not the correct thing to do.&lt;BR /&gt; HP general release patches and other patches occupy lot of space here, This is because old patches are stored as backup.So you can commit the patches to remove the old patches to gain space. See man for swmodify&lt;BR /&gt;Hope this helps&lt;BR /&gt;...BPK...</description>
      <pubDate>Tue, 20 Nov 2001 09:23:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deleting-var-adm-sw-save/m-p/2617365#M37900</guid>
      <dc:creator>Praveen Bezawada</dc:creator>
      <dc:date>2001-11-20T09:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting /var/adm/sw/save</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deleting-var-adm-sw-save/m-p/2617366#M37901</link>
      <description>Does it mean we should "commit" patches one by one??.&lt;BR /&gt;&lt;BR /&gt;Alex.</description>
      <pubDate>Tue, 20 Nov 2001 09:56:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deleting-var-adm-sw-save/m-p/2617366#M37901</guid>
      <dc:creator>Alex_17</dc:creator>
      <dc:date>2001-11-20T09:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting /var/adm/sw/save</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deleting-var-adm-sw-save/m-p/2617367#M37902</link>
      <description>You will have to commit the patchs one by one. But in fact you can use a file which contain the list :&lt;BR /&gt;&lt;BR /&gt;swlist -l patch -a patch_state | grep &lt;STATE&gt; | grep "^# PH" &amp;gt; /tmp/list_patch&lt;BR /&gt;&lt;BR /&gt;where state is the state of the patches you want to commit (applied, superseded..)&lt;BR /&gt;&lt;BR /&gt;The edit the list and modify it to have the following format :&lt;BR /&gt;&lt;BR /&gt;PHxx_xxxxx.* &lt;BR /&gt;&lt;BR /&gt;then use swmodify :&lt;BR /&gt;&lt;BR /&gt;swmodify -x patch_commit=true -f &lt;FILE&gt; &lt;BR /&gt;&lt;BR /&gt;like this you won't have to commit the patches one by one.&lt;BR /&gt;&lt;/FILE&gt;&lt;/STATE&gt;</description>
      <pubDate>Tue, 20 Nov 2001 10:19:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deleting-var-adm-sw-save/m-p/2617367#M37902</guid>
      <dc:creator>Frederic Sevestre</dc:creator>
      <dc:date>2001-11-20T10:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting /var/adm/sw/save</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deleting-var-adm-sw-save/m-p/2617368#M37903</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;  I've made a cleanup -c 1, but what if I want to recover more space than that?&lt;BR /&gt;&lt;BR /&gt;Alex.</description>
      <pubDate>Tue, 20 Nov 2001 11:15:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deleting-var-adm-sw-save/m-p/2617368#M37903</guid>
      <dc:creator>Alex_17</dc:creator>
      <dc:date>2001-11-20T11:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting /var/adm/sw/save</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deleting-var-adm-sw-save/m-p/2617369#M37904</link>
      <description>Hi,&lt;BR /&gt;get into /var directory and perform:&lt;BR /&gt;# du -s ./*&lt;BR /&gt;&lt;BR /&gt;Check which subdirs are large.</description>
      <pubDate>Tue, 20 Nov 2001 13:11:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deleting-var-adm-sw-save/m-p/2617369#M37904</guid>
      <dc:creator>Marcin Wicinski</dc:creator>
      <dc:date>2001-11-20T13:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting /var/adm/sw/save</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deleting-var-adm-sw-save/m-p/2617370#M37905</link>
      <description>Try the swmodify for al the applied patches. It sould free more space.</description>
      <pubDate>Tue, 20 Nov 2001 13:12:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deleting-var-adm-sw-save/m-p/2617370#M37905</guid>
      <dc:creator>Frederic Sevestre</dc:creator>
      <dc:date>2001-11-20T13:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting /var/adm/sw/save</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deleting-var-adm-sw-save/m-p/2617371#M37906</link>
      <description>Hi Alex,&lt;BR /&gt;&lt;BR /&gt;You've already been given very good advice.  One other point to make:  Don't just automatically commit patches.  If you do so, you will not be able to uninstall the patch with swremove.  Patches are often recalled.  Even though eventually another patch will supersede the recalled patch, you would have to wait for that patch to be released.&lt;BR /&gt;&lt;BR /&gt;I always run my system awhile without committing newly installed patches until I'm confident I will not need to remove them.  How long is that?  For me, it's usually just before the next time I install a bundle.  Currently that's 3 months.&lt;BR /&gt;&lt;BR /&gt;If you've never committed patches on your system then obviously you need to do so.&lt;BR /&gt;&lt;BR /&gt;Please educate the sysadmin that is removing /var/adm/sw/save.  A big stick may help him remember the lesson and make you feel better too!&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Tue, 20 Nov 2001 13:30:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deleting-var-adm-sw-save/m-p/2617371#M37906</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-11-20T13:30:58Z</dc:date>
    </item>
  </channel>
</rss>

