Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1095866

Summary: For Btrfs --fsoptions isn't honored during kickstart operations
Product: Red Hat Enterprise Linux 7 Reporter: Dave Kil <dave>
Component: python-blivetAssignee: David Lehman <dlehman>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.0CC: borgan, dave, mkovarik
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: python-blivet-0.61.0.5-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-05 14:06:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
anaconda.log
none
ifcfg.log
none
packaging.log
none
program.log
none
rpm -script.log
none
storage.log none

Description Dave Kil 2014-05-08 17:23:05 UTC
Description of problem:
When using the "part" directive in a kickstart file, --fsoptions isn't honored when used for a Btrfs filesystem.

How reproducible:
Specify valid filesystem options for Btrfs in the kickstart file.

Steps to Reproduce:
Create a valid kickstart file.  For the section specifying the filesystem layout use:
part /boot --fstype="xfs" --size=200 --fsoptions="noatime,discard"
part btrfs.01 --grow --fsoptions="noatime,compress=lzo,autodefrag,discard"
btrfs none --label=rhel --data=single btrfs.01
btrfs / --subvol --name=root rhel

Actual results:
After installation, checkout the resulting fstab file.  The fsoptions will have correctly propagated to the xfs partition but not the Btrfs one.

Expected results:
Anaconda should honor these additional options for Btrfs.  **BONUS**  Provide a way to specify then through the GUI during a non-kickstart installation.

Additional info:
As a workaround, I've been able to do the following with my ks file:
%post
# Fixup btrfs (shouldn't have to do this)
sed -i 's/subvol=/noatime,compress=lzo,autodefrag,discard,subvol=/g' /etc/fstab
mount -o remount /
btrfs filesystem defrag -r -clzo /
%end

There seems to be a similar bug for Fedora 20.  I'm not sure if that classifies this as redundant.  I wanted to make sure this was on the RHEL team's radar.

Comment 2 Brian Lane 2014-05-10 00:29:22 UTC
Please attach the logs from /tmp/*log as individual text/plain attachments, especially the storage.log

Comment 3 Dave Kil 2014-05-12 16:53:08 UTC
Created attachment 894813 [details]
anaconda.log

Comment 4 Dave Kil 2014-05-12 16:53:38 UTC
Created attachment 894814 [details]
ifcfg.log

Comment 5 Dave Kil 2014-05-12 16:54:04 UTC
Created attachment 894815 [details]
packaging.log

Comment 6 Dave Kil 2014-05-12 16:54:28 UTC
Created attachment 894816 [details]
program.log

Comment 7 Dave Kil 2014-05-12 16:54:48 UTC
Created attachment 894817 [details]
rpm -script.log

Comment 8 Dave Kil 2014-05-12 16:55:05 UTC
Created attachment 894818 [details]
storage.log

Comment 16 errata-xmlrpc 2015-03-05 14:06:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-0313.html