====>2T以下磁盘分区表格式化操作
ll /dev/disk/by-path/
pci-0000:00:06.0-virtio-pci-virtio3 -> ../../vdb
n
p
1
p
w
fdisk -l
mkfs.ext4 /dev/sdb1
mount /dev/sdb1 /data(需要挂载的目录)
echo "/dev/sdb1 /data ext4 defaults 0 0" >> /etc/fstab(开机自动挂载)

=====>大于2TB磁盘挂载操作
parted /dev/vdb
//初始化分区表
mklabel gpt
yes
(parted) unit TB
(parted) mkpart primary 0 4
(parted) print
Model: Virtio Block Device (virtblk)
Disk /dev/vdb: 4.29TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 0.00TB 4.29TB 4.29TB primary
(parted) quit
格式化分区
mkfs.ext4 /dev/sdb1
mount /dev/sdb1 /data(需要挂载的目录)
echo "/dev/sdb1 /data ext4 defaults 0 0" >> /etc/fstab(开机自动挂载)