<?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: Problem extending swap space in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000946#M632702</link>
    <description>vgextend /dev/vg00 /dev/dsk/c1t1d0 and&lt;BR /&gt;lvextend -m 1 /dev/vg00/lvol9 /dev/dsk/c1t1d0&lt;BR /&gt;&lt;BR /&gt;both return the message;&lt;BR /&gt;&lt;BR /&gt;vgextend: "/dev/dsk/c1t1d0": No such file or directory&lt;BR /&gt;lvextend: "/dev/dsk/c1t1d0": No such file or directory</description>
    <pubDate>Wed, 18 Jun 2003 13:21:23 GMT</pubDate>
    <dc:creator>Declan Heerey</dc:creator>
    <dc:date>2003-06-18T13:21:23Z</dc:date>
    <item>
      <title>Problem extending swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000938#M632694</link>
      <description>I am trying to extend my servers swap space. I have 2x 8Gb disks(mirrored) which i have freed up and removed from there original volumn group / logical volumn. The steps i have taken to allocate these disks as swap is as follows; &lt;BR /&gt;&lt;BR /&gt;1) umount /DB_PP4             &lt;BR /&gt;2) lvreduce -m 0 /dev/VG_PP/lvol4 /dev/dsk/c0t6d0 (primary disk)&lt;BR /&gt;3) lvremove /dev/VG_PP/lvol4 (original vol group)&lt;BR /&gt;4)vgreduce /dev/VG_PP /dev/dsk/c0t6d0            &lt;BR /&gt;5)vgextend /dev/vg00 /dev/dsk/c0t6d0 (extend vg00 volumn group to use primary disk)&lt;BR /&gt;6) lvcreate -L 4000 /dev/vg00 (create lvol9 - swap)&lt;BR /&gt;&lt;BR /&gt;My problem is what i do now? How do i add the second device to this new lvol and How do i mirror the new volumn group with the 2nd physical disk (/dev/dsk/c1t1d0)? i have tried lvextend -m 1 /dev/vg00/lvol9 /dev/dsk/c1t1d0 bu this does not work. &lt;BR /&gt;&lt;BR /&gt;Also what then?? do i just add the additional swap space with swapon /dev/vg00/lvol9? or do i have to do something else? &lt;BR /&gt;&lt;BR /&gt;Any help appreciated&lt;BR /&gt;&lt;BR /&gt;Declan</description>
      <pubDate>Wed, 18 Jun 2003 12:51:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000938#M632694</guid>
      <dc:creator>Declan Heerey</dc:creator>
      <dc:date>2003-06-18T12:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem extending swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000939#M632695</link>
      <description>For load blancing, I prefer add another one, you may use following method to add swap:&lt;BR /&gt;sam &amp;gt; :Disks and File Systems&amp;gt;  Swap &amp;gt; Action (menu) &amp;gt; Add Device Swap/Add File System Swap (menu item)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Jun 2003 13:02:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000939#M632695</guid>
      <dc:creator>twang</dc:creator>
      <dc:date>2003-06-18T13:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem extending swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000940#M632696</link>
      <description>Hi Decan,&lt;BR /&gt;&lt;BR /&gt;First, IMHO, you should have created a new VG for this swap. But let's proceed down the road you're on.&lt;BR /&gt;&lt;BR /&gt;You need to add the other disk to vg00 that will mirror this secondary swap&lt;BR /&gt;&lt;BR /&gt;vgextend vg00 /dev/dsk/c1t1d0&lt;BR /&gt;&lt;BR /&gt;Then extend the swap LV to this new device&lt;BR /&gt;&lt;BR /&gt;lvextend -m 1 /dev/vg00/lvol9 /dev/dsk/c1t1d0&lt;BR /&gt;&lt;BR /&gt;Now edit the /etc/fstab file for this new swap device This insures it's enabled at all subsequent boots - add the following:&lt;BR /&gt;&lt;BR /&gt;/dev/vg00/lvol9 ... swap pri=0 0 0&lt;BR /&gt;&lt;BR /&gt;Then enable the new swap:&lt;BR /&gt;&lt;BR /&gt;swapon -a &lt;BR /&gt;&lt;BR /&gt;It's possible that you may need to extend some kernel parameters to allow this new swap space.&lt;BR /&gt;See maxswapchunks &amp;amp; swchunk &lt;BR /&gt;The system will tell you that you need to do this when you try to enable it. This will require a reboot.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Wed, 18 Jun 2003 13:04:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000940#M632696</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2003-06-18T13:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem extending swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000941#M632697</link>
      <description>Yu need to ensure both disks are in the same VG to mirror. Is c1t1d0 in vg00 ? if not add it in then lvextend -m 1 /dev/vg00/lvol9 /dev/dsk/c1t1d0&lt;BR /&gt;&lt;BR /&gt;This will do the mirroring. It will take a while to mirror 4GB though.&lt;BR /&gt;&lt;BR /&gt;To activate the swap do;&lt;BR /&gt;1. add it into /etc/fstab;&lt;BR /&gt;/dev/vg00/lvol9 / swap defaults 0 0 # secondary swap&lt;BR /&gt;2. swapon -a&lt;BR /&gt;&lt;BR /&gt;Thats it, all done!&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Jun 2003 13:05:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000941#M632697</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2003-06-18T13:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem extending swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000942#M632698</link>
      <description>Hi,&lt;BR /&gt;there are a number of points:&lt;BR /&gt;&lt;BR /&gt;- first: have you enough space left to mirror the swap on another phisycal disk ?&lt;BR /&gt;&lt;BR /&gt;please post a "vgdisplay -v vg00"&lt;BR /&gt;&lt;BR /&gt;- are your kernel parameter enough to host so much swap ?&lt;BR /&gt;&lt;BR /&gt;please post your /stand/system&lt;BR /&gt;&lt;BR /&gt;- when you created the lvol, did you specify the (-C y -M n) option to have it contiguos and with no mirrir write cache ? it looks like not...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;- after that, you can use SAM to add the swap,&lt;BR /&gt;or add it by yourself editing the /etc/fstab and doing a "swapon -a"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt; Massimo&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Jun 2003 13:05:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000942#M632698</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-06-18T13:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem extending swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000943#M632699</link>
      <description>Hi Declan:&lt;BR /&gt;&lt;BR /&gt;If all you want to do is add a secondary swap, then don't add it to vg00.  It would be better to add it to another volume group and leave vg00 as a single physical disk volume group.&lt;BR /&gt;&lt;BR /&gt;On a non-vg00 volume group, create a secondar device swap and set its swap priority to 0 so that is is used in preference to primary swap:&lt;BR /&gt;&lt;BR /&gt;# lvcreate -C y -r n -L &lt;SIZE&gt; -n lvolN /dev/vgXX #...a secondary swap (n * 256)&lt;BR /&gt;# swapon -p 0 /dev/vgXX/lvolN&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;/SIZE&gt;</description>
      <pubDate>Wed, 18 Jun 2003 13:06:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000943#M632699</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-06-18T13:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem extending swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000944#M632700</link>
      <description>From the point where you are at :&lt;BR /&gt;&lt;BR /&gt;Basically, now that your lvol has been created all you need to do to enable your swap is &lt;BR /&gt;&lt;BR /&gt;#swapon /dev/vg00/lvol9 &lt;BR /&gt;&lt;BR /&gt;And that should activate your swap.  It is probably a good idea to also include the Lvol in your /etc/fstab  with something like that : &lt;BR /&gt;&lt;BR /&gt;/dev/vg00/lvol9 ... swap pri=2 0 0&lt;BR /&gt;&lt;BR /&gt;So that it starts your swap on this lvol every time you boot. &lt;BR /&gt;&lt;BR /&gt;As for mirroring this swap : I do not know how many disks are in your VG00 at this point, but once your lvol is created, all you need to do is : &lt;BR /&gt;&lt;BR /&gt;#lvextend -m 1 /dev/vg00/lvol9 /dev/dsk/mirrordisk&lt;BR /&gt;&lt;BR /&gt;where mirrordisk would be the exact filename of the disk you plan to use and have your mirror on to. &lt;BR /&gt;&lt;BR /&gt;Since you are using c1t1d0 as your mirrordisk, it should work, now what error message did it gave you when you tried this command?</description>
      <pubDate>Wed, 18 Jun 2003 13:07:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000944#M632700</guid>
      <dc:creator>Marco Santerre</dc:creator>
      <dc:date>2003-06-18T13:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem extending swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000945#M632701</link>
      <description>Declan:&lt;BR /&gt;&lt;BR /&gt;You have two questions:&lt;BR /&gt;1.  How do I mirror LVs?&lt;BR /&gt;2.  How do I add swap?&lt;BR /&gt;&lt;BR /&gt;2.  Extend swap:&lt;BR /&gt;&lt;BR /&gt; lvcreate -C y -r n -n swap02 vg00               # create swap volume&lt;BR /&gt;                                                        # Contiguous&lt;BR /&gt;                                                        # No bad block reloction&lt;BR /&gt;        lvextend -L 1996 /dev/vg00/swap02 /dev/dsk/c5t9d0   # assign to 2nd disk&lt;BR /&gt;&lt;BR /&gt;        #       modify /etc/fstab&lt;BR /&gt;        echo "/dev/vg00/swap02  ...  swap   pri=2  0 0" &amp;gt;&amp;gt; /etc/fstab&lt;BR /&gt;&lt;BR /&gt;        #       turn swap on..&lt;BR /&gt;        swapon -a                                       # all /etc/fstab swap&lt;BR /&gt;&lt;BR /&gt;4.      If there was a file system on this LV before, you must:&lt;BR /&gt;&lt;BR /&gt;        swapon -f /dev/vg00/swap02&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Jun 2003 13:19:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000945#M632701</guid>
      <dc:creator>Stuart Abramson_2</dc:creator>
      <dc:date>2003-06-18T13:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem extending swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000946#M632702</link>
      <description>vgextend /dev/vg00 /dev/dsk/c1t1d0 and&lt;BR /&gt;lvextend -m 1 /dev/vg00/lvol9 /dev/dsk/c1t1d0&lt;BR /&gt;&lt;BR /&gt;both return the message;&lt;BR /&gt;&lt;BR /&gt;vgextend: "/dev/dsk/c1t1d0": No such file or directory&lt;BR /&gt;lvextend: "/dev/dsk/c1t1d0": No such file or directory</description>
      <pubDate>Wed, 18 Jun 2003 13:21:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000946#M632702</guid>
      <dc:creator>Declan Heerey</dc:creator>
      <dc:date>2003-06-18T13:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem extending swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000947#M632703</link>
      <description>When i view swap options in SAM the 4Gb of free space is available in lvol9              vg00. I grasp from the replies how i can either add this additional space to swap using SAM or spawon but do i still have unfinished problems with mirroring the lvol9?</description>
      <pubDate>Wed, 18 Jun 2003 13:31:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000947#M632703</guid>
      <dc:creator>Declan Heerey</dc:creator>
      <dc:date>2003-06-18T13:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem extending swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000948#M632704</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I haven't seen anything in your post about adding /dev/dsk/c0t1d1 in vg00. To be used as a mirror for lvol9 it must be first one of the disks of vg00, so yoy have to vgextend first.&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Wed, 18 Jun 2003 13:33:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000948#M632704</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2003-06-18T13:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem extending swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000949#M632705</link>
      <description>OK - these messages indicate that /dev/dsk/c1t1d0 is not a valid device on your system.&lt;BR /&gt;You need to determine just what that device is - run:&lt;BR /&gt;&lt;BR /&gt;ioscan -funC disk&lt;BR /&gt;&lt;BR /&gt;And determine just *what* the device for that 2nd 8Gb disk is.&lt;BR /&gt;&lt;BR /&gt;Then you *may* need to initialize it:&lt;BR /&gt;&lt;BR /&gt;pvcreate /dev/rdsk/cXtYdZ&lt;BR /&gt;&lt;BR /&gt;you may need -f to force the init - but be DARN sure of the proper device because this WILL destroy any LVM info on that device.&lt;BR /&gt;&lt;BR /&gt;Then just follow the steps as laid out earlier using the proper device.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Wed, 18 Jun 2003 13:35:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000949#M632705</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2003-06-18T13:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem extending swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000950#M632706</link>
      <description>Well, it defintiely looks like the disk that you are talking about is not recognized by the system period. &lt;BR /&gt;&lt;BR /&gt;#ioscan -fnC disk&lt;BR /&gt;&lt;BR /&gt;will show you which disks are seen by your system.  If some filenames are missing, maybe even a &lt;BR /&gt;&lt;BR /&gt;#insf -e &lt;BR /&gt;&lt;BR /&gt;would help.&lt;BR /&gt;&lt;BR /&gt;Again, as already mentionned, if you do a pvcreate, MAKE SURE that the disk is not already used for another purpose.  And also, make it is already part of VG00.  Then you can lvextend.</description>
      <pubDate>Wed, 18 Jun 2003 13:42:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000950#M632706</guid>
      <dc:creator>Marco Santerre</dc:creator>
      <dc:date>2003-06-18T13:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem extending swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000951#M632707</link>
      <description>Jeff, &lt;BR /&gt;&lt;BR /&gt;I think you have hit the nail on the head -/dev/dsk/c1t1d0 is not appearing in my ioscan as a disk although i was sure that was the dev that was mirroring my original VG (now trashed to make the additional swap). I'll have to go back a few steps and try and find the 2nd disk before continuing. I'll post an update of my progress and assign points as soon as i've worked out what i'm doing. &lt;BR /&gt;&lt;BR /&gt;Thanks for the replies &lt;BR /&gt;&lt;BR /&gt;Declan</description>
      <pubDate>Wed, 18 Jun 2003 13:47:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000951#M632707</guid>
      <dc:creator>Declan Heerey</dc:creator>
      <dc:date>2003-06-18T13:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem extending swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000952#M632708</link>
      <description>I have added the additional 4Gb of swap on /dev/vg00/lvol9 as this was a priority. I will mirror the lv when i locate my missing disk. I have added the new lvol to the /etc/fstab&lt;BR /&gt;&lt;BR /&gt;Thanks for all the assistance&lt;BR /&gt;&lt;BR /&gt;Points assigned</description>
      <pubDate>Wed, 18 Jun 2003 14:19:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000952#M632708</guid>
      <dc:creator>Declan Heerey</dc:creator>
      <dc:date>2003-06-18T14:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem extending swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000953#M632709</link>
      <description>I have managed to find the missing disk (i'd taken down the incorrect PV name) :o) and using the instructions provided have mirrored the swap volumn lvol9, sync the disks and added the lvol9 to /etc/fstab. All working. Thanks for all the help, all appreciated! I have allocated points but it is coming up as unassigned so pls let me know if they have not been received and i will reallocate. &lt;BR /&gt;&lt;BR /&gt;Thanks again&lt;BR /&gt;&lt;BR /&gt;Declan</description>
      <pubDate>Fri, 20 Jun 2003 09:11:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-extending-swap-space/m-p/3000953#M632709</guid>
      <dc:creator>Declan Heerey</dc:creator>
      <dc:date>2003-06-20T09:11:44Z</dc:date>
    </item>
  </channel>
</rss>

