LFCS_Mock_Exam 1

I have some doubt regarding this question:

Q. 15

Task
On node01 two processes are overusing our storage device. One is executing a lot of I/O operations per second (small data transfers, but a very large number of such transfers).
Otherwise said, the process has a high tps/IOPS. The other process is reading very large volumes of data.

Identify the process with the high tps. What partition is it using? Create the file /opt/devname.txtand write the device name of that partition inside that file.
For example, if it’s using /dev/vde5, you would simply write /dev/vde5 on a single line in that file. Note that there might be some abstractions behind this, and we’re not interested in device mapper names, but rather, the real device the mapper is using.

Identify the process with the high read transfer rate/second. Create the file /opt/highread.pid and write the PID number of that process in that file. For example, if the PID is 3886 you just write 3886 in that file (only the number, on a single line).

Credentials to access node01:
Name: bob
Password: caleston123

Base on this approach: “sudo lsof -p 9839 | awk ‘{print $9}’ | while read file; do df $file; done” the device name should be “/dev/vda1”. But this answer is not correct according to the system checking. I don’t know why the system is expecting “/dev/vdb1”. please i need more clarification to avoid any confusion.

Same issue, I assume the check for “Is the device name stored in /opt/devname.txt?” is wrong. Possibly because we added two disks in Question 13.

I also cant understand the answer to the first part of Q.15 on mock exam 1.

I used iostat -p -d to check which partition had the highest tps, and this points to /dev/vda1, which is also the answer I put in the /opt/devname.txt

this is, however, not accepted as the correct answer.

I checked the solution, which used a different method, but the answer still points to the same partition…

Btw, I’m not sure on why the process id was involved in this question… We are not interested in what process is doing the writing, we are interested in what partition is being written to…