<?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: fdisk to create LINUX partitions in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/fdisk-to-create-linux-partitions/m-p/4562021#M39313</link>
    <description>&amp;gt;&amp;gt; Would it be possible or recommended to use fdisk on a disk device&lt;BR /&gt;&amp;gt;&amp;gt; that's already being used by LVM&lt;BR /&gt;&lt;BR /&gt;Fdisk should not be used on LVM physical or logical volume groups, it has to be used before you vgcreate.&lt;BR /&gt;&lt;BR /&gt;Instead of fdisk you should move over to using 'gnu parted', even then it is used before vgcreate.&lt;BR /&gt;&lt;BR /&gt;LVM is a layer over the fdisk/parted sliced up partitions.&lt;BR /&gt;</description>
    <pubDate>Mon, 11 Jan 2010 14:54:00 GMT</pubDate>
    <dc:creator>Ragu_3</dc:creator>
    <dc:date>2010-01-11T14:54:00Z</dc:date>
    <item>
      <title>fdisk to create LINUX partitions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/fdisk-to-create-linux-partitions/m-p/4562020#M39312</link>
      <description>Hi,&lt;BR /&gt;Would it be possible or recommended to use fdisk on a disk device that's already being used by LVM (VGs, LVs etc.)? I still have 177.97 GB free in the PV /dev/cciss/c0d0p2.&lt;BR /&gt;&lt;BR /&gt;Or am I in the danger of overwriting the OS and the filesystem and/or boot partition?&lt;BR /&gt;&lt;BR /&gt;I need to create partitions using fdisk to use them for ASMLIB of Oracle 11g. I don't have HBA drivers installed to connect to our existing SANs or any additional disks to create additional devices. &lt;BR /&gt;&lt;BR /&gt;The verify of fdisk shows 1757398544 unallocated sectors.&lt;BR /&gt;&lt;BR /&gt;Print shows Disk /dev/cciss/c0d0p2: 899.7 GB, 899788055040 bytes&lt;BR /&gt;255 heads, 32 sectors/track, 215367 cylinders&lt;BR /&gt;Units = cylinders of 8160 * 512 = 4177920 bytes.&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Mon, 11 Jan 2010 14:34:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/fdisk-to-create-linux-partitions/m-p/4562020#M39312</guid>
      <dc:creator>Ravi S. Banda</dc:creator>
      <dc:date>2010-01-11T14:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: fdisk to create LINUX partitions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/fdisk-to-create-linux-partitions/m-p/4562021#M39313</link>
      <description>&amp;gt;&amp;gt; Would it be possible or recommended to use fdisk on a disk device&lt;BR /&gt;&amp;gt;&amp;gt; that's already being used by LVM&lt;BR /&gt;&lt;BR /&gt;Fdisk should not be used on LVM physical or logical volume groups, it has to be used before you vgcreate.&lt;BR /&gt;&lt;BR /&gt;Instead of fdisk you should move over to using 'gnu parted', even then it is used before vgcreate.&lt;BR /&gt;&lt;BR /&gt;LVM is a layer over the fdisk/parted sliced up partitions.&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Jan 2010 14:54:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/fdisk-to-create-linux-partitions/m-p/4562021#M39313</guid>
      <dc:creator>Ragu_3</dc:creator>
      <dc:date>2010-01-11T14:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: fdisk to create LINUX partitions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/fdisk-to-create-linux-partitions/m-p/4562022#M39314</link>
      <description>/dev/cciss/c0d0p2 indicates partition 2 of disk c0d0, so your LVM PV is apparently a fdisk-style partition already.&lt;BR /&gt;&lt;BR /&gt;If this is a system disk, then /dev/cciss/c0d0p1 is probably the /boot filesystem, which must be a regular fdisk-style partition so that BIOS and GRUB can understand it.&lt;BR /&gt;&lt;BR /&gt;What does "fdisk -l /dev/cciss/c0d0" show?&lt;BR /&gt;&lt;BR /&gt;Trying to partition /dev/cciss/c0d0p2 with fdisk would damage your LVM PV.&lt;BR /&gt;&lt;BR /&gt;However, you *can* use "pvresize --setphysicalvolumesize xxG /dev/cciss/c0d0p2" to shrink the LVM PV to xx gigabytes, then use "fdisk /dev/cciss/c0d0" to shrink the partition to the same size (or to slightly greater size, just to be safe).&lt;BR /&gt;&lt;BR /&gt;After that, you can create new partitions with "fdisk /dev/cciss/c0d0" using the now-free space. The new partitions would be c0d0p3 or greater.&lt;BR /&gt;&lt;BR /&gt;It's also possible to use LVM logical volumes for ASM. Google found this discussion in the Oracle forums: &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.oracle.com/forums/thread.jspa?messageID=3384186" target="_blank"&gt;http://forums.oracle.com/forums/thread.jspa?messageID=3384186&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;(I don't have access to Metalink at the moment, but I think the Metalink reference at the last post of the above-mentioned thread might be useful.)&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Mon, 11 Jan 2010 15:12:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/fdisk-to-create-linux-partitions/m-p/4562022#M39314</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-01-11T15:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: fdisk to create LINUX partitions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/fdisk-to-create-linux-partitions/m-p/4562023#M39315</link>
      <description>MK,&lt;BR /&gt;1) You're right on partition2 and partition1.&lt;BR /&gt;I used on /dev/cciss/c0d0 - you're right - it didn't let me create a 3rd partition (because there are no allotted slots).&lt;BR /&gt;I did NOT go with using fdisk on p2 as it will damage it, like you said.&lt;BR /&gt;&lt;BR /&gt;2) What does "fdisk -l /dev/cciss/c0d0" show? &lt;BR /&gt;Ravi: it shows both the partitions like I said above.&lt;BR /&gt;&lt;BR /&gt;3) Trying to partition /dev/cciss/c0d0p2 with fdisk would damage your LVM PV.&lt;BR /&gt;Ravi - didn't partition with p2.&lt;BR /&gt;&lt;BR /&gt;4) However, you *can* use "pvresize --setphysicalvolumesize xxG /dev/cciss/c0d0p2" to shrink the LVM PV to xx gigabytes, then use "fdisk /dev/cciss/c0d0" to shrink the partition to the same size (or to slightly greater size, just to be safe).&lt;BR /&gt;Ravi - this I didn't know as I wasn't comfortable shrinking pv (less risk), and partition (more risky with cylinders/headers and all). Anymore documentation on shrinking partition using 'fdisk'?&lt;BR /&gt;&lt;BR /&gt;5)After that, you can create new partitions with "fdisk /dev/cciss/c0d0" using the now-free space. The new partitions would be c0d0p3 or greater.&lt;BR /&gt;Ravi - same as 4) above.&lt;BR /&gt;&lt;BR /&gt;6) It's also possible to use LVM logical volumes for ASM. Google found this discussion in the Oracle forums: &lt;BR /&gt;Ravi: I have tried this in the past with little success. With Oracle 11gR2, it seems like it is much better - with oracleasm and all. Initially, it failed, but with right permissions on the LVOLs, I was able to 'createdisk' and create datagroup in ASM using off of LVOLASM (that is basically a LVOL).&lt;BR /&gt;&lt;BR /&gt;Points assigned.&lt;BR /&gt;Thanks!&lt;BR /&gt;Ravi.&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Jan 2010 21:13:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/fdisk-to-create-linux-partitions/m-p/4562023#M39315</guid>
      <dc:creator>Ravi S. Banda</dc:creator>
      <dc:date>2010-01-11T21:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: fdisk to create LINUX partitions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/fdisk-to-create-linux-partitions/m-p/4562024#M39316</link>
      <description>Ok, looks like your problem is solved. &lt;BR /&gt;Please let me explain the source of my confusion.&lt;BR /&gt;&lt;BR /&gt;In the original message you said:&lt;BR /&gt;&amp;gt; Print shows Disk /dev/cciss/c0d0p2: 899.7 GB, 899788055040 bytes&lt;BR /&gt;&amp;gt; 255 heads, 32 sectors/track, 215367 cylinders&lt;BR /&gt;&amp;gt; Units = cylinders of 8160 * 512 = 4177920 bytes.&lt;BR /&gt;&lt;BR /&gt;This is only the top three lines of a "fdisk -l" output. The actual list of partitions is not there. Also, "Disk /dev/cciss/c0d0p2" suggests something is not quite right...&lt;BR /&gt;&lt;BR /&gt;I guess you copy/pasted the wrong output by mistake. Don't worry, it happens to the best of us :)&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Mon, 11 Jan 2010 21:47:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/fdisk-to-create-linux-partitions/m-p/4562024#M39316</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-01-11T21:47:57Z</dc:date>
    </item>
  </channel>
</rss>

