<?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: Changing Swap in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-swap/m-p/2621049#M925784</link>
    <description>Michael's directions are correct. (although you can create the size and logical volume in 1 command:  lvcreate -L 250 -n lvswap3 vg00)&lt;BR /&gt;&lt;BR /&gt;If you don't want to add a third swap area and just want to expand the lvswap2 one, you will have to comment out the entry for lvswap2 in /etc/fstab and reboot.  When the system comes back up, you can use lvextend to expand that logical volume (lvextend -L 2250 /dev/vg00/lvswap2)  and then use swapon /dev/vg00/lvswap2 &lt;BR /&gt;to add it back in.  There is no way to remove a swap area without rebooting.</description>
    <pubDate>Tue, 27 Nov 2001 21:51:28 GMT</pubDate>
    <dc:creator>Bernie Vande Griend</dc:creator>
    <dc:date>2001-11-27T21:51:28Z</dc:date>
    <item>
      <title>Changing Swap</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-swap/m-p/2621045#M925780</link>
      <description>I have the following swapinfo.  I need to change my swap to 3.75gb instead of the current 3.5gb.  How do I do this again?  My brain is fried and im on overload?  &lt;BR /&gt;&lt;BR /&gt;Please advise?&lt;BR /&gt;&lt;BR /&gt;# swapinfo&lt;BR /&gt;             Kb      Kb      Kb   PCT  START/      Kb&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;dev     1536000  148772 1387228   10%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev     2048000  144856 1903144    7%       0       -    1  /dev/vg00/lvswap2&lt;BR /&gt;reserve       -  919096 -919096&lt;BR /&gt;memory  1171704  643264  528440   55%</description>
      <pubDate>Tue, 27 Nov 2001 21:29:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-swap/m-p/2621045#M925780</guid>
      <dc:creator>Vito Sarducci</dc:creator>
      <dc:date>2001-11-27T21:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Swap</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-swap/m-p/2621046#M925781</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can easily do this by adding another&lt;BR /&gt;logical volume and placing swap on it.&lt;BR /&gt;&lt;BR /&gt;# lvcreate -n lvswap3 /dev/vg00&lt;BR /&gt;# lvextend -L 256 /dev/vg00/lvswap3&lt;BR /&gt;# swapon /dev/vg00/lvswap3&lt;BR /&gt;&lt;BR /&gt;Edit your /etc/fstab file and add the &lt;BR /&gt;following entry.&lt;BR /&gt;&lt;BR /&gt;/dev/vg00/lvswap3 ... swap pri=1 0 0&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;-Michael</description>
      <pubDate>Tue, 27 Nov 2001 21:36:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-swap/m-p/2621046#M925781</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2001-11-27T21:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Swap</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-swap/m-p/2621047#M925782</link>
      <description>Vito,&lt;BR /&gt;This is from an HP LVM doc. &lt;BR /&gt;&lt;BR /&gt;IX) How to increase the primary swap&lt;BR /&gt;&lt;BR /&gt;      Note: Because of the contiguous allocation policy, create a bigger&lt;BR /&gt;      logical volume and modify the Boot Data Reserved Area (BDRA) to make it&lt;BR /&gt;      primary.&lt;BR /&gt;&lt;BR /&gt;      1) lvcreate -C y -L 240 /dev/vg00&lt;BR /&gt;           The name of this new logical volume will be displayed on the&lt;BR /&gt;           screen, note it, it will be needed later. (let say it&lt;BR /&gt;           is /dev/vg00/lvol8)&lt;BR /&gt;           Note: This new logical volume has to be in vg00&lt;BR /&gt;      2) 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;      3) lvlnboot -s /dev/vg00/lvol8 /dev/vg00&lt;BR /&gt;           Note: use the logical volume name from step 1&lt;BR /&gt;      4) lvlnboot -R /dev/vg00&lt;BR /&gt;           Recover any missing links to all of the logical volumes specified&lt;BR /&gt;           in the BDRA and update the BDRA of each bootable physical volume in&lt;BR /&gt;           the volume group&lt;BR /&gt;      5) reboot the system&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;C</description>
      <pubDate>Tue, 27 Nov 2001 21:37:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-swap/m-p/2621047#M925782</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2001-11-27T21:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Swap</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-swap/m-p/2621048#M925783</link>
      <description>Hi&lt;BR /&gt;If you have additional space, create another swap volume of required size and enable swap on it.&lt;BR /&gt;Remove the entry for existing swap (lvswap3) from /etc/fstab and reboot the machine to reclaim the lvol.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;Prashant.</description>
      <pubDate>Tue, 27 Nov 2001 21:48:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-swap/m-p/2621048#M925783</guid>
      <dc:creator>Deshpande Prashant</dc:creator>
      <dc:date>2001-11-27T21:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Swap</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-swap/m-p/2621049#M925784</link>
      <description>Michael's directions are correct. (although you can create the size and logical volume in 1 command:  lvcreate -L 250 -n lvswap3 vg00)&lt;BR /&gt;&lt;BR /&gt;If you don't want to add a third swap area and just want to expand the lvswap2 one, you will have to comment out the entry for lvswap2 in /etc/fstab and reboot.  When the system comes back up, you can use lvextend to expand that logical volume (lvextend -L 2250 /dev/vg00/lvswap2)  and then use swapon /dev/vg00/lvswap2 &lt;BR /&gt;to add it back in.  There is no way to remove a swap area without rebooting.</description>
      <pubDate>Tue, 27 Nov 2001 21:51:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-swap/m-p/2621049#M925784</guid>
      <dc:creator>Bernie Vande Griend</dc:creator>
      <dc:date>2001-11-27T21:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Swap</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-swap/m-p/2621050#M925785</link>
      <description>Do not forget C y options while doing the lvcreate. Swap should be contiguous.&lt;BR /&gt;&lt;BR /&gt;Morever you want to make sure the swap logical volume sizes are equal (not mandatory). So, I would say the preferred method is Craig's. During that process you would want to create two lvols of equal size and contiguous on different disks totalling to 3.75 GB having equal priority.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Tue, 27 Nov 2001 22:05:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-swap/m-p/2621050#M925785</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-11-27T22:05:29Z</dc:date>
    </item>
  </channel>
</rss>

