Posted: 2/8/2012 8:18:01 AM EDT
|
I am setting up a CentOS 6.2 box to act as an NFS server. The box has 8 physical disks. The first two are setup as a RAID-1 mirror for the OS (/dev/sda). The other 6 are setup as a RAID-5 array to be mounted under /data and exported via NFS. I used GNU parted to create a GPT partition table on the RAID-5 array (/dev/sdb). Printing out the partition table in parted gives the following result, which appears to be correct: Model: HP LOGICAL VOLUME (scsi) Disk /dev/sdb: 3000GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 1049kB 3000GB 3000GB ext4 1 However, when I run df -h, I get the following (weirdness bolded): Filesystem Size Used Avail Use% Mounted on /dev/sda1 551G 2.3G 520G 1% / tmpfs 64G 0 64G 0% /dev/shm /dev/sdb1 2.8G 69M 2.6G 3% /data Why isn't Linux seeing /dev/sdb1 as a 3 TB partition?
|
|
I think I found the problem. (parted) check 1 WARNING: you are attempting to use parted to operate on (check) a file system. parted's file system manipulation code is not as robust as what you'll find in dedicated, file-system-specific packages like e2fsprogs. We recommend you use parted only to manipulate partition tables, whenever possible. Support for performing most operations on most types of file systems will be removed in an upcoming release. Warning: Partition 1 is 3000GB, but the file system is 2998MB. <––––WTF? Ignore/Cancel? c (parted) rm 1 So after I deleted and recreated the partition, setting the size as 2.8TB, it seemed to work ok.
|