Difference between revisions of "Pvscan"

From wikieduonline
Jump to navigation Jump to search
Line 5: Line 5:
 
* <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  ]
 +
  
  

Revision as of 11:20, 7 January 2020

pvscan list all physical volumes. For scanning for new LUNs use: rescan-scsi-bus.sh


  • 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   ]


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

Advertising: