<?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: Swap Help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-help/m-p/2813290#M637652</link>
    <description>Hi Steven,&lt;BR /&gt;&lt;BR /&gt;   You could not extend your swap space probably because of the contiguous allocation policy enforced on /dev/vg00/lvol2. This policy forbids the logical volume to be "fragmented" on the disk. lvol2 is probably "surrounded" by other logical volumes.&lt;BR /&gt;   One (discouraged) solution would be to remove the contiguous allocation policy on the logical volume. The command is "lvchange -C n /dev/vg00/lvol2", but it's a bad idea, since it would have very bad performance issues.&lt;BR /&gt;   Another solution is to create one additional 6GB swap volume on the same disk (with a contiguous allocation policy), designate it as the primary swap, and then remove the previous one. That will require a reboot. And don't forget to change the dump device to your new swap space (crashconf -r /dev/vg00/new_lvol) as you will probably remove your former swap volume, which is probably configured as the kernel crash dump device.&lt;BR /&gt;   Regards,&lt;BR /&gt;&lt;BR /&gt;Olivier</description>
    <pubDate>Wed, 25 Sep 2002 15:05:55 GMT</pubDate>
    <dc:creator>Olivier ROBERT</dc:creator>
    <dc:date>2002-09-25T15:05:55Z</dc:date>
    <item>
      <title>Swap Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-help/m-p/2813288#M637650</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have a new server with 4G swap on /vg00/lvol2.   Two internal disks are going to be mirrored.    I'd like to make the swap space upto 6G, but sam gives me error like these:&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;The command used to extend logical volumes, /sbin/lvextend, has  &lt;BR /&gt;failed.  The stderr output from the command is shown below.  The &lt;BR /&gt;logical volume has not been extended.   &lt;BR /&gt;                         &lt;BR /&gt;&lt;BR /&gt;lvextend: Not enough free physical extents available.           &lt;BR /&gt;Logical volume "/dev/vg00/lvol2" could not be extended.         &lt;BR /&gt;Failure possibly caused by contiguous allocation policy.       &lt;BR /&gt;---------------------------&lt;BR /&gt;&lt;BR /&gt;As noted, there is no advantage to add 2nd swap on the same disk.   But how to add up the size of the primary swap?&lt;BR /&gt;&lt;BR /&gt;Help will be greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;Steven&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Sep 2002 14:41:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-help/m-p/2813288#M637650</guid>
      <dc:creator>Steven Chen_1</dc:creator>
      <dc:date>2002-09-25T14:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Swap Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-help/m-p/2813289#M637651</link>
      <description>Unfortunetly you can not increase primary swap. You can create a secondary swap if you have physical disk space is available.  It seems that you don't have free extentes to increase your logical volume.&lt;BR /&gt;&lt;BR /&gt;Check with vgdisplay -v /dev/vg00 and see if there are any free pe's available. Or best way is if you have spare disk try to create secondary swap on that disk.&lt;BR /&gt;&lt;BR /&gt;Goodluck,&lt;BR /&gt;-USA..&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Sep 2002 14:50:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-help/m-p/2813289#M637651</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2002-09-25T14:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Swap Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-help/m-p/2813290#M637652</link>
      <description>Hi Steven,&lt;BR /&gt;&lt;BR /&gt;   You could not extend your swap space probably because of the contiguous allocation policy enforced on /dev/vg00/lvol2. This policy forbids the logical volume to be "fragmented" on the disk. lvol2 is probably "surrounded" by other logical volumes.&lt;BR /&gt;   One (discouraged) solution would be to remove the contiguous allocation policy on the logical volume. The command is "lvchange -C n /dev/vg00/lvol2", but it's a bad idea, since it would have very bad performance issues.&lt;BR /&gt;   Another solution is to create one additional 6GB swap volume on the same disk (with a contiguous allocation policy), designate it as the primary swap, and then remove the previous one. That will require a reboot. And don't forget to change the dump device to your new swap space (crashconf -r /dev/vg00/new_lvol) as you will probably remove your former swap volume, which is probably configured as the kernel crash dump device.&lt;BR /&gt;   Regards,&lt;BR /&gt;&lt;BR /&gt;Olivier</description>
      <pubDate>Wed, 25 Sep 2002 15:05:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-help/m-p/2813290#M637652</guid>
      <dc:creator>Olivier ROBERT</dc:creator>
      <dc:date>2002-09-25T15:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Swap Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-help/m-p/2813291#M637653</link>
      <description>Others have explained what the errors mean. My recommendation is leave the 4GB primary swap alone. Proceed with vg00 mirroring process. When you're done, add 2ndary swap, do not use vg00, use other VG (eg: vg01), (2GB then since you wanted 2GB), the "nice" thing is if you can, setup your 2ndary swap to be the same size as primary swap (same priority) so that swap interleave is enabled. BTW why do you need so much swap .. just keep in mind the memory swap ratio rule does not apply anymore nowadays.</description>
      <pubDate>Wed, 25 Sep 2002 15:23:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-help/m-p/2813291#M637653</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-09-25T15:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Swap Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-help/m-p/2813292#M637654</link>
      <description>I hope this helps.  The text may a little sketchy b/c I pasted it.&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;# Defaults&lt;BR /&gt;&lt;BR /&gt;PS3="Please select desired printer: "&lt;BR /&gt;fulllist="`cd /etc/lp/interface;ls`"&lt;BR /&gt;&lt;BR /&gt;all_printers ()&lt;BR /&gt;{&lt;BR /&gt;    # This is where your current syntax goes.&lt;BR /&gt;    # Ex: hpnpadmin ${fulllist}  If you can send all devices into the command ?&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;single_printer ()&lt;BR /&gt;{&lt;BR /&gt;    select prtname in ALL Quit ${fulllist}&lt;BR /&gt;    do&lt;BR /&gt;        [ "${prtname}" = "Quit" ] &amp;amp;&amp;amp; exit 0&lt;BR /&gt;&lt;BR /&gt;        if test -n "${prtname}"&lt;BR /&gt;        then&lt;BR /&gt;            if test "${prtname}" = "ALL"&lt;BR /&gt;            then&lt;BR /&gt;                prtlist="${fulllist}"&lt;BR /&gt;            else&lt;BR /&gt;                prtlist="${prtname}"&lt;BR /&gt;            fi&lt;BR /&gt;&lt;BR /&gt;            break&lt;BR /&gt;        fi&lt;BR /&gt;    done&lt;BR /&gt;&lt;BR /&gt;    # Put the syntax for running the hpnpadmin&lt;BR /&gt;    # Ex: hpnpadmin ${prtlist}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;# Main&lt;BR /&gt;&lt;BR /&gt;if test ${#} -ne 0&lt;BR /&gt;then&lt;BR /&gt;    while getopts :s option&lt;BR /&gt;    do&lt;BR /&gt;        case ${option} in&lt;BR /&gt;            s) select_on="Y" ;;&lt;BR /&gt;            ?) echo "Usage: ${0} [&amp;lt;-s&amp;gt;] (-s turns select option on)."&lt;BR /&gt;               exit 4 ;;&lt;BR /&gt;        esac&lt;BR /&gt;    done&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;[ "${select_on}" = 'N' ] &amp;amp;&amp;amp; all_printers || select_printer&lt;BR /&gt;&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Sep 2002 12:04:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-help/m-p/2813292#M637654</guid>
      <dc:creator>Thomas M. Williams_1</dc:creator>
      <dc:date>2002-09-26T12:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Swap Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-help/m-p/2813293#M637655</link>
      <description>Hi Thomas,&lt;BR /&gt;&lt;BR /&gt;   That's a funny answer to our SWAP problem... :o)</description>
      <pubDate>Thu, 26 Sep 2002 14:18:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-help/m-p/2813293#M637655</guid>
      <dc:creator>Olivier ROBERT</dc:creator>
      <dc:date>2002-09-26T14:18:09Z</dc:date>
    </item>
  </channel>
</rss>

