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>名称在每次启动都会有所不同。
查看uuid
通常可以使用任一可靠且一致的符号链接名称来访问逻辑卷,因为/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"
相关文章推荐
- Android中使用Volley开源库进行Http网络请求(POST方式)
- Apache 安装
- python技巧总结--持续更新
- Qt中qApp
- Objective-C--Runtime机制
- COJ 1004: Xi and Bo 并查集
- 在android创建bitmap避免低记忆法
- 苹果没法删除部分照片的问题
- asp.net 文件批量移动重命名
- Objective-C--Runtime机制
- 机器学习(一)开源资料库整理--国外全英课程
- LeetCode---(225)Implement Stack using Queues
- 换个地方感到很反感
- C++ const限定符
- android string.xml格式化
- poj 1463
- Linux中RPM包安装、查询、卸载
- leetcode 日经贴,Cpp code -Basic Calculator
- 在oracle数据库中只知道他的生日,怎么查出他的年龄
- 一种用javascript实现的比较兼容的回到顶部demo + 阻止事件冒泡