Partiotioing a 6TB hadr drive using parted-getting error when running mklabel
Hello all,
I have a 6TB USB drive attached to a redhat server. I am trying to create a 3TB partition on it. I am trying to use parted as with fdisk we cannot create partitions more than 2TB. When i run parted and execute the command mklabel GPT, i get the below error: # parted /dev/sdb Warning: Device /dev/sdb has a logical sector size of 4096. Not all parts of GNU Parted support this at the moment, and the working code is HIGHLY EXPERIMENTAL. GNU Parted 1.8.1 Using /dev/sdb Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) mklabel gpt Error: Invalid argument during write on /dev/sdb Retry/Ignore/Cancel? Cancel (parted) q Please advice.. |
That's a rather old version of parted.
Code:
$ parted --version |
That parted version 1.8.1 suggests that the server is running RHEL 5, which will go EOL in less than 2 years (March, 2017), and that is the most recent version available for RHEL 5. Looks like you've got hardware that just isn't well supported in RHEL 5. You might be able to work around the problem by connecting the disk to another, newer system for partitioning.
|
Thank you for the reply. As i see 1.8 version is the latest version for parted on RHEL5.
Can i try to use fdisk instead of parted to create a partition less than 1TB on a 6TB hard drive? When i run fdisk /dev/sdb and create a partition of size 250 GB (256000MB), it is creating a default partition os size 69 GB irrespective of how much size i specify while creating the partition? Please advice. # fdisk /dev/sdb Note: sector size is 4096 (not 512) The number of cylinders for this disk is set to 91199. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) WARNING: The size of this disk is 6.0 TB (6001140957184 bytes). DOS partition table format can not be used on drives for volumes larger than 2.2 TB (2199023255040 bytes). Use parted(1) and GUID partition table format (GPT). Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-91199, default 1): 1 Last cylinder or +size or +sizeM or +sizeK (1-91199, default 91199): +256000M Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. I mounted the partition /dev/sdb1 on /mnt/backups. See below. The space is showing as 69GB. /dev/sdb1 69G 85M 66G 1% /mnt/backups |
I believe that the RHEL 5 version of fisdk is not GPT-aware and is limited to an MS-DOS partition table. An MS-DOS partition table cannot address any part of the disk beyond 2 TiB, so you would be wasting about 2/3 of that 6 TB disk.
|
I just noticed this:
Quote:
|
All times are GMT -5. The time now is 12:44 PM. |