1LVMDISKSCAN(8)              System Manager's Manual             LVMDISKSCAN(8)
2
3
4

NAME

6       lvmdiskscan - List devices that may be used as physical volumes
7

SYNOPSIS

9       lvmdiskscan
10           [ option_args ]
11

DESCRIPTION

13       lvmdiskscan  scans all SCSI, (E)IDE disks, multiple devices and a bunch
14       of other block devices in the system looking  for  LVM  PVs.  The  size
15       reported  is  the  real  device size. Define a filter in lvm.conf(5) to
16       restrict the scan to avoid a CD ROM, for example.
17
18       This command is deprecated, use pvs instead.
19
20

USAGE

22       lvmdiskscan
23           [ -l|--lvmpartition ]
24           [    --readonly ]
25           [ COMMON_OPTIONS ]
26
27       Common options for lvm:
28           [ -d|--debug ]
29           [ -h|--help ]
30           [ -q|--quiet ]
31           [ -t|--test ]
32           [ -v|--verbose ]
33           [ -y|--yes ]
34           [    --commandprofile String ]
35           [    --config String ]
36           [    --driverloaded y|n ]
37           [    --lockopt String ]
38           [    --longhelp ]
39           [    --nolocking ]
40           [    --profile String ]
41           [    --version ]
42

OPTIONS

44       --commandprofile String
45              The command profile to use for command configuration.  See
46              lvm.conf(5) for more information about profiles.
47
48       --config String
49              Config settings for the command. These override lvm.conf set‐
50              tings.  The String arg uses the same format as lvm.conf, or may
51              use section/field syntax.  See lvm.conf(5) for more information
52              about config.
53
54       -d|--debug ...
55              Set debug level. Repeat from 1 to 6 times to increase the detail
56              of messages sent to the log file and/or syslog (if configured).
57
58       --driverloaded y|n
59              If set to no, the command will not attempt to use device-mapper.
60              For testing and debugging.
61
62       -h|--help
63              Display help text.
64
65       --lockopt String
66              Used to pass options for special cases to lvmlockd.  See lvm‐
67              lockd(8) for more information.
68
69       --longhelp
70              Display long help text.
71
72       -l|--lvmpartition
73              Only report PVs.
74
75       --nolocking
76              Disable locking.
77
78       --profile String
79              An alias for --commandprofile or --metadataprofile, depending on
80              the command.
81
82       -q|--quiet ...
83              Suppress output and log messages. Overrides --debug and --ver‐
84              bose.  Repeat once to also suppress any prompts with answer
85              'no'.
86
87       --readonly
88              Run the command in a special read-only mode which will read on-
89              disk metadata without needing to take any locks. This can be
90              used to peek inside metadata used by a virtual machine image
91              while the virtual machine is running. No attempt will be made to
92              communicate with the device-mapper kernel driver, so this option
93              is unable to report whether or not LVs are actually in use.
94
95       -t|--test
96              Run in test mode. Commands will not update metadata.  This is
97              implemented by disabling all metadata writing but nevertheless
98              returning success to the calling function. This may lead to
99              unusual error messages in multi-stage operations if a tool
100              relies on reading back metadata it believes has changed but
101              hasn't.
102
103       -v|--verbose ...
104              Set verbose level. Repeat from 1 to 4 times to increase the
105              detail of messages sent to stdout and stderr.
106
107       --version
108              Display version information.
109
110       -y|--yes
111              Do not prompt for confirmation interactively but always assume
112              the answer yes. Use with extreme caution.  (For automatic no,
113              see -qq.)
114

VARIABLES

116       String
117              See the option description for information about the string con‐
118              tent.
119
120       Size[UNIT]
121              Size is an input number that accepts an  optional  unit.   Input
122              units are always treated as base two values, regardless of capi‐
123              talization, e.g. 'k' and 'K' both refer to  1024.   The  default
124              input unit is specified by letter, followed by |UNIT.  UNIT rep‐
125              resents other possible input units:  bBsSkKmMgGtTpPeE.   b|B  is
126              bytes,  s|S  is  sectors  of 512 bytes, k|K is kilobytes, m|M is
127              megabytes, g|G is gigabytes, t|T is terabytes, p|P is petabytes,
128              e|E  is  exabytes.  (This should not be confused with the output
129              control --units, where capital letters mean multiple of 1000.)
130

ENVIRONMENT VARIABLES

132       See lvm(8) for information about environment  variables  used  by  lvm.
133       For example, LVM_VG_NAME can generally be substituted for a required VG
134       parameter.
135

SEE ALSO

137       lvm(8) lvm.conf(5) lvmconfig(8)
138
139       pvchange(8)  pvck(8)  pvcreate(8)  pvdisplay(8)  pvmove(8)  pvremove(8)
140       pvresize(8) pvs(8) pvscan(8)
141
142       vgcfgbackup(8)  vgcfgrestore(8)  vgchange(8) vgck(8) vgcreate(8) vgcon‐
143       vert(8)  vgdisplay(8)  vgexport(8)  vgextend(8)  vgimport(8)  vgimport‐
144       clone(8)  vgmerge(8)  vgmknodes(8)  vgreduce(8) vgremove(8) vgrename(8)
145       vgs(8) vgscan(8) vgsplit(8)
146
147       lvcreate(8) lvchange(8)  lvconvert(8)  lvdisplay(8)  lvextend(8)  lvre‐
148       duce(8) lvremove(8) lvrename(8) lvresize(8) lvs(8) lvscan(8)
149
150       lvm-fullreport(8) lvm-lvpoll(8) lvm2-activation-generator(8) blkdeacti‐
151       vate(8) lvmdump(8)
152
153       dmeventd(8) lvmpolld(8)  lvmlockd(8)  lvmlockctl(8)  cmirrord(8)  lvmd‐
154       busd(8)
155
156       lvmsystemid(7) lvmreport(7) lvmraid(7) lvmthin(7) lvmcache(7)
157
158
159
160Red Hat, Inc.       LVM TOOLS 2.03.02(2)-RHEL8 (2019-01-04)     LVMDISKSCAN(8)
Impressum