pvscan

From wikieduonline
Jump to navigation Jump to search

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: