VMware Cloud Community
hotmnj
Contributor
Contributor
Jump to solution

When to pvscan/vgscan/lvscan

I would like to know the difference between pvscan, vgscan, and lvscan, and when to run what.

Reply
0 Kudos
1 Solution

Accepted Solutions
mark24
Enthusiast
Enthusiast
Jump to solution

pvscan - scan all disks for physical volumes

vgscan - scan all disk for volume group and build /etc/lvmtab and /etc/lvmtab.d/* which are the databse for all other lvm commands

lvscan - scan (all disks) for logical volumes

Best regards,

Mark Ramos VCP 3&4

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful Best regards, Mark Ramos VCP 3&4

View solution in original post

Reply
0 Kudos
2 Replies
mark24
Enthusiast
Enthusiast
Jump to solution

pvscan - scan all disks for physical volumes

vgscan - scan all disk for volume group and build /etc/lvmtab and /etc/lvmtab.d/* which are the databse for all other lvm commands

lvscan - scan (all disks) for logical volumes

Best regards,

Mark Ramos VCP 3&4

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful Best regards, Mark Ramos VCP 3&4
Reply
0 Kudos
hotmnj
Contributor
Contributor
Jump to solution

Thanks for the clarification. So, if I get a new SAN device allocated to a VM, I need to run just the pvscan and then I can create a volume group on it. And if the same device is assigned to another VM as well, for failover purposes, then I need run pvscan and then vgscan on the other Correct?

Reply
0 Kudos