HI I’m having issues with the lab 15 of the first exam of linux foundation certified sys adming course. In the solution it said that I should put this:
sudo lsof -p <PID> | awk '{print $9}' | while read file; do df $file; done
That gave me the route /dev/vda1, but after that the solution says that I should use pvs so I do :
sudo pvs
which print the following:
PV VG Fmt Attr PSize PFree
/dev/vdd volume0 lvm2 a-- 1020.00m 764.00m
Also sudo pvs -a shows:
PV VG Fmt Attr PSize PFree
/dev/vda1 --- 0 0
/dev/vdb1 --- 0 0
/dev/vdb2 --- 0 0
/dev/vdc --- 0 0
/dev/vdd volume0 lvm2 a-- 1020.00m 764.00m
So I put in the file /dev/vdd in one intent, in the second /dev/vda1, but in both intents the lab throw me that is wrong, this is not the solution. Can somebody clarify me what I’m doing wrong, it seems that in the official answer is something with pvs command that is missing. But not sure to be honest.