<?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 /usr in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/extending-usr/m-p/3514039#M625207</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;To do this you need to go to single user mode and use the lvextend and then extenfs.Once you have done this you can boot in multiuser&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;&lt;BR /&gt;HGN</description>
    <pubDate>Wed, 30 Mar 2005 09:26:02 GMT</pubDate>
    <dc:creator>HGN</dc:creator>
    <dc:date>2005-03-30T09:26:02Z</dc:date>
    <item>
      <title>extending /usr</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extending-usr/m-p/3514034#M625202</link>
      <description>/usr is 99% i need to add space&lt;BR /&gt;i am running 11.00&lt;BR /&gt;i have hp online jfs : &lt;BR /&gt;  B3928AA_APZ           B.10.20        HP OnLineJFS (Advanced VxFS) &lt;BR /&gt;&lt;BR /&gt;sam won't let me extend /usr says i must unmount it first. i tried fsadm but /usr is hfs and fsadm does not accept -b option with hfs filesystem.&lt;BR /&gt;&lt;BR /&gt;i guess i need to update online jfs and/or boot to single user to add space.</description>
      <pubDate>Wed, 30 Mar 2005 04:26:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extending-usr/m-p/3514034#M625202</guid>
      <dc:creator>GREGORY JONES_3</dc:creator>
      <dc:date>2005-03-30T04:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: extending /usr</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extending-usr/m-p/3514035#M625203</link>
      <description>Hi Gregory,&lt;BR /&gt;&lt;BR /&gt;Yes if your /usr filesystem is HFS your only option is to boot into single user mode and lvextend/extendfs /usr filesystem.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Wed, 30 Mar 2005 04:31:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extending-usr/m-p/3514035#M625203</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2005-03-30T04:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: extending /usr</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extending-usr/m-p/3514036#M625204</link>
      <description>Yes, you have to umount the file system before carrying out extendfs followed by mount.&lt;BR /&gt;&lt;BR /&gt;sks</description>
      <pubDate>Wed, 30 Mar 2005 04:33:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extending-usr/m-p/3514036#M625204</guid>
      <dc:creator>Sanjay Kumar Suri</dc:creator>
      <dc:date>2005-03-30T04:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: extending /usr</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extending-usr/m-p/3514037#M625205</link>
      <description>There is only one way, You can extend in single mode.&lt;BR /&gt;Check these posts:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=619838" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=619838&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;best regard,&lt;BR /&gt;tienna</description>
      <pubDate>Wed, 30 Mar 2005 05:49:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extending-usr/m-p/3514037#M625205</guid>
      <dc:creator>Nguyen Anh Tien</dc:creator>
      <dc:date>2005-03-30T05:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: extending /usr</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extending-usr/m-p/3514038#M625206</link>
      <description>I'll try to write down a efficient way for doing this.&lt;BR /&gt;&lt;BR /&gt;# this approach needs enough free PE in vg00&lt;BR /&gt;lvreduce /usr to the original size&lt;BR /&gt;create a new lvol for /usr&lt;BR /&gt;lvcreate -l 1 /dev/vg00 &lt;BR /&gt;lvextend -m 1 /dev/vg00/new_lv&lt;BR /&gt;lvextend -L new_size /dev/vg00/new_lv&lt;BR /&gt;newfs -Fvxfs /dev/vg00/rnew_lw&lt;BR /&gt;mkdir /mnt/usr&lt;BR /&gt;mkdir /mnt/old_usr&lt;BR /&gt;# You could go to init 1 now, but /usr is quite static&lt;BR /&gt;mount /dev/vg00/new_lv /mnt/usr || exit 1&lt;BR /&gt;cd /usr &lt;BR /&gt;find . -depth | cpio -pdm /mnt/usr&lt;BR /&gt;touch /mnt/usr/this_is_new&lt;BR /&gt;cp -p /etc/fstab /etc/fstab.before_usr&lt;BR /&gt;#prepare new fstab in vi, change /usr to new lv, and add entry for /mnt/old_usr&lt;BR /&gt;# shutdown -r +0&lt;BR /&gt;# interrupt boot process and boot to maintaince mode (this is not *neccessary* but healthy, You could also simply fstabs and reboot, but You'll lose time if something goes wrong, also one could boot to init S saving one reboot, but the same applies...)&lt;BR /&gt;hpux -lm #(that's "L")&lt;BR /&gt;# switch the fstab files&lt;BR /&gt;vgchange -a y vg00&lt;BR /&gt;mount /usr&lt;BR /&gt;#check if /usr/this_is_new exists ;)&lt;BR /&gt;umount /usr&lt;BR /&gt;reboot&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#done&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Mar 2005 08:25:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extending-usr/m-p/3514038#M625206</guid>
      <dc:creator>Florian Heigl (new acc)</dc:creator>
      <dc:date>2005-03-30T08:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: extending /usr</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extending-usr/m-p/3514039#M625207</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;To do this you need to go to single user mode and use the lvextend and then extenfs.Once you have done this you can boot in multiuser&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;&lt;BR /&gt;HGN</description>
      <pubDate>Wed, 30 Mar 2005 09:26:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extending-usr/m-p/3514039#M625207</guid>
      <dc:creator>HGN</dc:creator>
      <dc:date>2005-03-30T09:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: extending /usr</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extending-usr/m-p/3514040#M625208</link>
      <description>Hello Gregory,&lt;BR /&gt;&lt;BR /&gt;having onlineJFS you should be able tu extend without unmounting. I do not rely on SAM, because I want to know, what is done. Are you sure, you use a vxfs and not hfs filesysten. I dom't know whether onlineJFS works with hfs. Be sure, there is enough space left in the vg and the lvol does not exceed any limit for size oe ohysical extends (PE).&lt;BR /&gt;Here are my notes for extending a lvol for HP-UX 10 and 11 and for installations, that are unpatched for at least 4 years:&lt;BR /&gt;&lt;BR /&gt;lvol=???&lt;BR /&gt;vg=???&lt;BR /&gt;#get all PV name's like /dev/dsk/c0t0d0 #check if mirrord or striped:&lt;BR /&gt;lvdisplay -v /dev/${vg}/${lvol} | head -n 30&lt;BR /&gt;#if vgextend is necessary and it is a #clustersystem, it is a bit more complicated&lt;BR /&gt;#than below described&lt;BR /&gt;&lt;BR /&gt;#get Free PE and PE Size (Mbytes):&lt;BR /&gt;pvdisplay /dev/dsk/c0t0d0&lt;BR /&gt;lvextend -l &lt;LE-NUMBER&gt; /dev/${vg}/${lvol}&lt;BR /&gt;fstyp /dev/${vg}/r${lvol}&lt;BR /&gt;#or &lt;BR /&gt;grep ${lvol} /etc/fstab&lt;BR /&gt;#If it is a clustersystem: &lt;BR /&gt;  cmhaltpkg &lt;PACKAGE&gt;&lt;BR /&gt;  vgchange -a e ${vg}&lt;BR /&gt;#with online_JFS Check for Patches #PHKL_18913.vxfs_s700 or #PHKL_18914.vxfs_s800 from AD 2001 &lt;BR /&gt;#(HP-UX 10.x)&lt;BR /&gt;fsadm -F vxfs -b $NEWKB $MOUNTPOINT&lt;BR /&gt;&lt;BR /&gt;#From here, it should be not relevant for you&lt;BR /&gt;&lt;BR /&gt;#without online_JFS:&lt;BR /&gt;  umount /${lvol}&lt;BR /&gt;  #if umount fails, try the following:   &lt;BR /&gt;    #deactivate the cluster in &lt;BR /&gt;    #/etc/rc.config.c/cmcluster, on all  &lt;BR /&gt;    #clustermembers if necessarry &lt;BR /&gt;    cmhaltpkg dbpkg &lt;BR /&gt;    reboot -q &lt;BR /&gt;    vgchange -S n -c n ${vg} &lt;BR /&gt;    vgchange -a y ${vg} &lt;BR /&gt;    fsck -F vxfs -o full /dev/${vg}/r${lvol} &lt;BR /&gt;    extendfs -F vxfs /dev/${vg}/r${lvol} &lt;BR /&gt;    cmruncl &lt;BR /&gt;    vgchange -S y -c y ${vg} &lt;BR /&gt;  extendfs -F &lt;FILESYSTEMTYPE&gt;  \&lt;BR /&gt;  /dev ${vg}/r${lvol}&lt;BR /&gt;  &lt;BR /&gt;  #If it is a clustersystem: &lt;BR /&gt;    vgchange -a n ${vg}&lt;BR /&gt;  #If it is a clustersystem: &lt;BR /&gt;    cmrunkg -n &lt;NODE&gt; &lt;PACKAGE&gt;&lt;BR /&gt;  mount /${lvol} &lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Ralf&lt;BR /&gt;#Don't forget to extend the offline &lt;BR /&gt;#backupdisk's lvol too if there are some&lt;BR /&gt;&lt;/PACKAGE&gt;&lt;/NODE&gt;&lt;/FILESYSTEMTYPE&gt;&lt;/PACKAGE&gt;&lt;/LE-NUMBER&gt;</description>
      <pubDate>Thu, 31 Mar 2005 01:23:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extending-usr/m-p/3514040#M625208</guid>
      <dc:creator>Ralf Seefeldt</dc:creator>
      <dc:date>2005-03-31T01:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: extending /usr</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extending-usr/m-p/3514041#M625209</link>
      <description>Hi Gregory,&lt;BR /&gt;&lt;BR /&gt;You need to boot to single-user mode to extend /usr.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Isralyn</description>
      <pubDate>Thu, 31 Mar 2005 01:29:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extending-usr/m-p/3514041#M625209</guid>
      <dc:creator>Isralyn Manalac_1</dc:creator>
      <dc:date>2005-03-31T01:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: extending /usr</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extending-usr/m-p/3514042#M625210</link>
      <description>You don't have to do this in single user mode!&lt;BR /&gt;but you do need to reboot.&lt;BR /&gt;&lt;BR /&gt;Create another logical Volume the size you want and mount it as /usr1&lt;BR /&gt;cd /usr;find . -print |cpio -pdmu /usr1;&lt;BR /&gt;vi /etc/fstab&lt;BR /&gt;change /usr -&amp;gt; /usr1 and /usr1-&amp;gt;/usr&lt;BR /&gt;reboot;&lt;BR /&gt;You can then remove /usr1&lt;BR /&gt;&lt;BR /&gt;Rory&lt;BR /&gt;This is faster requires less down time.&lt;BR /&gt;/</description>
      <pubDate>Thu, 31 Mar 2005 10:40:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extending-usr/m-p/3514042#M625210</guid>
      <dc:creator>Rory R Hammond</dc:creator>
      <dc:date>2005-03-31T10:40:54Z</dc:date>
    </item>
  </channel>
</rss>

