mirror of https://github.com/docker/docs.git
Merge pull request #113 from mbentley/fix-devicemapper-docs
Fixed jekyll formatting for dm docs; fixed #112
This commit is contained in:
commit
1357a4486d
|
@ -223,6 +223,7 @@ assumes that the Docker daemon is in the `stopped` state.
|
||||||
1. Log in to the Docker host you want to configure and stop the Docker daemon.
|
1. Log in to the Docker host you want to configure and stop the Docker daemon.
|
||||||
|
|
||||||
2. Install the LVM2 package.
|
2. Install the LVM2 package.
|
||||||
|
|
||||||
The LVM2 package includes the userspace toolset that provides logical volume
|
The LVM2 package includes the userspace toolset that provides logical volume
|
||||||
management facilities on linux.
|
management facilities on linux.
|
||||||
|
|
||||||
|
@ -261,7 +262,7 @@ assumes that the Docker daemon is in the `stopped` state.
|
||||||
$ vi /etc/lvm/profile/docker-thinpool.profile
|
$ vi /etc/lvm/profile/docker-thinpool.profile
|
||||||
```
|
```
|
||||||
|
|
||||||
8. Specify 'thin_pool_autoextend_threshold' value.
|
8. Specify `thin_pool_autoextend_threshold` value.
|
||||||
|
|
||||||
The value should be the percentage of space used before `lvm` attempts
|
The value should be the percentage of space used before `lvm` attempts
|
||||||
to autoextend the available space (100 = disabled).
|
to autoextend the available space (100 = disabled).
|
||||||
|
@ -493,7 +494,7 @@ The `Data Space` values show that the pool is 100GB total. This example extends
|
||||||
|
|
||||||
5. Reload devicemapper thin pool.
|
5. Reload devicemapper thin pool.
|
||||||
|
|
||||||
a. Get the pool name first.
|
1. Get the pool name first.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo dmsetup status | grep pool
|
$ sudo dmsetup status | grep pool
|
||||||
|
@ -504,7 +505,7 @@ The `Data Space` values show that the pool is 100GB total. This example extends
|
||||||
|
|
||||||
The name is the string before the colon.
|
The name is the string before the colon.
|
||||||
|
|
||||||
b. Dump the device mapper table first.
|
2. Dump the device mapper table first.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo dmsetup table docker-8:1-123141-pool
|
$ sudo dmsetup table docker-8:1-123141-pool
|
||||||
|
@ -512,14 +513,14 @@ The `Data Space` values show that the pool is 100GB total. This example extends
|
||||||
0 209715200 thin-pool 7:1 7:0 128 32768 1 skip_block_zeroing
|
0 209715200 thin-pool 7:1 7:0 128 32768 1 skip_block_zeroing
|
||||||
```
|
```
|
||||||
|
|
||||||
c. Calculate the real total sectors of the thin pool now.
|
3. Calculate the real total sectors of the thin pool now.
|
||||||
|
|
||||||
Change the second number of the table info (i.e. the disk end sector) to
|
Change the second number of the table info (i.e. the disk end sector) to
|
||||||
reflect the new number of 512 byte sectors in the disk. For example, as the
|
reflect the new number of 512 byte sectors in the disk. For example, as the
|
||||||
new loop size is 200GB, change the second number to 419430400.
|
new loop size is 200GB, change the second number to 419430400.
|
||||||
|
|
||||||
|
|
||||||
d. Reload the thin pool with the new sector number
|
4. Reload the thin pool with the new sector number
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo dmsetup suspend docker-8:1-123141-pool \
|
$ sudo dmsetup suspend docker-8:1-123141-pool \
|
||||||
|
@ -567,7 +568,7 @@ disk partition.
|
||||||
|
|
||||||
3. Reload devicemapper thin pool.
|
3. Reload devicemapper thin pool.
|
||||||
|
|
||||||
a. Get the pool name.
|
1. Get the pool name.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo dmsetup status | grep pool
|
$ sudo dmsetup status | grep pool
|
||||||
|
@ -577,7 +578,7 @@ disk partition.
|
||||||
|
|
||||||
The name is the string before the colon.
|
The name is the string before the colon.
|
||||||
|
|
||||||
b. Dump the device mapper table.
|
2. Dump the device mapper table.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo dmsetup table docker-253:17-1835016-pool
|
$ sudo dmsetup table docker-253:17-1835016-pool
|
||||||
|
@ -585,7 +586,7 @@ disk partition.
|
||||||
0 96460800 thin-pool 252:0 252:1 128 32768 1 skip_block_zeroing
|
0 96460800 thin-pool 252:0 252:1 128 32768 1 skip_block_zeroing
|
||||||
```
|
```
|
||||||
|
|
||||||
c. Calculate the real total sectors of the thin pool now. we can use `blockdev` to get the real size of data lv.
|
3. Calculate the real total sectors of the thin pool now. we can use `blockdev` to get the real size of data lv.
|
||||||
|
|
||||||
Change the second number of the table info (i.e. the number of sectors) to
|
Change the second number of the table info (i.e. the number of sectors) to
|
||||||
reflect the new number of 512 byte sectors in the disk. For example, as the
|
reflect the new number of 512 byte sectors in the disk. For example, as the
|
||||||
|
@ -598,11 +599,12 @@ disk partition.
|
||||||
264132100096
|
264132100096
|
||||||
```
|
```
|
||||||
|
|
||||||
d. Then reload the thin pool with the new sector number.
|
4. Then reload the thin pool with the new sector number.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo dmsetup suspend docker-253:17-1835016-pool \
|
$ sudo dmsetup suspend docker-253:17-1835016-pool \
|
||||||
&& sudo dmsetup reload docker-253:17-1835016-pool --table '0 515883008 thin-pool 252:0 252:1 128 32768 1 skip_block_zeroing' \
|
&& sudo dmsetup reload docker-253:17-1835016-pool \
|
||||||
|
--table '0 515883008 thin-pool 252:0 252:1 128 32768 1 skip_block_zeroing' \
|
||||||
&& sudo dmsetup resume docker-253:17-1835016-pool
|
&& sudo dmsetup resume docker-253:17-1835016-pool
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue