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 设备是干什么用的
Device Boot
Start
End
Blocks Id
System
Device Boot
Start
End
Blocks Id
System
--- 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
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
/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
/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
===转============
What is this dm-0 device?