Difference between revisions of "Pvs"

From wikieduonline
Jump to navigation Jump to search
Line 7: Line 7:
  
 
== Examples ==
 
== Examples ==
:<code>pvs</code>
+
pvs
:No output if not devices
+
(No output if not devices)
  
 
Example output, with one PV create but not assigned to any VG:
 
Example output, with one PV create but not assigned to any VG:

Revision as of 18:35, 22 April 2020

pvs[1] Display information about physical volumes

pvs can hang if some device has been removed under some circumstances.



Examples

pvs
(No output if not devices)

Example output, with one PV create but not assigned to any VG:

pvs
  PV                                              VG       Fmt  Attr PSize    PFree
  /dev/mapper/3600508b1001c553702fe495119c850f1p1 VG1 lvm2 a--  <446.60g  32.00m
  /dev/mapper/3600a09803831416c592b4f566453764t            lvm2 ---   250.00g 250.00g
  /dev/sdc4                                       VG2     lvm2 a--    <8.28t 100.00g

Output with missing device:

pvs
  WARNING: Device for PV R3Hfm8-5J2Z-Tl59-5Q5O-ZpDq-foNa-SGpQst not found or rejected by a filter.
  PV                                              VG       Fmt  Attr PSize    PFree
  /dev/mapper/3600508b1001c553702fe495119c850f1p1 VG1 lvm2 a--  <446.60g  32.00m
  /dev/mapper/3600a09803831416c592b4f566453764t            lvm2 ---   250.00g 250.00g
  /dev/sdc4                                       VG2     lvm2 a--    <8.28t 100.00g
pvs --segments
         PV         VG Fmt  Attr PSize   PFree  Start SSize
         /dev/sda   vg lvm2 a--  100.00m 88.00m     0     1
         /dev/sda   vg lvm2 a--  100.00m 88.00m     1     1
         /dev/sda   vg lvm2 a--  100.00m 88.00m     2     1
         /dev/sda   vg lvm2 a--  100.00m 88.00m     3    22
         /dev/sdb   vg lvm2 a--  100.00m 92.00m     0     1
         /dev/sdb   vg lvm2 a--  100.00m 92.00m     1     1
         /dev/sdb   vg lvm2 a--  100.00m 92.00m     2    23


pvs -o pv_free

Activities

See also

scan: pvscan vgscan
LVM: lvs lvmscan lvm fullreport lvmreport lvmconfig lvmdump lvmcheck lvm dumpconfig
Scan: pvs vgs lvs pvscan vgscan
PV: pvcreate pvremove pvscan pvremove pvscan pvs pvchange pvck pvdisplay pvresize
LV: lvdisplay lvcreate lvremove, lvresize, lvextend, lvreduce, lvrename
VG: vgdisplay,vgcreate,vgremove, vgextend, vgreduce, vgscan, vgchange, vgrename, vgcfgbackup, vgcfgrestore, vgimportclone, vgck
Check commands: pvck vgck
  1. http://man7.org/linux/man-pages/man8/pvs.8.html
  2. http://manpages.org/multipathconf/5
  3. Advertising: