Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-72000

[IPU 8 -> 9] can not boot successful after run storage role

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-8.10
    • leapp-repository
    • No
    • None
    • rhel-system-roles
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      What is the impact of this issue to you?

      Please provide the package NVR for which the bug is seen:

      How reproducible is this bug?:

      Steps to reproduce

      1. install 8.10 and upgrade to rhel-9.6
      2.  run storage role tests
      3. reboot and check

       

      how to run storage role

      1. git clone https://github.com/linux-system-roles/storage.git
      2. echo "localhost  ansible_connection=local ha_cluster_enable_repos=False" > host
      3. ansible-playbook -vv -i host $playbook

      Expected results

      boot successful after reboot

      Actual results

      boot failed

      https://beaker.engineering.redhat.com/recipes/17742180#task188862923,task188862930,task188862931

       

      http://lab-04.rhts.eng.pek2.redhat.com/beaker/logs/tasks/188862+/188862930/taskout.log

       

      before storage role testing 

      [INFO][03:19:10]running ./main.sh
      Linux smicro-s110p-01.lab.eng.pek2.redhat.com 5.14.0-542.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Dec 11 13:23:19 EST 2024 x86_64 x86_64 x86_64 GNU/Linux
      BOOT_IMAGE=(hd0,gpt2)/vmlinuz-5.14.0-542.el9.x86_64 root=/dev/mapper/rhel_smicro--s110p--01-root ro loglevel=5 sysctl.kernel.io_uring_disabled=0 resume=/dev/mapper/rhel_smicro--s110p--01-swap rd.lvm.lv=rhel_smicro-s110p-01/root rd.lvm.lv=rhel_smicro-s110p-01/swap ipv6.disable=1 console=ttyS1,115200 crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.naming-scheme=rhel-8.0 selinux=0
      [PASS][03:19:10][smicro-s110p-01.lab.eng.pek2.redhat.com]lvs
      STDOUT:
        LV   VG                   Attr       LSize    Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
        home rhel_smicro-s110p-01 -wi-ao---- <344.23g                                                    
        root rhel_smicro-s110p-01 -wi-ao----   70.00g                                                    
        swap rhel_smicro-s110p-01 -wi-ao----  <31.32g                                                    
      STDERR:
      RETURN:0 

      after storage role testing  can not find any lvm

      [PASS][03:26:19][smicro-s110p-01.lab.eng.pek2.redhat.com]lvs
      STDOUT:
      STDERR:
      RETURN:0
      
      [PASS][03:26:19][smicro-s110p-01.lab.eng.pek2.redhat.com]vgs
      STDOUT:
      STDERR:
      RETURN:0
      
      [PASS][03:26:19][smicro-s110p-01.lab.eng.pek2.redhat.com]pvs
      STDOUT:
      STDERR:
      RETURN:0 

      looks the lv  /dev/mapper/rhel_smicro-s110p-01-home  don't find in system, and it 's still in fstable, so the boot process will block.

       

      [root@smicro-s110p-01 ~]# cat /etc/fstab #
      # /etc/fstab
      # Created by anaconda on Sat Dec 21 04:46:20 2024
      #
      # Accessible filesystems, by reference, are maintained under '/dev/disk/'.
      # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
      #
      # After editing this file, run 'systemctl daemon-reload' to update systemd
      # units generated from this file.
      #
      /dev/mapper/rhel_smicro--s110p--01-root /                       xfs     defaults        0 0
      UUID=a955daa5-e7cd-4600-b5a5-6246a8b45662 /boot                   xfs     defaults        0 0
      UUID=81A0-A0B3          /boot/efi               vfat    umask=0077,shortname=winnt 0 2
      /dev/mapper/rhel_smicro--s110p--01-home /home                   xfs     defaults        0 0
      /dev/mapper/rhel_smicro--s110p--01-swap none                    swap    defaults        0 0
      
      [root@smicro-s110p-01 ~]#
      [root@smicro-s110p-01 ~]# lsblk
      NAME                            MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
      sda                               8:0    0 447.1G  0 disk 
      ├─sda1                            8:1    0   600M  0 part /boot/efi
      ├─sda2                            8:2    0     1G  0 part /boot
      └─sda3                            8:3    0 445.5G  0 part 
        ├─rhel_smicro--s110p--01-root 253:0    0    70G  0 lvm  /
        └─rhel_smicro--s110p--01-swap 253:1    0  31.3G  0 lvm  [SWAP]
      nvme0n1                         259:0    0 931.5G  0 disk 
      nvme1n1                         259:1    0 931.5G  0 disk 
      nvme3n1                         259:2    0 931.5G  0 disk 
      nvme2n1                         259:3    0 931.5G  0 disk 
      nvme5n1                         259:4    0 931.5G  0 disk 
      nvme4n1                         259:5    0 931.5G  0 disk 
      [root@smicro-s110p-01 ~]# 

      when remove the /home mount info from fstable, then will boot successful .

      but the testing don't the /home volume, so not sure what's wrong here.

      [root@smicro-s110p-01 ~]# cat /etc/fstab #
      # /etc/fstab
      # Created by anaconda on Sat Dec 21 04:46:20 2024
      #
      # Accessible filesystems, by reference, are maintained under '/dev/disk/'.
      # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
      #
      # After editing this file, run 'systemctl daemon-reload' to update systemd
      # units generated from this file.
      #
      /dev/mapper/rhel_smicro--s110p--01-root /                       xfs     defaults        0 0
      UUID=a955daa5-e7cd-4600-b5a5-6246a8b45662 /boot                   xfs     defaults        0 0
      UUID=81A0-A0B3          /boot/efi               vfat    umask=0077,shortname=winnt 0 2
      #/dev/mapper/rhel_smicro--s110p--01-home /home                   xfs     defaults        0 0
      /dev/mapper/rhel_smicro--s110p--01-swap none                    swap    defaults        0 0
      [root@smicro-s110p-01 ~]#
      [root@smicro-s110p-01 ~]# sudo systemctl status  lvm2-monitor
      ● lvm2-monitor.service - Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
           Loaded: loaded (/usr/lib/systemd/system/lvm2-monitor.service; enabled; preset: enabled)
           Active: active (exited) since Sat 2024-12-21 04:35:25 EST; 20min ago
             Docs: man:dmeventd(8)
                   man:lvcreate(8)
                   man:lvchange(8)
                   man:vgchange(8)
          Process: 975 ExecStart=/usr/sbin/lvm vgchange --monitor y (code=exited, status=0/SUCCESS)
         Main PID: 975 (code=exited, status=0/SUCCESS)
              CPU: 5msDec 21 04:35:25 smicro-s110p-01.lab.eng.pek2.redhat.com systemd[1]: Finished Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or >
      [root@smicro-s110p-01 ~]# 

       

              Unassigned Unassigned
              guazhang@redhat.com Guangwu Zhang
              Petr Stodulka Petr Stodulka
              RHEL Upgrades QE Team RHEL Upgrades QE Team
              Miriam Portman Miriam Portman
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: