<?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: Adding SWAP space on system in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371368#M347378</link>
    <description>Avinash&lt;BR /&gt;While I am proceeding to create LV for swap on VG00 i have no error, but when we decided not to create swap on VG00 due to space constraint, which is 11 GB and we may use this in future for patching etc. So i tried to create on VG02 where we have 88 GB free space, and in other node in VG08 having 25 GB space.&lt;BR /&gt;The error comes to make this VG02 undistributed first.&lt;BR /&gt;&lt;BR /&gt;If I will do VG02 to undistributed one, what impact will be there with running system, should I ask for downtime for the same.&lt;BR /&gt;</description>
    <pubDate>Thu, 05 Mar 2009 08:18:53 GMT</pubDate>
    <dc:creator>Mohammad Sanaullah</dc:creator>
    <dc:date>2009-03-05T08:18:53Z</dc:date>
    <item>
      <title>Adding SWAP space on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371357#M347367</link>
      <description>Dear All&lt;BR /&gt;I am facing some memory issue and need to increase the swap space.&lt;BR /&gt;I came to know that it is not possible to increase the primary swap and need to add secondary swap, fresh swap requirement is upto 10 GB.&lt;BR /&gt;&lt;BR /&gt;# model&lt;BR /&gt;ia64 hp server rx6600&lt;BR /&gt;OS: HPUX B.11.23&lt;BR /&gt;&lt;BR /&gt;# vgdisplay vg00&lt;BR /&gt;--- Volume groups ---&lt;BR /&gt;VG Name                     /dev/vg00&lt;BR /&gt;VG Write Access             read/write&lt;BR /&gt;VG Status                   available&lt;BR /&gt;Max LV                      255&lt;BR /&gt;Cur LV                      9&lt;BR /&gt;Open LV                     9&lt;BR /&gt;Max PV                      16&lt;BR /&gt;Cur PV                      1&lt;BR /&gt;Act PV                      1&lt;BR /&gt;Max PE per PV               4356&lt;BR /&gt;VGDA                        2&lt;BR /&gt;PE Size (Mbytes)            32&lt;BR /&gt;Total PE                    4322&lt;BR /&gt;Alloc PE                    3968&lt;BR /&gt;Free PE                     354&lt;BR /&gt;Total PVG                   0&lt;BR /&gt;Total Spare PVs             0&lt;BR /&gt;Total Spare PVs in use      0&lt;BR /&gt;&lt;BR /&gt;# swapinfo -tam&lt;BR /&gt;             Mb      Mb      Mb   PCT  START/      Mb&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;dev       10240     855    9385    8%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;reserve       -    9385   -9385&lt;BR /&gt;memory    40930   39682    1248   97%&lt;BR /&gt;total     51170   49922    1248   98%       -       0    -&lt;BR /&gt;&lt;BR /&gt;Please let me now:&lt;BR /&gt;1. Can I increase the primary swap&lt;BR /&gt;2. If not how to increase the swap on system. using above free space. Please let me know the procedure, does it requires system reboot or any application downtime.&lt;BR /&gt;&lt;BR /&gt;Mohammad Sanaullah</description>
      <pubDate>Wed, 04 Mar 2009 13:35:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371357#M347367</guid>
      <dc:creator>Mohammad Sanaullah</dc:creator>
      <dc:date>2009-03-04T13:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adding SWAP space on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371358#M347368</link>
      <description>1. Not easily&lt;BR /&gt;2. Add secondary swap using the available space on vg00. See &lt;A href="http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=&amp;amp;threadId=451429" target="_blank"&gt;http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=&amp;amp;threadId=451429&lt;/A&gt; or search for "add secondary swap"</description>
      <pubDate>Wed, 04 Mar 2009 13:40:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371358#M347368</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2009-03-04T13:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Adding SWAP space on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371359#M347369</link>
      <description>You can simply add another swap area and set the priorities equal.  Probably the easiest way to accomplish this is to use SAM.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 04 Mar 2009 13:43:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371359#M347369</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2009-03-04T13:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Adding SWAP space on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371360#M347370</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;1. Take an ignite backup of vg00. Boot from backup and intervene at the ignite interface to recover with a large swap area.&lt;BR /&gt;2. Create a secondary swap area, with sam or command line, activate the swap and reboot the system to complete the process. lvcreate then lvextend -L &lt;SIZE in="" mb=""&gt; &lt;DISK device=""&gt;&lt;BR /&gt;&lt;BR /&gt;A reboot is always required to permanent swap space. You may be able to avoid this by going with an additional file system based swap but this has performance impact.&lt;BR /&gt;&lt;BR /&gt;Note: Creating a swap space larger than twice ram will impede performance. As you have 40 GB of RAM, the minimum recommended total swap space should be 20 GB total.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/DISK&gt;&lt;/SIZE&gt;</description>
      <pubDate>Wed, 04 Mar 2009 13:44:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371360#M347370</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-03-04T13:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Adding SWAP space on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371361#M347371</link>
      <description>Hi Mohammad,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;1. Can I increase the primary swap&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;No, you can't. The reason is that swap filesystem should be contigious.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;2. If not how to increase the swap on system. using above free space. Please let me know the procedure, does it requires system reboot or any application downtime.&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;You need to create additional/secondary swap.&lt;BR /&gt;&lt;BR /&gt;If you are not familiar with command line use SAM to create secondary swap. use the below steps.&lt;BR /&gt;&lt;BR /&gt;Creating additional swap :&lt;BR /&gt;&lt;BR /&gt;Findout which volumegroup(VG) is having enough free space using vgdisplay command.&lt;BR /&gt;&lt;BR /&gt;For VG01 use the following command. Look at the values of Free PE and PE size. &lt;BR /&gt;PE size*No of Free PEâ  s is the space available on that VG&lt;BR /&gt;&lt;BR /&gt;#vgdisplay /dev/vg01&lt;BR /&gt;&lt;BR /&gt;Create the logical volume for your secondary swap.&lt;BR /&gt;&lt;BR /&gt;#lvcreate -L 10000 -n swap -C y -r n  /dev/vg01     -&amp;gt;Here the size is 10GB&lt;BR /&gt;&lt;BR /&gt;Once you created the logical volume use SAM to configure it.&lt;BR /&gt;&lt;BR /&gt;#sam&lt;BR /&gt;  Disks And File Systems&lt;BR /&gt;  Swap&lt;BR /&gt;  Actions -&amp;gt;Add Device Swap&lt;BR /&gt;  Using the Logical Volume Manager&lt;BR /&gt;&lt;BR /&gt; Select the lvol from the list of Unused Logical Volumes&lt;BR /&gt;&lt;BR /&gt; /dev/vg01/swap&lt;BR /&gt;&lt;BR /&gt; select:&lt;BR /&gt;  When to Enable&lt;BR /&gt;[X] Now&lt;BR /&gt;[X] At Every System Boot&lt;BR /&gt; OK &lt;BR /&gt;&lt;BR /&gt;Then system will rebuilt the kernel and reboot the system.&lt;BR /&gt;&lt;BR /&gt;This is the default selection&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Mar 2009 13:46:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371361#M347371</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-03-04T13:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Adding SWAP space on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371362#M347372</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;This question comes up repeatedly.&lt;BR /&gt;&lt;BR /&gt;1.  This is not worth the effort to do it when you have a configuration in which you can.  Secondary device swap is perfectly good as primary device swap.&lt;BR /&gt;&lt;BR /&gt;See this recent thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1318283" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1318283&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 04 Mar 2009 13:47:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371362#M347372</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-03-04T13:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adding SWAP space on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371363#M347373</link>
      <description>In your case 9385 / 10240 is being already reserved, i.e, application reserve the space in case if page-outs take place.&lt;BR /&gt;&lt;BR /&gt;But if the memory pressure is high and if free memory is very less to run new process, then there is no use in increasing swap.&lt;BR /&gt;&lt;BR /&gt;You could check the free memory available via&lt;BR /&gt;&lt;BR /&gt;# top&lt;BR /&gt;&lt;BR /&gt;Check the Memory section,,, (XXXX K Free)&lt;BR /&gt;&lt;BR /&gt;Your answers"&lt;BR /&gt;1. Take ignite and restore ignite. recommended one, as told above&lt;BR /&gt;2. Please create a secondary swap&lt;BR /&gt;&lt;BR /&gt;lvcreate -L 10240 -n myswap -C y -r n /dev/vg00&lt;BR /&gt;&lt;BR /&gt;This will create a LV /dev/vg00/myswap&lt;BR /&gt;&lt;BR /&gt;# swapon -p 1 /dev/vg00/myswap&lt;BR /&gt;&lt;BR /&gt;You could see this swap added via&lt;BR /&gt;# swapinfo -tam&lt;BR /&gt;&lt;BR /&gt;Add it to fstab to have it activated across reboot&lt;BR /&gt;&lt;BR /&gt;echo "/dev/vg00/myswap ... swap pri=1 0 1" &amp;gt;&amp;gt; /etc/fstab</description>
      <pubDate>Wed, 04 Mar 2009 14:39:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371363#M347373</guid>
      <dc:creator>Avinash20</dc:creator>
      <dc:date>2009-03-04T14:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Adding SWAP space on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371364#M347374</link>
      <description>Hmmm...&lt;BR /&gt;&lt;BR /&gt;44  of   116 points assigned.&lt;BR /&gt;&lt;BR /&gt;Please try to assign points to the thread.&lt;BR /&gt;This is a better ways of saying Thanks.</description>
      <pubDate>Wed, 04 Mar 2009 14:40:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371364#M347374</guid>
      <dc:creator>Avinash20</dc:creator>
      <dc:date>2009-03-04T14:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Adding SWAP space on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371365#M347375</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;To answer your question, Yes, you can increase primary swap. but I would not recommend as it is a complex procedure and require down time. The easiest option is to assign secondary swap as follows. You have got around 11GB free space in vg00.&lt;BR /&gt;&lt;BR /&gt;#lvcreate -L 11328 /dev/vg00&lt;BR /&gt;#vi fstab   and add a line as follows.&lt;BR /&gt;&lt;BR /&gt;/dev/vg00/lvolnn     ...       swap pri=2 0 0&lt;BR /&gt;&lt;BR /&gt;here nn is the lovol number. Then&lt;BR /&gt;#swapon -a  (To enable all swaps in fstab)&lt;BR /&gt;#swapinfo -t (To verify)&lt;BR /&gt;&lt;BR /&gt;Make sure that swchunk parameter in Kernel is already set to a large value.&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;Shahul</description>
      <pubDate>Wed, 04 Mar 2009 14:55:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371365#M347375</guid>
      <dc:creator>Shahul</dc:creator>
      <dc:date>2009-03-04T14:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Adding SWAP space on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371366#M347376</link>
      <description>Thanks for all the responces, Points I will surely give to all.&lt;BR /&gt;&lt;BR /&gt;While I am trying to create a logical volume so that I can use the same for swap is giving error to undistribute your volume group, as this system is a node for two node cluster, and I need to add swap space on both the node by 10 GB.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;Mohammad Sanaullah</description>
      <pubDate>Thu, 05 Mar 2009 07:04:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371366#M347376</guid>
      <dc:creator>Mohammad Sanaullah</dc:creator>
      <dc:date>2009-03-05T07:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding SWAP space on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371367#M347377</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you are creating a LV on this VG, then please post the error message here.&lt;BR /&gt;&lt;BR /&gt;Also if its in cluster, advice you to create the swap on internal disk (eg: vg00) on both the nodes</description>
      <pubDate>Thu, 05 Mar 2009 08:11:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371367#M347377</guid>
      <dc:creator>Avinash20</dc:creator>
      <dc:date>2009-03-05T08:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Adding SWAP space on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371368#M347378</link>
      <description>Avinash&lt;BR /&gt;While I am proceeding to create LV for swap on VG00 i have no error, but when we decided not to create swap on VG00 due to space constraint, which is 11 GB and we may use this in future for patching etc. So i tried to create on VG02 where we have 88 GB free space, and in other node in VG08 having 25 GB space.&lt;BR /&gt;The error comes to make this VG02 undistributed first.&lt;BR /&gt;&lt;BR /&gt;If I will do VG02 to undistributed one, what impact will be there with running system, should I ask for downtime for the same.&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Mar 2009 08:18:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371368#M347378</guid>
      <dc:creator>Mohammad Sanaullah</dc:creator>
      <dc:date>2009-03-05T08:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Adding SWAP space on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371369#M347379</link>
      <description>Creating swap on Cluster Volume Group is not Advised,  since if the package goes down, the vg might not get deactivated due to swap being used.&lt;BR /&gt;&lt;BR /&gt;and hence the package cannot be halted.&lt;BR /&gt;&lt;BR /&gt;Hence its is not advised.</description>
      <pubDate>Thu, 05 Mar 2009 08:28:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371369#M347379</guid>
      <dc:creator>Avinash20</dc:creator>
      <dc:date>2009-03-05T08:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Adding SWAP space on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371370#M347380</link>
      <description>Also I believe that you are facing performance issue since 97% memory is being used.&lt;BR /&gt;&lt;BR /&gt;I would recommend you to also check which processes are utilizing more physical memory and try to doing tuning for the same</description>
      <pubDate>Thu, 05 Mar 2009 08:37:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371370#M347380</guid>
      <dc:creator>Avinash20</dc:creator>
      <dc:date>2009-03-05T08:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Adding SWAP space on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371371#M347381</link>
      <description>Advice:&lt;BR /&gt;&lt;BR /&gt;1. Tune the application for reducing the load which will allow us to get more physical memory or Increase more physical memory&lt;BR /&gt;&lt;BR /&gt;2. Increase the swap to increase the reserve space&lt;BR /&gt;&lt;BR /&gt;If in case 11 GB of swap is not enough, advice to have a new HDD added to vg00</description>
      <pubDate>Thu, 05 Mar 2009 09:41:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-swap-space-on-system/m-p/4371371#M347381</guid>
      <dc:creator>Avinash20</dc:creator>
      <dc:date>2009-03-05T09:41:50Z</dc:date>
    </item>
  </channel>
</rss>

