OK at this moment I'm thinking hdparm and smartmontools just need to
go on the ISO, along with iotop.
While both hdparm and smartmontools appear to work OK in a container
with --privileges=true, any hardware changes are not reflected in that
container in a way these two programs can see.
[root@3d2386bbd250 /]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
|-sda1 8:1 0 200M 0 part
|-sda2 8:2 0 500G 0 part /etc/hosts
|-sda3 8:3 0 500M 0 part
|-sda4 8:4 0 426.5G 0 part
`-sda5 8:5 0 4.3G 0 part [SWAP]
**plug in some drives***
[root@3d2386bbd250 /]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
|-sda1 8:1 0 200M 0 part
|-sda2 8:2 0 500G 0 part /etc/hosts
|-sda3 8:3 0 500M 0 part
|-sda4 8:4 0 426.5G 0 part
`-sda5 8:5 0 4.3G 0 part [SWAP]
sdb 8:16 0 698.7G 0 disk
sdc 8:32 0 465.8G 0 disk
sdd 8:48 0 698.7G 0 disk
sde 8:64 0 465.8G 0 disk
[root@3d2386bbd250 /]# hdparm -I /dev/sdb
/dev/sdb: No such file or directory
[root@3d2386bbd250 /]# hdparm -I /dev/sdc
/dev/sdc: No such file or directory
[root@3d2386bbd250 /]# hdparm -I /dev/sdd
/dev/sdd: No such file or directory
[root@3d2386bbd250 /]# hdparm -I /dev/sde
/dev/sde: No such file or directory
[root@3d2386bbd250 /]# smartctl -a /dev/sde
smartctl 6.4 2015-06-04 r4109 [x86_64-linux-4.2.6-301.fc23.x86_64] (local build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke,
www.smartmontools.org
Smartctl open device: /dev/sde [SAT] failed: No such device
Maybe lsblk, by virtue of libblkid, gets some state update for free, I
don't know. Clearly that's not the case for hdparm and smartctl, and
therefore I have to restart the container or start a new one for the
change to be visible to these tools. If I replace or add drives, will
I need to restart the container running smartd? If yes, that'd kinda
be a regression. Maybe I'm doing something wrong, but at the moment
I'm not groking the advantage of running these tools in a container.
Chris Murphy