SUSE Support

Here When You Need Us

Can't create filesystems larger than 2TB

This document (7000331) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 11
SUSE Linux Enterprise Server 10
SUSE Linux Enterprise Desktop 11
SUSE Linux Enterprise Desktop 10
 

Situation

When trying to create a file system larger than 2TB, a (much) smaller file system is created instead.

Resolution

The "GPT" disk labeling scheme needs to be used in order to be able to create partitions larger than 2 TB. When you use the default "msdos" disk labeling scheme, you are limited to four partitions of just under 2 TB. If you want to use the disks, regardless of the disk labeling scheme as data drives, you have the following options:
1. Format the entire drive with a file system, without partitioning the drive.
2. Create partitions smaller that 2 TB, and add them to an Logical Volume Manager (LVM) volume group, then create a logical LVM volume greater than 2 TB. Once the logical volume is created, you can format it with a file system of your choice.
3. You can use the Enterprise Volume Management System (EVMS) volume manager in a similar way as described in step 2 above.


 

Additional Information

Change the Disk Labeling Schema

The parted tool can be used to change the partition labeling scheme of a disk.

WARNING: The following procedure will erase all data and partitioning on the block device!
  1. Open the block device for the disk in parted:
    parted /dev/sda
  2. Create the GPT partition label:
    mklabel
  3. Set the label to GPT:
    gpt
  4. Leave parted:
    quit
  5. Check that the label of the partition is now set to "EFI GPT" by using
    fdisk -l /dev/sda
    or
    parted /dev/sda
    and press "p".
The existing partition table will be destroyed and the disk can now be repartitioned using the GPT disk labeling scheme

Root Cause

This problem is caused by the limitations of the disk label (partitioning scheme).

For disks partitioned using
fdisk or partitioned as part of a default yast2 installation, the disk label will be ms-dos (the traditional PC disk labeling scheme). With this disk label, the maximum size of a partition is limited to 2 TB.

GPT - GUID Partition Table - is a more recent partitioning scheme which does not have the 2 TB limit for individual partitions.

parted note

As of this writing, parted version 1.7.1 can only create ext2, FAT32, FAT16, and linux-swap filesystems. For other filesystem (reiserfs, ext3, OCFS2 etc.), the appropriate mkfs tool needs to be used, e.g.
mkfs -t <TYPE> /dev/the_partition
or
mkfs.<TYPE> /dev/the_partition

Status (Last updated: 2009-06-23)

YaST2 in SLE11 has an option to change the disk label and to boot from GPT disks. A feature request for SLE10 SP3 functionality has been logged with Engineering.

Additional Reading

The wikipedia article GUID Partition Table provides background on GPT.

    Disclaimer

    This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

    • Document ID:7000331
    • Creation Date: 07-May-2008
    • Modified Date:25-Feb-2021
      • SUSE Linux Enterprise Desktop
      • SUSE Linux Enterprise Server

    < Back to Support Search

    For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

    tick icon

    SUSE Support Forums

    Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

    tick icon

    Support Resources

    Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

    tick icon

    Open an Incident

    Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.