[root@localhost mapper]# fdisk /dev/sdb Welcome to fdisk (util-linux 2.32.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command.
The size of this disk is 2 TiB (2199023255552 bytes). DOS partition table format cannot be used on drives for volumes larger than 2199023255040 bytes for 512-byte sectors. Use GUID partition table format (GPT).
Command (m for help): n Partition type p primary (2 primary, 0 extended, 2 free) e extended (container for logical partitions) Select (default p): p Partition number (1,2, default 1): 1 ...........: 默认 .................: +1T # 容量 Command (m for help): t # 更换磁盘类型 Partition number (1,2, default 2): 1 ............: 8e # LVM类型 Command (m for help): w # w保存退出