Difference between revisions of "Pvscan"

From wikieduonline
Jump to navigation Jump to search
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<code>pvscan</code> list all physical volumes. For scanning for new [[LUN]]s use: <code>[[rescan-scsi-bus.sh]]</code>
+
{{lc}}<code>pvscan</code> is a [[LVM]] command to list all physical volumes. For scanning for new [[LUN]]s use: <code>[[rescan-scsi-bus.sh]]</code>
 +
 
 +
pvscan
 +
  No matching physical volumes found
 +
 +
pvscan -v
 +
    Wiping internal VG cache
 +
    Wiping cache of LVM-capable devices
 +
  No matching physical volumes found
  
  
Line 5: Line 13:
 
* <code>pvscan --cache</code>
 
* <code>pvscan --cache</code>
 
* <code>pvscan --cache --activate ay 256:10</code>
 
* <code>pvscan --cache --activate ay 256:10</code>
 +
 +
  pvscan
 +
  PV /dev/sdb2                                      VG VG_NAME1        lvm2 [<446.60 GiB / 32.00 MiB free]
 +
  PV /dev/sdc                                        VG VG_NAME2  lvm2 [<9.10 TiB / 0    free]
 +
  WARNING: Device /dev/mapper/3600a09803831417a5a244f5665797a4d has size of 8804682957 sectors which is smaller than corresponding PV size of 12884901888 sectors. Was device resized?
 +
  One or more devices used as PVs in VG VG_NAME1 have changed sizes.
 +
  PV /dev/mapper/3600a09803831417a5a244f5665797a4d  VG VG_NAME2      lvm2 [<6.00 TiB / <2.00 TiB free]
 +
  Total: 3 [15.53 TiB] / in use: 3 [15.53 TiB] / in no VG: 0 [0  ]
 +
 +
 +
== Related commands ==
 +
* <code>[[lvmdiskscan]]</code>
  
  
 
== See also ==
 
== See also ==
* <code>[[pvs]]</code>
 
* <code>[[lvmdiskscan]]</code>
 
 
* {{Linux block devices}}
 
* {{Linux block devices}}
 
* {{Fibre Channel}}
 
* {{Fibre Channel}}

Latest revision as of 13:01, 29 November 2023

pvscan is a LVM command to list all physical volumes. For scanning for new LUNs use: rescan-scsi-bus.sh

pvscan
 No matching physical volumes found

pvscan -v
   Wiping internal VG cache
   Wiping cache of LVM-capable devices
  No matching physical volumes found


  • pvscan -vvv
  • pvscan --cache
  • pvscan --cache --activate ay 256:10
 pvscan
 PV /dev/sdb2                                       VG VG_NAME1        lvm2 [<446.60 GiB / 32.00 MiB free]
 PV /dev/sdc                                        VG VG_NAME2   lvm2 [<9.10 TiB / 0    free]
 WARNING: Device /dev/mapper/3600a09803831417a5a244f5665797a4d has size of 8804682957 sectors which is smaller than corresponding PV size of 12884901888 sectors. Was device resized?
 One or more devices used as PVs in VG VG_NAME1 have changed sizes.
 PV /dev/mapper/3600a09803831417a5a244f5665797a4d   VG VG_NAME2      lvm2 [<6.00 TiB / <2.00 TiB free]
 Total: 3 [15.53 TiB] / in use: 3 [15.53 TiB] / in no VG: 0 [0   ]


Related commands[edit]


See also[edit]

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

Advertising: