Skip to content
This repository was archived by the owner on Oct 10, 2020. It is now read-only.

Update man pages for atomic storage commands.#918

Closed
shishir-a412ed wants to merge 1 commit intoprojectatomic:masterfrom
shishir-a412ed:man_atomic_storage
Closed

Update man pages for atomic storage commands.#918
shishir-a412ed wants to merge 1 commit intoprojectatomic:masterfrom
shishir-a412ed:man_atomic_storage

Conversation

@shishir-a412ed
Copy link

Signed-off-by: Shishir Mahajan shishir.mahajan@redhat.com

@shishir-a412ed
Copy link
Author

Man pages update for #915.

Ping @rhatdan

on "/var/lib/containers".
Add the mountpath where logical volume for container storage would be mounted to
/etc/sysconfig/docker-storage-setup. E.g. --rootfs="/var/lib/containers". This
will mount "container-root-lv" on "/var/lib/containers".
Copy link
Member

Choose a reason for hiding this comment

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

s/container-root-lv/CONTAINER_ROOT_LV_NAME/g

Add the name of the volume group for the storage pool to
/etc/sysconfig/docker-storage-setup.
E.g atomic storage modify --vgroup=atomicos would add
VG=atomicos to /etc/sysconfig/docker-storage-setup.
Copy link
Member

Choose a reason for hiding this comment

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

All of the examples should be like this.

contains "%" in syntax are acceptable. If value does not contain
"%" it is assumed value is suitable for "lvcreate -L".
Note: You must set --lvname and --rootfs when setting --lvsize.
This would set docker-storage-setup option: CONTAINER_ROOT_LV_SIZE.
Copy link
Member

Choose a reason for hiding this comment

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

+E.g atomic storage modify --llvsize=20%FREE would add
+CONTAINER_ROOT_LV_SIZE=20%FREE to /etc/sysconfig/docker-storage-setup.

@shishir-a412ed
Copy link
Author

@rhatdan PTAL.

**--add-device**
Add block devices to storage pool. This command will expand your devicemapper
Add the block devices names to /etc/sysconfig/docker-storage-setup.
You can then run /usr/bin/docker-storage-setup to add the block devices
Copy link
Member

Choose a reason for hiding this comment

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

You must run ...

/etc/sysconfig/docker-storage-setup.
E.g. atomic storage modify --rootfs="/var/lib/containers"
--lvname="container-root-lv" will add
`CONTAINER_ROOT_LV_MOUNT_PATH="/var/lib/containers"` to
Copy link
Member

Choose a reason for hiding this comment

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

You need to add comtnet about adding container-root-lv also.

"lvcreate -l", then only those values which contains "%" in syntax are acceptable.
If value does not contain "%" it is assumed value is suitable for "lvcreate -L".
E.g. atomic storage modify --rootfs="/var/lib/containers" --lvname="container-root-lv"
--lvsize=20%FREE will add `CONTAINER_ROOT_LV_SIZE=20%FREE` to
Copy link
Member

Choose a reason for hiding this comment

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

Add comment about what container-root-lv will be in the config file.


**--graph**
Root of the docker runtime. atomic will search for either /var/lib/docker or /var/lib/docker-latest, if only one exists, atomic will select it as the default. If both exists or you are running docker with a graph storage at a non default location, you need to pass this flag.
Root of the docker runtime. atomic will search for either /var/lib/docker or
Copy link
Member

Choose a reason for hiding this comment

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

Can you change docker runtime to container runtime.

Signed-off-by: Shishir Mahajan <shishir.mahajan@redhat.com>
@shishir-a412ed
Copy link
Author

@rhatdan PTAL.

@rhatdan
Copy link
Member

rhatdan commented Mar 1, 2017

@rh-atomic-bot r+ d06e64b

@rh-atomic-bot
Copy link

⌛ Testing commit d06e64b with merge 064d6c5...

@rh-atomic-bot
Copy link

☀️ Test successful - status-redhatci
Approved by: rhatdan
Pushing 064d6c5 to master...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants