pvscan --- scan all disks for physical volumes
pvscan [--commandprofile ProfileName] [-d|--debug] [-h|--help] [-v|--verbose] [--version] [--ignorelockingfailure] [-e|--exported] [-n|--novolumegroup] [--reportformat {basic|json}] [-s|--short] [-u|--uuid] pvscan [-d|--debug] [-h|--help] --cache [-a|--activate ay] [-b|--background] [--reportformat {basic|json}] [--major major --minor minor | DevicePath | major:minor]...
pvscan scans all supported LVM block devices in the system for physical volumes. Scanning with lvmetad pvscan operates differently when used with the lvmetad(8) daemon. Scanning disks is required to read LVM metadata and identify LVM PVs. Once read, lvmetad caches the metadata so that LVM commands can read it without repeatedly scanning disks. This is helpful because scanning disks is time consuming, and frequent scanning may interfere with the normal work of the system and disks. When lvmetad is not used, LVM commands revert to scanning disks to read metadata. Any LVM command that needs metadata will scan disks for it; running the pvscan command is not necessary for the sake of other LVM commands. When lvmetad is used, LVM commands avoid scanning disks by reading metadata from lvmetad. When new disks appear, they must be scanned so their metadata can be cached in lvmetad. This is done by the command pvscan --cache, which scans disks and passes the metadata to lvmetad. The pvscan --cache command is typically run automatically by system services when a new device appears. Users do not generally need to run this command if the system and lvmetad are running properly. Many scripts contain unnecessary pvscan (or vgscan) commands for historical reasons. To avoid disrupting the system with extraneous disk scanning, an ordinary pvscan (without --cache) will simply read metadata from lvmetad like other LVM commands. It does not do anything beyond displaying the current state of the cache. Notes * When given specific device name arguments, pvscan --cache will only read the named devices. * LVM udev rules and systemd services are used to initiate automatic device scanning. * To prevent devices from being scanned by pvscan --cache, add them to lvm.conf(5) devices/global_filter. The devices/filter setting does not apply to system level scanning. For more information, see: lvmconfig --withcomments devices/global_filter * If lvmetad is started or restarted after devices are visible, or if the global_filter has changed, then all devices must be rescanned for metadata with the command pvscan --cache. * lvmetad does not cache older metadata formats, e.g. lvm1, and will be temporarily disabled if they are seen. * To notify lvmetad about a device that is no longer present, the major and minor numbers must be given, not the path. Automatic activation When event-driven system services detect a new LVM device, the first step is to automatically scan and cache the metadata from the device. This is done by pvscan --cache. A second step is to automatically activate LVs that are present on the new device. This auto-activation is done by the same pvscan --cache command when the option '-a|--activate ay' is included. Auto-activation of VGs or LVs can be enabled/disabled using: lvm.conf(5) activation/auto_activation_volume_list For more information, see: lvmconfig --withcomments activation/auto_activation_volume_list When this setting is undefined, all LVs are auto-activated (when lvm is fully integrated with the event-driven system services.) When a VG or LV is not auto-activated, traditional activation using vgchange or lvchange -a|--activate is needed. Notes * pvscan auto-activation can be only done in combination with --cache. * Auto-activation is designated by the "a" argument in '-a|--activate ay'. This is meant to distinguish system generated commands from explicit user commands, although it can be used in any activation command. Whenever it is used, the auto_activation_volume_list is applied. * Auto-activation is not yet supported for LVs that are part of partial or clustered volume groups.
See lvm(8) for common options. -e, --exported Only show physical volumes belonging to exported volume groups. -n, --novolumegroup Only show physical volumes not belonging to any volume group. -s, --short Short listing format. -u, --uuid Show UUIDs in addition to device names. -a, --activate ay Automatically activate any logical volumes that are possible to activate with the addition of the new devices. -b, --background Run the command in the background. --cache [--major major --minor minor | DevicePath | major:minor ]... Scan one or more devices and send the metadata to lvmetad.
lvm(8), lvmconfig(8), lvmetad(8)
Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.
Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.
Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.
Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.
The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.
Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.
Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.
Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.