<?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: Extending filesystem size in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/extending-filesystem-size/m-p/2537837#M649045</link>
    <description>To answer the first part of your question - you couldn't umount /tmp after your 'init s' because there were still some processes useing /tmp for stuff.  You could have done an 'fuser -cu /tmp' and it would have told you all of the processes that were using /tmp.  You then could have killed all of those processes and then unmounted /tmp.&lt;BR /&gt;&lt;BR /&gt;The easiest way I have found to get to single-user mode and to make sure there are no extraneous processes running is to just do a reboot, interact with the boot and do an 'hpux -is'.  To extend a filesystem you would then have to do the 'vgchange -a y /dev/vg00'.</description>
    <pubDate>Thu, 07 Jun 2001 13:20:34 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2001-06-07T13:20:34Z</dc:date>
    <item>
      <title>Extending filesystem size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extending-filesystem-size/m-p/2537831#M649039</link>
      <description>I have read one question (and teh answers) regarding this issue, but I have problems.&lt;BR /&gt;&lt;BR /&gt;Steps I have followed. (extending /tmp)&lt;BR /&gt;&lt;BR /&gt;1. command line login as root&lt;BR /&gt;2. init S ( Am I really going single user ??)&lt;BR /&gt;3. lvextend -L 100 /dev/vg00/lvol7&lt;BR /&gt;4. umount /tmp&lt;BR /&gt;    -&amp;gt; device busy&lt;BR /&gt;5. fuser /tmp&lt;BR /&gt;    tmp:&lt;BR /&gt;    why then I can?t umount /tmp ?&lt;BR /&gt;&lt;BR /&gt;6. reboot&lt;BR /&gt;7. command line login as root&lt;BR /&gt;8. lvdisplay shows the increase of size&lt;BR /&gt;9. reboot&lt;BR /&gt;10. Stop boot sequence&lt;BR /&gt;11. bo pri&lt;BR /&gt;11 interact ? Yes&lt;BR /&gt;12 hpux -lm&lt;BR /&gt;13 extendfs -F vxfs /dev/vg00/lvol7&lt;BR /&gt;     cannot open /dev/vg00/lvol7&lt;BR /&gt;&lt;BR /&gt;What is wrong ?&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;Francisco</description>
      <pubDate>Thu, 07 Jun 2001 13:03:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extending-filesystem-size/m-p/2537831#M649039</guid>
      <dc:creator>Francisco Mancardi_1</dc:creator>
      <dc:date>2001-06-07T13:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Extending filesystem size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extending-filesystem-size/m-p/2537832#M649040</link>
      <description>vgchange -a y /dev/vg00</description>
      <pubDate>Thu, 07 Jun 2001 13:12:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extending-filesystem-size/m-p/2537832#M649040</guid>
      <dc:creator>Christopher Caldwell</dc:creator>
      <dc:date>2001-06-07T13:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Extending filesystem size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extending-filesystem-size/m-p/2537833#M649041</link>
      <description>the vg is not active because your in lvm maintenance mode&lt;BR /&gt;&lt;BR /&gt;vgchange -a y vg00&lt;BR /&gt;&lt;BR /&gt;extendfs then&lt;BR /&gt;&lt;BR /&gt;You don't need to hpux -lm&lt;BR /&gt;hpux -is is just as good.&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Thu, 07 Jun 2001 13:16:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extending-filesystem-size/m-p/2537833#M649041</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-06-07T13:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Extending filesystem size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extending-filesystem-size/m-p/2537834#M649042</link>
      <description>Francisco:&lt;BR /&gt;&lt;BR /&gt;Either of the following sequences of commands should be able to extend your /tmp partition:&lt;BR /&gt;&lt;BR /&gt;1) Determine what logical volume your /tmp filesystem is mounted on:&lt;BR /&gt;&lt;BR /&gt;# bdf /tmp&lt;BR /&gt;&lt;BR /&gt;2) Shut down to single-user mode:&lt;BR /&gt;&lt;BR /&gt;# shutdown&lt;BR /&gt;&lt;BR /&gt;3) Kill all processes that have files open on the /tmp filesystem:&lt;BR /&gt;&lt;BR /&gt;# fuser -k /tmp&lt;BR /&gt;&lt;BR /&gt;4) Extend the /tmp volume group:&lt;BR /&gt;&lt;BR /&gt;# lvextend -L &lt;NEW size="" in="" mb=""&gt; /dev/vg00/lvolXX&lt;BR /&gt;&lt;BR /&gt;5) Extend the filesystem associated with tmp.  Note, you need to use the RAW device here:&lt;BR /&gt;&lt;BR /&gt;# extendfs -F vxfs /dev/vg00/rlvolXX&lt;BR /&gt;&lt;BR /&gt;Alternatively, if you boot your system into single-user mode (do not use LVM maintenance mode), you can simply do steps 4 and 5.&lt;BR /&gt;&lt;BR /&gt;I hope this helps.&lt;/NEW&gt;</description>
      <pubDate>Thu, 07 Jun 2001 13:17:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extending-filesystem-size/m-p/2537834#M649042</guid>
      <dc:creator>Kenneth Platz</dc:creator>
      <dc:date>2001-06-07T13:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Extending filesystem size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extending-filesystem-size/m-p/2537835#M649043</link>
      <description>first, as im sure you read, install online jfs if you can, this will save you a world of work. next when you boot, hpux -im (im not that familiar with going into this mode i would suggest going into hpux -is, then finally why check and make sure the command your calling sees the path correctly, at single user mode with everything not mounted you will usually need to use the /sbin path, im sorry i cant be more specific, its been so long sence i hade to extend and lvol from single user mode.  anyway consider it.&lt;BR /&gt;&lt;BR /&gt;good luck</description>
      <pubDate>Thu, 07 Jun 2001 13:18:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extending-filesystem-size/m-p/2537835#M649043</guid>
      <dc:creator>boley janowski</dc:creator>
      <dc:date>2001-06-07T13:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Extending filesystem size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extending-filesystem-size/m-p/2537836#M649044</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You can't unmount a filesystem that is in use, hence the "device busy" message.  /tmp is likely to be inuse by root processes.  To see what/who is using the filesystem, do this:&lt;BR /&gt;&lt;BR /&gt;# fuser -cu&lt;BR /&gt;&lt;BR /&gt;To look and kill do:&lt;BR /&gt;&lt;BR /&gt;# fuser -cuk&lt;BR /&gt;&lt;BR /&gt;My preference, rather than to try and drop to single user mode is to bootup into single user mode.  I find you have better control in situations like you describe.&lt;BR /&gt;&lt;BR /&gt;Next, as to your second error, the 'extendfs' command should specifiy the *raw* device:&lt;BR /&gt;&lt;BR /&gt;# extendfs -F vxfs /dev/vg00/rlvol7&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 07 Jun 2001 13:19:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extending-filesystem-size/m-p/2537836#M649044</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-06-07T13:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Extending filesystem size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extending-filesystem-size/m-p/2537837#M649045</link>
      <description>To answer the first part of your question - you couldn't umount /tmp after your 'init s' because there were still some processes useing /tmp for stuff.  You could have done an 'fuser -cu /tmp' and it would have told you all of the processes that were using /tmp.  You then could have killed all of those processes and then unmounted /tmp.&lt;BR /&gt;&lt;BR /&gt;The easiest way I have found to get to single-user mode and to make sure there are no extraneous processes running is to just do a reboot, interact with the boot and do an 'hpux -is'.  To extend a filesystem you would then have to do the 'vgchange -a y /dev/vg00'.</description>
      <pubDate>Thu, 07 Jun 2001 13:20:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extending-filesystem-size/m-p/2537837#M649045</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-06-07T13:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Extending filesystem size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extending-filesystem-size/m-p/2537838#M649046</link>
      <description>Instead of /dev/vg00/lvol7 (in step 13) it should be /dev/vg00/rlvol7  &lt;BR /&gt;&lt;BR /&gt;check the man on extendfs.&lt;BR /&gt;&lt;BR /&gt;you should have tried (in steps 1-5)&lt;BR /&gt;# fuser -ku /tmp ; fuser -ku /dev/vg00/lvol7&lt;BR /&gt;# umount /dev/vg00/lvol7&lt;BR /&gt;&lt;BR /&gt;good luck.</description>
      <pubDate>Thu, 07 Jun 2001 13:21:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extending-filesystem-size/m-p/2537838#M649046</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2001-06-07T13:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Extending filesystem size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extending-filesystem-size/m-p/2537839#M649047</link>
      <description>FIRST THING:&lt;BR /&gt;If you have Online JFS than you can extend /tmp on the fly with the lvextend and fsadm commands&lt;BR /&gt;lvextend -l xxx /dev/vgxx/lvol7&lt;BR /&gt;fsadm -F vxfs -b xxxx &lt;IN kbytes=""&gt; /tmp&lt;BR /&gt;BUT IF YOU DON'T HAVE ONLINE JFS then&lt;BR /&gt;When you type S...your in single user, but everything is still mounted (and probably busy).&lt;BR /&gt;If you attempt to umount /tmp you could run into some headaches  (I forced it down once...ouch!!)&lt;BR /&gt;&lt;BR /&gt;Another way to extend is to reboot and interupt the boot.&lt;BR /&gt;boot admin&amp;gt; bo pri ipl&lt;BR /&gt;ISL&amp;gt; hpux -is&lt;BR /&gt;interact&amp;gt; yes&lt;BR /&gt;&lt;BR /&gt;Now the only thing mounted is /.  I generally mount /usr and /var (so I have certain commands to check my work) and at this point I would do the lvextend and then extendfs as usual and then you can check your work with vgdisplay...when you're done...reboot.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rita&lt;/IN&gt;</description>
      <pubDate>Thu, 07 Jun 2001 13:24:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extending-filesystem-size/m-p/2537839#M649047</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2001-06-07T13:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Extending filesystem size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extending-filesystem-size/m-p/2537840#M649048</link>
      <description>Some of this is here, but really you have to look at your process.  It is not correct for what you need to do.&lt;BR /&gt;&lt;BR /&gt;1.  reboot&lt;BR /&gt;2.  Interupt the boot process by holding any key (older systems may require the escape key, or break key)&lt;BR /&gt;&lt;BR /&gt;3.  at the boot prompt type&lt;BR /&gt;&amp;gt;boot pri&lt;BR /&gt;&lt;BR /&gt;4.  The system should ask then if you want to interacet with ISL.  Type&lt;BR /&gt;&amp;gt;y&lt;BR /&gt;&lt;BR /&gt;5.  at the ISL prompt, type &lt;BR /&gt;&amp;gt;hpux -is&lt;BR /&gt;&lt;BR /&gt;This is the only way besides modifying the default run level in iniitab to get HP_UX into single user mode.&lt;BR /&gt;&lt;BR /&gt;6.  You should not have to log in, as single user mode will start you in "/sbin/sh"&lt;BR /&gt;So if you have a login screen, you either did something wrong, your not on HP-UX, or your systems is trashed!&lt;BR /&gt;&lt;BR /&gt;7.  Type &lt;BR /&gt;&amp;gt;vgchange -a y&lt;BR /&gt;&lt;BR /&gt;8.  /tmp is usually mounted from /dev/vg00/lvol5.  so to allocate more space for /tmp type.&lt;BR /&gt;&amp;gt;lvextend -L $MM /dev/vg00/rlvol5&lt;BR /&gt;&lt;BR /&gt;$MM is the NEW size in MB total!  not the space you want to add.  I.E.  if you have 128mb now, and wanted 256mb, you would use&lt;BR /&gt;&amp;gt;lvextend -L 256 /dev/vg00/rlvol5&lt;BR /&gt;&lt;BR /&gt;It should tell you whether it succedded or failed.  Normal failures are caused by lack of capacity in vg00 to accomodate the new space.&lt;BR /&gt;&lt;BR /&gt;9.  Extend the file system to new capacity.&lt;BR /&gt;&amp;gt;extendfs /dev/vg00/rlvol5&lt;BR /&gt;&lt;BR /&gt;Again, you should see a message for success or failure.&lt;BR /&gt;&lt;BR /&gt;10.  mount /tmp and /usr so that you can use bdf to verify the change.&lt;BR /&gt;&amp;gt; mount /tmp&lt;BR /&gt;&amp;gt; mount /usr&lt;BR /&gt;&amp;gt; bdf /tmp&lt;BR /&gt;Should tell you the capacity at your new size.&lt;BR /&gt;&lt;BR /&gt;If you follow these steps, you will either succed, or fail with knowlege of why it failed.  I.E see item 8.  &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannon</description>
      <pubDate>Thu, 07 Jun 2001 14:06:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extending-filesystem-size/m-p/2537840#M649048</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2001-06-07T14:06:44Z</dc:date>
    </item>
  </channel>
</rss>

