Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1694685 - lvm2 metadata daemon blocks shutdown of anaconda after resize within the kickstart file
Summary: lvm2 metadata daemon blocks shutdown of anaconda after resize within the kick...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: anaconda
Version: 7.6
Hardware: x86_64
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Anaconda Maintenance Team
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-01 11:51 UTC by Anthony Hogbin
Modified: 2019-04-03 21:57 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)

Description Anthony Hogbin 2019-04-01 11:51:31 UTC
Description of problem:

 - When using resize of volume after creation in the %post to get around the issue of 20% being reserved for metadata in older versions the metadata daemon does not shutdown cleanly. As such, there is a 90-second delay before the reboot.
 - While this can be worked around for newer releases of, the fact remains it is not behaving as expected.


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


How reproducible:

- Easily reproducible.


Steps to Reproduce:

1. Kickstart creation of volume similar to:
  volgroup vg_system pv.001
  logvol none --fstype="None" --thinpool --name=lv_system_thinpool -- 
  vgname=vg_system --chunksize=64 --size=7688 --metadatasize=16
  logvol / --fstype=ext4 --name=lv_root --vgname=vg_system --size=4096 --thin --poolname=lv_system_thinpool
  logvol /var/lib/rpm --fstype=ext4 --name=lv_var_lib_rpm --vgname=vg_system --size=512 --thin --poolname=lv_system_thinpool --fsoptions=noexec,nosuid,nodev
2. Kickstart %post to then resize this volume:
  lvresize -l +100%FREE vg_system/lv_system_thinpool
3. On completion of install without quiet you will see it timing out to restart.

Actual results:

  [***  ] (1 of 2) A stop job is running for LVM2 metadata daemon (36s / 1min 30s)_
  [***  ] (2 of 2) A stop job is running for anaconda (46s / 1min 30s)_

Expected results:

 - lvm2 metadata daemon shutting down;
 - Machine restarting without delay;
 - Resizing a volume should not cause an issue.

Additional info:

 - Resize required prior to 7.4 due to space reservation: https://access.redhat.com/errata/RHBA-2017:2293


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