[root@hgdb01 ~]# blkid
/dev/sda1: UUID="c48857c3-96ff-47cf-908a-69908db10904" TYPE="xfs"
/dev/sda2: UUID="TzluNM-06t1-LdEC-AX7D-SdlX-7zrI-CfamSt" TYPE="LVM2_member"
/dev/sr0: UUID="2016-11-08-13-35-03-00" LABEL="OL-7.3 Server.x86_64" TYPE="iso9660" PTTYPE="dos"
/dev/mapper/ol-root: UUID="58c39a8b-eae5-4e9e-8417-24705541385a" TYPE="xfs"
/dev/mapper/ol-swap: UUID="cde7c8d1-9fb4-43a6-8f43-aa01f63f5208" TYPE="swap"
/dev/loop0: UUID="07477638-c327-4197-bc79-d71a36530776" TYPE="xfs"
/dev/mapper/docker-251:0-878943-pool: UUID="07477638-c327-4197-bc79-d71a36530776" TYPE="xfs"
/dev/mapper/docker-251:0-878943-a8c629aea6f8a7275d59234bed8872c5f879824dc22ef6c70a7ef63ca4a1961d: UUID="07477638-c327-4197-bc79-d71a36530776" TYPE="xfs"
/dev/mapper/docker-251:0-878943-60bafaa2bbfc3c4de74ca1a3862e9e5aaddb0ef276d825ade974b5a6ef3cadbc: UUID="07477638-c327-4197-bc79-d71a36530776" TYPE="xfs"
/dev/mapper/docker-251:0-878943-37a99d9b988cc557de5475beb55ff327ddce49f0de790e61ebbbace0b919837f: UUID="07477638-c327-4197-bc79-d71a36530776" TYPE="xfs"
[root@hgdb01 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 3.8G 0 3.8G 0% /dev
tmpfs 3.8G 64K 3.8G 1% /dev/shm
tmpfs 3.8G 90M 3.7G 3% /run
tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup
/dev/mapper/ol-root 84G 66G 19G 79% /
/dev/sda1 197M 151M 47M 77% /boot
tmpfs 773M 0 773M 0% /run/user/0
/dev/dm-5 25G 6.1G 19G 25% /var/lib/docker/devicemapper/mnt/60bafaa2bbfc3c4de74ca1a3862e9e5aaddb0ef276d825ade974b5a6ef3cadbc
shm 64M 0 64M 0% /var/lib/docker/containers/0c5044f0d16a7f3855f74e8b3cb47f0a8280777bccc05515e982d9d08915b828/shm
/dev/dm-4 25G 6.1G 19G 25% /var/lib/docker/devicemapper/mnt/37a99d9b988cc557de5475beb55ff327ddce49f0de790e61ebbbace0b919837f
shm 64M 0 64M 0% /var/lib/docker/containers/c238ae86aeffd17291aff80597649d77eef37ccc0dd6974244bb37f57420822f/shm
[root@hgdb01 ~]# fdisk -l
Disk /dev/sda: 107.4 GB, 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
Disk label type: dos
Disk identifier: 0x00040200
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 411647 204800 83 Linux
/dev/sda2 411648 209715199 104651776 8e Linux LVM
Disk /dev/mapper/ol-root: 90.0 GB, 89980403712 bytes, 175742976 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/ol-swap: 17.2 GB, 17179869184 bytes, 33554432 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/loop0: 107.4 GB, 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
Disk /dev/loop1: 2147 MB, 2147483648 bytes, 4194304 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/docker-251:0-878943-pool: 107.4 GB, 107374182400 bytes, 209715200 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disk /dev/mapper/docker-251:0-878943-a8c629aea6f8a7275d59234bed8872c5f879824dc22ef6c70a7ef63ca4a1961d: 26.8 GB, 26843545600 bytes, 52428800 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disk /dev/mapper/docker-251:0-878943-60bafaa2bbfc3c4de74ca1a3862e9e5aaddb0ef276d825ade974b5a6ef3cadbc: 26.8 GB, 26843545600 bytes, 52428800 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disk /dev/mapper/docker-251:0-878943-37a99d9b988cc557de5475beb55ff327ddce49f0de790e61ebbbace0b919837f: 26.8 GB, 26843545600 bytes, 52428800 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
[root@hgdb01 ~]#
值得注意的是,上门的输出结果中有 dm-4,dm-5,大家知道,dm-x设备只能供os内部使用,不能由应用程序使用。docker使用dm-x设备,算是dm-x的一个实际案例吧。