<?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: Increase Swap in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/increase-swap/m-p/3090412#M7101</link>
    <description>Hi &lt;BR /&gt;&lt;BR /&gt;ItÂ´s Ok,,&lt;BR /&gt;&lt;BR /&gt;swapon  -s&lt;BR /&gt;Filename                        Type            Size    Used    Priority&lt;BR /&gt;/dev/cciss/c0d0p7               partition       2097096 0       -1&lt;BR /&gt;/dev/cciss/c0d0p10              partition       2097096 0       -2&lt;BR /&gt;/dev/cciss/c0d0p11              partition       2097136 0       -3&lt;BR /&gt;&lt;BR /&gt;but executing:&lt;BR /&gt;&lt;BR /&gt;#fdisk -l /dev/cciss/c0d0&lt;BR /&gt;&lt;BR /&gt;/dev/cciss/c0d0p11          550      1320   3145664   83  Linux&lt;BR /&gt;&lt;BR /&gt;is strange..&lt;BR /&gt;&lt;BR /&gt;Thank</description>
    <pubDate>Fri, 10 Oct 2003 06:42:10 GMT</pubDate>
    <dc:creator>Harstad</dc:creator>
    <dc:date>2003-10-10T06:42:10Z</dc:date>
    <item>
      <title>Increase Swap</title>
      <link>https://community.hpe.com/t5/operating-system-linux/increase-swap/m-p/3090407#M7096</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;How can I increase Swap area in a Linux?&lt;BR /&gt;&lt;BR /&gt;I donÂ´t know the commands to do it and the steps.&lt;BR /&gt;&lt;BR /&gt;free -k&lt;BR /&gt;total       used       free&lt;BR /&gt;Swap:      4194192     317388    3876804 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;sfdisk -s&lt;BR /&gt;total: 35561280 blocks</description>
      <pubDate>Fri, 10 Oct 2003 05:37:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/increase-swap/m-p/3090407#M7096</guid>
      <dc:creator>Harstad</dc:creator>
      <dc:date>2003-10-10T05:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Increase Swap</title>
      <link>https://community.hpe.com/t5/operating-system-linux/increase-swap/m-p/3090408#M7097</link>
      <description>do a &lt;BR /&gt;#fdisk -l&lt;BR /&gt;this will show you your partition on of the is a swap parttion.&lt;BR /&gt;If you want to increase this it means re partioning your disk ... that is if there is some space left to partition/use.&lt;BR /&gt; &lt;BR /&gt;If you need more swap for some reason you can always use swap to a file read man swapon&lt;BR /&gt; &lt;BR /&gt;swapon -s&lt;BR /&gt; &lt;BR /&gt;will tell you what swap you are using&lt;BR /&gt;&lt;BR /&gt;J-P&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Oct 2003 05:56:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/increase-swap/m-p/3090408#M7097</guid>
      <dc:creator>Huc_1</dc:creator>
      <dc:date>2003-10-10T05:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Increase Swap</title>
      <link>https://community.hpe.com/t5/operating-system-linux/increase-swap/m-p/3090409#M7098</link>
      <description>You can do either file or device swap.  Device swap is the easiest but you need a free partition to do it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;DEVICE SWAP&lt;BR /&gt;&lt;BR /&gt;using fdisk, make a partition and give it an id of Linux Swap (82).&lt;BR /&gt; &lt;BR /&gt;run mkswap /dev/hdaX where X is your partition number&lt;BR /&gt; &lt;BR /&gt;run "swapon -p X" where X is a priority between 0 and 32767 (low number are higher priorirty) though you can leave this step off if you want it to have the same priority as your existing swap&lt;BR /&gt; &lt;BR /&gt;run "swapon -a" &lt;BR /&gt; &lt;BR /&gt;edit /etc/fstab and pretty much copy the exisiting entry for swap but changing the device.&lt;BR /&gt; &lt;BR /&gt;FILE SWAP&lt;BR /&gt; &lt;BR /&gt;Choose a place to put your file swap&lt;BR /&gt; &lt;BR /&gt;run "dd if=/dev/zero of=/swapfile bs=1024 count=XXXX" where XXXX is the size of the swapfil in Kilobytes&lt;BR /&gt; &lt;BR /&gt;"mkswap /swapfile"&lt;BR /&gt;&lt;BR /&gt;"swapon -p X" if you want ot set priority X&lt;BR /&gt; &lt;BR /&gt;Edit /etc/fstab as above.&lt;BR /&gt; &lt;BR /&gt;I think that's everything.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Oct 2003 05:59:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/increase-swap/m-p/3090409#M7098</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-10-10T05:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Increase Swap</title>
      <link>https://community.hpe.com/t5/operating-system-linux/increase-swap/m-p/3090410#M7099</link>
      <description>Hi All&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.&lt;BR /&gt;&lt;BR /&gt;Ok,,the swap space has been increased, but doing a:&lt;BR /&gt;&lt;BR /&gt;fdisk -l /dev/cciss/c0d0&lt;BR /&gt;&lt;BR /&gt;I canÂ´t see the new swap partition.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Harstad</description>
      <pubDate>Fri, 10 Oct 2003 06:22:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/increase-swap/m-p/3090410#M7099</guid>
      <dc:creator>Harstad</dc:creator>
      <dc:date>2003-10-10T06:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Increase Swap</title>
      <link>https://community.hpe.com/t5/operating-system-linux/increase-swap/m-p/3090411#M7100</link>
      <description>swapon -s&lt;BR /&gt;should show that&lt;BR /&gt; &lt;BR /&gt;J-P</description>
      <pubDate>Fri, 10 Oct 2003 06:29:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/increase-swap/m-p/3090411#M7100</guid>
      <dc:creator>Huc_1</dc:creator>
      <dc:date>2003-10-10T06:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Increase Swap</title>
      <link>https://community.hpe.com/t5/operating-system-linux/increase-swap/m-p/3090412#M7101</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;ItÂ´s Ok,,&lt;BR /&gt;&lt;BR /&gt;swapon  -s&lt;BR /&gt;Filename                        Type            Size    Used    Priority&lt;BR /&gt;/dev/cciss/c0d0p7               partition       2097096 0       -1&lt;BR /&gt;/dev/cciss/c0d0p10              partition       2097096 0       -2&lt;BR /&gt;/dev/cciss/c0d0p11              partition       2097136 0       -3&lt;BR /&gt;&lt;BR /&gt;but executing:&lt;BR /&gt;&lt;BR /&gt;#fdisk -l /dev/cciss/c0d0&lt;BR /&gt;&lt;BR /&gt;/dev/cciss/c0d0p11          550      1320   3145664   83  Linux&lt;BR /&gt;&lt;BR /&gt;is strange..&lt;BR /&gt;&lt;BR /&gt;Thank</description>
      <pubDate>Fri, 10 Oct 2003 06:42:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/increase-swap/m-p/3090412#M7101</guid>
      <dc:creator>Harstad</dc:creator>
      <dc:date>2003-10-10T06:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Increase Swap</title>
      <link>https://community.hpe.com/t5/operating-system-linux/increase-swap/m-p/3090413#M7102</link>
      <description>&lt;BR /&gt;Yes that is strange !&lt;BR /&gt;  &lt;BR /&gt;I dont know the why ??&lt;BR /&gt; &lt;BR /&gt;what does the sfdisk -l see &lt;BR /&gt;there should be an entry for swap file in there&lt;BR /&gt;or else something is wrong !&lt;BR /&gt;&lt;BR /&gt;what does the command fdisk -l /dev/cciss not /dev/cciss/c0d0p11 show ?&lt;BR /&gt;&lt;BR /&gt;Sorry I do not have cciss devices so can not check myself&lt;BR /&gt;&lt;BR /&gt;J-P ( 0 points for this answer pls, more questions then answers really)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Oct 2003 07:02:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/increase-swap/m-p/3090413#M7102</guid>
      <dc:creator>Huc_1</dc:creator>
      <dc:date>2003-10-10T07:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Increase Swap</title>
      <link>https://community.hpe.com/t5/operating-system-linux/increase-swap/m-p/3090414#M7103</link>
      <description>You need to change the partition type from 83 to 82.  Run fdisk, type "t", select partition and put in "82"</description>
      <pubDate>Fri, 10 Oct 2003 07:39:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/increase-swap/m-p/3090414#M7103</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-10-10T07:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Increase Swap</title>
      <link>https://community.hpe.com/t5/operating-system-linux/increase-swap/m-p/3090415#M7104</link>
      <description>Hi Huc&lt;BR /&gt;&lt;BR /&gt;Answering your questions:&lt;BR /&gt;&lt;BR /&gt;fdisk -l /dev/cciss not /dev/cciss/c0d0p11&lt;BR /&gt;&lt;BR /&gt;Disk /dev/cciss/c0d0p11: 255 heads, 32 sectors, 770 cylinders&lt;BR /&gt;Units = cylinders of 8160 * 512 bytes&lt;BR /&gt;&lt;BR /&gt;Disk /dev/cciss/c0d0p11 doesn't contain a valid partition table&lt;BR /&gt;&lt;BR /&gt;sfdisk -l&lt;BR /&gt;&lt;BR /&gt;nting from 0&lt;BR /&gt;&lt;BR /&gt;   Device Boot Start     End   #cyls   #blocks   Id  System&lt;BR /&gt;/dev/cciss/c0d0p1   *      9      33      25    102000   83  Linux&lt;BR /&gt;/dev/cciss/c0d0p2         34     162     129    526320   83  Linux&lt;BR /&gt;/dev/cciss/c0d0p3          0+      8       9-    36704   12  Compaq diagnostics&lt;BR /&gt;/dev/cciss/c0d0p4        163    8715    8553  34896240    5  Extended&lt;BR /&gt;/dev/cciss/c0d0p5        163+    291     129-   526304   83  Linux&lt;BR /&gt;/dev/cciss/c0d0p6        292+    548     257-  1048544   83  Linux&lt;BR /&gt;/dev/cciss/c0d0p7       1320+   1833     514-  2097104   82  Linux swap&lt;BR /&gt;/dev/cciss/c0d0p8       1834+   2347     514-  2097104   83  Linux&lt;BR /&gt;/dev/cciss/c0d0p9       2348+   2861     514-  2097104   83  Linux&lt;BR /&gt;/dev/cciss/c0d0p10      2862+   3375     514-  2097104   82  Linux swap&lt;BR /&gt;/dev/cciss/c0d0p11       549+   1319     771-  3145664   83  Linux&lt;BR /&gt;/dev/cciss/c0d0p12      3376+   8715    5340- 21787184   83  Linux&lt;BR /&gt;# ^H&lt;BR /&gt;ksh:: not found&lt;BR /&gt;# fdisk -l /dev/cciss not /dev/cciss/c0d0p11&lt;BR /&gt;&lt;BR /&gt;Disk /dev/cciss/c0d0p11: 255 heads, 32 sectors, 770 cylinders&lt;BR /&gt;Units = cylinders of 8160 * 512 bytes&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Oct 2003 08:54:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/increase-swap/m-p/3090415#M7104</guid>
      <dc:creator>Harstad</dc:creator>
      <dc:date>2003-10-10T08:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Increase Swap</title>
      <link>https://community.hpe.com/t5/operating-system-linux/increase-swap/m-p/3090416#M7105</link>
      <description>dev/cciss/c0d0p11 should be of type 82 that is linux swap not 83 Linux &lt;BR /&gt;&lt;BR /&gt;for ex: your patition 07 is a valid swap partition&lt;BR /&gt; &lt;BR /&gt;dev/cciss/c0d0p7 1320+ 1833 514- 2097104 82 Linux swap &lt;BR /&gt;&lt;BR /&gt;If c0d0p11 is the "new" swap partition you wanted to use and is not used/mounted on your file system as a linux valid mount point then &lt;BR /&gt;do&lt;BR /&gt; &lt;BR /&gt;#swapoff dev/cciss/c0d0p11&lt;BR /&gt; &lt;BR /&gt;After that follow Mark Grant advised and change file type using fdisk t option on partition, when this is written to disk do as you did previously so to use it.&lt;BR /&gt;&lt;BR /&gt;Then check agains fdisk -l&lt;BR /&gt;&lt;BR /&gt;Keep us informed of progress.&lt;BR /&gt;&lt;BR /&gt;J-P&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Oct 2003 09:16:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/increase-swap/m-p/3090416#M7105</guid>
      <dc:creator>Huc_1</dc:creator>
      <dc:date>2003-10-10T09:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Increase Swap</title>
      <link>https://community.hpe.com/t5/operating-system-linux/increase-swap/m-p/3090417#M7106</link>
      <description>Hi Huc&lt;BR /&gt;&lt;BR /&gt;I will keep you informed.&lt;BR /&gt;&lt;BR /&gt;Thanks for your hekp.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Oct 2003 09:34:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/increase-swap/m-p/3090417#M7106</guid>
      <dc:creator>Harstad</dc:creator>
      <dc:date>2003-10-10T09:34:03Z</dc:date>
    </item>
  </channel>
</rss>

