Menu Close

Red Hat Training

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

A.2.2. dmsetup ls 指​​​​​​​令​​​​​​​

您​​​​​​​可​​​​​​​透​​​​​​​過​​​​​​​ dmsetup ls 指​​​​​​​令​​​​​​​來​​​​​​​列​​​​​​​出​​​​​​​映​​​​​​​射​​​​​​​裝​​​​​​​置​​​​​​​的​​​​​​​裝​​​​​​​置​​​​​​​名​​​​​​​稱​​​​​​​。​​​​​​​您​​​​​​​可​​​​​​​透​​​​​​​過​​​​​​​使​​​​​​​用​​​​​​​ dmsetup ls --target target_type 指​​​​​​​令​​​​​​​來​​​​​​​列​​​​​​​出​​​​​​​擁​​​​​​​有​​​​​​​至​​​​​​​少​​​​​​​一​​​​​​​個​​​​​​​指​​​​​​​定​​​​​​​類​​​​​​​型​​​​​​​的​​​​​​​目​​​​​​​標​​​​​​​的​​​​​​​裝​​​​​​​置​​​​​​​。​​​​​​​如​​​​​​​欲​​​​​​​取​​​​​​​得​​​​​​​其​​​​​​​它​​​​​​​ dmsetup ls 的​​​​​​​選​​​​​​​項​​​​​​​的​​​​​​​相​​​​​​​關​​​​​​​資​​​​​​​訊​​​​​​​,請​​​​​​​參​​​​​​​閱​​​​​​​ dmsetup man page。​​​​​​​
下​​​​​​​列​​​​​​​範​​​​​​​例​​​​​​​顯​​​​​​​示​​​​​​​了​​​​​​​用​​​​​​​來​​​​​​​列​​​​​​​出​​​​​​​目​​​​​​​前​​​​​​​已​​​​​​​配​​​​​​​置​​​​​​​的​​​​​​​映​​​​​​​射​​​​​​​裝​​​​​​​置​​​​​​​之​​​​​​​裝​​​​​​​置​​​​​​​名​​​​​​​稱​​​​​​​的​​​​​​​指​​​​​​​令​​​​​​​。​​​​​​​
[root@ask-07 ~]# dmsetup ls
testgfsvg-testgfslv3    (253, 4)
testgfsvg-testgfslv2    (253, 3)
testgfsvg-testgfslv1    (253, 2)
VolGroup00-LogVol01     (253, 1)
VolGroup00-LogVol00     (253, 0)
下​​​​​​​列​​​​​​​範​​​​​​​例​​​​​​​顯​​​​​​​示​​​​​​​了​​​​​​​用​​​​​​​來​​​​​​​列​​​​​​​出​​​​​​​目​​​​​​​前​​​​​​​已​​​​​​​配​​​​​​​置​​​​​​​的​​​​​​​鏡​​​​​​​像​​​​​​​映​​​​​​​射​​​​​​​之​​​​​​​裝​​​​​​​置​​​​​​​名​​​​​​​稱​​​​​​​的​​​​​​​指​​​​​​​令​​​​​​​。​​​​​​​
[root@grant-01 ~]# dmsetup ls --target mirror
lock_stress-grant--02.1722      (253, 34)
lock_stress-grant--01.1720      (253, 18)
lock_stress-grant--03.1718      (253, 52)
lock_stress-grant--02.1716      (253, 40)
lock_stress-grant--03.1713      (253, 47)
lock_stress-grant--02.1709      (253, 23)
lock_stress-grant--01.1707      (253, 8)
lock_stress-grant--01.1724      (253, 14)
lock_stress-grant--03.1711      (253, 27)