LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-30-2014, 06:54 AM   #1
richardjackson
LQ Newbie
 
Registered: Jun 2014
Posts: 3

Rep: Reputation: Disabled
Post Unable to partition 10 TB RAID 5 drive correctly


Hi All, I am trying to set up a new Ubuntu server 14.04 to use Fog_1.1.2. on a Dell PE 510 with two virtual drives, VD0 is 148Gb (2 x 148 TB RAID1) and VD1 is 10TB (6 x 2TB disks RAID 5 + 2TB hot spare)
I installed 14.04 on VD0 and then installed Fog_1.1.2 which is all working as it should.
Now I want to create a 5Tb partition VD1 and then move the FOG images folder to the new partition.
I have tried to create the partition with fdisk and cfdisk and after writing the table it appears to be correct. I formatted with mkfs.ext4 but when I use df -H to check the partition size is not correct and is only 2TB. Is this a restriction of fdisk and cfdisk or am I going about it the wrong way? I suppose I could start again and install 14.04 on VD1 but was hoping to keep the image data separate from the OS. Sorry I cannot see a way to attach my screen shots to this post so here is the output from fdisk -l:



fogadmin@fogserver144:~$ sudo fdisk -l


Disk /dev/sdb: 9999.2 GB, 9999220736000 bytes
255 heads, 63 sectors/track, 1215669 cylinders, total 19529728000 sectors
Units = sectors of 1 * 512 = 512 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

Disk /dev/sda: 146.2 GB, 146163105792 bytes
255 heads, 63 sectors/track, 17769 cylinders, total 285474816 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000849c4

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 499711 248832 83 Linux
/dev/sda2 501758 285472767 142485505 5 Extended
/dev/sda5 501760 285472767 142485504 8e Linux LVM

Disk /dev/mapper/fogserver144--vg-root: 111.5 GB, 111547514880 bytes
255 heads, 63 sectors/track, 13561 cylinders, total 217866240 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/fogserver144--vg-root doesn't contain a valid partition table

Disk /dev/mapper/fogserver144--vg-swap_1: 34.3 GB, 34347155456 bytes
255 heads, 63 sectors/track, 4175 cylinders, total 67084288 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/fogserver144--vg-swap_1 doesn't contain a valid partition table
fogadmin@fogserver144:~$

Hope this helps - more info available if you tell me what to get
 
Old 06-30-2014, 09:12 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,609

Rep: Reputation: 702Reputation: 702Reputation: 702Reputation: 702Reputation: 702Reputation: 702Reputation: 702
DOS labels do not work for drives over 2 TB; you need to use GPT labels. You can edit them with gdisk or parted.
 
3 members found this post helpful.
Old 06-30-2014, 09:38 AM   #3
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,577
Blog Entries: 14

Rep: Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969
What Smallpond posted is what you need.

I just wanted to mention that with drives that large you really ought to think about doing RAID6 with 1 hot spare rather than RAID5 with 2 hot spares. Losing 2 disks in a RAID5 at the same time (which happens distressingly frequently when rebuilding a failed drive) means you lose the RAID5 set completely. RAID6 on the other hand can handle 2 drives failing at the same time.
 
1 members found this post helpful.
Old 06-30-2014, 09:45 AM   #4
richardjackson
LQ Newbie
 
Registered: Jun 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
Sorry just attempted parted mkpart p ext4 0.0. 2400000 and getting message Error: partition length of 4687500000 sectors exceeds the
msdos-partition-table-imposed maximum of 4294967295?? trying to find gdisk now.
 
Old 06-30-2014, 11:03 AM   #5
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,577
Blog Entries: 14

Rep: Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969
You have to drop the DOS partition table and use GPT instead. As the error indicates you still have the DOS partition table.

You do this with mklabel. Type "man parted" for more details and/or have a look at the following link:

http://sakafi.wordpress.com/2008/08/...ger-that-2-tb/
 
1 members found this post helpful.
Old 06-30-2014, 11:34 AM   #6
richardjackson
LQ Newbie
 
Registered: Jun 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks MensaWater, that site really helped me understand what was going on. I have been able to create and format the drive and have mounted it with the desired name. Just have to get Fog to like it now!!
 
Old 06-30-2014, 04:31 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
Make sure all your tools are up to date and they should be if you have 14.

Does the server have a real hardware raid controller? I might use it over software but for a fog server it may not matter at all.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with mounting a dd-rescue image of a partition from a RAID drive roby827 Linux - General 6 04-27-2014 09:14 PM
Misaligned partition on replacement drive in RAID 5 array, Fedora 14 Ta-mater Linux - Hardware 5 06-05-2013 04:16 PM
Unable to replace drive in software RAID-5 array (Fedora 14) Ta-mater Linux - Newbie 1 11-18-2011 11:22 AM
How to partition my hard drive correctly? vrael Linux - General 2 07-21-2007 12:13 AM
Unable to Partition Hard Drive suhaib Linux - Hardware 7 12-07-2006 07:06 AM


All times are GMT -5. The time now is 04:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration