I am using lsblk command to get the device names on linux servers. However, I want to find the command that will help me scan the devices and store the results in an array only for devices that are available for LVM
Right now, I am using
lsblk -o NAME,TYPE,MOUNTPOINT | grep disk | awk '{print $1}'
However, this prints all the devices that are available and busy.