Difference between revisions of "Pvscan"
Jump to navigation
Jump to search
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <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> | + | {{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 | pvscan | ||
No matching physical volumes found | No matching physical volumes found | ||
+ | |||
+ | pvscan -v | ||
+ | Wiping internal VG cache | ||
+ | Wiping cache of LVM-capable devices | ||
+ | No matching physical volumes found | ||
Line 17: | Line 22: | ||
Total: 3 [15.53 TiB] / in use: 3 [15.53 TiB] / in no VG: 0 [0 ] | 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 == | ||
− | |||
− | |||
* {{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]
- Block devices:
blkid
(UUID),lshw -class disk
,hwinfo --disk
,udevadm
,rescan-scsi-bus.sh
,LUN
,hdparm
,findfs
, Add a new disk lsblk
,pvscan
lspci
,lsscsi
,smartctl
,fdisk
,parted
,Kpartx
,pvdiplay
,pvs
,udisksctl
,/dev/sd, nvme list
- Fibre Channel: SAN, HBA, LUN, WWN, WWPN, LIF,
rescan-scsi-bus.sh
- LVM: LVM errors LVM scan commands
lkvmetad
, Add a new disk
- 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: