[root@db95_194 ~]# parted /dev/sdb
sdb sdb1
[root@db95_194 ~]# parted /dev/sdb
GNU Parted 3.1
Using /dev/sdb
Welcome to GNU Parted! Type ‘help’ to view a list of commands.
(parted) mklabel gpt
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
(parted) mkpart primary 0% 100%
(parted) p
Model: VMware Virtual disk (scsi)
Disk /dev/sdb: 3651GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 3651GB 3651GB xfs primary
mount -a
数据库挂载参数:
vim /etc/fstab
/dev/nvme0n1 /ssddata xfs defaults,discard,noatime,nodiratime,nobarrier 0 0
以上是参考步骤,把3.5T的分区格式化成一个了,格式化多个,需要研究一下。