[root@localhost ~]# parted -l
Model: VMware Virtual disk(scsi)
Disk /dev/sda:107GB
Sector size(logical/physical):512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
11049kB 3146kB 2097kB primary
23146kB 527MB 524MB primary xfs boot
3527MB 107GB 107GB primary lvm
Error:/dev/sdb: unrecognised disk label
Model: VMware Virtual disk(scsi)
Disk /dev/sdb:2199GB
Sector size(logical/physical):512B/512B
Partition Table: unknown
Disk Flags:
Model: Linux device-mapper(linear)(dm)
Disk /dev/mapper/centos-swap:17.2GB
Sector size(logical/physical):512B/512B
Partition Table: loop
Disk Flags:
Number Start End Size File system Flags
10.00B 17.2GB 17.2GB linux-swap(v1)
Model: Linux device-mapper(linear)(dm)
Disk /dev/mapper/centos-root:89.7GB
Sector size(logical/physical):512B/512B
Partition Table: loop
Disk Flags:
Number Start End Size File system Flags
10.00B 89.7GB 89.7GB xfs
对该磁盘进行分区
[root@localhost ~]# 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(parted) mkpart primary 1100%(parted) print
Model: VMware Virtual disk(scsi)
Disk /dev/sdb:2199GB
Sector size(logical/physical):512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
11049kB 2199GB 2199GB primary(parted) quit
Information: You may need to update /etc/fstab.
[root@localhost /]# vi /etc/fstab
#
# /etc/fstab
# Created by anaconda on Tue Aug 2706:39:452019
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5),findfs(8),mount(8) and/or blkid(8)for more info
#
/dev/mapper/centos-root / xfs defaults 00UUID=33181145-8d9e-412d-8b21-e997632a9c9c /boot xfs defaults 00/dev/mapper/centos-swap swap swap defaults 00/dev/sdb1 /zimo xfs defaults 00