<?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: Reduce the size of Primary Swap in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-size-of-primary-swap/m-p/2641085#M634498</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;First, ensure that swapmem_on is set to "1" to enable psuedo swap:&lt;BR /&gt;&lt;BR /&gt;     sysdef | grep swapmem_on&lt;BR /&gt;&lt;BR /&gt;Next, verify that there is a good backup of the root volume group:&lt;BR /&gt;&lt;BR /&gt;     lvlnboot -v /dev/vg00&lt;BR /&gt;&lt;BR /&gt;Record the logical volume name information.  Then backup a copy of&lt;BR /&gt;the vg00 configuration:&lt;BR /&gt;&lt;BR /&gt;     vgcfgbackup -f [filename] /dev/vg00&lt;BR /&gt;&lt;BR /&gt;Finally, follow the procedure below to reduce swap dump.&lt;BR /&gt;&lt;BR /&gt;     A.  Boot Psuedo-SWAP for decreasing size of Primary SWAP:&lt;BR /&gt;&lt;BR /&gt;         1. Display the current root and swap volumes:&lt;BR /&gt;&lt;BR /&gt;            lvlnboot -v /dev/vg00 &lt;BR /&gt;&lt;BR /&gt;            Note: lvol2 is the default primary swap.&lt;BR /&gt;&lt;BR /&gt;         2. Remove the swap and dump link to the current primary swap.&lt;BR /&gt;&lt;BR /&gt;            lvrmboot -s /dev/vg00 &lt;BR /&gt;            lvrmboot -d /dev/vg00/lvol2 &lt;BR /&gt;&lt;BR /&gt;     B.  Reboot the system into LVM maintenance mode:&lt;BR /&gt;&lt;BR /&gt;         1. Reboot:&lt;BR /&gt;&lt;BR /&gt;            a. shutdown -ry 0 &lt;BR /&gt;            b. at ISL&amp;gt; hpux -lm (;0)/stand/vmunix &lt;BR /&gt;&lt;BR /&gt;         2. vgchange -a y vg00&lt;BR /&gt;&lt;BR /&gt;         3. lvreduce -L XXX /dev/vg00/lvol2 &lt;BR /&gt;&lt;BR /&gt;            Note: XXX is the new size of lvol. &lt;BR /&gt;&lt;BR /&gt;         4. Recreate a swap and dump link with the lvol:&lt;BR /&gt;&lt;BR /&gt;           lvlnboot -s lvol2 /dev/vg00 &lt;BR /&gt;           lvlnboot -d lvol2 /dev/vg00 &lt;BR /&gt;&lt;BR /&gt;         5. Relink:&lt;BR /&gt;&lt;BR /&gt;           lvlnboot -R /dev/vg00 &lt;BR /&gt;&lt;BR /&gt;         6. Reboot:&lt;BR /&gt;&lt;BR /&gt;           shutdown -ry 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Goodluck,&lt;BR /&gt;-USA..</description>
    <pubDate>Wed, 09 Jan 2002 04:57:30 GMT</pubDate>
    <dc:creator>Uday_S_Ankolekar</dc:creator>
    <dc:date>2002-01-09T04:57:30Z</dc:date>
    <item>
      <title>Reduce the size of Primary Swap</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-size-of-primary-swap/m-p/2641084#M634497</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I would like to reduce the size of the primary swap space which is too large (2048MB) and I just want to split it into 2 physical disk to gain the performance.  Therefore reduce the Primary to 1024 and then add another secondary swap 1024.  By the way, my machine L1000 is equipped 1024MB RAM&lt;BR /&gt;&lt;BR /&gt;Are there anyways to accomplish this?  Thanks,&lt;BR /&gt;&lt;BR /&gt;Chris,</description>
      <pubDate>Wed, 09 Jan 2002 04:24:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-size-of-primary-swap/m-p/2641084#M634497</guid>
      <dc:creator>Chris Fung</dc:creator>
      <dc:date>2002-01-09T04:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce the size of Primary Swap</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-size-of-primary-swap/m-p/2641085#M634498</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;First, ensure that swapmem_on is set to "1" to enable psuedo swap:&lt;BR /&gt;&lt;BR /&gt;     sysdef | grep swapmem_on&lt;BR /&gt;&lt;BR /&gt;Next, verify that there is a good backup of the root volume group:&lt;BR /&gt;&lt;BR /&gt;     lvlnboot -v /dev/vg00&lt;BR /&gt;&lt;BR /&gt;Record the logical volume name information.  Then backup a copy of&lt;BR /&gt;the vg00 configuration:&lt;BR /&gt;&lt;BR /&gt;     vgcfgbackup -f [filename] /dev/vg00&lt;BR /&gt;&lt;BR /&gt;Finally, follow the procedure below to reduce swap dump.&lt;BR /&gt;&lt;BR /&gt;     A.  Boot Psuedo-SWAP for decreasing size of Primary SWAP:&lt;BR /&gt;&lt;BR /&gt;         1. Display the current root and swap volumes:&lt;BR /&gt;&lt;BR /&gt;            lvlnboot -v /dev/vg00 &lt;BR /&gt;&lt;BR /&gt;            Note: lvol2 is the default primary swap.&lt;BR /&gt;&lt;BR /&gt;         2. Remove the swap and dump link to the current primary swap.&lt;BR /&gt;&lt;BR /&gt;            lvrmboot -s /dev/vg00 &lt;BR /&gt;            lvrmboot -d /dev/vg00/lvol2 &lt;BR /&gt;&lt;BR /&gt;     B.  Reboot the system into LVM maintenance mode:&lt;BR /&gt;&lt;BR /&gt;         1. Reboot:&lt;BR /&gt;&lt;BR /&gt;            a. shutdown -ry 0 &lt;BR /&gt;            b. at ISL&amp;gt; hpux -lm (;0)/stand/vmunix &lt;BR /&gt;&lt;BR /&gt;         2. vgchange -a y vg00&lt;BR /&gt;&lt;BR /&gt;         3. lvreduce -L XXX /dev/vg00/lvol2 &lt;BR /&gt;&lt;BR /&gt;            Note: XXX is the new size of lvol. &lt;BR /&gt;&lt;BR /&gt;         4. Recreate a swap and dump link with the lvol:&lt;BR /&gt;&lt;BR /&gt;           lvlnboot -s lvol2 /dev/vg00 &lt;BR /&gt;           lvlnboot -d lvol2 /dev/vg00 &lt;BR /&gt;&lt;BR /&gt;         5. Relink:&lt;BR /&gt;&lt;BR /&gt;           lvlnboot -R /dev/vg00 &lt;BR /&gt;&lt;BR /&gt;         6. Reboot:&lt;BR /&gt;&lt;BR /&gt;           shutdown -ry 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Goodluck,&lt;BR /&gt;-USA..</description>
      <pubDate>Wed, 09 Jan 2002 04:57:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-size-of-primary-swap/m-p/2641085#M634498</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2002-01-09T04:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce the size of Primary Swap</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-size-of-primary-swap/m-p/2641086#M634499</link>
      <description>Hi Chris,&lt;BR /&gt;&lt;BR /&gt;It is a good idea. However before creating the secondary swap, make sure it is on another disk otherwise there is no point.&lt;BR /&gt;&lt;BR /&gt;This procedure can also be used to extend /stand file system. Go ahead if you want by removing lvol2, extend stand and then recreate lvol2.&lt;BR /&gt;&lt;BR /&gt;***Make sure you have a make_recovery tape prior to following the procedure****&lt;BR /&gt;&lt;BR /&gt;This is basically from Resource Center DocID: KBRC00004288&lt;BR /&gt;&lt;BR /&gt;//start&lt;BR /&gt;&lt;BR /&gt;PROBLEM&lt;BR /&gt;What is the procedure to reduce primary swap on the system?&lt;BR /&gt;&lt;BR /&gt;RESOLUTION&lt;BR /&gt;First, ensure that swapmem_on is set to "1" to enable psuedo swap:&lt;BR /&gt;&lt;BR /&gt;     sysdef | grep swapmem_on&lt;BR /&gt;&lt;BR /&gt;Next, verify that there is a good backup of the root volume group:&lt;BR /&gt;&lt;BR /&gt;     lvlnboot -v /dev/vg00&lt;BR /&gt;&lt;BR /&gt;Record the logical volume name information.  Then backup a copy of&lt;BR /&gt;the vg00 configuration:&lt;BR /&gt;&lt;BR /&gt;     vgcfgbackup -f [filename] /dev/vg00&lt;BR /&gt;&lt;BR /&gt;Finally, follow the procedure below to reduce swap dump.&lt;BR /&gt;&lt;BR /&gt;     A.  Boot Psuedo-SWAP for decreasing size of Primary SWAP:&lt;BR /&gt;&lt;BR /&gt;         1. Display the current root and swap volumes:&lt;BR /&gt;&lt;BR /&gt;            lvlnboot -v /dev/vg00 &lt;BR /&gt;&lt;BR /&gt;            Note: lvol2 is the default primary swap.&lt;BR /&gt;&lt;BR /&gt;         2. Remove the swap and dump link to the current primary swap.&lt;BR /&gt;&lt;BR /&gt;            lvrmboot -s /dev/vg00 &lt;BR /&gt;            lvrmboot -d /dev/vg00/lvol2 &lt;BR /&gt;&lt;BR /&gt;     B.  Reboot the system into LVM maintenance mode:&lt;BR /&gt;&lt;BR /&gt;         1. Reboot:&lt;BR /&gt;&lt;BR /&gt;            a. shutdown -ry 0 &lt;BR /&gt;            b. at ISL&amp;gt; hpux -lm (;0)/stand/vmunix &lt;BR /&gt;&lt;BR /&gt;         2. vgchange -a y vg00&lt;BR /&gt;&lt;BR /&gt;         3. lvreduce -L XXX /dev/vg00/lvol2 &lt;BR /&gt;&lt;BR /&gt;            Note: XXX is the new size of lvol. &lt;BR /&gt;&lt;BR /&gt;         4. Recreate a swap and dump link with the lvol:&lt;BR /&gt;&lt;BR /&gt;           lvlnboot -s lvol2 /dev/vg00 &lt;BR /&gt;           lvlnboot -d lvol2 /dev/vg00 &lt;BR /&gt;&lt;BR /&gt;         5. Relink:&lt;BR /&gt;&lt;BR /&gt;           lvlnboot -R /dev/vg00 &lt;BR /&gt;&lt;BR /&gt;         6. Reboot:&lt;BR /&gt;&lt;BR /&gt;           shutdown -ry 0&lt;BR /&gt;&lt;BR /&gt;//END&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If anything unexpected happens, boot through ignite tape and change the primary swap during the installation process.&lt;BR /&gt;&lt;BR /&gt;Good luck.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Jan 2002 04:58:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-size-of-primary-swap/m-p/2641086#M634499</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-01-09T04:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce the size of Primary Swap</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-size-of-primary-swap/m-p/2641087#M634500</link>
      <description>Hi Chris,&lt;BR /&gt;&lt;BR /&gt;Try this link,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support2.external.hp.com/cki/bin/doc.pl/sid=1f0f7a0e07899f58b4/screen=ckiDisplayDocument?docId=200000053868348" target="_blank"&gt;http://us-support2.external.hp.com/cki/bin/doc.pl/sid=1f0f7a0e07899f58b4/screen=ckiDisplayDocument?docId=200000053868348&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Jan 2002 05:39:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-size-of-primary-swap/m-p/2641087#M634500</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-01-09T05:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce the size of Primary Swap</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-size-of-primary-swap/m-p/2641088#M634501</link>
      <description>I know this is very old but I wanted to add a correction for anyone that tries to do this from the post.&lt;BR /&gt;&lt;BR /&gt;This step is wrong:&lt;BR /&gt;&lt;BR /&gt;2. Remove the swap and dump link to the current primary swap. &lt;BR /&gt;&lt;BR /&gt;lvrmboot -s /dev/vg00 &lt;BR /&gt;lvrmboot -d /dev/vg00/lvol2 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;it should be:&lt;BR /&gt;&lt;BR /&gt;2. Remove the swap and dump link to the current primary swap. &lt;BR /&gt;&lt;BR /&gt;lvrmboot -s /dev/vg00 &lt;BR /&gt;lvrmboot -d /dev/vg00/lvol2 /dev/vg00&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 16 Mar 2003 15:59:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-size-of-primary-swap/m-p/2641088#M634501</guid>
      <dc:creator>Sean OB_1</dc:creator>
      <dc:date>2003-03-16T15:59:18Z</dc:date>
    </item>
  </channel>
</rss>

