-
Notifications
You must be signed in to change notification settings - Fork 77
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
Wrong assumption about $ROOT_DEV is LVM #53
Comments
This script so far assumes that LVM is being used. If we want it to work on systems which does not use LVM and use partitions directly, it will need to be fixed. |
+1... this affects any RHEL VMs deployed to Azure where LVM is not used by the root device |
@anweiss Are you looking for growing root partition or looking to setup thin pool. If you are looking to setup thin pool, it will fail anyway (in default setup) as there is most likely no free space on root disk. I think best is to add another disk to VM and use that disk to setup lvm thin pool. |
hey @rhvgoyal ...so I get this same error when I attach a disk to the VM and use it to setup the thin pool |
@anweiss Have you tried latest upstream docker-storage-setup. My understanding is that script should give you info message |
@rhvgoyal I have... indeed, it sets up the lvm thin pool, but the docker-storage-setup.service fails to start due to the same error |
@anweiss Can you paste the error. If lvm thin pool has been setup, then script should exit with success instead of failure. Also above code has changed. So I can't understand that how it fails with same error. |
@rhvgoyal sure thing:
This occurs after the script is successfully executed and during initial startup of Docker |
I think this is complaining about that /dev/sdc1 has paritions. lvm thin pool should still work though. Are you depending on service exit status somewhere? One easy workaround is to create a volume group yourself and ask docker-storage-setup to create VG=docker-vg And start docker-storage-setup and it should be fine. |
I think docker is restarting for some reason and forcing restart of docker-storage-setup too. Can you disable Restart=on-failure and replace it with Restart=on-abnormal in docker.service file. This should cut down on restart when docker fails to start form some configuration failure etc. IOW, if your thin pool has been setup once, I think it is there and working and if docker is failing to start, it should be failing to start for some other reason. Do "systemctl status docker -l". Failure exit status of docker-storage-setup is something which can be ignored for this configuration. (Right now it does not have mechanism to keep track of devices it has already processed). |
thanks @rhvgoyal. let me do some digging and report back on this |
@anweiss I think the code you are running might be little old. If you look at upstream code, we detect if device is already part of volume group and in that case we know we partitioned the device in previous run and we only give "INFO" message out.
Otherwise we error out with
|
The problem is in
as
ROOT_DEV
becomes/dev/vda1
which is not LVM, and hence the script breaks.Why is there an assumption that
ROOT_DEV
is LVM?The text was updated successfully, but these errors were encountered: