paradoxxxzero / gnome-shell-system-monitor-applet

Display system informations in gnome shell status bar, such as memory usage, cpu usage, network rates…
GNU General Public License v3.0
1.75k stars 324 forks source link

Pie Disk Usage Monitor not showing 2nd Hard Drive #646

Open brizzbane opened 3 years ago

brizzbane commented 3 years ago

I have searched in issues, and wasn't able to find anything that seemed to address this.

When clicking the monitor, it lists disk space usage in a pie chart. It lists the two partitions of the first disk (/dev/sda):

/ /boot

The second disk (/dev/sdb) which is mounted at /data, is not listed.

fdisk -l

Disk /dev/sda: 447.1 GiB, 480103981056 bytes, 937703088 sectors
Disk model: INTEL SSDSC2BB48
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xa04e8185

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1  *         4096   1050623   1046528   511M fd Linux raid autodetect
/dev/sda2         1050624 936648703 935598080 446.1G fd Linux raid autodetect
/dev/sda3       936648704 937695231   1046528   511M 82 Linux swap / Solaris

Disk /dev/sdb: 447.1 GiB, 480103981056 bytes, 937703088 sectors
Disk model: INTEL SSDSC2BB48
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x87cca484

Device     Boot    Start       End   Sectors   Size Id Type
/dev/sdb1           2048  11536383  11534336   5.5G 82 Linux swap / Solaris
/dev/sdb2       11536384 937701375 926164992 441.6G 83 Linux

Disk /dev/md1: 511 MiB, 535756800 bytes, 1046400 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/md2: 446.1 GiB, 479026151424 bytes, 935597952 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

I'm including next command, because when I searched for past issues, it seems like it may be relevant:

cat /proc/diskstats

   8       0 sda 37976 1299 1880326 10514 11629 15808 552612 4055 0 5852 11844 0 0 0 0
   8       1 sda1 270 3 9414 65 15 3 84 4 0 56 92 0 0 0 0
   8       2 sda2 37526 1296 1859408 10386 10192 15805 552528 3934 0 5792 11656 0 0 0 0
   8       3 sda3 89 0 7024 33 0 0 0 0 0 32 40 0 0 0 0
   8      16 sdb 348 0 21482 98 13393 80 13632712 43139 0 13440 27056 0 0 0 0
   8      17 sdb1 98 0 7096 31 0 0 0 0 0 24 72 0 0 0 0
   8      18 sdb2 159 0 9906 50 13385 80 13632712 43139 0 13420 26988 0 0 0 0
   9       1 md1 240 0 9164 0 18 0 36 0 0 0 0 0 0 0 0
   9       2 md2 39988 0 1858906 0 23926 0 541048 0 0 0 0 0 0 0 0

I am somewhat OCD, so this just kind of bothers me, ha. If anyone has any ideas of what might be going on, I appreciate the help!

I do have to mention, I am kind of doing something funky with RAID. I have no idea if this would cause a problem or not.

The machine is a server, and long story short: I wanted to use space of 2nd drive and not have it be on RAID 1. Support was not very responsive to reformatting server, so I am running RAID 1 with "1 disk" (https://unix.stackexchange.com/a/190271).

Thank you.

brizzbane commented 3 years ago

I just wanted to add to this an observation.

I installed netdata and the partitions /, and /boot both have a Read and Write metric that is monitored.

/data (where I mount /dev/sdb2), does not. So wondering if maybe the issue is just because it is mounted under the root directory, in a folder that is not typically associated with a partition.

I guess I am somewhat surprised that netdata doesn't treat this like / and /boot (each w/Read and Write metrics, and both also being on the same drive). I realize netdata is a completely separate project, but felt like this was worth mentioning.