<?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: how i create swap partition in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-i-create-swap-partition/m-p/4398375#M36026</link>
    <description>Hi Hany,&lt;BR /&gt;The command to do the thing is "mkswap"&lt;BR /&gt;you can create a swap partition on a block device(/dev/sdax) or even on a file and no need of reboot or down time is required.&lt;BR /&gt;&lt;BR /&gt;if you are to use a swap file insted of raw partition use "dd" to create a file before use "mkswap" on that file&lt;BR /&gt;eg: &lt;BR /&gt;dd if=/dev/zero of=/"path &amp;amp; name swap file" \&lt;BR /&gt;bs=1024 count="how many of 1024s to file"&lt;BR /&gt;&lt;BR /&gt;once this is done you can use "mkswap" on the file you crated&lt;BR /&gt;&lt;BR /&gt;Most important thing is after crating a swap device or file to tell the OS to use that file or device you have to run &lt;BR /&gt;"swapon -a"&lt;BR /&gt;&lt;BR /&gt;please read the man page for mkswap for more info&lt;BR /&gt;&lt;BR /&gt;Good Luck..!   &lt;BR /&gt;   &lt;BR /&gt;</description>
    <pubDate>Fri, 10 Apr 2009 02:17:13 GMT</pubDate>
    <dc:creator>Nuwan Alwis</dc:creator>
    <dc:date>2009-04-10T02:17:13Z</dc:date>
    <item>
      <title>how i create swap partition</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-i-create-swap-partition/m-p/4398372#M36023</link>
      <description>hi&lt;BR /&gt;can you tell how i can create/add swap partition&lt;BR /&gt;for RedHat Linux for OS already install. &lt;BR /&gt;i need step to create&lt;BR /&gt;regards&lt;BR /&gt;hany</description>
      <pubDate>Thu, 09 Apr 2009 10:44:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-i-create-swap-partition/m-p/4398372#M36023</guid>
      <dc:creator>hany elromany</dc:creator>
      <dc:date>2009-04-09T10:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: how i create swap partition</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-i-create-swap-partition/m-p/4398373#M36024</link>
      <description>use something like resize2fs to shrink a partition and add it in. &lt;BR /&gt;&lt;BR /&gt;I'd suggest trying to make the space as far back in the drive as possible as things like grub may be referencing a /boot partition quite far back too, depending on where you personally placed it. IF you can shrink the end one and tg it at teh very back, even better. &lt;BR /&gt;&lt;BR /&gt;This shouldn't be too much of a problem though as FC4 loves using ext2 fs labels in /etc/fstab meaning rahter than referencing a partition by it's location, it looks on all partitions on all devices for a certain name. meaning if it's partition id changes (e.g. hda6 becomes hda7) then it probably won't care anyway. &lt;BR /&gt;&lt;BR /&gt;So once you have free space, create a partition with fdisk then format it with "mkswap /dev/hda{b]X[/b]" then just use "swapon" to load it. if it loads fine, stick an entry in /ets/fstab to permanntly mount it on boot.&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Apr 2009 11:15:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-i-create-swap-partition/m-p/4398373#M36024</guid>
      <dc:creator>Frank de Vries</dc:creator>
      <dc:date>2009-04-09T11:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: how i create swap partition</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-i-create-swap-partition/m-p/4398374#M36025</link>
      <description>See this doc from RedHat - &lt;A href="http://kbase.redhat.com/faq/docs/DOC-1133" target="_blank"&gt;http://kbase.redhat.com/faq/docs/DOC-1133&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
      <pubDate>Thu, 09 Apr 2009 11:55:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-i-create-swap-partition/m-p/4398374#M36025</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2009-04-09T11:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: how i create swap partition</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-i-create-swap-partition/m-p/4398375#M36026</link>
      <description>Hi Hany,&lt;BR /&gt;The command to do the thing is "mkswap"&lt;BR /&gt;you can create a swap partition on a block device(/dev/sdax) or even on a file and no need of reboot or down time is required.&lt;BR /&gt;&lt;BR /&gt;if you are to use a swap file insted of raw partition use "dd" to create a file before use "mkswap" on that file&lt;BR /&gt;eg: &lt;BR /&gt;dd if=/dev/zero of=/"path &amp;amp; name swap file" \&lt;BR /&gt;bs=1024 count="how many of 1024s to file"&lt;BR /&gt;&lt;BR /&gt;once this is done you can use "mkswap" on the file you crated&lt;BR /&gt;&lt;BR /&gt;Most important thing is after crating a swap device or file to tell the OS to use that file or device you have to run &lt;BR /&gt;"swapon -a"&lt;BR /&gt;&lt;BR /&gt;please read the man page for mkswap for more info&lt;BR /&gt;&lt;BR /&gt;Good Luck..!   &lt;BR /&gt;   &lt;BR /&gt;</description>
      <pubDate>Fri, 10 Apr 2009 02:17:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-i-create-swap-partition/m-p/4398375#M36026</guid>
      <dc:creator>Nuwan Alwis</dc:creator>
      <dc:date>2009-04-10T02:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: how i create swap partition</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-i-create-swap-partition/m-p/4398376#M36027</link>
      <description>&lt;BR /&gt;This scenario is only applicable when LVM is supported&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;â ¢ Create an LV on the appropriate VG&lt;BR /&gt; #lvcreate -L 5000 /dev/vg00&lt;BR /&gt;&lt;BR /&gt;â ¢ Enable the swap on the LV created&lt;BR /&gt;#mkswap /dev/vg00/lvol12&lt;BR /&gt;&lt;BR /&gt;â ¢ Activate the swap on the LV&lt;BR /&gt;      #swapon /dev/vg00/lvol10&lt;BR /&gt;&lt;BR /&gt;â ¢ Update the fstab&lt;BR /&gt;&lt;BR /&gt;   &lt;BR /&gt;&lt;BR /&gt;If vg00 is comprised of only 1 disk (or 2 if you are mirrored) then spreading multiple swap areas out over the same disk is dumb. Consider that you have 4 swap volumes on the same disk at equal priority to spread the i/o evenly. As the paging activity spreads the swap across these 4 lvols, the heads will be moving like crazy because all of this is occurring on the same physical disk. If you do have multiple swap areas on the same disk then you want to assign them different priorities so that one will be completely used before the next one is used at all. Only in the case where swap is spread over multiple physical disks would you set the priorities the same.&lt;BR /&gt;&lt;BR /&gt;So that is why priorities are kept different.&lt;BR /&gt;&lt;BR /&gt;#swapon -s&lt;BR /&gt;Filename                        Type            Size    Used    Priority&lt;BR /&gt;/dev/vg00/lvol8 (deleted)       partition       2097144 2095220 -1&lt;BR /&gt;/dev/vg00/lvol9 (deleted)       partition       2097144 1157016 -2&lt;BR /&gt;/dev/vg00/lvol2 (deleted)       partition       2097144 0       -3&lt;BR /&gt;/dev/vg00/lvol12 (deleted)      partition       5119992 0       -4&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Apr 2009 13:57:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-i-create-swap-partition/m-p/4398376#M36027</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2009-04-10T13:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: how i create swap partition</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-i-create-swap-partition/m-p/4398377#M36028</link>
      <description>Hi Hany&lt;BR /&gt;&lt;BR /&gt;For swap area give at least twice computer memory size, ex. +512M. &lt;BR /&gt;&lt;BR /&gt;The steps are as follows, &lt;BR /&gt;&lt;BR /&gt;Default partition type is LINUX native, to change a Linux partition to a swap partition with fdisk: &lt;BR /&gt;l                 # show partition&lt;BR /&gt;t  1              # change partition type for partition 1&lt;BR /&gt;Hex code: 82      # set type to Linux swap&lt;BR /&gt;w                 # write partition table&lt;BR /&gt;The new swap partion is set using the below listed commands to create and enable the swap partition. &lt;BR /&gt;# mkswap -c /dev/hda2 size_in_blocks&lt;BR /&gt;# swapon /dev/hda&lt;BR /&gt;To enable all swap partitions: &lt;BR /&gt;# swapon -a &lt;BR /&gt;Check swap space usage with /usr/bin/top, /usr/bin/free and defined partitions with /sbin/swapon (see Section 10.4) as follows: &lt;BR /&gt;$ /sbin/swapon -s&lt;BR /&gt;Filename            Type            Size    Used    Priority&lt;BR /&gt;/dev/hda5           partition       2048248 0       -1&lt;BR /&gt;/dev/hda6           partition       2048248 0       -2&lt;BR /&gt;Finally add the new swap partition to /etc/fstab: &lt;BR /&gt;/dev/hda14     /             ext2    defaults        1 1&lt;BR /&gt;/dev/hda1      /boot         ext2    defaults        1 2&lt;BR /&gt;/dev/hda13     /home         ext2    defaults        1 2&lt;BR /&gt;/dev/cdrom     /mnt/cdrom    iso9660 noauto,owner,ro 0 0&lt;BR /&gt;/dev/hda5      swap          swap    defaults        0 0&lt;BR /&gt;/dev/hda6      swap          swap    defaults        0 0&lt;BR /&gt;/dev/fd0       /mnt/floppy   ext2    noauto,owner    0 0&lt;BR /&gt;none           /proc         proc    defaults        0 0&lt;BR /&gt;none           /dev/pts      devpts  gid=5,mode=620  0 0&lt;BR /&gt;#&lt;BR /&gt;nodea:/fsa     /fsa          nfs     rw,soft,bg      0 0&lt;BR /&gt;nodea:/fsb     /fsb          nfs     ro,soft,bg      0 0&lt;BR /&gt;&lt;BR /&gt;N.B. With RH7.x file systems in /etc/fstab are listed by label instead of using partition number, in the above example /etc/fstab entry /dev/hda1 for the /boot file system, is mapped to LABEL=/boot for RH7.x.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://help.ubuntu.com/community/SwapFaq#head-75ffcb00cefe143fc380f84d7ea9203f16a596d0" target="_blank"&gt;https://help.ubuntu.com/community/SwapFaq#head-75ffcb00cefe143fc380f84d7ea9203f16a596d0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;RGds//&lt;BR /&gt;Taifur</description>
      <pubDate>Sat, 11 Apr 2009 07:27:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-i-create-swap-partition/m-p/4398377#M36028</guid>
      <dc:creator>Taifur</dc:creator>
      <dc:date>2009-04-11T07:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: how i create swap partition</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-i-create-swap-partition/m-p/4398378#M36029</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.vglug.info/swap-partition-and-swap-file-rhel-4" target="_blank"&gt;http://www.vglug.info/swap-partition-and-swap-file-rhel-4&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=1046206" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=1046206&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 13 Apr 2009 09:43:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-i-create-swap-partition/m-p/4398378#M36029</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-04-13T09:43:55Z</dc:date>
    </item>
  </channel>
</rss>

