<?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: to replace disk wiht swap device in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/to-replace-disk-wiht-swap-device/m-p/2991598#M124474</link>
    <description>Michael, &lt;BR /&gt;&lt;BR /&gt;you mentioned to reduce /dev/vgswap/swap1. is there any specific command instead of editing /etc/fstab ?</description>
    <pubDate>Sat, 07 Jun 2003 22:29:38 GMT</pubDate>
    <dc:creator>Steve Jones_12</dc:creator>
    <dc:date>2003-06-07T22:29:38Z</dc:date>
    <item>
      <title>to replace disk wiht swap device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-replace-disk-wiht-swap-device/m-p/2991596#M124472</link>
      <description># &amp;gt;swapinfo -a&lt;BR /&gt;Kb Kb Kb PCT START/ Kb&lt;BR /&gt;&lt;BR /&gt;TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME&lt;BR /&gt;&lt;BR /&gt;dev 2097152 0 2097152 0% 0 - 1 /dev/vg00/lvol2&lt;BR /&gt;&lt;BR /&gt;dev 14680064 0 14680064 0% 0 - 1 /dev/vgswap/swap1&lt;BR /&gt;&lt;BR /&gt;reserve - 1982656 -1982656&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/dev/vgswap/swap1 is on a Jamaica disk, the plan is to replace the Jamaica enclosure with XP512 array. &lt;BR /&gt;&lt;BR /&gt;I made a procedure for this&lt;BR /&gt;&lt;BR /&gt;1. add XP512 disk to vgswap&lt;BR /&gt;2. make lv on XP512 disk&lt;BR /&gt;3. use SAM to make swap device on XP512 disk&lt;BR /&gt;4. comment out the "/dev/vgswap/swap1" (on Jamaica) in /etc/fstab&lt;BR /&gt;5. reboot server&lt;BR /&gt;6. reduce the LV on Jamaica and remove Jamica disk from vgswap&lt;BR /&gt;&lt;BR /&gt;I don't have the experience with HPUX swap setup, and would like to have the suggestions from HPUX gurus in this forum.&lt;BR /&gt;&lt;BR /&gt;thanks in advanced.</description>
      <pubDate>Sat, 07 Jun 2003 21:25:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-replace-disk-wiht-swap-device/m-p/2991596#M124472</guid>
      <dc:creator>Steve Jones_12</dc:creator>
      <dc:date>2003-06-07T21:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: to replace disk wiht swap device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-replace-disk-wiht-swap-device/m-p/2991597#M124473</link>
      <description>Please use 'swapinfo -tam' and verify Total PCT USED.  (* 0% ??? doesn't look right *)&lt;BR /&gt;&lt;BR /&gt;You may need to adjust MAXSWAPCHUNKS by adding in more swap so why not reduce /dev/vgswap/swap1 before adding in the XP disk.&lt;BR /&gt;&lt;BR /&gt;Also your XP may take care of Bad Block relocation so check, if so use the '-r n' option in lvcreate:&lt;BR /&gt;&lt;BR /&gt;a) lvcreate -L #### -n lvol_name -C y -r n /dev/vg##&lt;BR /&gt;&lt;BR /&gt;Note:  -r is bad block relo.&lt;BR /&gt;&lt;BR /&gt;So I am suggesting not to use SAM.  Next command would be:&lt;BR /&gt;&lt;BR /&gt;b) swapon -f -p 1 /dev/vg##/lvol_name&lt;BR /&gt;&lt;BR /&gt;c) update /etc/fstab and reboot to verify.</description>
      <pubDate>Sat, 07 Jun 2003 21:43:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-replace-disk-wiht-swap-device/m-p/2991597#M124473</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2003-06-07T21:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: to replace disk wiht swap device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-replace-disk-wiht-swap-device/m-p/2991598#M124474</link>
      <description>Michael, &lt;BR /&gt;&lt;BR /&gt;you mentioned to reduce /dev/vgswap/swap1. is there any specific command instead of editing /etc/fstab ?</description>
      <pubDate>Sat, 07 Jun 2003 22:29:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-replace-disk-wiht-swap-device/m-p/2991598#M124474</guid>
      <dc:creator>Steve Jones_12</dc:creator>
      <dc:date>2003-06-07T22:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: to replace disk wiht swap device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-replace-disk-wiht-swap-device/m-p/2991599#M124475</link>
      <description>Hi,&lt;BR /&gt;After rebooting,&lt;BR /&gt;&lt;BR /&gt;If no other lvol is on the /dev/vgswap VG . You do vgexport by.&lt;BR /&gt;&lt;BR /&gt;1.#vgchange -a n /dev/vgswap&lt;BR /&gt;2.#vgexport /dev/vgswap.&lt;BR /&gt;&lt;BR /&gt;If some other Lvol is on /dev/vgswap VG. You need to remoive only the /dev/vgswap/swap1 lvol by.&lt;BR /&gt;1.# lvremove /dev/vgswap/swap1.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH.</description>
      <pubDate>Sun, 08 Jun 2003 02:56:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-replace-disk-wiht-swap-device/m-p/2991599#M124475</guid>
      <dc:creator>suki</dc:creator>
      <dc:date>2003-06-08T02:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: to replace disk wiht swap device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-replace-disk-wiht-swap-device/m-p/2991600#M124476</link>
      <description>For the inexperienced, the best way to go is sam.&lt;BR /&gt;&lt;BR /&gt;as root.&lt;BR /&gt;&lt;BR /&gt;sam&lt;BR /&gt;&lt;BR /&gt;disk and whatever it says.&lt;BR /&gt;&lt;BR /&gt;swap.&lt;BR /&gt;&lt;BR /&gt;you will see current swap information displayed.&lt;BR /&gt;&lt;BR /&gt;Prior to doing the disk switch, deactivate the current swap and create a new swap area of reasonable size, preferably on a local disk.&lt;BR /&gt;&lt;BR /&gt;Then once your disk array is in, everything is cool.&lt;BR /&gt;&lt;BR /&gt;If you don't have local disk, then deactivate the current swap, shut the system down and create a new swap after booting the system.  The boot may take some time and some apps might not open for lack of resources.&lt;BR /&gt;&lt;BR /&gt;You don't have to deactivate the swap, but doing something about it will make your transitions smoother.  Nothing bothers me more than thinking a system is hung because the swap area has gotten wacked. Except maybe for kernel panics.  They suck pretty bad too.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sun, 08 Jun 2003 04:14:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-replace-disk-wiht-swap-device/m-p/2991600#M124476</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-06-08T04:14:25Z</dc:date>
    </item>
  </channel>
</rss>

