LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to partition 10 TB RAID 5 drive correctly (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-partition-10-tb-raid-5-drive-correctly-4175509630/)

richardjackson 06-30-2014 05:54 AM

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

smallpond 06-30-2014 08:12 AM

DOS labels do not work for drives over 2 TB; you need to use GPT labels. You can edit them with gdisk or parted.

MensaWater 06-30-2014 08:38 AM

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.

richardjackson 06-30-2014 08:45 AM

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.

MensaWater 06-30-2014 10:03 AM

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/

richardjackson 06-30-2014 10:34 AM

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!!

jefro 06-30-2014 03:31 PM

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.


All times are GMT -5. The time now is 07:32 AM.