查看centos磁盘容量
1、df -Th
2、fdisk -l
3、lsblk
[root@xxx /]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 512G 0 disk
├─sda1 8:1 0 1G 0 part /boot
└─sda2 8:2 0 511G 0 part
├─centos-root 253:0 0 50G 0 lvm /
├─centos-swap 253:1 0 7.9G 0 lvm [SWAP]
└─centos-home 253:2 0 453.1G 0 lvm /home
sr0 11:0 1 1024M 0 rom
[root@yyyy ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 300G 0 disk
├─sda1 8:1 0 1G 0 part /boot
└─sda2 8:2 0 299G 0 part
├─centos-root 253:0 0 250G 0 lvm /
├─centos-swap 253:1 0 15.8G 0 lvm [SWAP]
└─centos-home 253:2 0 30G 0 lvm /home
sr0 11:0 1 1024M 0 rom
[root@zzzz ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 100G 0 disk
├─sda1 8:1 0 500M 0 part /boot
└─sda2 8:2 0 99.5G 0 part
├─centos-swap 253:0 0 3.9G 0 lvm [SWAP]
├─centos-home 253:1 0 45.6G 0 lvm /home
└─centos-root 253:2 0 850.1G 0 lvm /
sdb 8:16 0 300G 0 disk
└─centos-root 253:2 0 850.1G 0 lvm /
sdc 8:32 0 500G 0 disk
└─sdc1 8:33 0 500G 0 part
└─centos-root 253:2 0 850.1G 0 lvm /
sr0 11:0 1 1024M 0 rom
loop0 7:0 0 200G 0 loop
└─docker-253:2-401082-pool 253:3 0 200G 0 dm
├─docker-253:2-401082-f04fb517e8ddbbb1f7010b5xxxxxxxxxxxxxxxxxxxxxxxxx1f8da29003b59b3a 253:4 0 10G 0 dm /var/lib/docker/devicemapper/mnt/f04fb517e8ddbbb1f7010b523afbc45e4e2f373a3cf7c29e1f8da29003b59
├─docker-253:2-401082-42b07cff8a68d5994a934cf3abaxxxxxxxxxxxxxxxxxxxx8d12e79e16688211f 253:5 0 10G 0 dm /var/lib/docker/devicemapper/mnt/42b07cff8a68d5994a934cf3abaab31791dd023c2eb8dbb8d12e79e166882
├─docker-253:2-401082-397363664a7c12dec5589d11fe37xxxxxxxxxxxxxxxxxxx6c5ce6331fa619a9f 253:6 0 10G 0 dm /var/lib/docker/devicemapper/mnt/397363664a7c12dec5589d11fe37dab83e53dbaec63c8a06c5ce6331fa619
├─docker-253:2-401082-b9583d4f762xxxxxxxxxxxxxxxxxxxxxx8117fefcc23876b4ce10ac05f5db248 253:7 0 10G 0 dm /var/lib/docker/devicemapper/mnt/b9583d4f762419f3e2f989786df5a7f058117fefcc23876b4ce10ac05f5db
loop1 7:1 0 2G 0 loop
└─docker-253:2-401082-pool 253:3 0 200G 0 dm
├─docker-253:2-401082-f04fb517e8ddxxxxxxxxxxxxxxc45e4e2f373a3cf7c29exx1f8da29003b59b3a 253:4 0 10G 0 dm /var/lib/docker/devicemapper/mnt/f04fb517e8ddbbb1f7010b523afbc45e4e2f373a3cf7c29e1f8da29003b59
├─docker-253:2-401082-42b07cff8a68d5xxxxxxxxxxxx91dd023c2eb8dbb8d12e7xxxxxx9e16688211f 253:5 0 10G 0 dm /var/lib/docker/devicemapper/mnt/42b07cff8a68d5994a934cf3abaab31791dd023c2eb8dbb8d12e79e166882
├─docker-253:2-401082-397363664a7c12dec5589d1xxxxxxxxxxxxxxxxxx6c5ce633xxxxxx1fa619a9f 253:6 0 10G 0 dm /var/lib/docker/devicemapper/mnt/397363664a7c12dec5589d11fe37dab83e53dbaec63c8a06c5ce6331fa619
docker@default:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 19.5G 0 disk
|-sda1 8:1 0 18.6G 0 part /mnt/sda1
`-sda2 8:2 0 1000M 0 part [SWAP]
sr0 11:0 1 56M 0 rom
zram0 252:0 0 165.4M 0 disk [SWAP]