mirror of https://github.com/docker/docs.git
Fix step required to ensure the logical volume is being monitored
This commit is contained in:
parent
a2230dac45
commit
d48551a495
|
@ -311,16 +311,28 @@ assumes that the Docker daemon is in the `stopped` state.
|
||||||
Logical volume docker/thinpool changed.
|
Logical volume docker/thinpool changed.
|
||||||
```
|
```
|
||||||
|
|
||||||
11. Enable monitoring for logical volumes on your host. Without this step,
|
11. Ensure monitoring of the logical volume is enabled.
|
||||||
automatic extension does not occur even in the presence of the LVM profile.
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo lvs -o+seg_monitor
|
$ sudo lvs -o+seg_monitor
|
||||||
|
|
||||||
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Monitor
|
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Monitor
|
||||||
thinpool docker twi-a-t--- 95.00g 0.00 0.01 monitored
|
thinpool docker twi-a-t--- 95.00g 0.00 0.01 not monitored
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If the output in the `Monitor` column reports, as above, that the volume is
|
||||||
|
`not monitored` then monitoring needs to be explicitly enabled. Without
|
||||||
|
this step, automatic extension of the logical volume will not occur,
|
||||||
|
regardless of any settings in the applied profile.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ sudo lvchange --monitor y docker/thinpool
|
||||||
|
```
|
||||||
|
|
||||||
|
Double check that monitoring is now enabled by running the
|
||||||
|
`sudo lvs -o+seg_monitor` command a second time. The `Monitor` column
|
||||||
|
should now report the logical volume is being `monitored`.
|
||||||
|
|
||||||
12. If you have ever run Docker on this host before, or if `/var/lib/docker/`
|
12. If you have ever run Docker on this host before, or if `/var/lib/docker/`
|
||||||
exists, move it out of the way so that Docker can use the new LVM pool to
|
exists, move it out of the way so that Docker can use the new LVM pool to
|
||||||
store the contents of image and containers.
|
store the contents of image and containers.
|
||||||
|
|
Loading…
Reference in New Issue