• At least in RHEL 4, the fdisk command does not support the creation of filesystems larger than 2TB. In order to get around it, you have to use the parted command. I found the basic info here, but this is the long and short of how to cut off a big ol’ slice of disk using parted:

    Run parted

    # /sbin/parted

    It’s interactive, so the following commands are issued within the utility.

    1) Make the disk label

    (parted) mklabel gpt

    2) Create the partition

    (parted) mkpart primary 0 -1

    3) Verify

    (parted) print

    
    Disk geometry for /dev/sda: 0.000-38146.972 megabytes
    Disk label type: msdos
    Minor    Start       End     Type      Filesystem  Flags
    1          0.031    101.975  primary   ext3        boot
    2        101.975  38146.530  primary               lvm
    

    4) Exit the GNU Parted command shell

    (parted) quit

    5) Finally, make the filesystem:

    # mkfs.ext3 -m0 -F /dev/sdb1

    6)Finally, you don’t want to wait for that big filesystem to fsck from time to time, so make sure it does not get checked unless you run the command yourself:

    # tune2fs -c0 -i0 /dev/sdb1

    That should just about do it. Remember that only RHEL 4 and higher can support filesystems larger than 2TB. If I remember correctly RHEL 3 can go up to 2TB, RHEL4 can handle 8TB, and RHEL 5 can make a whopping 16TB chunk of disk. Have fun!

    This entry was posted on Friday, January 11th, 2008 at 11:48 am and is filed under Data and Technology. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
  • 1 Comment

    Take a look at some of the responses we have had to this article.

    1. Phil Jensen
      Jun 11th
      Reply

      Thanks — this was a helpful super quick reference on how to create a GPT labelled disk.

  • Leave a Reply

    Let us know what you thought.

  • Name(required):

    Email(required):

    Website:

    Message: