mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Tidy up for another release: updated documentation; removed old files;
module build fix.
This commit is contained in:
parent
b40b90f035
commit
547afddbab
@ -4,11 +4,14 @@ dmsetup \- low level logical volume management
|
|||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.ad l
|
.ad l
|
||||||
.B dmsetup create
|
.B dmsetup create
|
||||||
.I device_name table_file
|
.I device_name table_file [uuid]
|
||||||
.br
|
.br
|
||||||
.B dmsetup remove
|
.B dmsetup remove
|
||||||
.I device_name
|
.I device_name
|
||||||
.br
|
.br
|
||||||
|
.B dmsetup rename
|
||||||
|
.I device_name new_name
|
||||||
|
.br
|
||||||
.B dmsetup suspend
|
.B dmsetup suspend
|
||||||
.I device_name
|
.I device_name
|
||||||
.br
|
.br
|
||||||
@ -20,6 +23,23 @@ dmsetup \- low level logical volume management
|
|||||||
.br
|
.br
|
||||||
.B dmsetup info
|
.B dmsetup info
|
||||||
.I device_name
|
.I device_name
|
||||||
|
.br
|
||||||
|
.B dmsetup deps
|
||||||
|
.I device_name
|
||||||
|
.br
|
||||||
|
.B dmsetup status
|
||||||
|
.I device_name
|
||||||
|
.br
|
||||||
|
.B dmsetup table
|
||||||
|
.I device_name
|
||||||
|
.br
|
||||||
|
.B dmsetup wait
|
||||||
|
.I device_name
|
||||||
|
.br
|
||||||
|
.B dmsetup remove_all
|
||||||
|
.I device_name
|
||||||
|
.br
|
||||||
|
.B dmsetup version
|
||||||
.ad b
|
.ad b
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
dmsetup manages logical devices that use the device-mapper driver.
|
dmsetup manages logical devices that use the device-mapper driver.
|
||||||
@ -27,19 +47,25 @@ Devices are created by loading a table that specifies a target for
|
|||||||
each sector in the logical device.
|
each sector in the logical device.
|
||||||
|
|
||||||
The first argument to dmsetup is a command.
|
The first argument to dmsetup is a command.
|
||||||
The second argument is the logical device name.
|
The second argument is the logical device name or uuid.
|
||||||
.SH COMMANDS
|
.SH COMMANDS
|
||||||
.IP \fBcreate
|
.IP \fBcreate
|
||||||
.I device_name table_file
|
.I device_name table_file [uuid]
|
||||||
.br
|
.br
|
||||||
Attempts to create a device using the table file given. If
|
Attempts to create a device using the table file given.
|
||||||
|
The optional uuid can be used in place of
|
||||||
|
device_name in subsequent dmsetup commands. If
|
||||||
successful a device will appear as
|
successful a device will appear as
|
||||||
/dev/device-mapper/<device-name>. See below for information
|
/dev/device-mapper/<device-name>. See below for information
|
||||||
on the table file format.
|
on the table file format.
|
||||||
.IP \fBremove
|
.IP \fBremove
|
||||||
.I device_name
|
.I device_name
|
||||||
.br
|
.br
|
||||||
Removes the device
|
Removes a device
|
||||||
|
.IP \fBrename
|
||||||
|
.I device_name new_name
|
||||||
|
.br
|
||||||
|
Renames a device
|
||||||
.IP \fBsuspend
|
.IP \fBsuspend
|
||||||
.I device_name
|
.I device_name
|
||||||
.br
|
.br
|
||||||
@ -67,14 +93,40 @@ Outputs some brief information about the device in the form:
|
|||||||
major,minor
|
major,minor
|
||||||
.br
|
.br
|
||||||
target_count
|
target_count
|
||||||
|
.IP \fBdeps
|
||||||
|
.I device_name
|
||||||
|
.br
|
||||||
|
Outputs a list of (major, minor) pairs for devices referenced by the
|
||||||
|
specified device.
|
||||||
|
.IP \fBstatus
|
||||||
|
.I device_name
|
||||||
|
.br
|
||||||
|
Outputs status information for each of the device's targets.
|
||||||
|
.IP \fBtable
|
||||||
|
.I device_name
|
||||||
|
.br
|
||||||
|
Outputs the current table for the device in a format than can be fed
|
||||||
|
back in using the create or reload commands.
|
||||||
|
.IP \fBwait
|
||||||
|
.I device_name
|
||||||
|
.br
|
||||||
|
Sleeps until an event is triggered against a device.
|
||||||
|
.IP \fBremove_all
|
||||||
|
.br
|
||||||
|
Attempts to remove all device definitions i.e. reset the driver.
|
||||||
|
Use with care!
|
||||||
|
.IP \fBversion
|
||||||
|
.I device_name
|
||||||
|
.br
|
||||||
|
Outputs version information.
|
||||||
.SH TABLE FORMAT
|
.SH TABLE FORMAT
|
||||||
Each line of the table specifies a single target and is of the form:
|
Each line of the table specifies a single target and is of the form:
|
||||||
.br
|
.br
|
||||||
logical_start_sector num_sectors target_type target_args
|
logical_start_sector num_sectors target_type target_args
|
||||||
.br
|
.br
|
||||||
.br
|
.br
|
||||||
At the moment there are 3 simple target types available - though your
|
There are currently three simple target types available together
|
||||||
system might have more in the form of modules.
|
with more complex optional ones that implement snapshots and mirrors.
|
||||||
|
|
||||||
.IP \fBlinear
|
.IP \fBlinear
|
||||||
.I destination_device start_sector
|
.I destination_device start_sector
|
||||||
|
Loading…
Reference in New Issue
Block a user