Skip to content

Export Mininum Thin Pool Free Space through docker info - #21945

Merged
cpuguy83 merged 1 commit into
moby:masterfrom
rhvgoyal:export-min-free-space
May 3, 2016
Merged

cpuguy83 merged 1 commit into
moby:masterfrom
rhvgoyal:export-min-free-space

Conversation

@rhvgoyal

Copy link
Copy Markdown
Contributor

Right now there is no way to know what's the minimum free space threshold
daemon is applying. It would be good to export it through docker info and
then user knows what's the current value. Also this could be useful to
higher level management tools which can look at this value and setup their
own internal thresholds for image garbage collection etc.

Signed-off-by: Vivek Goyal [email protected]

@rhvgoyal

Copy link
Copy Markdown
Contributor Author

cc @thaJeztah

Comment thread daemon/graphdriver/devmapper/driver.go Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this only relevant if loopback devices are used? If so, perhaps it should only be shown in that case, like line 86 below

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this is relevant for all thin pool. It does not matter if thin pool gets created out of loop devices or regular block devices or if it is an lvm thin pool.

@rhvgoyal

Copy link
Copy Markdown
Contributor Author

@thaJeztah Updated PR. Now output is absolute value. Following is the sample.

docker info

Containers: 5
Images: 2
Server Version: 1.11.0-dev
Storage Driver: devicemapper
Pool Name: docker--vg-docker--pool
Pool Blocksize: 524.3 kB
Base Device Size: 10.74 GB
Backing Filesystem: xfs
Data file:
Metadata file:
Data Space Used: 370.1 MB
Data Space Total: 2.999 GB
Data Space Available: 2.629 GB
Metadata Space Used: 180.2 kB
Metadata Space Total: 8.389 MB
Metadata Space Available: 8.208 MB
Thin Pool Minimum Free Space: 599.8 MB
..
..
..

@thaJeztah

Copy link
Copy Markdown
Member

Thanks! Looking good, I'll move this to code review

@calavera

Copy link
Copy Markdown
Contributor

LGTM

@MHBauer

MHBauer commented Apr 15, 2016

Copy link
Copy Markdown
Contributor

Update to the example in the docs, at docs/userguide/storagedriver/selectadriver.md ?
webpage

@rhvgoyal

Copy link
Copy Markdown
Contributor Author

@MHBauer Will do.

Right now there is no way to know what's the minimum free space threshold
daemon is applying. It would be good to export it through docker info and
then user knows what's the current value. Also this could be useful to
higher level management tools which can look at this value and setup their
own internal thresholds for image garbage collection etc.

Signed-off-by: Vivek Goyal <[email protected]>
@rhvgoyal
rhvgoyal force-pushed the export-min-free-space branch from 9f3e6e9 to 55a9b81 Compare April 21, 2016 15:43
@rhvgoyal

Copy link
Copy Markdown
Contributor Author

@MHBauer Updated the patch with update to the example in doc. PTAL.

@MHBauer

MHBauer commented Apr 21, 2016

Copy link
Copy Markdown
Contributor

LGTM

@thaJeztah thaJeztah added this to the 1.12.0 milestone Apr 21, 2016
@cpuguy83

cpuguy83 commented May 3, 2016

Copy link
Copy Markdown
Member

LGTM

@cpuguy83
cpuguy83 merged commit 227c838 into moby:master May 3, 2016
liusdu pushed a commit to liusdu/moby that referenced this pull request Oct 30, 2017
Right now there is no way to know what's the minimum free space threshold
daemon is applying. It would be good to export it through docker info and
then user knows what's the current value. Also this could be useful to
higher level management tools which can look at this value and setup their
own internal thresholds for image garbage collection etc.

Signed-off-by: Vivek Goyal <[email protected]>
Signed-off-by: Wentao Zhang <[email protected]>
Cherry-picked from moby#21945
liusdu pushed a commit to liusdu/moby that referenced this pull request Oct 30, 2017
Cherry pick devmapper relative commits from master branch

Merge 5 commits:

<a href="/docker/docker/commit/4f0017b9ad7dfa2e9dcdee69d000b98595893e60" data-original="4f0017b9" data-project="7713" data-commit="4f0017b9ad7dfa2e9dcdee69d000b98595893e60" data-reference-type="commit" title="Commit: Vivek Goyal - devmapper: Provide a knob dm.xfs_nospace_max_retries" class="gfm gfm-commit">4f0017b9</a>     <a href="moby#26212" rel="nofollow noreferrer" target="_blank">https://github.com/docker/docker/pull/26212</a><br>
<a href="/docker/docker/commit/55a9b8123d7e89692b5c25c846cf6707a8ce463a" data-original="55a9b812" data-project="7713" data-commit="55a9b8123d7e89692b5c25c846cf6707a8ce463a" data-reference-type="commit" title="Commit: Vivek Goyal - Export Mininum Thin Pool Free Space through docker info" class="gfm gfm-commit">55a9b812</a>     <a href="moby#21945" rel="nofollow noreferrer" target="_blank">https://github.com/docker/docker/pull/21945</a><br>
288f933     <a href="moby#28500" rel="nofollow noreferrer" target="_blank">https://github.com/docker/docker/pull/28500</a><br>
 


d4a2bcc  moby#23974

6cc55dd  moby#26378  
41c6083   moby#26918  






Signed-off-by: Wentao Zhang <a href="mailto:[email protected]">[email protected]</a>


See merge request docker/docker!281
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants