Add partition for LVM problem

I am trying to create a partition to a disk so I can add it to my volume group in LVM.  The the problem is when I try to create it with either cfdisk or fdisk the logical partition end up overlapping.  

Here is the patition table before I add the partition:

Disk /dev/sda: 6997.6 GB, 6997575467008 bytes
255 heads, 63 sectors/track, 850740 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1      229468  1843201678+  83  Linux
/dev/sda2          229469      458936  1843201710   83  Linux


Here is what it show after I create the partition:

Disk /dev/sda: 6997.6 GB, 6997575467008 bytes
255 heads, 63 sectors/track, 850740 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1      229468  1843201678+  83  Linux
/dev/sda2          229469      458936  1843201710   83  Linux
/dev/sda3          191587      432203  1932748020   83  Linux

As you can see the start and end cylinders overlap.  If I try to open cfdisk I get "FATAL ERROR: Bad primary partition 2: logical partitions overlap"  

What could be the issue?
kurtcostelloAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

joolsSenior Systems AdministratorCommented:
What are you typing in to create the partition?

If you run fdisk and create a new primary partition then accept the defaults it should just create it to use the rest of the space.

Is the volume group full? Are you just trying to add a new logical volume?
If there is space in the volume group you can just add a new logical volume using lvcreate.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kurtcostelloAuthor Commented:
I used fdisk to create the new partition.  I used the default option for the first cylinder but for some reason it kept over lapping it.

As far as the volume group, yes it full.  I'm trying to create a new PV so I can add it to the group.
0
joolsSenior Systems AdministratorCommented:
can you post the commands and output as you are doing them so it's possible to see any errors, I just tried it on a disk here and the defaults allowed me to use the remaining space.

alternatively have you tried entering 850739 as the last number?
0
joolsSenior Systems AdministratorCommented:
dont use cfdisk, use fdisk
0
nociSoftware EngineerCommented:
It almost looks like there is an overflow in the calculations in cfdisk.
I always use fdisk or gdisk for (u)efi.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.