<?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: Increasing SWAP in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/increasing-swap/m-p/4907190#M405380</link>
    <description>Thanks Victor,&lt;BR /&gt;&lt;BR /&gt;The plan was to have:&lt;BR /&gt;/dev/vg00/lvol2 of 1Gb (primary)&lt;BR /&gt;/dev/vg00/lvolswap of 4Gb&lt;BR /&gt;&lt;BR /&gt;But if the recommendation is to have the same size, well I am stuffed. I think I just can go for 1,2,2... and the last one would be in a different disk.&lt;BR /&gt;&lt;BR /&gt;The primary swap (lvol2) looks like:&lt;BR /&gt;$ lvdisplay -k -v /dev/vg00/lvol2&lt;BR /&gt;--- Logical volumes ---&lt;BR /&gt;LV Name                     /dev/vg00/lvol2&lt;BR /&gt;VG Name                     /dev/vg00&lt;BR /&gt;LV Permission               read/write&lt;BR /&gt;LV Status                   available/syncd&lt;BR /&gt;Mirror copies               0&lt;BR /&gt;Consistency Recovery        MWC&lt;BR /&gt;Schedule                    parallel&lt;BR /&gt;LV Size (Mbytes)            1024&lt;BR /&gt;Current LE                  256&lt;BR /&gt;Allocated PE                256&lt;BR /&gt;Stripes                     0&lt;BR /&gt;Stripe Size (Kbytes)        0&lt;BR /&gt;Bad block                   off&lt;BR /&gt;Allocation                  strict/contiguous&lt;BR /&gt;IO Timeout (Seconds)        default &lt;BR /&gt;&lt;BR /&gt;So it is in the same vg and in the same Pv...&lt;BR /&gt;&lt;BR /&gt;Sorry I still haven't got idea of how I am gonna get back those 2Gb. Let me see if I got it right:&lt;BR /&gt;&lt;BR /&gt;1- I will reboot the server&lt;BR /&gt;2- Somehow I will remove the 2Gb.&lt;BR /&gt;3- Change the maxswapchunks to 3000&lt;BR /&gt;4- Create the 2Gg of swap in another disk using swapon.&lt;BR /&gt;5- Reboot again.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 15 Jun 2005 11:55:08 GMT</pubDate>
    <dc:creator>Oscar Garcia</dc:creator>
    <dc:date>2005-06-15T11:55:08Z</dc:date>
    <item>
      <title>Increasing SWAP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increasing-swap/m-p/4907180#M405370</link>
      <description>Hi guys and girls,&lt;BR /&gt;&lt;BR /&gt;I have upgraded my L class server running 11i with 2Gb for a total of 5Gb.&lt;BR /&gt;I thought would be good idea to increase the swap too. I tried to make my homework, I read a lot of the posts regarding this and I remember doing it in the past to allocate 1Gb creating lvol2.&lt;BR /&gt;Well, the server used to have:&lt;BR /&gt;/dev/vg00/lvol2      Device          1    1022 of  1024   now/on boot&lt;BR /&gt;/dev/vg00/lvolswap   Device          1    2046 of  2048   now/on boot&lt;BR /&gt;&lt;BR /&gt;And I tried to increased lvolswap from 2Gb to 4Gb increasing just the logical volume, which I thought was possible as I thought was not the primary one, but unfortunately it is.  Now this is how it looks like (lvdisplay -k -v):&lt;BR /&gt;&lt;BR /&gt;LV Name                     /dev/vg00/lvolswap&lt;BR /&gt;VG Name                     /dev/vg00&lt;BR /&gt;LV Permission               read/write&lt;BR /&gt;LV Status                   available/syncd&lt;BR /&gt;Mirror copies               0&lt;BR /&gt;Consistency Recovery        MWC&lt;BR /&gt;Schedule                    parallel&lt;BR /&gt;LV Size (Mbytes)            4000&lt;BR /&gt;Current LE                  1000&lt;BR /&gt;Allocated PE                1000&lt;BR /&gt;Stripes                     0&lt;BR /&gt;Stripe Size (Kbytes)        0&lt;BR /&gt;Bad block                   on&lt;BR /&gt;Allocation                  strict&lt;BR /&gt;IO Timeout (Seconds)        default&lt;BR /&gt;&lt;BR /&gt;   --- Distribution of logical volume ---&lt;BR /&gt;   PV Name            LE on PV  PE on PV&lt;BR /&gt;   /dev/dsk/c1t0d0    1000      1000&lt;BR /&gt;&lt;BR /&gt;But this did not increased the swap in the system… The question here is how to fixed it? I think I need to create a new lv for swap but also I want to recover those 2Gb, what do I need to do?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Tue, 14 Jun 2005 06:45:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increasing-swap/m-p/4907180#M405370</guid>
      <dc:creator>Oscar Garcia</dc:creator>
      <dc:date>2005-06-14T06:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Increasing SWAP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increasing-swap/m-p/4907181#M405371</link>
      <description>Hi Oscar,&lt;BR /&gt;&lt;BR /&gt;Did you reboot after?&lt;BR /&gt;I suppose it may only be you will have to generate a new kernel with appropriate value for maxswapchunks   &lt;BR /&gt;lets say 6000 will give plenty of freedom...&lt;BR /&gt;&lt;BR /&gt;By the look of it you may well finish up with 5GB swap...&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor</description>
      <pubDate>Tue, 14 Jun 2005 07:05:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increasing-swap/m-p/4907181#M405371</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2005-06-14T07:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Increasing SWAP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increasing-swap/m-p/4907182#M405372</link>
      <description>Thanks Victor,&lt;BR /&gt;&lt;BR /&gt;I have not rebooted the system yet as I have almost 10 Oracle instances running and it is a bit of a job for the dba to start them up/shut them down, besides is a new chap. &lt;BR /&gt;&lt;BR /&gt;I am getting a bit worried as my maxswapchunks is just 1536. How do you calculate the size?&lt;BR /&gt;&lt;BR /&gt;Also I have found in other post that the  primary can be increased ONLY if you have free space contigous to the existing swap. Well, how do you know is contigous? and How do you increase it? The only thing I know is that they were in the same volume group vg00 and that there was free space there...</description>
      <pubDate>Tue, 14 Jun 2005 11:02:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increasing-swap/m-p/4907182#M405372</guid>
      <dc:creator>Oscar Garcia</dc:creator>
      <dc:date>2005-06-14T11:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Increasing SWAP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increasing-swap/m-p/4907183#M405373</link>
      <description>lvdisplay /dev/vgXX/lvolX |grep Allocation&lt;BR /&gt;&lt;BR /&gt;to see if it is strict/contiguous:&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;lvdisplay /dev/vg00/lvol2 |grep Allocation&lt;BR /&gt;Allocation                  strict/contiguous&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you need more swap, I just create a new one...&lt;BR /&gt;&lt;BR /&gt;Example - adding a 10 GB swap:&lt;BR /&gt;&lt;BR /&gt;lvcreate -L 10240 -n lvswap /dev/vg00&lt;BR /&gt;swapon -f /dev/vg00/lvswap&lt;BR /&gt;&lt;BR /&gt;then add to /etc/fstab:&lt;BR /&gt;&lt;BR /&gt;/dev/vg00/lvswap ... swap pri=1 0 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 14 Jun 2005 11:24:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increasing-swap/m-p/4907183#M405373</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-06-14T11:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Increasing SWAP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increasing-swap/m-p/4907184#M405374</link>
      <description>I think you should run the swapon command on the extended logical volume.</description>
      <pubDate>Tue, 14 Jun 2005 12:10:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increasing-swap/m-p/4907184#M405374</guid>
      <dc:creator>CAS_2</dc:creator>
      <dc:date>2005-06-14T12:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Increasing SWAP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increasing-swap/m-p/4907185#M405375</link>
      <description>I have run it and it comes with:&lt;BR /&gt;$ swapon -f /dev/vg00/lvolswap&lt;BR /&gt;swapon: /dev/vg00/lvolswap is already enabled for paging.&lt;BR /&gt;&lt;BR /&gt;but if I do the swapinfo:&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        1024      23    1001    2%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev        2048      23    2025    1%       0       -    1  /dev/vg00/lvolswap&lt;BR /&gt;reserve       -    1339   -1339&lt;BR /&gt;memory     3883    3047     836   78%&lt;BR /&gt;total      6955    4432    2523   64%       -       0    -&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Jun 2005 12:20:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increasing-swap/m-p/4907185#M405375</guid>
      <dc:creator>Oscar Garcia</dc:creator>
      <dc:date>2005-06-14T12:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Increasing SWAP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increasing-swap/m-p/4907186#M405376</link>
      <description>maxswapchunks * swchunk * DEV_BSIZE = max swap space&lt;BR /&gt;If you have the default values of swchunk and DEV_BSIZE with maxswapchunks of 1536 it should give you about 3.2 GB of swap since setting this parameter is only going to cost you a reboot, fix it high enough for future needs af swap so 5000 should bring you to about 10GB...&lt;BR /&gt;&lt;BR /&gt;swapon will only work if you are adding a new swap device...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor</description>
      <pubDate>Tue, 14 Jun 2005 12:39:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increasing-swap/m-p/4907186#M405376</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2005-06-14T12:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Increasing SWAP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increasing-swap/m-p/4907187#M405377</link>
      <description>Now you need to increase maxswapchunks kernel parameter and reboot.&lt;BR /&gt;&lt;BR /&gt;The current value (1536) means 3 GB. This is the current upper limit for your kernel.&lt;BR /&gt;&lt;BR /&gt;The formula may be simplified as:&lt;BR /&gt;&lt;BR /&gt;maxswapchunks &amp;gt;= size_in_MB / 2&lt;BR /&gt;&lt;BR /&gt;note: that 2 means 2 MB (the default size of a chunk set by the default value of swchunk kernel parameter).&lt;BR /&gt;&lt;BR /&gt;I suggest to double the current value in order to let the kernel to handle up to 6 GB of swap. So, next time you'll need to add more swap (up to 6GB), you will not need to reboot again.</description>
      <pubDate>Tue, 14 Jun 2005 12:51:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increasing-swap/m-p/4907187#M405377</guid>
      <dc:creator>CAS_2</dc:creator>
      <dc:date>2005-06-14T12:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Increasing SWAP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increasing-swap/m-p/4907188#M405378</link>
      <description>Thank you all for your replies.&lt;BR /&gt;&lt;BR /&gt;I am going to increase the maxswapchunks as you suggested it.&lt;BR /&gt;&lt;BR /&gt;What still puzzles me is if after the reboot I will have the extra 2Gb that I need. Checking if it is continous: &lt;BR /&gt;&lt;BR /&gt;$ lvdisplay /dev/vg00/lvolswap|grep Allocation&lt;BR /&gt;Allocation                  strict&lt;BR /&gt;&lt;BR /&gt;It comes just with strict and it seems it has to be "Allocation strict/contiguous".&lt;BR /&gt;Lets clarify something, increasing the space of the logical volume lvolswap was wrong, now I need to rectify it.&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Jun 2005 05:35:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increasing-swap/m-p/4907188#M405378</guid>
      <dc:creator>Oscar Garcia</dc:creator>
      <dc:date>2005-06-15T05:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Increasing SWAP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increasing-swap/m-p/4907189#M405379</link>
      <description>Well Oscar,&lt;BR /&gt;If you really want swap guarantied  there is nothing stopping you to create yet another swap space this time of the correct size then use swapon but since you dont have the right value of maxswapchunks it can be only used at next reboot the idea here is then you can try to not use the other swap at next reboot and after remove it and so you recuperate your 1000PE again.&lt;BR /&gt;Now you havent said how the rest is configured because to make the swap the most efficient, you should have different swap on different disks (Pv etc) accessed by different controllers but of SAME SIZE...&lt;BR /&gt;So it is for performance better to have 3 swaps of 2 GB than one of 1GB and the other of 4...&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor&lt;BR /&gt;Dreaming of a pint of BRAINS&lt;BR /&gt;(Is it exported?)</description>
      <pubDate>Wed, 15 Jun 2005 07:32:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increasing-swap/m-p/4907189#M405379</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2005-06-15T07:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Increasing SWAP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increasing-swap/m-p/4907190#M405380</link>
      <description>Thanks Victor,&lt;BR /&gt;&lt;BR /&gt;The plan was to have:&lt;BR /&gt;/dev/vg00/lvol2 of 1Gb (primary)&lt;BR /&gt;/dev/vg00/lvolswap of 4Gb&lt;BR /&gt;&lt;BR /&gt;But if the recommendation is to have the same size, well I am stuffed. I think I just can go for 1,2,2... and the last one would be in a different disk.&lt;BR /&gt;&lt;BR /&gt;The primary swap (lvol2) looks like:&lt;BR /&gt;$ lvdisplay -k -v /dev/vg00/lvol2&lt;BR /&gt;--- Logical volumes ---&lt;BR /&gt;LV Name                     /dev/vg00/lvol2&lt;BR /&gt;VG Name                     /dev/vg00&lt;BR /&gt;LV Permission               read/write&lt;BR /&gt;LV Status                   available/syncd&lt;BR /&gt;Mirror copies               0&lt;BR /&gt;Consistency Recovery        MWC&lt;BR /&gt;Schedule                    parallel&lt;BR /&gt;LV Size (Mbytes)            1024&lt;BR /&gt;Current LE                  256&lt;BR /&gt;Allocated PE                256&lt;BR /&gt;Stripes                     0&lt;BR /&gt;Stripe Size (Kbytes)        0&lt;BR /&gt;Bad block                   off&lt;BR /&gt;Allocation                  strict/contiguous&lt;BR /&gt;IO Timeout (Seconds)        default &lt;BR /&gt;&lt;BR /&gt;So it is in the same vg and in the same Pv...&lt;BR /&gt;&lt;BR /&gt;Sorry I still haven't got idea of how I am gonna get back those 2Gb. Let me see if I got it right:&lt;BR /&gt;&lt;BR /&gt;1- I will reboot the server&lt;BR /&gt;2- Somehow I will remove the 2Gb.&lt;BR /&gt;3- Change the maxswapchunks to 3000&lt;BR /&gt;4- Create the 2Gg of swap in another disk using swapon.&lt;BR /&gt;5- Reboot again.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Jun 2005 11:55:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increasing-swap/m-p/4907190#M405380</guid>
      <dc:creator>Oscar Garcia</dc:creator>
      <dc:date>2005-06-15T11:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Increasing SWAP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increasing-swap/m-p/4907191#M405381</link>
      <description>Oscar,&lt;BR /&gt;start by modifying using SAM the value of maxswapchunks&lt;BR /&gt;make it 4000 like that you have some spare and it may save you a  reboot in the future...&lt;BR /&gt;Once rebooted, go to "disk and file system"/swap, create  2 swaps of 2GB in different VGs, and remove the 4GB one and since vg00/lvol2 is now smaller, change its priority in favor of the 2 new ones..&lt;BR /&gt;Now you shall reboot again&lt;BR /&gt;And all should be fine&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Jun 2005 12:52:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increasing-swap/m-p/4907191#M405381</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2005-06-15T12:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Increasing SWAP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increasing-swap/m-p/4907192#M405382</link>
      <description>Thanks Victor for your help!</description>
      <pubDate>Fri, 17 Jun 2005 13:39:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increasing-swap/m-p/4907192#M405382</guid>
      <dc:creator>Oscar Garcia</dc:creator>
      <dc:date>2005-06-17T13:39:40Z</dc:date>
    </item>
  </channel>
</rss>

