<?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: /var filesystem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444121#M8770</link>
    <description>Thanks James!  You saved us from extending 3+ boxes!</description>
    <pubDate>Fri, 09 Mar 2001 19:51:50 GMT</pubDate>
    <dc:creator>Charles Darnell</dc:creator>
    <dc:date>2001-03-09T19:51:50Z</dc:date>
    <item>
      <title>/var filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444106#M8755</link>
      <description>I'm trying to expand my /var filesystem on a remote server. Do I need to be in Single-User mode to do this? I did an fuser -c /var and it came up with some processes (cron, ptdaemon, vtydaemon, rpcd, netfmt, syslogd). I'd rather not bring the system down if I don't have to. Can I just kill the procs and umount the filesystem after I lvextend?&lt;BR /&gt;&lt;BR /&gt;Also. The lv that /var is on is mirrored. If I lvextend the lv, do I have to do anything special because it's mirrored, or will lvm automagically expand the mirror?&lt;BR /&gt;&lt;BR /&gt;--Scott&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Sep 2000 20:00:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444106#M8755</guid>
      <dc:creator>Scott D. Allen</dc:creator>
      <dc:date>2000-09-08T20:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: /var filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444107#M8756</link>
      <description>Would be best to boot into single-user mode to extend /var. There are many open files and processes associated with /var.&lt;BR /&gt;&lt;BR /&gt;/var does not have to be contiguous.</description>
      <pubDate>Fri, 08 Sep 2000 20:15:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444107#M8756</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-09-08T20:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: /var filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444108#M8757</link>
      <description>I would not try to kill all the processes that are accessing /var.  I don't know if you'd ever get them all killed.&lt;BR /&gt;&lt;BR /&gt;If /var happens to be a vxfs file system and you have the Online JFS product (an extra cost product) then you don't have to do anything, you can extend the filesystem on the fly.  I LOVE vxfs and Online JFS for that reason.&lt;BR /&gt;&lt;BR /&gt;Otherwise your best bet would be to boot into single-user mode and go from there.</description>
      <pubDate>Fri, 08 Sep 2000 20:19:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444108#M8757</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2000-09-08T20:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: /var filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444109#M8758</link>
      <description>As Rick indicated, it is advisable to go to single user mode but since in your case you cannot, you might want to gracefully terminate the processes before umounting /var.&lt;BR /&gt;&lt;BR /&gt;most of the processes that show up when you do fuser -cu /var should be terminated by stopping them from their respective /sbin/init.d scripts.  so for example &lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/rpcd stop&lt;BR /&gt;etc. etc.&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Sep 2000 20:22:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444109#M8758</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2000-09-08T20:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: /var filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444110#M8759</link>
      <description>Thanks guys. That's what I was afraid of. I'll probably try to use the init scripts, but if necessary I can use a modem to dial in and bring 'er down to S.&lt;BR /&gt;&lt;BR /&gt;No answers on the lvextend (mirrored) question?&lt;BR /&gt;&lt;BR /&gt;--Scott&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Sep 2000 20:26:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444110#M8759</guid>
      <dc:creator>Scott D. Allen</dc:creator>
      <dc:date>2000-09-08T20:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: /var filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444111#M8760</link>
      <description>You will have to be on the console when you go into single-user mode. Boot into single user mode. Doing the init S is not a true single user mode. Filesystems stay mounted, networking is active, etc...&lt;BR /&gt;It is something you would have to be present for. &lt;BR /&gt;&lt;BR /&gt;Doing the modem will not allow you to boot into single-user mode.&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Sep 2000 20:51:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444111#M8760</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-09-08T20:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: /var filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444112#M8761</link>
      <description>You will have to be on the console when you go into single-user mode. Boot into single user mode. Doing the init S is not a true single user mode. Filesystems stay mounted, networking is active, etc...&lt;BR /&gt;It is something you would have to be present for. &lt;BR /&gt;&lt;BR /&gt;Doing the modem will not allow you to boot into single-user mode.&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Sep 2000 20:51:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444112#M8761</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-09-08T20:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: /var filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444113#M8762</link>
      <description>Worst case scenario, you can create another file system say /var/adm/newsw ; cpio all the files from /var/adm/sw to /var/adm/newsw and then mount remove all files from /var/adm/sw and then remount /var/adm/newsw as /var/adm/sw &lt;BR /&gt;&lt;BR /&gt;That should buy you some space :)&lt;BR /&gt;&lt;BR /&gt;Good luck</description>
      <pubDate>Fri, 08 Sep 2000 20:58:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444113#M8762</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2000-09-08T20:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: /var filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444114#M8763</link>
      <description>regarding your lvm question about extending mirrored /var&lt;BR /&gt;&lt;BR /&gt;lvm is smart enough to know not to extend the mirrored filesystem to the same physical volume. This is true as long as you have not changed the allocation policy, it should be strict but you don't need contiguous on var (as Rick said above)&lt;BR /&gt;&lt;BR /&gt;# lvdisplay /dev/vg00/lvol_var&lt;BR /&gt;Allocation policy should be strict&lt;BR /&gt;As long as you have enough Free PE on the PV's that contain var and mirror copy, the lvextend should go smooth.&lt;BR /&gt;&lt;BR /&gt;If you don't have the option to boot up into single user mode at the console, you could dialin and attempt to bring it down to the lowest runlevel and attempt to umount /var. &lt;BR /&gt;&lt;BR /&gt;# umount /var&lt;BR /&gt;If device busy:&lt;BR /&gt;# fuser -ku /var&lt;BR /&gt;# fuser -ku /dev/vg00/lvol_var&lt;BR /&gt;# umount&lt;BR /&gt;&lt;BR /&gt;If still busy you'd be better off booting up into SU mode. If you had online jfs you'd just do it on the fly.</description>
      <pubDate>Fri, 08 Sep 2000 21:05:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444114#M8763</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2000-09-08T21:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: /var filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444115#M8764</link>
      <description>Just as a note, so there aren't any "surprises" when you bring the box down to extend /var, you could do the lvextend in multi-user mode, then make time for extendfs. That way you could make sure you can lvextend to the size you need.  There'd be nothing more frustrating than to bring it down and find out not enough free PE on the PV's.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.</description>
      <pubDate>Fri, 08 Sep 2000 21:12:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444115#M8764</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2000-09-08T21:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: /var filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444116#M8765</link>
      <description>In addition to the suggestions above, you might want to consider breaking up /var into functional areas.  /var is the most critical filesystem in HP-UX as so many proceses (user and kernel) depend on using space there.  Depending on what you run on your system, you might want to separate /var into:&lt;BR /&gt;&lt;BR /&gt;/var/adm           (logfiles)&lt;BR /&gt;/var/adm/crash     (crash dump for kernel)&lt;BR /&gt;/var/mail          (email)&lt;BR /&gt;/var/spool/lp      (spool files)&lt;BR /&gt;/var/tmp           (user temp files)&lt;BR /&gt;/var/adm/sw        (s/ware and patches)&lt;BR /&gt;&lt;BR /&gt;You can evaluate the largest directories with the command:&lt;BR /&gt;&lt;BR /&gt;du -kx /var | sort -rn &amp;gt; /tmp/du.var&lt;BR /&gt;&lt;BR /&gt;Then look at the first few lines of the resultant file.  It indicates the largest directories first, a good start at picking directories to move to another disk.</description>
      <pubDate>Fri, 08 Sep 2000 21:22:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444116#M8765</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2000-09-08T21:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: /var filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444117#M8766</link>
      <description>Even though the box is remote, you will be able to shut it down to 'almost' single user mode from a remote telnet session with 'shutdown 0'.&lt;BR /&gt;&lt;BR /&gt;If anything still has /var open at this point, you should be able to kill it off. I can't ever remember having a problem with /var - /usr yes (in use by init).&lt;BR /&gt;&lt;BR /&gt;Having extended the filesystem with 'extendfs' then you can simply 'reboot'.&lt;BR /&gt;&lt;BR /&gt;The suggestion for lvextending before shutting down is good as you can do this at any time.&lt;BR /&gt;&lt;BR /&gt;LVM will automatically extend both mirrors and provided you only have two disks in your root volume group, the result should be as you expected. If you have more disks however then you should specify the disks to lvcreate.&lt;BR /&gt;&lt;BR /&gt;You can check where the current extents are with 'lvdisplay -v /dev/vg00/lvol?'.&lt;BR /&gt;&lt;BR /&gt;If for example your primary disk is c2t2d0 and your mirror c1t2d0 then your lvextend should read:-&lt;BR /&gt;&lt;BR /&gt;lvextend -L &lt;NEWMB&gt; /dev/vg00/lvol? /dev/dsk/c2t2d0 /dev/dsk/c1t2d0&lt;/NEWMB&gt;</description>
      <pubDate>Fri, 08 Sep 2000 21:55:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444117#M8766</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-09-08T21:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: /var filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444118#M8767</link>
      <description>I appreciate all the fantastic suggestions. Actually, I am trying to apply a HP SW patch bundle (June 2000) to the system, which failed during the analysis phase because of not enough space on /var. That is the reason for this whole question. It didn't specify where on /var was short, but I'm suspecting from Koti's comments that I should probably just create a /var/adm/sw filesystem to handle these situations. Seem fair to everyone? Is that where swinstall puts everything? Thanks again.&lt;BR /&gt;--Scott&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Sep 2000 13:35:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444118#M8767</guid>
      <dc:creator>Scott D. Allen</dc:creator>
      <dc:date>2000-09-11T13:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: /var filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444119#M8768</link>
      <description>Scott:&lt;BR /&gt;&lt;BR /&gt;Yet another way to regain precious /var space is to run the 'cleanup' utility. See: 'man 1M cleanup' to review its usage. I routinely recover very significant amounts of space from /var following installations of large patch bundles. cleanup is the safest, recommended way to manage the /var/adm/sw/patch directory on HP 10.20.  On 11.X, do swmodify -x patch_commit=true &lt;PATCHNAME&gt;. &lt;BR /&gt;&lt;BR /&gt;Make sure, too, to remove remove unnecessary files in /var/tmp, /var/adm/crash, /var/preserve, etc.&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;/PATCHNAME&gt;</description>
      <pubDate>Mon, 11 Sep 2000 13:42:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444119#M8768</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-09-11T13:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: /var filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444120#M8769</link>
      <description>Thanks again to all who answered. I used the cleanup utility and now I have plenty of room for my patch. I will be expanding /var in the future though, as it is pretty small ~250MB and separating /var/adm/sw to a separate filesystem.</description>
      <pubDate>Mon, 11 Sep 2000 13:56:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444120#M8769</guid>
      <dc:creator>Scott D. Allen</dc:creator>
      <dc:date>2000-09-11T13:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: /var filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444121#M8770</link>
      <description>Thanks James!  You saved us from extending 3+ boxes!</description>
      <pubDate>Fri, 09 Mar 2001 19:51:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-filesystem/m-p/2444121#M8770</guid>
      <dc:creator>Charles Darnell</dc:creator>
      <dc:date>2001-03-09T19:51:50Z</dc:date>
    </item>
  </channel>
</rss>

