<?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: SwapSpace increase in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-increase/m-p/4959002#M789451</link>
    <description>Hi Mehul,&lt;BR /&gt;&lt;BR /&gt;      For obvious reasons, the steps you followed will fail because, ROOT ,SWAP/DUMP are supposed to be contiguous allocated logical volumes. Since root vol is lvol3 following the swap vol which is lvol2 it is quite defficult to extend the primary swap lvol2 even if it possible.&lt;BR /&gt;&lt;BR /&gt;      The Best solution is to leave the primary swap as it is and add some secondary swap to supplement the already configured priamry swap.&lt;BR /&gt;&lt;BR /&gt;      Please read on...&lt;BR /&gt;&lt;BR /&gt;      You can configure 2 type of secondary swaps.. &lt;BR /&gt;&lt;BR /&gt;            1) Device swaps.&lt;BR /&gt;            2) Filesystem swaps.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;      I would suggest Device swap to be hassle free and would advice you to go ahead with FS swap only if you do not have enough free extents to create an additional LV in VG00.&lt;BR /&gt;&lt;BR /&gt;      following are the commands&lt;BR /&gt;&lt;BR /&gt;1) lvcreate -L &lt;SIZE in="" mb=""&gt; vg00 (lets assume it would create /dev/vg00/lvol10)&lt;BR /&gt;2) issue the following command to enable the swap..&lt;BR /&gt;    swapon /dev/vg00/lvol10&lt;BR /&gt;    You can check whether a swap was added or not by issuing the command "swapinfo".&lt;BR /&gt;3) Now you need to make this swapon activity automatic to be done across boots by adding the follwoing line in the /etc/fstab file.&lt;BR /&gt;&lt;BR /&gt;     /dev/vg00/lvol10   -    swap   defaults  0 0&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Senthil Kumar .A&lt;BR /&gt;&lt;/SIZE&gt;</description>
    <pubDate>Fri, 17 Feb 2006 01:30:18 GMT</pubDate>
    <dc:creator>Senthil Kumar .A_1</dc:creator>
    <dc:date>2006-02-17T01:30:18Z</dc:date>
    <item>
      <title>SwapSpace increase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-increase/m-p/4958992#M789441</link>
      <description>Could anybody tell me how to increase a swapspace? Pl send simmple steps to perform with example&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;mehul</description>
      <pubDate>Sat, 11 Feb 2006 02:58:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-increase/m-p/4958992#M789441</guid>
      <dc:creator>mehul_3</dc:creator>
      <dc:date>2006-02-11T02:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: SwapSpace increase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-increase/m-p/4958993#M789442</link>
      <description>would create a separate vg for it. After that you can do this to create your addl swap. &lt;BR /&gt;&lt;BR /&gt;Hi Mehul,&lt;BR /&gt;&lt;BR /&gt;You can create and add a secondary SWAP in the system.&lt;BR /&gt;&lt;BR /&gt;Follow the below procedure...&lt;BR /&gt;&lt;BR /&gt;1. # lvcreate -L 400 -n swap1 -C y -r n /dev/vg00 &lt;BR /&gt;&lt;BR /&gt;==&amp;gt; this creates a 400MB contigous lv called swap1 in vg00 with bad block reallocation turned off &lt;BR /&gt;&lt;BR /&gt;2. # swapon -p 1 /dev/vg00/swap1 &lt;BR /&gt;&lt;BR /&gt;==&amp;gt; enable swap with priority 1. &lt;BR /&gt;&lt;BR /&gt;3. # swapinfo -ta &lt;BR /&gt;&lt;BR /&gt;==&amp;gt; check to see if added swap is enabled. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# vi /etc/fstab &lt;BR /&gt;.... &lt;BR /&gt;/dev/vg01/swap2 ... swap pri=1 &lt;BR /&gt;&lt;BR /&gt;==&amp;gt; this makes the change persistent accross reboots,&lt;BR /&gt;&lt;BR /&gt;With Regards,&lt;BR /&gt;&lt;BR /&gt;Siva.</description>
      <pubDate>Sat, 11 Feb 2006 03:20:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-increase/m-p/4958993#M789442</guid>
      <dc:creator>Sivakumar TS</dc:creator>
      <dc:date>2006-02-11T03:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: SwapSpace increase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-increase/m-p/4958994#M789443</link>
      <description>Ok thanks but few more questions..&lt;BR /&gt;We have already swapspace of 6GB installed and this can be shown from the following output and I would like to add an addtional 3GB space on existing one.&lt;BR /&gt;# swapinfo -atm&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        6144      47    6097    1%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;reserve       -    3672   -3672&lt;BR /&gt;memory     2315     451    1864   19%&lt;BR /&gt;total      8459    4170    4289   49%       -       0    -&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;Waiting for your prompt response.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mehul</description>
      <pubDate>Sat, 11 Feb 2006 04:13:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-increase/m-p/4958994#M789443</guid>
      <dc:creator>mehul_3</dc:creator>
      <dc:date>2006-02-11T04:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: SwapSpace increase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-increase/m-p/4958995#M789444</link>
      <description>hi mehul,&lt;BR /&gt;&lt;BR /&gt;easiest way though will be using SAM.&lt;BR /&gt;&lt;BR /&gt;SAM Areas:&lt;BR /&gt;  Disks and File Systems:&lt;BR /&gt;                         SWAPS&lt;BR /&gt;&lt;BR /&gt;You may as well create additional new swaps!&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Sat, 11 Feb 2006 04:19:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-increase/m-p/4958995#M789444</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2006-02-11T04:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: SwapSpace increase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-increase/m-p/4958996#M789445</link>
      <description>Hi  mehul,&lt;BR /&gt;&lt;BR /&gt;You can not easily put more space to you exicting swap.&lt;BR /&gt;This is because it's a LV put in place when you install your OS and there for it's protected with a sxtrict allocation policy.&lt;BR /&gt;There are ways to go by it but it's not recommanded. There for it's beter to add additional swap as explained. Or ignite your system and make your swap space bigger at the beginning.&lt;BR /&gt;&lt;BR /&gt;Alse when you add additional swap make the kernel change &lt;BR /&gt;swapmem=0&lt;BR /&gt;tp swapmem=1&lt;BR /&gt;&lt;BR /&gt;Also a document about swap and pseudoswap.&lt;BR /&gt;I found it very helpfull.&lt;BR /&gt;&lt;BR /&gt;grtz. Mark</description>
      <pubDate>Sat, 11 Feb 2006 06:41:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-increase/m-p/4958996#M789445</guid>
      <dc:creator>Mark Nieuwboer</dc:creator>
      <dc:date>2006-02-11T06:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: SwapSpace increase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-increase/m-p/4958997#M789446</link>
      <description>Hi  mehul,&lt;BR /&gt;&lt;BR /&gt;You can not easily put more space to you exicting swap.&lt;BR /&gt;This is because it's a LV put in place when you install your OS and there for it's protected with a sxtrict allocation policy.&lt;BR /&gt;There are ways to go by it but it's not recommanded. There for it's beter to add additional swap as explained. Or ignite your system and make your swap space bigger at the beginning.&lt;BR /&gt;&lt;BR /&gt;Alse when you add additional swap make the kernel change &lt;BR /&gt;swapmem=0&lt;BR /&gt;tp swapmem=1&lt;BR /&gt;&lt;BR /&gt;Also a document about swap and pseudoswap.&lt;BR /&gt;I found it very helpfull.&lt;BR /&gt;&lt;BR /&gt;grtz. Mark</description>
      <pubDate>Sat, 11 Feb 2006 06:41:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-increase/m-p/4958997#M789446</guid>
      <dc:creator>Mark Nieuwboer</dc:creator>
      <dc:date>2006-02-11T06:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: SwapSpace increase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-increase/m-p/4958998#M789447</link>
      <description>Can I simply add space using option add device swap thru SAM. will it allow me to do so? &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mehul</description>
      <pubDate>Sat, 11 Feb 2006 06:53:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-increase/m-p/4958998#M789447</guid>
      <dc:creator>mehul_3</dc:creator>
      <dc:date>2006-02-11T06:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: SwapSpace increase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-increase/m-p/4958999#M789448</link>
      <description>shall I use modify option thru SAM? instead of doing it by manual command</description>
      <pubDate>Sat, 11 Feb 2006 06:55:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-increase/m-p/4958999#M789448</guid>
      <dc:creator>mehul_3</dc:creator>
      <dc:date>2006-02-11T06:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: SwapSpace increase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-increase/m-p/4959000#M789449</link>
      <description>Yes mehul,&lt;BR /&gt;&lt;BR /&gt;You can do it through sam.&lt;BR /&gt;But i'm a prompt geek. i like to do it through the prompt. But no problems to do it by sam.&lt;BR /&gt;&lt;BR /&gt;grtz. mark</description>
      <pubDate>Sat, 11 Feb 2006 06:58:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-increase/m-p/4959000#M789449</guid>
      <dc:creator>Mark Nieuwboer</dc:creator>
      <dc:date>2006-02-11T06:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: SwapSpace increase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-increase/m-p/4959001#M789450</link>
      <description>I have done a following steps to add a swapspace to existing one&lt;BR /&gt;&lt;BR /&gt;$lvlnboot -v /dev/vg00               &lt;BR /&gt;This will display the current root and swap volumes&lt;BR /&gt;(Note: lvol2 is the default primary swap.)&lt;BR /&gt;$ lvrmboot -s /dev/vg00               &lt;BR /&gt;# remove the swap link to the current primary swap.&lt;BR /&gt;REBOOT the system into lvm maintenance mode:&lt;BR /&gt;$ shutdown -r 0                       &lt;BR /&gt;# reboot&lt;BR /&gt;     &lt;BR /&gt;     at ISL&amp;gt; boot -lm (;0)/stand/vmunix&lt;BR /&gt;&lt;BR /&gt;     $ lvextend -L 12000 /dev/vg00/lvol2     # YYY is new size of lvol&lt;BR /&gt;     $ lvlnboot -s lvol2 /dev/vg00         &lt;BR /&gt;# recreate a swap link with the lvol.&lt;BR /&gt;     $ lvlnboot -R /dev/vg00               &lt;BR /&gt;# to relink everything&lt;BR /&gt;     $ shutdown -r 0                       &lt;BR /&gt;# reboot&lt;BR /&gt;&lt;BR /&gt;We have already a enough free space of 15GB in dev/vg00 but surprisingly enough I was unable to extend logical volume giving error message as there is no contigious space.Is it a fragmentation problem.&lt;BR /&gt;Pl, guide me in this regard&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Mehul&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Feb 2006 23:23:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-increase/m-p/4959001#M789450</guid>
      <dc:creator>mehul_3</dc:creator>
      <dc:date>2006-02-16T23:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: SwapSpace increase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-increase/m-p/4959002#M789451</link>
      <description>Hi Mehul,&lt;BR /&gt;&lt;BR /&gt;      For obvious reasons, the steps you followed will fail because, ROOT ,SWAP/DUMP are supposed to be contiguous allocated logical volumes. Since root vol is lvol3 following the swap vol which is lvol2 it is quite defficult to extend the primary swap lvol2 even if it possible.&lt;BR /&gt;&lt;BR /&gt;      The Best solution is to leave the primary swap as it is and add some secondary swap to supplement the already configured priamry swap.&lt;BR /&gt;&lt;BR /&gt;      Please read on...&lt;BR /&gt;&lt;BR /&gt;      You can configure 2 type of secondary swaps.. &lt;BR /&gt;&lt;BR /&gt;            1) Device swaps.&lt;BR /&gt;            2) Filesystem swaps.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;      I would suggest Device swap to be hassle free and would advice you to go ahead with FS swap only if you do not have enough free extents to create an additional LV in VG00.&lt;BR /&gt;&lt;BR /&gt;      following are the commands&lt;BR /&gt;&lt;BR /&gt;1) lvcreate -L &lt;SIZE in="" mb=""&gt; vg00 (lets assume it would create /dev/vg00/lvol10)&lt;BR /&gt;2) issue the following command to enable the swap..&lt;BR /&gt;    swapon /dev/vg00/lvol10&lt;BR /&gt;    You can check whether a swap was added or not by issuing the command "swapinfo".&lt;BR /&gt;3) Now you need to make this swapon activity automatic to be done across boots by adding the follwoing line in the /etc/fstab file.&lt;BR /&gt;&lt;BR /&gt;     /dev/vg00/lvol10   -    swap   defaults  0 0&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Senthil Kumar .A&lt;BR /&gt;&lt;/SIZE&gt;</description>
      <pubDate>Fri, 17 Feb 2006 01:30:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-increase/m-p/4959002#M789451</guid>
      <dc:creator>Senthil Kumar .A_1</dc:creator>
      <dc:date>2006-02-17T01:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: SwapSpace increase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-increase/m-p/4959003#M789452</link>
      <description>this is command option. I prefer!&lt;BR /&gt;Device swap:&lt;BR /&gt;Device swap is faster than file system swap. Device swap resides in its own partition.&lt;BR /&gt;steps:&lt;BR /&gt;  the following command creates a file system on a disk and reserves 200 megabytes&lt;BR /&gt; (MB) for swap:&lt;BR /&gt; #newfs -R 200 /dev/rdsk/c0t2d0&lt;BR /&gt; #swapon /dev/dsk/c0t2d0&lt;BR /&gt;File System Swap&lt;BR /&gt;File system swap is a form of secondary swap. It can be configured dynamically.&lt;BR /&gt;Steps:&lt;BR /&gt; #lvcreate -L 16 -n myswap /dev/vg01&lt;BR /&gt; #swapon /dev/vg01/myswap&lt;BR /&gt;&lt;BR /&gt;Several kernel tunable parameters limit the amount of swap that can be made available.&lt;BR /&gt;â ¢ The default maximum amount of swap space you can configure, for both device swap and&lt;BR /&gt;file system swap combined, is approximately 512 MB. The tunable system parameter,&lt;BR /&gt;maxswapchunks, controls this maximum. This parameter (default value of 256) limits the&lt;BR /&gt;number of swap space chunks. The default size of each chunk of swap space is 2 MB. The&lt;BR /&gt;size of a swapchunk can be modified with the swchunk kernel tunable parameter.</description>
      <pubDate>Fri, 17 Feb 2006 02:30:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-increase/m-p/4959003#M789452</guid>
      <dc:creator>Nguyen Anh Tien</dc:creator>
      <dc:date>2006-02-17T02:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: SwapSpace increase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-increase/m-p/4959004#M789453</link>
      <description>Thanks for all of you for kind support.&lt;BR /&gt;Problem has been resolved by creating new logical volume for new swap rather than adding to existing one.&lt;BR /&gt;&lt;BR /&gt;Thanks once again all of you for updating my knowledge.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mehul</description>
      <pubDate>Fri, 17 Feb 2006 23:56:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-increase/m-p/4959004#M789453</guid>
      <dc:creator>mehul_3</dc:creator>
      <dc:date>2006-02-17T23:56:03Z</dc:date>
    </item>
  </channel>
</rss>

