dmsetup
command is a command line wrapper for communication with the Device Mapper. For general system information about LVM devices, you may find the info
, ls
, status
, and deps
options of the dmsetup
command to be useful, as described in the following subsections.
dmsetup
command, see the dmsetup
(8) man page.
dmsetup info device
command provides summary information about Device Mapper devices. If you do not specify a device name, the output is information about all of the currently configured Device Mapper devices. If you specify a device, then this command yields information for that device only.
dmsetup info
command provides information in the following categories:
Name
State
SUSPENDED
, ACTIVE
, and READ-ONLY
. The dmsetup suspend
command sets a device state to SUSPENDED
. When a device is suspended, all I/O operations to that device stop. The dmsetup resume
command restores a device state to ACTIVE
.
Read Ahead
--readahead
option of the dmsetup
command.
Tables present
LIVE
and INACTIVE
. An INACTIVE
state indicates that a table has been loaded which will be swapped in when a dmsetup resume
command restores a device state to ACTIVE
, at which point the table's state becomes LIVE
. For information, see the dmsetup
man page.
Open count
mount
command opens a device.
Event number
dmsetup wait n
command allows the user to wait for the n'th event, blocking the call until it is received.
Major, minor
Number of targets
UUID
dmsetup info
command.
[root@ask-07 ~]# dmsetup info
Name: testgfsvg-testgfslv1
State: ACTIVE
Read Ahead: 256
Tables present: LIVE
Open count: 0
Event number: 0
Major, minor: 253, 2
Number of targets: 2
UUID: LVM-K528WUGQgPadNXYcFrrf9LnPlUMswgkCkpgPIgYzSvigM7SfeWCypddNSWtNzc2N
...
Name: VolGroup00-LogVol00
State: ACTIVE
Read Ahead: 256
Tables present: LIVE
Open count: 1
Event number: 0
Major, minor: 253, 0
Number of targets: 1
UUID: LVM-tOcS1kqFV9drb0X1Vr8sxeYP0tqcrpdegyqj5lZxe45JMGlmvtqLmbLpBcenh2L3