lsblk -d -o name,rota
Going to use parallel ssh
- SDA is my disk I want to check
- 1 for hard disks and 0 for a SSD
- pssh -i -h ./.pssh_hosts_file_all "cat /sys/block/sda/queue/rotational"
[9] 19:22:21 [SUCCESS] pnode-1
0
[7] 19:22:21 [SUCCESS] pnode-2
0
[4] 19:22:21 [SUCCESS] pnode-3
0
[13] 19:22:21 [SUCCESS] pnode-4
0
[8] 19:22:21 [SUCCESS] pnode-5
0
[1] 19:22:21 [SUCCESS] pnode-6
0
[3] 19:22:21 [SUCCESS] pnode-7
0
[2] 19:22:21 [SUCCESS] pnode-8
0
[11] 19:22:21 [SUCCESS] pnode-9
1
[6] 19:22:21 [SUCCESS] pnode-10
1
[12] 19:22:21 [SUCCESS] pnode-11
1
[5] 19:22:21 [SUCCESS] pnode-12
1
[10] 19:22:21 [SUCCESS] pnode-13
1