HOWTO partition and make file system over 16TB (xfs) – parted

make sure you already install xfs module :

# yum install -y xfs*

part it :

# parted /dev/sdb
GNU Parted 1.8.1
Using /dev/sdb
Welcome to GNU Parted! Type ‘help’ to view a list of commands.
(parted) mklabel
Warning: The existing disk label on /dev/sdb will be destroyed and all data on
this disk will be lost. Do you want to continue?
Yes/No? Yes
New disk label type? [gpt]? gpt
(parted) print

Model: IFT A16F-G2430 (scsi)
Disk /dev/sdb: 26.0TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags

(parted) mkpart
Partition name? []?
File system type? [ext2]? xfs
Start? 0
End? -1
(parted) print

Model: IFT A16F-G2430 (scsi)
Disk /dev/sdb: 26.0TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 17.4kB 26.0TB 26.0TB xfs

(parted) quit
Information: Don’t forget to update /etc/fstab, if necessary.

#

# mkfs -t xfs -f /dev/sdb1

mount it :

# mount -t xfs /dev/sdb1 /diskarray/
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 20G 852M 18G 5% /
/dev/sdb1 24T 5.1M 24T 1% /diskarray