Bug 1459623
| Summary: | Allow /var to be a mount point | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Colin Walters <walters> | |
| Component: | anaconda | Assignee: | Anaconda Maintenance Team <anaconda-maint-list> | |
| Status: | CLOSED ERRATA | QA Contact: | Release Test Team <release-test-team-automation> | |
| Severity: | medium | Docs Contact: | Petr Bokoc <pbokoc> | |
| Priority: | high | |||
| Version: | 7.5 | CC: | ajia, anaconda-maint-list, atomic-bugs, bbreard, dornelas, jamills, jscalf, jstodola, ljozsa, lmiksik, miabbott, myllynen, ovasik, pbokoc, pkotvan, rvykydal, sbonazzo, sbueno, sgaikwad, subhendu.ghosh, walters | |
| Target Milestone: | rc | |||
| Target Release: | 7.4 | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | anaconda-21.48.22.122-1 | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | 1098303 | |||
| : | 1488435 (view as bug list) | Environment: | ||
| Last Closed: | 2018-04-10 08:47:43 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: | ||||
| Bug Depends On: | 1098303 | |||
| Bug Blocks: | 1147383, 1186913, 1420851, 1478303, 1494728 | |||
|
Comment 10
Colin Walters
2017-07-28 14:42:33 UTC
The 'rhel-atomic-installer-7.4.2-1.x86_64.iso' that is available from access.redhat.com can be used to successfully install a RHELAH system with /var as a separate mount point. I installed a VM using local libvirt stack:
# rpm-ostree status
State: idle
Deployments:
● rhel-atomic-host-ostree:rhel-atomic-host/7/x86_64/standard
Version: 7.4.2 (2017-10-17 02:47:56)
Commit: 2eceacd73c4de494ff3f90448467934614cf9f72cb316693db2cad47bd79015e
GPGSignature: Valid signature by 567E347AD0044ADE55BA8A5F199E2F91FD431D51
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sr0 11:0 1 1024M 0 rom
vda 252:0 0 9.1G 0 disk
├─vda1 252:1 0 500M 0 part /boot
└─vda2 252:2 0 8.6G 0 part
├─rhelah-root 253:0 0 4.6G 0 lvm /sysroot
└─rhelah-var 253:1 0 4G 0 lvm /var
loop0 7:0 0 100G 0 loop
└─docker-253:1-6291557-pool 253:2 0 100G 0 dm
loop1 7:1 0 2G 0 loop
└─docker-253:1-6291557-pool 253:2 0 100G 0 dm
# cat /root/anaconda-ks.cfg
#version=DEVEL
# System authorization information auth --enableshadow --passalgo=sha512 # OSTree setup
ostreesetup --osname="rhel-atomic-host" --remote="rhel-atomic-host-ostree" --url="file:///install/ostree" --ref="rhel-atomic-host/7/x86_64/standard" --nogpg
# Use graphical install
graphical
# Run the Setup Agent on first boot
firstboot --enable
ignoredisk --only-use=vda
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'
# System language
lang en_US.UTF-8
# Network information
network --bootproto=dhcp --device=eth0 --ipv6=auto --no-activate
network --hostname=localhost.localdomain
# Root password
rootpw --iscrypted <redacted>
# System services
services --disabled="cloud-init,cloud-config,cloud-final,cloud-init-local" --enabled="chronyd"
# System timezone
timezone America/New_York --isUtc
user --groups=wheel --name=cloud-user --password=<redacted> --iscrypted --gecos="Cloud User"
# System bootloader configuration
bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=vda
# Partition clearing information
clearpart --none --initlabel
# Disk partitioning information
part pv.339 --fstype="lvmpv" --ondisk=vda --size=8817
part /boot --fstype="xfs" --ondisk=vda --size=500
volgroup rhelah --pesize=4096 pv.339
logvol / --fstype="xfs" --size=4718 --name=root --vgname=rhelah
logvol /var --fstype="xfs" --size=4096 --name=var --vgname=rhelah
%post --erroronfail
cp /etc/skel/.bash* /var/roothome
fn=/etc/ostree/remotes.d/rhel-atomic-host-ostree.conf; if test -f ${fn} && grep -q -e '^url=file:///install/ostree' ${fn}; then rm ${fn}; fi
%end
%post --erroronfail
# NOTE: This change only applies to 7.4 content; if building 7.3,
# you'll need an older spin-kickstarts. More information in
# https://trello.com/c/7N8t3fuY/593-3-tweak-rhelah-build-process-for-new-subman-and-verify
# and https://github.com/candlepin/subscription-manager/pull/1519
# This is the canonical version - if changing this, remember
# to update the copies in the cloud/vagrant kickstarts too.
#
# Yes, this is base64 encoded to avoid quoting issues; this
# gets embedded in a lorax template which is interpreting shell. If you
# need to fix it, just copy/paste the command line to get a base64 decoded
# version.
echo W3JlbW90ZSAicmhlbC1hdG9taWMtaG9zdC1vc3RyZWUiXQojIFRoaXMgcmVtb3RlIGNvbmZpZ3VyYXRpb24gaXMganVzdCBhIHN0dWI7IHVzZSBzdWJzY3JpcHRpb24tbWFuYWdlciBvcgojIGEgbG9jYWwgbWlycm9yIG9mIHRoZSByZXBvc2l0b3J5Lgp1cmw9ZmlsZTovLy
9pbnN0YWxsL29zdHJlZS9yZXBvCnVuY29uZmlndXJlZC1zdGF0ZT1UaGlzIHN5c3RlbSBpcyBub3QgcmVnaXN0ZXJlZCB0byBSZWQgSGF0IFN1YnNjcmlwdGlvbiBNYW5hZ2VtZW50LiBZb3UgY2FuIHVzZSBzdWJzY3JpcHRpb24tbWFuYWdlciB0byByZWdpc3Rlci4K | base64
-d > /etc/ostree/remotes.d/redhat.conf
%end
%packages
chrony
kexec-tools
%end
%addon com_redhat_kdump --enable --reserve-mb='auto'
%end
%anaconda
pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty
pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok
pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty
%end
I'm not really sure how to determine the version of 'anaconda' in the ISO, but this looks VERIFIED to me.
It's failed to install rhel-atomic-installer-7.5.0-1.x86_64.iso by virt-manager, and I got the error as follows, it blocks me to do further testing. <err> The following error occurred while installing. This is a fatal error and installation will be aborted. ostree ['admin', '--sysroot=/mnt/sysimage', 'init-fs', '/mnt/sysimage'] exited with code 1 </err> BTW, I created a separated partition for /var and /boot. @Alex, we've encountered some serious problems using 'rpm-ostree' and the 7.5 kernel. I wouldn't be surprised if the 7.5 installer issues you are seeing are related. See the following: https://bugzilla.redhat.com/show_bug.cgi?id=1428677#c17 https://bugzilla.redhat.com/show_bug.cgi?id=1523319#c11526864 (Also, I just realized this BZ is about 7.5, so my comment #22 is only partially relevant.) (In reply to Micah Abbott from comment #24) > See the following: > > https://bugzilla.redhat.com/show_bug.cgi?id=1428677#c17 > > https://bugzilla.redhat.com/show_bug.cgi?id=1523319#c11526864 > > > (Also, I just realized this BZ is about 7.5, so my comment #22 is only > partially relevant.) Thanks Micah, good to know this. Colin, hi, I'm trying to determine if this needs documentation in RHEL 7.5 release notes. Can you describe the changes you made here (well, in the clone bug)? The summary implies that anaconda didn't let you create a separate mntpoint for /var but I just checked and it does allow you to do that in 7.4, so I'm a bit lost. Is this just something specific to Atomic that doesn't have a noticeable impact on base RHEL 7.5? Thanks, Petr Hi Petr. This change only applies to Atomic Host. 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://access.redhat.com/errata/RHBA-2018:0671 |