查看磁盘(示例中有3块数据盘)
sudo fdisk -l
Disk /dev/vda: 100 GiB, 107374182400 bytes, 209715200 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xf46d10b0
Device Boot Start End Sectors Size Id Type
/dev/vda1 * 2048 1499135 1497088 731M 83 Linux
/dev/vda2 1501182 41940991 40439810 19.3G 5 Extended
/dev/vda5 1501184 41940991 40439808 19.3G 8e Linux LVM
Disk /dev/vdb: 2 TiB, 2147483648000 bytes, 4194304000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x497c538c
Device Boot Start End Sectors Size Id Type
/dev/vdb1 2048 4194303999 4194301952 2T 8e Linux LVM
Disk /dev/mapper/Ubuntu--vg-root: 18.3 GiB, 1967