块设备的快照和原来的块设备UUID一样。当在fastab 使用块设备时需要更改UUID。
查看块设备的UUID:
[root@centos7-1 data]# blkid
/dev/vda1: UUID="ba1b9d4d-f899-4121-bc02-b385767de754" TYPE="xfs" /dev/vdd1: UUID="4c4f9b6c-50bf-4042-952d-d1826f8d2cf5" TYPE="ext4" /dev/vde1: UUID="4c4f9b6c-50bf-4042-952d-d1826f8d2cf5" TYPE="ext4"生成UUID:
[root@centos7-1 data]# uuidgen 7e931a41-fef8-4440-af03-22e0a580ae32
[root@centos7-1 data]# tune2fs /dev/vde1 -U 7e931a41-fef8-4440-af03-22e0a580ae32 tune2fs 1.42.9 (28-Dec-2013)
查看:
[root@centos7-1 data]# blkid
/dev/vda1: UUID="ba1b9d4d-f899-4121-bc02-b385767de754" TYPE="xfs" /dev/vdd1: UUID="4c4f9b6c-50bf-4042-952d-d1826f8d2cf5" TYPE="ext4" /dev/vde1: UUID="7e931a41-fef8-4440-af03-22e0a580ae32" TYPE="ext4"