方法一:
使用命令blkid
[root@node2 ~]# blkid
/dev/sr0: UUID="2018-11-25-23-54-16-00" LABEL="CentOS 7 x86_64" TYPE="iso9660" PTTYPE="dos"
/dev/sda1: UUID="10fdcd69-fbec-407f-ac42-3bf46157126e" TYPE="xfs"
/dev/sda2: UUID="kIMrSC-FDHS-TvuC-AcLk-hcLO-tl4t-TD7dQu" TYPE="LVM2_member"
/dev/mapper/centos-root: UUID="f566d3e4-42f7-4627-a0a9-7e99dece2cfc" TYPE="xfs"
/dev/mapper/centos-swap: UUID="3b1c8b25-f32e-4b08-8299-a203886a714c" TYPE="swap"
方法二:
[root@node2 ~]# ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 Apr 14 10:37 10fdcd69-fbec-407f-ac42-3bf46157126e -> ../../sda1
lrwxrwxrwx 1 root root 9 Apr 14 10:37 2018-11-25-23-54-16-00 -> ../../sr0
lrwxrwxrwx 1 root root 10 Apr 14 10:37 3b1c8b25-f32e-4b08-8299-a203886a714c -> ../../dm-1
lrwxrwxrwx 1 root root 10 Apr 14 10:37 f566d3e4-42f7-4627-a0a9-7e99dece2cfc -> ../../dm-0