Hide Forgot
Description of problem: System console is on a serial port, when anaconda is started from the installer, it reports: ------------------------- Starting installer, one moment... anaconda 21.48.22.86-1 for Red Hat Enterprise Linux 7.3 (pre-release) started. * installation log files are stored in /tmp during the installation * shell is available on TTY2 * when reporting a bug add logs from /tmp as separate text/plain attachments ================================================================================ ================================================================================ VNC Text mode provides a limited set of installation options. It does not offer custom partitioning for full control over the disk layout. Would you like to use VNC mode instead? 1) Start VNC 2) Use text mode Please make your choice from above ['q' to quit | 'c' to continue | 'r' to refresh]: 2 mmap: Invalid argument ================================================================================ ================================================================================ Installation 1) [x] Language settings 2) [!] Time settings (English (United States)) (Timezone is not set.) 3) [!] Installation source 4) [!] Software selection (Processing...) (Processing...) 5) [!] Installation Destination 6) [x] Kdump (No disks selected) (Kdump is enabled) 7) [x] Network configuration 8) [!] Root password (Wired (enP2p1s0f1) connected) (Password is not set.) 9) [!] User creation (No user will be created) Please make your choice from above ['q' to quit | 'b' to begin installation | 'r' to refresh]: ------------------------- Note the "mmap: Invalid argument" that should not be there. Version-Release number of selected component (if applicable): rhel-server-7.3-snapshot-2-aarch64-dvd.iso How reproducible: Everytime it seems. Steps to Reproduce: 1. PXE boot from the .iso files using serial console on Cavium CRB-2S system 2. Observe the message. 3. Actual results: mmap: Invalid argument Expected results: No mmap error messages Additional info: This seems new. I did not see it on rhel-server-7.3-beta-1-aarch64-dvd.iso
Interestingly, I have now noticed the "mmap: Invalid argument" message when running this command: # rpm -i kernel-4.5.0-8.el7.aarch64.rpm I wonder if it is being produced in dracut, which is used to generate the initrd during the kernel installation. This may also be running in the anaconda case too.
Could this be related to bug 1372200 ? It's quite likely that either Anaconda or Dracut are calling udevadm.
Created attachment 1201776 [details] strace output of failing process. Same error message produce from "make zinstall" of kernel build. It appears that /usr/sbin/lvm is producing the message. In the attachment at line 406 we see the failure. and then subsequent error message being emitted to stderr
Moving to 7.5.
Dear LVM team, This older bug report states that on some platforms, an mmap warning is seen during calls to the lvm binary while installing a kernel. It may or may not still be happening in 7.4, and is not critical. This bug requires more information. Jon.
AFAIK - this was selinux bug which has been fixed long time ago. (mmap belong to selinux opened file right above mmap call) IMHO this bug could be safely closed as fixed already (and it's unrelated to lvm2 as lvm2 is not using mmap).
All out of time for 7.4. Moving these bugs over to the Cavium 7.5 tracker for further work and review. --Chris
Hey Zi, According to comment #7, >AFAIK - this was selinux bug which has been fixed long time ago. >(mmap belong to selinux opened file right above mmap call) > >IMHO this bug could be safely closed as fixed already (and it's unrelated to >lvm2 as lvm2 is not using mmap). Red Hat says this bug is fixed. Could you check to see if Cavium agrees? Thanks much.
I just tested this on cav-thunderx2s-cn88xx-02.klab.eng.bos.redhat.com with RHEL-ALT-7.4-RC-1.0 and I did not see the "mmap: Invalid argument" message. https://beaker.engineering.redhat.com/recipes/4374183#installation I think we can close this bug. Here is an excerpt of the transcript of my interactive install: Starting installer, one moment... anaconda 21.48.22.121-1 for Red Hat Enterprise Linux 7.4 started. * installation log files are stored in /tmp during the installation * shell is available on TTY2 * when reporting a bug add logs from /tmp as separate text/plain attachments 13:04:03 Running pre-installation scripts ... 13:04:07 Not asking for VNC because of an automated install Starting automated install . . . . . . . . . . . . . . Checking software selection Generating updated storage configuration storage configuration failed: failed to find a suitable stage1 device ================================================================================ ================================================================================ Installation 1) [x] Language settings 2) [!] Time settings (English (United States)) (Timezone is not set.) 3) [x] Installation source 4) [x] Software selection (NFS server ntap-bos-c01-eng01- (Minimal Install) nfs01b.storage.bos.redhat.com) 6) [x] Kdump 5) [!] Installation Destination (Kdump is enabled) (No disks selected) 8) [!] Root password 7) [x] Network configuration (Password is not set.) (Wired (enP2p1s0f1) connected) 9) [!] User creation (No user will be created) Not enough space in file systems for the current software selection. An additional 1163.22 MiB is needed. Enter 'b' to ignore the warning and attempt to install anyway. Please make your choice from above ['q' to quit | 'b' to begin installation | 'r' to refresh]: 2 ================================================================================ ================================================================================ Time settings Timezone: not set NTP servers: gateway (status: not working) clock01.util.phx2.redhat.com (status: working) clock02.util.phx2.redhat.com (status: working) 1) Set timezone 2) Configure NTP servers Please make your choice from above ['q' to quit | 'c' to continue | 'r' to refresh]: 1 ================================================================================ ================================================================================ Timezone settings Available regions 1) Europe 6) Pacific 10) Arctic 2) Asia 7) Australia 11) US 3) America 8) Atlantic 12) Etc 4) Africa 9) Indian 5) Antarctica Please select the timezone. Use numbers or type names directly [b to region list, q to quit]: 11 ================================================================================ ================================================================================ Timezone settings Available timezones in region US 1) Alaska 4) Eastern 6) Mountain 2) Arizona 5) Hawaii 7) Pacific 3) Central Please select the timezone. Use numbers or type names directly [b to region list, q to quit]: 4 ================================================================================ ================================================================================ Installation 1) [x] Language settings 2) [x] Time settings (English (United States)) (US/Eastern timezone) 3) [x] Installation source 4) [x] Software selection (NFS server ntap-bos-c01-eng01- (Minimal Install) nfs01b.storage.bos.redhat.com) 6) [x] Kdump 5) [!] Installation Destination (Kdump is enabled) (Error checking storage 8) [!] Root password configuration) (Password is not set.) 7) [x] Network configuration (Wired (enP2p1s0f1) connected) 9) [!] User creation (No user will be created) Please make your choice from above ['q' to quit | 'b' to begin installation | 'r' to refresh]: 5 ================================================================================ ================================================================================ Probing storage... Installation Destination [x] 1) WDC WD10EZRX-00D: 931.51 GiB (sda) 1 disk selected; 931.51 GiB capacity; 1718.5 KiB free ... failed to find a suitable stage1 device Please make your choice from above ['q' to quit | 'c' to continue | 'r' to refresh]: c ================================================================================ ================================================================================ Autopartitioning Options [ ] 1) Replace Existing Linux system(s) [ ] 2) Use All Space [x] 3) Use Free Space Installation requires partitioning of your hard drive. Select what space to use for the install target. Please make your choice from above ['q' to quit | 'c' to continue | 'r' to refresh]: 2 ================================================================================ ================================================================================ Autopartitioning Options [ ] 1) Replace Existing Linux system(s) [x] 2) Use All Space [ ] 3) Use Free Space Installation requires partitioning of your hard drive. Select what space to use for the install target. Please make your choice from above ['q' to quit | 'c' to continue | 'r' to refresh]: c ================================================================================ ================================================================================ Partition Scheme Options [ ] 1) Standard Partition [ ] 2) Btrfs [x] 3) LVM [ ] 4) LVM Thin Provisioning Select a partition scheme configuration. Please make your choice from above ['q' to quit | 'c' to continue | 'r' to refresh]: c Generating updated storage configuration Checking storage configuration... ================================================================================ ================================================================================ Installation 1) [x] Language settings 2) [x] Time settings (English (United States)) (US/Eastern timezone) 3) [x] Installation source 4) [x] Software selection (NFS server ntap-bos-c01-eng01- (Minimal Install) nfs01b.storage.bos.redhat.com) 6) [x] Kdump 5) [x] Installation Destination (Kdump is enabled) (Automatic partitioning 8) [!] Root password selected) (Password is not set.) 7) [x] Network configuration (Wired (enP2p1s0f1) connected) 9) [!] User creation (No user will be created) Please make your choice from above ['q' to quit | 'b' to begin installation | 'r' to refresh]: 8 ================================================================================ ================================================================================ Please select new root password. You will have to type it twice. Password: Password (confirm): ================================================================================ ================================================================================ Question The password you have provided is weak: The password fails the dictionary check - it is too simplistic/systematic. Would you like to use it anyway? Please respond 'yes' or 'no': yes ================================================================================ ================================================================================ Installation 1) [x] Language settings 2) [x] Time settings (English (United States)) (US/Eastern timezone) 3) [x] Installation source 4) [x] Software selection (NFS server ntap-bos-c01-eng01- (Minimal Install) nfs01b.storage.bos.redhat.com) 6) [x] Kdump 5) [x] Installation Destination (Kdump is enabled) (Automatic partitioning 8) [x] Root password selected) (Password is set.) 7) [x] Network configuration (Wired (enP2p1s0f1) connected) 9) [ ] User creation (No user will be created) Please make your choice from above ['q' to quit | 'b' to begin installation | 'r' to refresh]: b ================================================================================ ================================================================================ Progress Setting up the installation environment . Creating disklabel on /dev/sda . Creating xfs on /dev/sda2 . Creating lvmpv on /dev/sda3 . Creating swap on /dev/mapper/rhel_cav--thunderx2s--cn88xx--02-swap . Creating xfs on /dev/mapper/rhel_cav--thunderx2s--cn88xx--02-home . Creating xfs on /dev/mapper/rhel_cav--thunderx2s--cn88xx--02-root . Creating efi on /dev/sda1 . Running pre-installation scripts . Starting package installation process Preparing transaction from installation source Installing libgcc (1/326) Installing redhat-release-server (2/326) Installing grub2-common (3/326) Installing setup (4/326) Installing filesystem (5/326) ...
I'm going to close this bug as fixed given my testing above, plus Zdenek's comment 7 regarding SELinux. Feel free to re-open the bug if you still see this problem.