查看分区-》查看总文件占有-》最高文件夹中文件占有 1、分区信息 [root@bogon /]# fdisk -ls Disk /dev/sda: 300.0 GB, 300000000000 bytes, 585937500 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 Disk label type: dos Disk identifier: 0x000d58d3 Device Boot Start End Blocks Id System /dev/sda1 * 2048 2099199 1048576 83 Linux /dev/sda2 2099200 585936895 291918848 8e Linux LVM Disk /dev/sdb: 300.0 GB, 300000000000 bytes, 585937500 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 Disk label type: dos Disk identifier: 0x35199c3a Device Boot Start End Blocks Id System /dev/sdb1 2048 585934847 292966400 7 HPFS/NTFS/exFAT Disk /dev/mapper/cl-root: 53.7 GB, 53687091200 bytes, 104857600 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 Disk /dev/mapper/cl-swap: 8455 MB, 8455716864 bytes, 16515072 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 Disk /dev/mapper/cl-home: 236.8 GB, 236776849408 bytes, 462454784 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 # 查看本机的物理卷信息,以及刚才创建的物理卷。 [root@bogon ~]# pvdisplay --- Physical volume --- PV Name /dev/sda2 VG Name cl PV Size <278.40 GiB / not usable 0 Allocatable yes PE Size 4.00 MiB Total PE 71269 Free PE 25452 Allocated PE 45817 PV UUID BePgUD-nyuR-5cLC-HqBr-xNIr-Pdse-wygGSX # 确认卷组信息VG - Name、VG - size [root@bogon ~]# vgdisplay --- Volume group --- VG Name cl System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 7 VG Access read/write VG Status resizable MAX LV 0 Cur LV 3 Open LV 3 Max PV 0 Cur PV 1 Act PV 1 VG Size 278.39 GiB PE Size 4.00 MiB Total PE 71269 Alloc PE / Size 45817 / 178.97 GiB Free PE / Size 25452 / 99.42 GiB VG UUID iKwIXi-hBWf-esFP-0lvH-tyyX-RM07-wyVK2w 2、磁盘文件占有 df -lh [root@bogon data]# df -lh Filesystem Size Used Avail Use% Mounted on /dev/mapper/cl-root 50G 25G 26G 50% / devtmpfs 7.8G 0 7.8G 0% /dev tmpfs 7.8G 0 7.8G 0% /dev/shm tmpfs 7.8G 9.0M 7.8G 1% /run tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup /dev/sda1 1014M 224M 791M 23% /boot /dev/mapper/cl-home 221G 16G 205G 8% /home tmpfs 1.6G 0 1.6G 0% /run/user/0 3、磁盘文件夹内文件占有 du -ah --max-depth=1 [root@bogon data]# du -ah --max-depth=1 3.4G ./db 3.4G .