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 10
SUSE Linux Enterprise Desktop 11
SUSE Linux Enterprise Desktop 10
Situation
Resolution
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
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!
- Open the block device for the disk in parted:
parted /dev/sda
- Create the GPT partition label:
mklabel
- Set the label to GPT:
gpt
- Leave parted:
quit
- Check that the label of the partition is now set to "EFI GPT" by using
fdisk -l /dev/sdaorparted /dev/sdaand press "p".
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.
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 ReadingThe 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
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com