Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On aws with nvme the script always adds after reboot wrong disk on lvm #278

Open
cristifalcas opened this issue Oct 25, 2018 · 1 comment

Comments

@cristifalcas
Copy link

On m5 instances, with nvme:

  • configure docker-storage-setup with the real disk name (nvme1n1 in this case)
  • run container-storage-setup. Everything is fine for now
  • add more ebs voluyme to instance
  • reboot instance
  • now another disk is nvme1n1, and the original one is, for example, nvme5n1
  • container-storage-setup adds the new disk also to the lvm, by wiping the disk completely. Of course, all data is lost now on that disk
# cat /etc/sysconfig/docker-storage-setup
DEVS=nvme1n1
GROWPART=true
ROOT_SIZE=+100%FREE
STORAGE_DRIVER=overlay2
VG=docker
CONTAINER_ROOT_LV_NAME=pool00
CONTAINER_ROOT_LV_SIZE=100%FREE
CONTAINER_ROOT_LV_MOUNT_PATH=/var/lib/docker
POOL_META_SIZE=1G
WIPE_SIGNATURES=true
EXTRA_STORAGE_OPTIONS="--storage-opt overlay2.size=20G"

Is there any way to resolve this?

@npoyant
Copy link

npoyant commented Aug 7, 2019

problem still exists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants