Bug 1402093 - Docker vg built from ephemeral storage does not activate on boot
Summary: Docker vg built from ephemeral storage does not activate on boot
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: lvm2
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: LVM and device-mapper development team
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks: 1420851
TreeView+ depends on / blocked
 
Reported: 2016-12-06 18:21 UTC by Jake Hunsaker
Modified: 2021-09-08 20:26 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-07-28 03:44:46 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Jake Hunsaker 2016-12-06 18:21:29 UTC
Description of problem:

Customer has reported that when using ephemeral storage from RHOS as the backing vg for docker, the VG does not activate on boot. Looking at https://access.redhat.com/solutions/22545, neither workaround suggested works (_netdev in fstab, etc...) and the bug for that KCS (BZ#1371692) is closed with errata. 

The customer can simply do a 'vgchange -a -y' and boot that in rc.local as a workaround, but ideally we should see why the VG is not activating on boot in the first place.


Version-Release number of selected component (if applicable):
docker-1.10

How reproducible:
Easily for customer, I do not have a RHOSP environment to use to test this with myself.

Steps to Reproduce:
1. Create RHOSP VM with ephemeral storage, using that storage for the backing VG given to docker-storage-setup
2.
3.

Actual results:
VG is not activated on boot, thus docker will not start

Expected results:
VG should activate and docker should start

Additional info:

Comment 2 Daniel Walsh 2016-12-06 20:09:13 UTC
Is this really a docker issue or is this more of an LVM issue?

Comment 3 Vivek Goyal 2016-12-06 21:45:09 UTC
This sounds like an LVM issue if VG does not activate automatically during boot. Or may be it is a setting issue to make sure VG activates during boot automatically.

As of now, docker-storage-setup does not do anything to activate volume group during reboot and it assumes that lvm will take care of activating VG.

Comment 5 Vivek Goyal 2016-12-07 14:40:09 UTC
Is it just the docker volume group which does not activate automatically. Do other volume groups activate.

I suspect this is the issue of system wide (or per volume group) setting in system which decides whether volume group should be activated automatically on boot or not.

Is there a per volume group setting to enable this?

Comment 6 Jake Hunsaker 2016-12-07 14:53:00 UTC
It is just the docker VG that does not activate.

Comment 7 Vivek Goyal 2016-12-07 15:05:16 UTC
What do you mean by ephemeral storage here?

Is that ephemeral storage available after reboot but volume group does not activate?

Comment 8 Jake Hunsaker 2016-12-07 16:53:17 UTC
ephemeral meaning provisioned from storage local to the node instead of one of the OSP storage components.

Correct, storage is available but VG does not activate.

Comment 9 Zdenek Kabelac 2017-02-09 14:22:38 UTC
I'd propose to first make terminology clear.

There is no such thing as 'active' VG. It's ONLY LV which is active.
When there is 'active' LV in VG - we 'may' just call such VG to be active.


So when we talk about 'auto activation' of  DockerVG - what does it exactly means ?

Unsused thin-pool alone is not 'auto-activated' LV.

LVM does auto-activate only 'ThinLV' (from lvm2 POV there is no reason to activate virtually unused thin-pool LV which has transaction-id == 0 in lvm2 metadata).

ThinLV is not used by Docker.

So now - what exactly is not activated ?

Existing  'lvs -a' ?
Wanted  'lvs -a' ?

Comment 11 Peter Rajnoha 2017-02-14 15:11:42 UTC
If you're not using lvmetad, then there's no LVM autoactivation. Make sure you have lvmetad properly configured - check lvmconfig --type current global/use_lvmetad. Based on comment #10, the configuration is wrong - the use_lvmetad is placed incorrectly in the lvm.conf file, however, in this case LVM should fallback to default operation (which is use_lvmetad=1).

Comment 12 Jonathan Earl Brassow 2017-03-08 23:33:37 UTC
Please could you tell us if your issue is resolved after correcting the lvm.conf file?

Comment 13 Jake Hunsaker 2017-04-03 13:54:42 UTC
Customer abandoned the support case after we mentioned the lvm.conf issues. At this point we could probably close as INSUFFICIENT_DATA.

Comment 14 Jonathan Earl Brassow 2017-07-28 03:44:46 UTC
(In reply to Jake Hunsaker from comment #13)
> Customer abandoned the support case after we mentioned the lvm.conf issues.
> At this point we could probably close as INSUFFICIENT_DATA.

ok, will do.


Note You need to log in before you can comment on or make changes to this bug.