root@90-8D-6E-BF-76-C0 ~]# parted /dev/sda
GNU Parted 3.1
Using /dev/sda
Welcoe to GNU Parted! Type 'help' to view a list of
(parted)
(parted)
(parted) help
align-check TYPE N check partition N for TYPE(min|opt) alignment
help [AND] print general help, or help on
mklabel,mktable LABEL-TYPE create a new disklabel (partition table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table, available devices, free space, all found partitions, or a particular partition
quit exit program
rescue START END rescue a lost partition near START and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition NUMBER
unit UNIT set the default unit to UNIT
version display the version number and copyright information of GNU Parted
(parted) print
Model: DELL PERC H750 Adp (scsi)
Disk /dev/sda: 40.8TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
(parted)
(parted)
(parted) mk
mklabel mkpart mktable
(parted) mkpart
Partition name? []?
File system type? [ext2]?
Start? 0%
End? 100%
(parted)
(parted)
(parted) print
Model: DELL PERC H750 Adp (scsi)
Disk /dev/sda: 40.8TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 40.8TB 40.8TB fat16
(parted)
(parted)
(parted) quit
[root@90-8D-6E-BF-76-C0 ~]# mkfs.xfs -f /dev/sda
meta-data=/dev/sda isize=512 agcount=38, agsize=268435392 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=0, sparse=0
data = bsize=4096 blocks=9960161280, imaxpct=5
= sunit=64 swidth=256 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal log bsize=4096 blocks=521728, version=2
= sectsz=512 sunit=64 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
[root@90-8D-6E-BF-76-C0 ~]#
[root@90-8D-6E-BF-76-C0 ~]#
[root@90-8D-6E-BF-76-C0 ~]# mkdir /data
[root@90-8D-6E-BF-76-C0 ~]# mount /dev/sda /data
[root@90-8D-6E-BF-76-C0 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 50G 5.5G 45G 11% /
devtmpfs 189G 0 189G 0% /dev
tmpfs 189G 0 189G 0% /dev/shm
tmpfs 189G 13M 189G 1% /run
tmpfs 189G 0 189G 0% /sys/fs/cgroup
/dev/sdb2 1014M 166M 849M 17% /boot
/dev/sdb1 200M 12M 189M 6% /boot/efi
/dev/mapper/centos-home 839G 39M 839G 1% /home
tmpfs 38G 52K 38G 1% /run/user/1000
tmpfs 38G 0 38G 0% /run/user/0
/dev/sda 38T 34M 38T 1% /data
[root@90-8D-6E-BF-76-C0 ~]#
[root@90-8D-6E-BF-76-C0 ~]#