暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

/dev/dm-0 ....(/dev/mapper机制)

原创 xiyun 2023-05-03
1047

另外参考:https://www.cnblogs.com/aozhejin/p/16061309.html

截取重点理解

dm实际对应的那些设备,一般都位于 /dev/mapper下面

这里有段英文:
when udev support is enabled in LVM, the /dev/mapper/ isa symlink to /dev/dm-X (this was chosen to comply with udev requirements)
https://listman.redhat.com/archives/linux-lvm/2010-July/msg00027.html

[root@itpux1 ~]# pvs
PV VG Fmt Attr PSize PFree
/dev/sdb softvg lvm2 a-- 50.00g 0
/dev/sdc oravg lvm2 a-- 30.00g 0
[root@itpux1 ~]#
[root@itpux1 ~]#
[root@itpux1 ~]# vgs
VG #PV #LV #SN Attr VSize VFree
oravg 1 1 0 wz–n- 30.00g 0
softvg 1 1 0 wz–n- 50.00g 0
[root@itpux1 ~]# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
oralv oravg -wi-ao---- 30.00g
softlv softvg -wi-ao---- 50.00g

[root@itpux1 ~]# ls /dev/mapper -l
total 0
crw------- 1 root root 10, 236 May 3 08:34 control
lrwxrwxrwx 1 root root 7 May 3 08:34 oravg-oralv -> …/dm-1
lrwxrwxrwx 1 root root 7 May 3 08:34 softvg-softlv -> …/dm-0

[root@itpux1 ~]# cat /proc/devices|grep mapper
251 device-mapper

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论