<?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: Creating a New File System in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/creating-a-new-file-system/m-p/5229680#M51889</link>
    <description>Shalom Michael,&lt;BR /&gt;&lt;BR /&gt;What you are seeing IMO is a system that does not use LVM.&lt;BR /&gt;&lt;BR /&gt;None of the partitions are marked LVM and no volume groups have been created.&lt;BR /&gt;&lt;BR /&gt;To add a volume group now would require allocation of a new disk partition, marking it as LVM with fdisk and running vgcreate to create a volume group.&lt;BR /&gt;&lt;BR /&gt;If the system is not in production, I'd seriously consider doing the OS install again.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Thu, 11 Mar 2010 20:04:43 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2010-03-11T20:04:43Z</dc:date>
    <item>
      <title>Creating a New File System</title>
      <link>https://community.hpe.com/t5/operating-system-linux/creating-a-new-file-system/m-p/5229679#M51888</link>
      <description>vmlinuz-2.6.18-128.1.14.el5&lt;BR /&gt;Red Hat Enterprise Linux Client release 5.3 (Tikanga)&lt;BR /&gt;&lt;BR /&gt;Hi&lt;BR /&gt;&lt;BR /&gt;I'm prety much a Red Hat newbie and need some basic help about LVM and disk partitions.  Here is some basic info. as well as an attached file.&lt;BR /&gt;&lt;BR /&gt;# fdisk -l&lt;BR /&gt;&lt;BR /&gt;Disk /dev/sda: 80.0 GB, 80026361856 bytes&lt;BR /&gt;255 heads, 63 sectors/track, 9729 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/sda1   *           1          25      200781   83  Linux&lt;BR /&gt;/dev/sda2              26        2113    16771860   83  Linux&lt;BR /&gt;/dev/sda3            2114        2635     4192965   83  Linux&lt;BR /&gt;/dev/sda4            2636        9729    56982555    5  Extended&lt;BR /&gt;/dev/sda5            2636        2896     2096451   82  Linux swap / Solaris&lt;BR /&gt;/dev/sda6            2897        3157     2096451   83  Linux&lt;BR /&gt;/dev/sda7            3158        3418     2096451   83  Linux&lt;BR /&gt;###################################&lt;BR /&gt;&lt;BR /&gt;# df -k&lt;BR /&gt;Filesystem           1K-blocks      Used Available Use% Mounted on&lt;BR /&gt;/dev/sda2             16246460   3127272  12280596  21% /&lt;BR /&gt;/dev/sda6              2030736     40552   1885364   3% /tmp&lt;BR /&gt;/dev/sda3              4061572    138748   3713176   4% /var&lt;BR /&gt;/dev/sda7              2030736     36072   1889844   2% /var/tmp&lt;BR /&gt;/dev/sda1               194442     16305    168098   9% /boot&lt;BR /&gt;tmpfs                   451964         0    451964   0% /dev/shm&lt;BR /&gt;&lt;BR /&gt;The attachement is 'system-config-lvm'.  Note the 'initialize entry' button is not highlighted.&lt;BR /&gt;&lt;BR /&gt;a)  Could you explain to me what I am seeing?&lt;BR /&gt;b)  Could you explain how to add in a vg, lvol, file system from here?&lt;BR /&gt;&lt;BR /&gt;thanks!&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Mar 2010 19:37:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/creating-a-new-file-system/m-p/5229679#M51888</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2010-03-11T19:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a New File System</title>
      <link>https://community.hpe.com/t5/operating-system-linux/creating-a-new-file-system/m-p/5229680#M51889</link>
      <description>Shalom Michael,&lt;BR /&gt;&lt;BR /&gt;What you are seeing IMO is a system that does not use LVM.&lt;BR /&gt;&lt;BR /&gt;None of the partitions are marked LVM and no volume groups have been created.&lt;BR /&gt;&lt;BR /&gt;To add a volume group now would require allocation of a new disk partition, marking it as LVM with fdisk and running vgcreate to create a volume group.&lt;BR /&gt;&lt;BR /&gt;If the system is not in production, I'd seriously consider doing the OS install again.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 11 Mar 2010 20:04:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/creating-a-new-file-system/m-p/5229680#M51889</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2010-03-11T20:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a New File System</title>
      <link>https://community.hpe.com/t5/operating-system-linux/creating-a-new-file-system/m-p/5229681#M51890</link>
      <description>Hi SEP&lt;BR /&gt;&lt;BR /&gt;Kinda thought that.&lt;BR /&gt;&lt;BR /&gt;My goal is to add in another file system and take advantage of the current space provided.&lt;BR /&gt;&lt;BR /&gt;Question:  See previous attachement for "/dev/sda4 Extended" - How can I use this to make a new, what?, partition?, slice?, subdisk? and then mount a file system to it?&lt;BR /&gt;&lt;BR /&gt;Question:  See NEWLY attached.  /dev/sda, unpartitioned space.  48 GB.  Same question.</description>
      <pubDate>Thu, 11 Mar 2010 20:17:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/creating-a-new-file-system/m-p/5229681#M51890</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2010-03-11T20:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a New File System</title>
      <link>https://community.hpe.com/t5/operating-system-linux/creating-a-new-file-system/m-p/5229682#M51891</link>
      <description>Shalom again Michael.&lt;BR /&gt;&lt;BR /&gt;I saw the un-partitioned space while closing your openoffice doc. and felt pretty stupid about my original answer.&lt;BR /&gt;&lt;BR /&gt;Lets say the device is /dev/sdg&lt;BR /&gt;&lt;BR /&gt;fdisk to create a lvm (8e) partition&lt;BR /&gt;# May need to use partprobe or boot to force a kernel sync.&lt;BR /&gt;&lt;BR /&gt;pvcreate /dev/sdg1&lt;BR /&gt;# Might if you try more than once to use -f or -ff&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;vgcreate test_vg /dev/sdg1 &lt;BR /&gt;&lt;BR /&gt;lvcreate -l 48G test_vg&lt;BR /&gt;&lt;BR /&gt;mkfs.ext3 /dev/test_vg/lvol1&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 11 Mar 2010 22:01:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/creating-a-new-file-system/m-p/5229682#M51891</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2010-03-11T22:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a New File System</title>
      <link>https://community.hpe.com/t5/operating-system-linux/creating-a-new-file-system/m-p/5229683#M51892</link>
      <description>Michael -- Long Time No Hear sir...!&lt;BR /&gt;On the UNIX-away path too? ;^))&lt;BR /&gt;&lt;BR /&gt;From your fdisk, it appears your sda device (I trust this is a RAID disk?) - you have ~ 51.9gb remaining (6311 cyclinders). You can carve an sda8 "partition" by invoking fdisk and spec'ing the start and end cyl/block. Once done (you can do a partprobe to ensure the part table is reread).&lt;BR /&gt;&lt;BR /&gt;Then you can either create a filesystem directly on sda8 (mkfs.ext3 /dev/sda8) OR make it into a PV and eventually a member of a VG (whose gyration is very much the same as HP-UX LVM -- but easier - as SEP outlined...)&lt;BR /&gt;&lt;BR /&gt;Enjoy.&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Mar 2010 23:34:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/creating-a-new-file-system/m-p/5229683#M51892</guid>
      <dc:creator>Zinky</dc:creator>
      <dc:date>2010-03-11T23:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a New File System</title>
      <link>https://community.hpe.com/t5/operating-system-linux/creating-a-new-file-system/m-p/5229684#M51893</link>
      <description>K&lt;BR /&gt;&lt;BR /&gt;I can see /dev/sda8.  But I still don't know how to use the space in "/dev/sda4 Extended" 48 gb.&lt;BR /&gt;&lt;BR /&gt;Why can't I make a file system out of this ?</description>
      <pubDate>Fri, 12 Mar 2010 02:39:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/creating-a-new-file-system/m-p/5229684#M51893</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2010-03-12T02:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a New File System</title>
      <link>https://community.hpe.com/t5/operating-system-linux/creating-a-new-file-system/m-p/5229685#M51894</link>
      <description>Michael.&lt;BR /&gt;&lt;BR /&gt;sda4 is your "extended" partition from which sda5,sda6...sda8 is "allocated" from.  DO NOT ever use your extended parition as you could corrupt the paritions contained within.&lt;BR /&gt;&lt;BR /&gt;PC Styles disks are limited to 4 "Primary" paritions of which 1 needs to be extended parition IF you want to carve your disk beyond the 4 parition limit.&lt;BR /&gt;&lt;BR /&gt;That is why LVM saves the day for us as it can slice and dice a whole disk or a parition of a whole disk far wider than native slicing plus other perks.&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Mar 2010 13:40:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/creating-a-new-file-system/m-p/5229685#M51894</guid>
      <dc:creator>Zinky</dc:creator>
      <dc:date>2010-03-12T13:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a New File System</title>
      <link>https://community.hpe.com/t5/operating-system-linux/creating-a-new-file-system/m-p/5229686#M51895</link>
      <description>Hi Michael,&lt;BR /&gt;&lt;BR /&gt;If you are used to HP-UX LVM, in Linux a partition is the equivalent of the PV in HP-UX. A disk can have max. 4 primary partitions, or 3 primary and an extended partition, as Alzhy wrote.&lt;BR /&gt;&lt;BR /&gt;I prefer utilizing the 'whole disk approach' also in Linux, so create a single partition to each disk you want to have in the LVM config. (fdisk/cfdisk) The rest is similar to the HP-UX method. Do a pvcreate for each partition, vgcreate/vgextend, etc...&lt;BR /&gt;&lt;BR /&gt;If it is a testmachine with limited number of disks, you could create 4 primary partitions to each physical disk. That way you will have 4 times the PV than the physical disks, and have some room to experiment with the various allocation policies, etc...&lt;BR /&gt;&lt;BR /&gt;In a production environment you must always create a single partition per disk, that way you can ensure that a disk won't be utilized for different LVs/FSs. The performance suffers if the disk head must be relocated back and forth.&lt;BR /&gt;&lt;BR /&gt;It isn't necessary to create a partition anyway, the /dev/sd[a-z] devices can also be used with LVM, the existing partitions can be deleted. But this way there won't be any sign of the LVM usage on the disks - the LVM type can be set only to a partition.&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Mar 2010 16:05:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/creating-a-new-file-system/m-p/5229686#M51895</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2010-03-12T16:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a New File System</title>
      <link>https://community.hpe.com/t5/operating-system-linux/creating-a-new-file-system/m-p/5229687#M51896</link>
      <description>Thaaaannnk Yooou All Folks&lt;BR /&gt;&lt;BR /&gt;Note:  After performing NOTE: that pvcreate failed due to a linux bug in /etc/lvm/lvm.conf.  I am documenting it here.&lt;BR /&gt;&lt;BR /&gt;pvcreate /dev/sda8&lt;BR /&gt;ERROR:  'disk doesn't exist, or is being filtered'&lt;BR /&gt;&lt;BR /&gt;vi /etc/lvm/lvm.conf&lt;BR /&gt;devices ()&lt;BR /&gt;&lt;BR /&gt;#       filter = [ "r|^/dev/mapper/.*-lv.*|", "a|^/dev/mapper/.*|", "r/.*/" ]&lt;BR /&gt;&lt;BR /&gt;filter = [ "r|^/dev/mapper/.*-lv.*|", "a|^/dev/mapper/.*|"]&lt;BR /&gt; &lt;BR /&gt;Note:  The last arguement is removed or errors on pvcreate.</description>
      <pubDate>Fri, 12 Mar 2010 17:50:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/creating-a-new-file-system/m-p/5229687#M51896</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2010-03-12T17:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a New File System</title>
      <link>https://community.hpe.com/t5/operating-system-linux/creating-a-new-file-system/m-p/5229688#M51897</link>
      <description>,</description>
      <pubDate>Fri, 12 Mar 2010 17:51:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/creating-a-new-file-system/m-p/5229688#M51897</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2010-03-12T17:51:01Z</dc:date>
    </item>
  </channel>
</rss>

