<?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: Adding more swap space... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-more-swap-space/m-p/4050584#M304457</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;first create a lv&lt;BR /&gt;&lt;BR /&gt;a) To create the volume manager, execute the following command:&lt;BR /&gt;lvcreate â  l &lt;TOTAL extents=""&gt; -C y -n &lt;LV_NAME&gt; /dev/&lt;VG_NAME&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Then sam....add the swap space...sam... filemamanger..swap..add swap..&lt;BR /&gt;&lt;BR /&gt;then execute swapon -a&lt;/VG_NAME&gt;&lt;/LV_NAME&gt;&lt;/TOTAL&gt;</description>
    <pubDate>Mon, 06 Aug 2007 16:22:49 GMT</pubDate>
    <dc:creator>Kusuniltv</dc:creator>
    <dc:date>2007-08-06T16:22:49Z</dc:date>
    <item>
      <title>Adding more swap space...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-more-swap-space/m-p/4050581#M304454</link>
      <description>I know how to do this from the SAM GUI but I want to be able to do this from a telnet session/commandline.&lt;BR /&gt;I have available space, about 16GB, I want to use for swap space. Could someone give me commandline instructions on how to do this from scratch?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 06 Aug 2007 15:56:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-more-swap-space/m-p/4050581#M304454</guid>
      <dc:creator>Gene Laoyan</dc:creator>
      <dc:date>2007-08-06T15:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Adding more swap space...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-more-swap-space/m-p/4050582#M304455</link>
      <description>See "Managing Swap and Dump" documentation - &lt;A href="http://docs.hp.com/en/B2355-90950/ch06s03.html" target="_blank"&gt;http://docs.hp.com/en/B2355-90950/ch06s03.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
      <pubDate>Mon, 06 Aug 2007 16:07:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-more-swap-space/m-p/4050582#M304455</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2007-08-06T16:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Adding more swap space...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-more-swap-space/m-p/4050583#M304456</link>
      <description>While you can execute the swapon command using arguments directly, it's actually better to add the entry to /etc/fstab and then execute "swapon -a" because then you know that future reboots will also correctly mount your additional swap. I assume that you have created a strict contiguous LVOL for swap, e.g. /dev/vg01/lvol2&lt;BR /&gt;&lt;BR /&gt;Now edit /etc/fstab and add an entry like this:&lt;BR /&gt;/dev/vg01/lvol2 ... swap pri=2 0 0&lt;BR /&gt;and save the file. Next execute "swapon -a" and you are done. Man 1m swapon for details.&lt;BR /&gt;&lt;BR /&gt;Now the "gotcha" is that this may fail because the kernel is not configured to utilize the additional swap if this is a version prior to 11.23. You may have to increase maxswapchunks and/or swchunk and build a new kernel.</description>
      <pubDate>Mon, 06 Aug 2007 16:17:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-more-swap-space/m-p/4050583#M304456</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-08-06T16:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Adding more swap space...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-more-swap-space/m-p/4050584#M304457</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;first create a lv&lt;BR /&gt;&lt;BR /&gt;a) To create the volume manager, execute the following command:&lt;BR /&gt;lvcreate â  l &lt;TOTAL extents=""&gt; -C y -n &lt;LV_NAME&gt; /dev/&lt;VG_NAME&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Then sam....add the swap space...sam... filemamanger..swap..add swap..&lt;BR /&gt;&lt;BR /&gt;then execute swapon -a&lt;/VG_NAME&gt;&lt;/LV_NAME&gt;&lt;/TOTAL&gt;</description>
      <pubDate>Mon, 06 Aug 2007 16:22:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-more-swap-space/m-p/4050584#M304457</guid>
      <dc:creator>Kusuniltv</dc:creator>
      <dc:date>2007-08-06T16:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Adding more swap space...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-more-swap-space/m-p/4050585#M304458</link>
      <description>Here are the steps:&lt;BR /&gt;&lt;BR /&gt;lvcreate -L (size in mb) -C y -r n /dev/vgXX (Creating a logical volume for swap)&lt;BR /&gt;&lt;BR /&gt;edit the fstab file ..ie /dev/vgXX/lvolX ... swap  pri=1 0&lt;BR /&gt;&lt;BR /&gt;swapon -a&lt;BR /&gt;&lt;BR /&gt;swapinfo -tam (should show new swap)</description>
      <pubDate>Mon, 06 Aug 2007 16:59:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-more-swap-space/m-p/4050585#M304458</guid>
      <dc:creator>Paul F. Bennett</dc:creator>
      <dc:date>2007-08-06T16:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Adding more swap space...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-more-swap-space/m-p/4050586#M304459</link>
      <description>just run command swapon -a /dev/vg00/lvswap&lt;BR /&gt;&lt;BR /&gt;lvswap is lv that must be you create for adding swap &lt;BR /&gt;# lvcreate -L lv_size -n lvswap /dev/vg00&lt;BR /&gt;&lt;BR /&gt;edit /etc/fstab, add line:&lt;BR /&gt;/dev/vg00/lvswap .. swap pri=1 0 0</description>
      <pubDate>Mon, 06 Aug 2007 21:26:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-more-swap-space/m-p/4050586#M304459</guid>
      <dc:creator>yulianto piyut</dc:creator>
      <dc:date>2007-08-06T21:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Adding more swap space...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-more-swap-space/m-p/4050587#M304460</link>
      <description>with the default kernel parms we can add upto 32GB swap.&lt;BR /&gt;&lt;BR /&gt;#kmtune|grep -i chunk&lt;BR /&gt;maxswapchunks           16384  -  16384&lt;BR /&gt;swchunk                  2048  -  2048&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Also i would say the swap as a dump device too that will help you collect a full crash dump during a TOC/panic.&lt;BR /&gt;&lt;BR /&gt;Action plan: Add vg16/lv3 to the dump configuration for a total of 23.6 GB dump space&lt;BR /&gt;&lt;BR /&gt;1) Verify  vg16/lv3  is strict, contiguous and  has bad block relocation  policy set &lt;BR /&gt;   to off.&lt;BR /&gt;&lt;BR /&gt;   To change the parameters of an existing swap lvol issue &lt;BR /&gt;     #lvchange -C y  -s y -r n /dev/vg16/lv3&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2) Add the new dump lvol in /etc/fstab as shown below:&lt;BR /&gt;      ( ie: /dev/ vg16/lv3 ... dump defaults  0 0 )&lt;BR /&gt;      &lt;BR /&gt;&lt;BR /&gt;3) Edit /etc/rc.config.d/crashconf  as below:&lt;BR /&gt;      CRASHCONF_ENABLED=1 &lt;BR /&gt;      CRASHCONF_READ_FSTAB=1 &lt;BR /&gt;      CRASHCONF_REPLACE=0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;4) Issue "/sbin/rc1.d/S080crashconf  start" to update the dump devices, it&lt;BR /&gt;   should return EXIT CODE: 0 for a successful operation.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;5) To verify your dump configuration issue "crashconf"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For adding a swap space.&lt;BR /&gt;&lt;BR /&gt;Create a separe vg like vgswap&lt;BR /&gt;scsictl -m queue_depth=4 (device name got from step above) # Primary Link &lt;BR /&gt;scsictl -m queue_depth=4 (alt. device name for above) # Alternate Link &lt;BR /&gt;&lt;BR /&gt;create LV with the properties mentioned above&lt;BR /&gt;&lt;BR /&gt;To enable the swap from command line; &lt;BR /&gt;&lt;BR /&gt;# swapon -p 1 /dev/vgswap/swap &lt;BR /&gt;# swapon -p 1 /dev/vgswap/swap1 &lt;BR /&gt;&lt;BR /&gt;# vi /etc/fstab and add a line &lt;BR /&gt;&lt;BR /&gt;/dev/vgswap/swap . . . swap pri=1 0 2 &lt;BR /&gt;and save &lt;BR /&gt;&lt;BR /&gt;# swapinfo. &lt;BR /&gt;&lt;BR /&gt;Confirm there is no error because of the swap removed &lt;BR /&gt;# lvlnboot -v &lt;BR /&gt;</description>
      <pubDate>Mon, 06 Aug 2007 21:59:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-more-swap-space/m-p/4050587#M304460</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2007-08-06T21:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adding more swap space...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-more-swap-space/m-p/4050588#M304461</link>
      <description>&lt;BR /&gt;You may not have realized this but SAM works from terminal windows if you terminal type is set correctly and the window is a proper size.  Try it.  Sam can work in both X and telnet windows.  This is one of its major strengths.</description>
      <pubDate>Tue, 07 Aug 2007 09:28:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-more-swap-space/m-p/4050588#M304461</guid>
      <dc:creator>Emil Velez</dc:creator>
      <dc:date>2007-08-07T09:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Adding more swap space...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-more-swap-space/m-p/4050589#M304462</link>
      <description>To create swap, you need a contiguous space on a disk/LUN.&lt;BR /&gt;&lt;BR /&gt;Create vg01:&lt;BR /&gt;&lt;BR /&gt;pvcreate /dev/rdsk/c25t0d0&lt;BR /&gt;pvcreate /dev/rdsk/c25t2d0&lt;BR /&gt;vgcreate -s 8 -p 128 /dev/vg01 /dev/dsk/c25t0d0 /dev/dsk/c25t2d0&lt;BR /&gt;vgchange -a y /dev/vg01&lt;BR /&gt;&lt;BR /&gt;lvcreate -C y -L 16384 -n lvswap /dev/vg01&lt;BR /&gt;&lt;BR /&gt;/usr/sbin/swapon -f -p 3  /dev/vg01/lvswap&lt;BR /&gt;&lt;BR /&gt;add to /etc/fstab:&lt;BR /&gt;&lt;BR /&gt;/dev/vg01/lvswap ... swap pri=3 0 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 07 Aug 2007 09:32:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-more-swap-space/m-p/4050589#M304462</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-08-07T09:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Adding more swap space...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-more-swap-space/m-p/4050590#M304463</link>
      <description>Hi &lt;BR /&gt;You need to add additional swap space from your logical volume. &lt;BR /&gt;&lt;BR /&gt;Here are the steps:&lt;BR /&gt;&lt;BR /&gt;lvcreate -L (size in mb) -C y -r n /dev/vgXX/swaplv (Creating a logical volume for swap) (creating contegious and bad block disable)&lt;BR /&gt;&lt;BR /&gt;edit the fstab file ..ie /dev/vgXX/lvolX ... swap pri=1 0&lt;BR /&gt;&lt;BR /&gt;swapon -a (To activate swap)&lt;BR /&gt;&lt;BR /&gt;swapinfo -tam (should show new swap)</description>
      <pubDate>Fri, 10 Aug 2007 01:17:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-more-swap-space/m-p/4050590#M304463</guid>
      <dc:creator>dipesh_2</dc:creator>
      <dc:date>2007-08-10T01:17:23Z</dc:date>
    </item>
  </channel>
</rss>

