您的位置:首页 > 其它

RHEL7 -- 识别文件系统和设备

2015-07-15 21:20 148 查看
逻辑卷依赖于设备映射程序(DM)内核驱动程序。 比如有个逻辑卷组rhel中有一个逻辑卷root,对应的设备为/dev/rhel/root。符号链接/dev/rhel/root指向/dev/dm-<number>块设备节点。number的分配是连续的,从0开始。 每个逻辑卷在/dev/mapper目录中有另外一个符号链接,名称为/dev/mapper/rhel-root。

通常可以使用任一可靠且一致的符号链接名称来访问逻辑卷,因为/dev/dm-<number>名称在每次启动都会有所不同。

[root@rhce7 ~]# cd /dev/mapper/
[root@rhce7 mapper]# ll
total 0
crw-------. 1 root root 10, 236 Jul 16 11:23 control
lrwxrwxrwx. 1 root root       7 Jul 16 11:23 rhel-root -> ../dm-0
lrwxrwxrwx. 1 root root       7 Jul 16 11:23 rhel-swap -> ../dm-1
[root@rhce7 mapper]# lvs
LV   VG   Attr       LSize  Pool Origin Data%  Move Log Cpy%Sync Convert
root rhel -wi-ao---- 27.50g
swap rhel -wi-ao----  2.00g
[root@rhce7 mapper]# cd /dev/rhel/
[root@rhce7 rhel]# ll
total 0
lrwxrwxrwx. 1 root root 7 Jul 16 11:23 root -> ../dm-0
lrwxrwxrwx. 1 root root 7 Jul 16 11:23 swap -> ../dm-1


查看uuid

[root@rhce7 ~]# blkid
/dev/sda1: UUID="ed75d4b9-6d85-4b02-8aa7-f966e78fdf85" TYPE="xfs"
/dev/sda2: UUID="ewUQqv-N1i5-9xcA-GRad-2BLV-qOTh-vNPOd2" TYPE="LVM2_member"
/dev/mapper/rhel-root: UUID="0a32f670-93f4-4354-8fcb-38d88d16469d" TYPE="xfs"
/dev/mapper/rhel-swap: UUID="cc16bb7d-a65c-4510-9f77-c28759220fbc" TYPE="swap"
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: