I would like to know the difference between pvscan, vgscan, and lvscan, and when to run what.
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
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
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?
