I have a Raspberry Pi3 Model B+ that is used as a backup server.
The backup tool is configured to write all data to an external NTFS formatted drive. However, the SD card is constantly accessed (written on and/or read from) as indicated by the flashing green LED (irregular pattern).
How can I find out, which process is causing this?
I tried using
iostat, however that only confirms that the SD card is constantly in use:
tps kB_read/s kB_wrtn/s kB_read kB_wrtn Device 7.59 493.9k 27.0k 41.1G 2.2G mmcblk0 28.16 695.5k 1.4M 57.9G 118.9G sda
(kB_read and kB_wrtn are accumulated values over ~24 hours)
Another tool that I tried is
iotop, but this gives me only information on all processing that are causing IO traffic, but it cannot distinguish between SD card and external NTFS formatted drive.
Processes listed here include:
urbackup(the backup tool, configured to use the external drive as a tmp directory and backup target, backup sources are other PCs on the LAN)
kworker/u8:0+flush-8:0or similar processes which I don't know about
As the SD card is constantly accessed I am worried about it beeing destroyed in the near future.
Any ideas what is causing this or how can find this out?