<?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 extend ext3 partition used as NFS share in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/extend-ext3-partition-used-as-nfs-share/m-p/5219372#M51629</link>
    <description>&lt;!--!*#--&gt;Greetings gurus,&lt;BR /&gt;&lt;BR /&gt;I have the following disk used as an NFS share on an RHEL 4U4 system:&lt;BR /&gt;&lt;BR /&gt;df -T /dev/sdg1&lt;BR /&gt;Filesystem    Type   1K-blocks      Used Available Use% Mounted on&lt;BR /&gt;/dev/sdg1     ext3   141106132 123913684  10024652  93% /share&lt;BR /&gt;&lt;BR /&gt;fdisk -l /dev/sdg&lt;BR /&gt;&lt;BR /&gt;Disk /dev/sdg: 299.9 GB, 299999442944 bytes&lt;BR /&gt;255 heads, 63 sectors/track, 36472 cylinders&lt;BR /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;BR /&gt;&lt;BR /&gt;   Device Boot      Start         End      Blocks   Id  System&lt;BR /&gt;/dev/sdg1   *           1       17847   143355996   83  Linux&lt;BR /&gt;/dev/sdg2           17848       36472   149605312+  83  Linux&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/dev/sdg1 is the NFS share and is nearly full&lt;BR /&gt;&lt;BR /&gt;/dev/sdg2 is not used&lt;BR /&gt;&lt;BR /&gt;I'd like to extend /dev/sdg1 to use all of /dev/sdg&lt;BR /&gt;&lt;BR /&gt;This is not a system or boot disk, it can be unmounted.&lt;BR /&gt;&lt;BR /&gt;How do I accomplish this?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;&lt;BR /&gt;Doug</description>
    <pubDate>Thu, 14 Jan 2010 18:59:45 GMT</pubDate>
    <dc:creator>Doug Davenport</dc:creator>
    <dc:date>2010-01-14T18:59:45Z</dc:date>
    <item>
      <title>extend ext3 partition used as NFS share</title>
      <link>https://community.hpe.com/t5/operating-system-linux/extend-ext3-partition-used-as-nfs-share/m-p/5219372#M51629</link>
      <description>&lt;!--!*#--&gt;Greetings gurus,&lt;BR /&gt;&lt;BR /&gt;I have the following disk used as an NFS share on an RHEL 4U4 system:&lt;BR /&gt;&lt;BR /&gt;df -T /dev/sdg1&lt;BR /&gt;Filesystem    Type   1K-blocks      Used Available Use% Mounted on&lt;BR /&gt;/dev/sdg1     ext3   141106132 123913684  10024652  93% /share&lt;BR /&gt;&lt;BR /&gt;fdisk -l /dev/sdg&lt;BR /&gt;&lt;BR /&gt;Disk /dev/sdg: 299.9 GB, 299999442944 bytes&lt;BR /&gt;255 heads, 63 sectors/track, 36472 cylinders&lt;BR /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;BR /&gt;&lt;BR /&gt;   Device Boot      Start         End      Blocks   Id  System&lt;BR /&gt;/dev/sdg1   *           1       17847   143355996   83  Linux&lt;BR /&gt;/dev/sdg2           17848       36472   149605312+  83  Linux&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/dev/sdg1 is the NFS share and is nearly full&lt;BR /&gt;&lt;BR /&gt;/dev/sdg2 is not used&lt;BR /&gt;&lt;BR /&gt;I'd like to extend /dev/sdg1 to use all of /dev/sdg&lt;BR /&gt;&lt;BR /&gt;This is not a system or boot disk, it can be unmounted.&lt;BR /&gt;&lt;BR /&gt;How do I accomplish this?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;&lt;BR /&gt;Doug</description>
      <pubDate>Thu, 14 Jan 2010 18:59:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/extend-ext3-partition-used-as-nfs-share/m-p/5219372#M51629</guid>
      <dc:creator>Doug Davenport</dc:creator>
      <dc:date>2010-01-14T18:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: extend ext3 partition used as NFS share</title>
      <link>https://community.hpe.com/t5/operating-system-linux/extend-ext3-partition-used-as-nfs-share/m-p/5219373#M51630</link>
      <description>As you don't use LVM, you have two options.&lt;BR /&gt;&lt;BR /&gt;Backup, destroy, repartition and recreate your file system. Restore your data. Use LVM this time if you can.&lt;BR /&gt;&lt;BR /&gt;Create a file system in sdg2 and mount it in a directory /share.</description>
      <pubDate>Thu, 14 Jan 2010 21:09:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/extend-ext3-partition-used-as-nfs-share/m-p/5219373#M51630</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2010-01-14T21:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: extend ext3 partition used as NFS share</title>
      <link>https://community.hpe.com/t5/operating-system-linux/extend-ext3-partition-used-as-nfs-share/m-p/5219374#M51631</link>
      <description>Shalom Doug,&lt;BR /&gt;&lt;BR /&gt;You are not using lvm&lt;BR /&gt;&lt;BR /&gt;You can not easily accomplish this.&lt;BR /&gt;&lt;BR /&gt;fdisk /dev/sdg&lt;BR /&gt;&lt;BR /&gt;Use the menus to set the partition type of partition 2 to 8E lvm&lt;BR /&gt;&lt;BR /&gt;pvcreate -f /dev/sdg2&lt;BR /&gt;vgcreate vgnfs /dev/sdg2&lt;BR /&gt;vgdisplay vgnfs&lt;BR /&gt;# to get the number  of PE's available for the next command.&lt;BR /&gt;lvcreate -l ####### vgnfs&lt;BR /&gt;&lt;BR /&gt;This will allow to copy all the data from the /dev/sdg1 partition to the sdg2 parition.&lt;BR /&gt;&lt;BR /&gt;Do that.&lt;BR /&gt;&lt;BR /&gt;umount the file system make sure NFS is shut down first.&lt;BR /&gt;&lt;BR /&gt;change the mount instructions in /etc/fstab to mount the new logical volume&lt;BR /&gt;mount /&lt;FILESYSTEM name=""&gt;&lt;BR /&gt;&lt;BR /&gt;fdisk /dev/sdg&lt;BR /&gt;mark partition 1 to 8e LVM&lt;BR /&gt;&lt;BR /&gt;pvcreate -f /dev/sdg1&lt;BR /&gt;vgextend vgnfs /dev/sdg1&lt;BR /&gt;pvdisplay /dev/sdg1 # to get number ##### for the next command double it.&lt;BR /&gt;lvextend -L ###### /dev/vgnfs/lvol0 &lt;BR /&gt;resize2fs /dev/vgnfs/lvol0&lt;BR /&gt;&lt;BR /&gt;If this is Red hat 4, use ext2online instead of rsize2fs to extend the file system.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/FILESYSTEM&gt;</description>
      <pubDate>Thu, 14 Jan 2010 21:10:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/extend-ext3-partition-used-as-nfs-share/m-p/5219374#M51631</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2010-01-14T21:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: extend ext3 partition used as NFS share</title>
      <link>https://community.hpe.com/t5/operating-system-linux/extend-ext3-partition-used-as-nfs-share/m-p/5219375#M51632</link>
      <description>Thank you Ivan and Steven, &lt;BR /&gt;&lt;BR /&gt;I had been considering converting this to LVM but was finding conflicting info as to whether or not LVM and NFS are compatible.&lt;BR /&gt;&lt;BR /&gt;Based on your feedback this seems possible.&lt;BR /&gt;&lt;BR /&gt;Just to be clear, am I able to share an LV via NFS?</description>
      <pubDate>Thu, 14 Jan 2010 22:32:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/extend-ext3-partition-used-as-nfs-share/m-p/5219375#M51632</guid>
      <dc:creator>Doug Davenport</dc:creator>
      <dc:date>2010-01-14T22:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: extend ext3 partition used as NFS share</title>
      <link>https://community.hpe.com/t5/operating-system-linux/extend-ext3-partition-used-as-nfs-share/m-p/5219376#M51633</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;you share file system (or better - a directory on a FS), not a LV, so it doesn't matter what is FS created on.&lt;BR /&gt;&lt;BR /&gt;emha.</description>
      <pubDate>Fri, 15 Jan 2010 07:38:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/extend-ext3-partition-used-as-nfs-share/m-p/5219376#M51633</guid>
      <dc:creator>emha_1</dc:creator>
      <dc:date>2010-01-15T07:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: extend ext3 partition used as NFS share</title>
      <link>https://community.hpe.com/t5/operating-system-linux/extend-ext3-partition-used-as-nfs-share/m-p/5219377#M51634</link>
      <description>Yes, thank you emha</description>
      <pubDate>Fri, 15 Jan 2010 11:09:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/extend-ext3-partition-used-as-nfs-share/m-p/5219377#M51634</guid>
      <dc:creator>Doug Davenport</dc:creator>
      <dc:date>2010-01-15T11:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: extend ext3 partition used as NFS share</title>
      <link>https://community.hpe.com/t5/operating-system-linux/extend-ext3-partition-used-as-nfs-share/m-p/5219378#M51635</link>
      <description>Doug,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Create a file system in sdg2 and mount it in a directory /share.&lt;BR /&gt;&lt;BR /&gt;If you would go this way and create a sub-mount then do not forget about the 'crossmnt' option in /etc/exports. Otherwise the sub-mount /share/sdg2 won't be visible on the NFS clients.&lt;BR /&gt;&lt;BR /&gt;man 5 exports:&lt;BR /&gt;&lt;BR /&gt;"crossmnt&lt;BR /&gt;&lt;BR /&gt;       This option is similar to nohide but it makes it possible for clients to move from  the  filesystem marked  with crossmnt  to  exported filesystems mounted on it. Thus when a child filesystem "B" is mounted on a parent "A", setting crossmnt on "A" has the same effect as setting "nohide" on B.&lt;BR /&gt;"</description>
      <pubDate>Fri, 15 Jan 2010 15:50:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/extend-ext3-partition-used-as-nfs-share/m-p/5219378#M51635</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2010-01-15T15:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: extend ext3 partition used as NFS share</title>
      <link>https://community.hpe.com/t5/operating-system-linux/extend-ext3-partition-used-as-nfs-share/m-p/5219379#M51636</link>
      <description>Thank you Viktor, good point.</description>
      <pubDate>Fri, 15 Jan 2010 16:06:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/extend-ext3-partition-used-as-nfs-share/m-p/5219379#M51636</guid>
      <dc:creator>Doug Davenport</dc:creator>
      <dc:date>2010-01-15T16:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: extend ext3 partition used as NFS share</title>
      <link>https://community.hpe.com/t5/operating-system-linux/extend-ext3-partition-used-as-nfs-share/m-p/5219380#M51637</link>
      <description>I will convert to LVM much as SEP described.</description>
      <pubDate>Fri, 15 Jan 2010 16:10:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/extend-ext3-partition-used-as-nfs-share/m-p/5219380#M51637</guid>
      <dc:creator>Doug Davenport</dc:creator>
      <dc:date>2010-01-15T16:10:43Z</dc:date>
    </item>
  </channel>
</rss>

