LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 11-25-2013, 10:51 AM   #1
PeterSteele
Member
 
Registered: Jun 2012
Posts: 264

Rep: Reputation: Disabled
Large partition size not reported correctly in /proc/partitions


I have a large RAID disk of around 36TB. I've partitioned it as follows:
Code:
# parted -l
Model: SMC SMC2208 (scsi)
Disk /dev/sda: 36.0TB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number  Start   End     Size    File system  Name     Flags
 1      1049kB  10.7GB  10.7GB  ext4                  boot
 2      10.7GB  35.8TB  35.8TB               primary
 3      35.8TB  35.8TB  51.2GB               primary
 4      35.8TB  35.9TB  51.2GB               primary
 5      35.9TB  35.9TB  51.2GB               primary
 6      35.9TB  36.0TB  51.2GB               primary
You can see here that partition 2 is a large 35.8TB partition. The partition sizes are all reported correctly in /proc/partitions except for partition 2:
Code:
# cat /proc/partitions 
major minor  #blocks  name

   8        0 35156238336 sda
   8        1   10485760 sda1
   8        2  586013679 sda2
   8        3   49999872 sda3
   8        4   49999872 sda4
   8        5   49999872 sda5
   8        6   49999872 sda6
As you can see, there is a large discrepancy in the size reported by parted and the size reported by /proc/partitions. Instead of 35.8TB, the size is reported as 600GB (586013679*1024/1000^3==600).

What's going on here? I was expecting perhaps to see this partition limited to 16TB, which is a GPT/ext4 limit, but why 600GB? Something seems to be seriously wrong here, but other tools agree with /proc/partitions:
Code:
# blockdev --getsize64 /dev/sda2
600078007808
$ echo "600078007808/1000^3" | bc 
600
Can anyone explain what's going on? For what it's worth, this partition is going to be used as a raw partition and not formatted with ext4 or similar file system.
 
Old 11-25-2013, 01:40 PM   #2
PeterSteele
Member
 
Registered: Jun 2012
Posts: 264

Original Poster
Rep: Reputation: Disabled
One thing that's worth noting is that the OS (CentOS 6.4) is installed on partition 1 on this drive. The other partitions were created after the OS was installed and the system was booted. Is there an issue with creating partitions on a drive hosting the live OS?
 
Old 11-25-2013, 03:38 PM   #3
PeterSteele
Member
 
Registered: Jun 2012
Posts: 264

Original Poster
Rep: Reputation: Disabled
It appears I have to reboot a system after adding partitions to the same drive where the OS resides. A bit of a pain but from what I've been able to find out from my searches this is the only why to get the CentOS kernel to recognize the new partitions...
 
  


Reply



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
correct partition size not reported after resizing with gparted rogerdv Linux - General 5 01-11-2010 10:35 AM
Drive size not reported correctly dlynch912 Linux - General 4 02-23-2006 05:04 AM
reported partition size error jsmarshall85 Debian 4 11-06-2004 02:09 PM
RAM amount not being reported correctly cragwolf Slackware 12 09-22-2004 03:49 AM
Partition Size & How many Partitions Nasty Linux - Newbie 8 02-27-2004 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 06:13 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
Open Source Consulting | Domain Registration