Red Hat Training

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

A.2.2. Il comando dmsetup ls

È possibile elencare i nomi dei dispositivi mappati con il comando dmsetup ls. Si possono elencare i dispositivi con almeno un target specificato con il comando dmsetup ls --target target_type. Per altre opzioni di dmsetup ls, consultare la pagina man dmsetup.
Il seguente esempio mostra il comando usato per elencare i nomi dei dispositivi mappati attualmente configurati.
[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)
Il seguente esempio mostra il comando usato per elencare i nomi delle mappature dei mirror attualmente configurati.
[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)