zoukankan      html  css  js  c++  java
  • RHEL7 -- 识别文件系统和设备

    逻辑卷依赖于设备映射程序(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" 
  • 相关阅读:
    CSS样式实现两个图片平分三角
    Vue iview 表单封装验证
    Vue编程式路由跳转传递参数
    组件 Autofac 实现接口类工具
    GridView
    2016_09_8
    使用js创建对象
    从DataTable获取Json数据
    jQuery高级编程
    _16_08_15
  • 原文地址:https://www.cnblogs.com/abclife/p/4649537.html
Copyright © 2011-2022 走看看