<?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: I need to squeeze out some didk space in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602799#M233263</link>
    <description>if you reduce the size of /opt, using fsadm, you should not need to go down to single user or restore the contents of the /opt right away. When you take away some space from logical volume, which /opt is sitting on is the risky part. &lt;BR /&gt;&lt;BR /&gt;againg with the example for from 2G to 1G&lt;BR /&gt;&lt;BR /&gt;fsadm -F vxfs -b 1000M /opt&lt;BR /&gt;&lt;BR /&gt;(completes successfully)&lt;BR /&gt;&lt;BR /&gt;lvreduce -L 1000 /dev/vg00/lvol5&lt;BR /&gt;&lt;BR /&gt;if this completes successfully as well, you should be good to go with extending /usr. If not, well, bring out the backup tapes, recreate lvol5, then newfs, then mount /opt, then restore from tape... worst case scenario.</description>
    <pubDate>Fri, 12 Aug 2005 11:29:35 GMT</pubDate>
    <dc:creator>Mel Burslan</dc:creator>
    <dc:date>2005-08-12T11:29:35Z</dc:date>
    <item>
      <title>I need to squeeze out some didk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602788#M233252</link>
      <description>I need some more disk space in my /use partition. I do not have any more free space in vg00.&lt;BR /&gt;I have a bunch of free space in /opt that is also in vg00.&lt;BR /&gt;There are process running using /opt so I have to play some games to get some down time.&lt;BR /&gt;Here is my thoughts how I can fix this problem using my skill level.&lt;BR /&gt;First use "shutdown 0" to get it into single user mode.&lt;BR /&gt;mount /usr so I can get the commands I need.&lt;BR /&gt;copy /opt to another location.&lt;BR /&gt;Drop and recreate the /opt partition makeing it smaller.&lt;BR /&gt;Then copy /opt back to this new location.&lt;BR /&gt;Then bring the system back up.&lt;BR /&gt;Then extend the size of of /usr.&lt;BR /&gt;Woops! I forgot I wont have "sam' will I?&lt;BR /&gt;What are the commands I would use to drop /opt and recreate it?&lt;BR /&gt;I should learn that.&lt;BR /&gt;Can you guide me with this?&lt;BR /&gt;Marty&lt;BR /&gt;Using HP-UX 11.0 here. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Aug 2005 10:20:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602788#M233252</guid>
      <dc:creator>Marty Metras</dc:creator>
      <dc:date>2005-08-12T10:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: I need to squeeze out some didk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602789#M233253</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;That's a risky approach, I really don't know if it will work. An easier and clean solution would be to make a ignite tape_recovery including all vg00. Then you may boot from tape and resize filesystems as you want:&lt;BR /&gt;&lt;BR /&gt;#make_tape_recovery -v -I -x inc_entire=vg00&lt;BR /&gt;&lt;BR /&gt;The boot from this tape, reboot the server and interrupt the boot on the 10 seconds messages, search for bootable devices, select the tape drive and follow instructions :)&lt;BR /&gt;&lt;BR /&gt;Another alternative would be to do it on-line, but this is possible only if you have "On-Line JFS" installed. You may check if you have it by:&lt;BR /&gt;&lt;BR /&gt;root@porsx011:/# swlist -l product|grep -i online&lt;BR /&gt;  OnlineJFS             B.11.11        Online features of the VxFS File System &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Enjoy :)&lt;BR /&gt;&lt;BR /&gt;Pedro</description>
      <pubDate>Fri, 12 Aug 2005 10:27:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602789#M233253</guid>
      <dc:creator>Pedro Cirne</dc:creator>
      <dc:date>2005-08-12T10:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: I need to squeeze out some didk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602790#M233254</link>
      <description>I'm assuming you don't have OnlineJFS, otherwise you could do this online (swlist OnlineJFS".&lt;BR /&gt;&lt;BR /&gt;Yes I would backup /opt to tape with tar.&lt;BR /&gt;&lt;BR /&gt;To remove and recreate your /opt you would: -&lt;BR /&gt;&lt;BR /&gt;unmount /opt&lt;BR /&gt;&lt;BR /&gt;lvreduce -L newsize /dev/vg00/lvol4&lt;BR /&gt;&lt;BR /&gt;This will reduce the logical volume to "newsize".  No need to remove and recreate since you are recreating the filesystem anyway.&lt;BR /&gt;&lt;BR /&gt;Then newfs -Fvxfs /dev/vg00/rlvol4&lt;BR /&gt;&lt;BR /&gt;Then mount the filesystem.&lt;BR /&gt;&lt;BR /&gt;Then restore your tape.&lt;BR /&gt;&lt;BR /&gt;You can then unmount /usr, then use vgextend and extendfs to grow /usr.&lt;BR /&gt;&lt;BR /&gt;However I'd seriously consider investing on OnlineJFS if you don't have it already, saves a lot of headaches!</description>
      <pubDate>Fri, 12 Aug 2005 10:30:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602790#M233254</guid>
      <dc:creator>Simon Hargrave</dc:creator>
      <dc:date>2005-08-12T10:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: I need to squeeze out some didk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602791#M233255</link>
      <description>Marty,&lt;BR /&gt;&lt;BR /&gt;You can use SAM in single user mode.  Just do a "mount -a"  when it comes up.  Then umount /opt.  Shrink /opt, then umount and grow /usr.  You won't have SAM available but all you have to do is lvextend and extendfs.  Then come back up.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 12 Aug 2005 10:30:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602791#M233255</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-08-12T10:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: I need to squeeze out some didk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602792#M233256</link>
      <description>Pedro,&lt;BR /&gt;&lt;BR /&gt;I do not have JFS.&lt;BR /&gt;Ignite tape should work. I haven't done a boot from Ignite. It may be goot time to learn. I have been doing the Make_Tape_recover tapes for quite a while.&lt;BR /&gt;Thanks,&lt;BR /&gt;Marty&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Aug 2005 10:32:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602792#M233256</guid>
      <dc:creator>Marty Metras</dc:creator>
      <dc:date>2005-08-12T10:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: I need to squeeze out some didk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602793#M233257</link>
      <description>How would you do this with OnlineJFS?&lt;BR /&gt;&lt;BR /&gt;Marty</description>
      <pubDate>Fri, 12 Aug 2005 10:44:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602793#M233257</guid>
      <dc:creator>Marty Metras</dc:creator>
      <dc:date>2005-08-12T10:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: I need to squeeze out some didk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602794#M233258</link>
      <description>as an example you have a 2GB /opt and you want it to become 1GB&lt;BR /&gt;&lt;BR /&gt;fsadm -F vxfs -b 1000M /opt&lt;BR /&gt;&lt;BR /&gt;is the command&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Aug 2005 10:57:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602794#M233258</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-08-12T10:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: I need to squeeze out some didk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602795#M233259</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Mel didnt mention that before extending filesystem with fsadm you must extend lvol:&lt;BR /&gt;&lt;BR /&gt;lvextend -L 1000 /dev/vg##/lvol##&lt;BR /&gt;&lt;BR /&gt;Enjoy :)&lt;BR /&gt;&lt;BR /&gt;Pedro</description>
      <pubDate>Fri, 12 Aug 2005 11:01:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602795#M233259</guid>
      <dc:creator>Pedro Cirne</dc:creator>
      <dc:date>2005-08-12T11:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: I need to squeeze out some didk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602796#M233260</link>
      <description>Pedro,&lt;BR /&gt;&lt;BR /&gt;We are talking about reducing the filesystem size not extending it.&lt;BR /&gt;&lt;BR /&gt;Actually after the fsadm command, one needs to shrink the size of the logical volume with lvreduce command. &lt;BR /&gt;&lt;BR /&gt;But again, reducing filesystem and logical volume sizes are very risky at best. &lt;BR /&gt;&lt;BR /&gt;My advice: have a known-good backup before committing to any of this.</description>
      <pubDate>Fri, 12 Aug 2005 11:05:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602796#M233260</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-08-12T11:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: I need to squeeze out some didk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602797#M233261</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Mel, yes you are right, but Marty also wants to extend /usr :)&lt;BR /&gt;&lt;BR /&gt;Enjoy :)&lt;BR /&gt;&lt;BR /&gt;Pedro</description>
      <pubDate>Fri, 12 Aug 2005 11:07:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602797#M233261</guid>
      <dc:creator>Pedro Cirne</dc:creator>
      <dc:date>2005-08-12T11:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: I need to squeeze out some didk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602798#M233262</link>
      <description>Guys,&lt;BR /&gt;Entending /usr is not a problem.&lt;BR /&gt;I can do that in "sam" any time. I have done that already. I just need some space.&lt;BR /&gt;It is taking space back from /opt that I was not sure about.&lt;BR /&gt;When I said I did not have OnlineJFS I may have been mistaking.&lt;BR /&gt;As you see I do have it.&lt;BR /&gt;  B3929BA                       B.11.00        HP OnLineJFS (Advanced VxFS) &lt;BR /&gt;  PHKL_22393                    1.0            VxFS 31 OnlineJFS cumulative patch &lt;BR /&gt;  PHKL_24201                    1.0            JFS;stickybit;quota access;vx_maxlink tunabl &lt;BR /&gt;&lt;BR /&gt;I also have the "fsadm" command.&lt;BR /&gt;Some time I use thing I do not know have.&lt;BR /&gt;I know reducing space is always risky.&lt;BR /&gt;And I preach Backup!, Backup! Backup.&lt;BR /&gt;I keep 4 online copies of the out production database and put it on tape too.&lt;BR /&gt;Wait, stop preaching Marty.&lt;BR /&gt;&lt;BR /&gt;So to do this reduce thing.&lt;BR /&gt;After the backup, use the fsadm command and then restore the /opt backup.&lt;BR /&gt;Since I have JFS do I still have to still go down to single user mode?&lt;BR /&gt;Marty</description>
      <pubDate>Fri, 12 Aug 2005 11:20:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602798#M233262</guid>
      <dc:creator>Marty Metras</dc:creator>
      <dc:date>2005-08-12T11:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: I need to squeeze out some didk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602799#M233263</link>
      <description>if you reduce the size of /opt, using fsadm, you should not need to go down to single user or restore the contents of the /opt right away. When you take away some space from logical volume, which /opt is sitting on is the risky part. &lt;BR /&gt;&lt;BR /&gt;againg with the example for from 2G to 1G&lt;BR /&gt;&lt;BR /&gt;fsadm -F vxfs -b 1000M /opt&lt;BR /&gt;&lt;BR /&gt;(completes successfully)&lt;BR /&gt;&lt;BR /&gt;lvreduce -L 1000 /dev/vg00/lvol5&lt;BR /&gt;&lt;BR /&gt;if this completes successfully as well, you should be good to go with extending /usr. If not, well, bring out the backup tapes, recreate lvol5, then newfs, then mount /opt, then restore from tape... worst case scenario.</description>
      <pubDate>Fri, 12 Aug 2005 11:29:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602799#M233263</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-08-12T11:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: I need to squeeze out some didk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602800#M233264</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You have On-line JFS so it's much easier!&lt;BR /&gt;&lt;BR /&gt;1ÂºHave a good backup, just-in-case :)&lt;BR /&gt;2Âºfsadm -F vxfs -b new_size_optM /opt&lt;BR /&gt;3Âºlvreduce -L new_size_opt /dev/vg00/lvol##&lt;BR /&gt;4Âºlvextend -L new_size_usr /dev/vg00/lvol##&lt;BR /&gt;5Âºfsadm -F vxfs -b new_size_usr /usr&lt;BR /&gt;&lt;BR /&gt;That's all, don't forget the "M" after the size on fsadm!&lt;BR /&gt;&lt;BR /&gt;Enjoy :)&lt;BR /&gt;&lt;BR /&gt;Pedro</description>
      <pubDate>Fri, 12 Aug 2005 11:32:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602800#M233264</guid>
      <dc:creator>Pedro Cirne</dc:creator>
      <dc:date>2005-08-12T11:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: I need to squeeze out some didk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602801#M233265</link>
      <description>Sadly, reducing the size of a vxfs with your version of Vxfs (3.1) is prone to data corruption. My approach to this would be to backup the /usr file system and delete the LVOL and recreate it. Newer versions handle shrinking the filesystem well but your version often corrupts the filesystem.</description>
      <pubDate>Fri, 12 Aug 2005 12:27:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602801#M233265</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-08-12T12:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: I need to squeeze out some didk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602802#M233266</link>
      <description>Thanks for all your help.&lt;BR /&gt;I understand the risk in changing any thing to do with the OS and FS so I will have a double backup and make see what I can do.&lt;BR /&gt;&lt;BR /&gt;Thanks again for your help.&lt;BR /&gt;Marty</description>
      <pubDate>Fri, 12 Aug 2005 13:24:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-need-to-squeeze-out-some-didk-space/m-p/3602802#M233266</guid>
      <dc:creator>Marty Metras</dc:creator>
      <dc:date>2005-08-12T13:24:25Z</dc:date>
    </item>
  </channel>
</rss>

