Menu Close

Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

A.2.4. dmsetup deps 指​​​​​​​令​​​​​​​

dmsetup deps device 指​​​​​​​令​​​​​​​會​​​​​​​提​​​​​​​供​​​​​​​一​​​​​​​列​​​​​​​裝​​​​​​​置​​​​​​​配​​​​​​​對​​​​​​​(major、​​​​​​​minor),並​​​​​​​且​​​​​​​這​​​​​​​些​​​​​​​裝​​​​​​​置​​​​​​​配​​​​​​​對​​​​​​​已​​​​​​​被​​​​​​​指​​​​​​​定​​​​​​​裝​​​​​​​置​​​​​​​的​​​​​​​映​​​​​​​射​​​​​​​表​​​​​​​格​​​​​​​所​​​​​​​參​​​​​​​照​​​​​​​。​​​​​​​若​​​​​​​您​​​​​​​不​​​​​​​指​​​​​​​定​​​​​​​裝​​​​​​​置​​​​​​​名​​​​​​​稱​​​​​​​的​​​​​​​話​​​​​​​,輸​​​​​​​出​​​​​​​將​​​​​​​會​​​​​​​是​​​​​​​有​​​​​​​關​​​​​​​於​​​​​​​所​​​​​​​有​​​​​​​目​​​​​​​前​​​​​​​已​​​​​​​配​​​​​​​置​​​​​​​的​​​​​​​ Device Mapper 裝​​​​​​​置​​​​​​​的​​​​​​​相​​​​​​​關​​​​​​​資​​​​​​​訊​​​​​​​。​​​​​​​
下​​​​​​​列​​​​​​​範​​​​​​​例​​​​​​​顯​​​​​​​示​​​​​​​了​​​​​​​用​​​​​​​來​​​​​​​列​​​​​​​出​​​​​​​目​​​​​​​前​​​​​​​已​​​​​​​配​​​​​​​置​​​​​​​的​​​​​​​映​​​​​​​射​​​​​​​裝​​​​​​​置​​​​​​​的​​​​​​​所​​​​​​​有​​​​​​​相​​​​​​​依​​​​​​​的​​​​​​​指​​​​​​​令​​​​​​​。​​​​​​​
[root@ask-07 ~]# dmsetup deps
testgfsvg-testgfslv3: 1 dependencies    : (8, 16)
testgfsvg-testgfslv2: 1 dependencies    : (8, 16)
testgfsvg-testgfslv1: 1 dependencies    : (8, 16)
VolGroup00-LogVol01: 1 dependencies     : (8, 2)
VolGroup00-LogVol00: 1 dependencies     : (8, 2)
下​​​​​​​列​​​​​​​範​​​​​​​例​​​​​​​顯​​​​​​​示​​​​​​​了​​​​​​​只​​​​​​​用​​​​​​​來​​​​​​​列​​​​​​​出​​​​​​​ lock_stress-grant--02.1722 裝​​​​​​​置​​​​​​​之​​​​​​​相​​​​​​​依​​​​​​​的​​​​​​​指​​​​​​​令​​​​​​​:
[root@grant-01 ~]# dmsetup deps lock_stress-grant--02.1722
3 dependencies  : (253, 33) (253, 32) (253, 31)