<?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: extending swap space in LVM on a Linux RH 9 in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/extending-swap-space-in-lvm-on-a-linux-rh-9/m-p/3052200#M6236</link>
    <description>This depends on how much space you have allocated on your file systems and which file system types you're using.&lt;BR /&gt;&lt;BR /&gt;If you're using ReiserFS, you can reduce other file systems and associated LV's by 1 GB with resize_reiserfs; then, lvextend the swap space. Later, with the server in single-user mode, you can turn off swap, mkswap on the swap LV and swapon -a again.&lt;BR /&gt;&lt;BR /&gt;If you're using ext3 - AFAIK, the standard of RH - then matters become more complicated. You'll need to put the server in single-user mode, as you'll need to:&lt;BR /&gt;&lt;BR /&gt;* umount your ext3 file systems;&lt;BR /&gt;* remount them as ext2;&lt;BR /&gt;* umount them;&lt;BR /&gt;* ext2resize them in order to make space for the swap LV;&lt;BR /&gt;* resize and recreate the swap LV as described above;&lt;BR /&gt;* tune2fs -j them in order to make them ext3 again.&lt;BR /&gt;&lt;BR /&gt;I don't know whether e2online is available on RH9; it's a bit risky to use it anyway.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Paulo Fessel</description>
    <pubDate>Tue, 19 Aug 2003 19:44:06 GMT</pubDate>
    <dc:creator>Paulo A G Fessel</dc:creator>
    <dc:date>2003-08-19T19:44:06Z</dc:date>
    <item>
      <title>extending swap space in LVM on a Linux RH 9</title>
      <link>https://community.hpe.com/t5/operating-system-linux/extending-swap-space-in-lvm-on-a-linux-rh-9/m-p/3052199#M6235</link>
      <description>Hey all, I created a swap space of 3gig but in fact I need to create lvswap as a 4gig filesystem. Now that my swap space is created as 3gig, how can I increaase it to 4gig without blowing away my system. Any help is greatly appreciated.</description>
      <pubDate>Tue, 19 Aug 2003 18:58:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/extending-swap-space-in-lvm-on-a-linux-rh-9/m-p/3052199#M6235</guid>
      <dc:creator>Ragni Singh</dc:creator>
      <dc:date>2003-08-19T18:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: extending swap space in LVM on a Linux RH 9</title>
      <link>https://community.hpe.com/t5/operating-system-linux/extending-swap-space-in-lvm-on-a-linux-rh-9/m-p/3052200#M6236</link>
      <description>This depends on how much space you have allocated on your file systems and which file system types you're using.&lt;BR /&gt;&lt;BR /&gt;If you're using ReiserFS, you can reduce other file systems and associated LV's by 1 GB with resize_reiserfs; then, lvextend the swap space. Later, with the server in single-user mode, you can turn off swap, mkswap on the swap LV and swapon -a again.&lt;BR /&gt;&lt;BR /&gt;If you're using ext3 - AFAIK, the standard of RH - then matters become more complicated. You'll need to put the server in single-user mode, as you'll need to:&lt;BR /&gt;&lt;BR /&gt;* umount your ext3 file systems;&lt;BR /&gt;* remount them as ext2;&lt;BR /&gt;* umount them;&lt;BR /&gt;* ext2resize them in order to make space for the swap LV;&lt;BR /&gt;* resize and recreate the swap LV as described above;&lt;BR /&gt;* tune2fs -j them in order to make them ext3 again.&lt;BR /&gt;&lt;BR /&gt;I don't know whether e2online is available on RH9; it's a bit risky to use it anyway.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Paulo Fessel</description>
      <pubDate>Tue, 19 Aug 2003 19:44:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/extending-swap-space-in-lvm-on-a-linux-rh-9/m-p/3052200#M6236</guid>
      <dc:creator>Paulo A G Fessel</dc:creator>
      <dc:date>2003-08-19T19:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: extending swap space in LVM on a Linux RH 9</title>
      <link>https://community.hpe.com/t5/operating-system-linux/extending-swap-space-in-lvm-on-a-linux-rh-9/m-p/3052201#M6237</link>
      <description>I think you can add some temporary swap files on filesystems where there enough free space. example:&lt;BR /&gt;&lt;BR /&gt;# dd if=/dev/zero of=/tmp/swap-file bs=1M count=1024&lt;BR /&gt;# mkswap /tmp/swap-file&lt;BR /&gt;# swapon /tmp/swap-file&lt;BR /&gt;&lt;BR /&gt;this creates a 1 GB file in /tmp and mounts it as swap space. You can do this more than once with different files to get more additional swap space.&lt;BR /&gt;&lt;BR /&gt;then you can unmount your lvswap volume (using swapoff), resize the volume and mount it again (with mkswap and swapon).&lt;BR /&gt;&lt;BR /&gt;finally, unmount the swap-file (swapoff /tmp/swap-file) and delete it.&lt;BR /&gt;&lt;BR /&gt;this should work.&lt;BR /&gt;&lt;BR /&gt;P.S.: before umounting the lvswap volume verify that the swap space used can fit into the remaining swap-file. I there is a lot of used swap, this operation could take some time.&lt;BR /&gt;&lt;BR /&gt;ciao&lt;BR /&gt;Claudio</description>
      <pubDate>Wed, 20 Aug 2003 07:11:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/extending-swap-space-in-lvm-on-a-linux-rh-9/m-p/3052201#M6237</guid>
      <dc:creator>Claudio Cilloni</dc:creator>
      <dc:date>2003-08-20T07:11:04Z</dc:date>
    </item>
  </channel>
</rss>

