加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

RHEL 5.8 OEL 逻辑卷 LVM /dev/dm-0 设备是干什么用的

(2012-09-13 15:51:36)
标签:

it

分类: UNIX
RHEL/OEL linux 5.8 逻辑卷 LVM /dev/dm-0 设备是干什么用的

Redhat linux 用了逻辑卷 安装系统后 

fdisk -l 看到一些 /dev/dm-0     /dev/dm-1 这样的设备

是干什么用的呢

[root@taoelrman ~]# fdisk -l

Disk /dev/sda: 17.1 GB, 17179869184 bytes
255 heads, 63 sectors/track, 2088 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14        2088    16667437+  8e  Linux LVM

Disk /dev/sdb: 20.4 GB, 20401094656 bytes
255 heads, 63 sectors/track, 2480 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        2480    19920568+  83  Linux



Disk /dev/dm-0: 10.8 GB, 10804527104 bytes
255 heads, 63 sectors/track, 1313 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 6241 MB, 6241124352 bytes
255 heads, 63 sectors/track, 758 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-1 doesn't contain a valid partition table


原来是内核为LVM映射的
[root@taoelrman ~]# dmsetup ls
rootvg-swaplv   (253, 1)
rootvg-rootlv   (253, 0)


可以看到 dm0 对应的就是rootlv   dm1 对应交换空间

[root@taoelrman ~]# lvdisplay
  --- Logical volume ---
  LV Name                /dev/rootvg/rootlv
  VG Name                rootvg
  LV UUID                IBdfOH-sXdC-Y96S-MRns-GOEZ-VVzL-DirSnI
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                10.06 GB
  Current LE             322
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0

  --- Logical volume ---
  LV Name                /dev/rootvg/swaplv
  VG Name                rootvg
  LV UUID                yeVc3e-stbj-VDJ8-reVO-hUlq-JgY8-fVi3uy
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                5.81 GB
  Current LE             186
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1


===转============
What is this dm-0 device?


0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有