Skip to content

volume is not mounted after the server failure #59

@aston-r

Description

@aston-r

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.

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions