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

volume is not mounted after the server failure #59

Open
aston-r opened this issue Oct 31, 2018 · 0 comments
Open

volume is not mounted after the server failure #59

aston-r opened this issue Oct 31, 2018 · 0 comments
Assignees
Labels

Comments

@aston-r
Copy link

aston-r commented Oct 31, 2018

Hi,

$subj. I hoped the issue was fixed in #24, but it is not

STR:
-create volume;

# docker volume inspect jenkins_home
[
    {
        "CreatedAt": "0001-01-01T00:00:00Z",
        "Driver": "lvm",
        "Labels": {},
        "Mountpoint": "/var/lib/docker-lvm-plugin/jenkins_home",
        "Name": "jenkins_home",
        "Options": {
            "size": "5G"
        },
        "Scope": "local"
    }
]

-run a container and use the mentioned volume;
-simulate the system crash(kernel panic, power failure)
-start the server. Here is the lvmCountConfig.json:

# cat /var/lib/docker-lvm-plugin/lvmCountConfig.json
{"jenkins_home":1}

-start docker container;

Actual Result:
-volume is not mounted.

To manually fix the issue I have to edit lvmCountConfig.json(change 1 to 0) and restart docker/docker-lvm-plugin services.

I manually build the docker-lvm-plugin from sources and I have a fix 20c4f26.

It looks like the issue was fixed only for clean reboot, but not for a case when the server crashed due to some reason.

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

No branches or pull requests

2 participants