You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OSFileStore duplicates volumes when docker is installed #438
I referenced #425 to get usable disk space. However, I found an interesting problem with following code: new SystemInfo().getOperatingSystem().getFileSystem().getFileStores()
Following pictures are the results when I run in debug mode in intellij, Please reference #436 for my actual disk info:
As you can see, OSFileStore doesn't count in my sda2,3,4 and8. That makes sense because I didn't mount sda2,3,4, and sda8 is a swap partition. The problem is that sda7 is counted three times! (see item 0,7,8 in above pictures)
Well, the mount info is where OSHI gets its list and the duplicates there explain what happened. The question is what to do about it... should OSHI ignore volumes that it has seen before? Ignore anything in /var?
I don't quite understand what's going on here; is docker overlaying its own drives on top of the existing drive?
Circling back to see what to do about this. Are you fine with OSHI reporting what's in mount even if there are duplicates? Or should OSHI filter out duplicates after seeing them the first time? Or should OSHI ignore /var/lib/docker paths?
Activity
sify21 commentedon Jan 5, 2018
Right now I manually filter out OSFileStores with the same volume value, and then sum up the usable space of the rest. Is that the right path?
dbwiddis commentedon Jan 5, 2018
What is the result of a directory listing of
/proc/self/mountsand/or any of the related CentOSmountcommands?[-]problem with OSFileStore when docker is installed[/-][+]OSFileStore duplicates volumes when docker is installed[/+]sify21 commentedon Jan 5, 2018
/proc/self/mountsfile contains three sda7 items,mount -lshows the same info. See picture below:dbwiddis commentedon Jan 5, 2018
Well, the
mountinfo is where OSHI gets its list and the duplicates there explain what happened. The question is what to do about it... should OSHI ignore volumes that it has seen before? Ignore anything in/var?I don't quite understand what's going on here; is
dockeroverlaying its own drives on top of the existing drive?dbwiddis commentedon Apr 13, 2018
Circling back to see what to do about this. Are you fine with OSHI reporting what's in
mounteven if there are duplicates? Or should OSHI filter out duplicates after seeing them the first time? Or should OSHI ignore/var/lib/dockerpaths?sify21 commentedon Apr 13, 2018
Well I think it's ok to include the duplicates, after all system info also includes them. Right now I'm filtering out them manually
dbwiddis commentedon Apr 13, 2018
OK, I"ll go ahead and close this issue!