Announcement

Collapse
No announcement yet.

Kernel problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Miguel Varela
    replied
    Originally posted by maromania View Post
    Problem fixed by installing the new kernel.
    Thank you
    Hey!

    That's fantastic news!


    Have a great week ahead :-)

    Leave a comment:


  • maromania
    replied
    Problem fixed by installing the new kernel.
    Thank you

    Leave a comment:


  • Miguel Varela
    replied
    Originally posted by maromania View Post
    Code:
    grub2-set-default 1
    /usr/bin/grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such fileor directory.
    How to fix this error please ?​​
    Should exist, but we'd need to check this, as something else may be playing here, for example, the EFI folders that should exist assuming you're running EFI et al.

    Leave a comment:


  • maromania
    replied
    Code:
    grub2-set-default 1
    /usr/bin/grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such fileor directory.
    How to fix this error please ?​​

    Leave a comment:


  • Miguel Varela
    replied
    Originally posted by maromania View Post
    Code:
    [root@omega ~]# grub2-mkconfig -o /etc/grub2.cfg
    Generating grub configuration file ...
    /usr/bin/grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such fileor directory.
    [root@omega ~]# grub2-mkconfig -o /etc/grub2-efi.cfg
    Generating grub configuration file ...
    /usr/bin/grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such fileor directory.
    [root@omega ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
    Generating grub configuration file ...
    /usr/bin/grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such fileor directory.
    [root@omega ~]# grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg​
    /sbin/grub2-mkconfig: line 274: /boot/efi/EFI/centos/grub.cfg​.new: No such file or directory
    [root@omega ~]#
    Code:
    ​[root@omega ~]# rsync -avP /boot/efi/EFI/centos/ /boot/efi/EFI/almalinux/
    sending incremental file list
    rsync: change_dir "/boot/efi/EFI/centos" failed: No such file or directory (2)
    
    sent 20 bytes received 12 bytes 64.00 bytes/sec
    total size is 0 speedup is 0.00
    rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1189) [sender=3.1.3]
    [root@omega ~]# grubby --set-default /boot/vmlinuz-4.18.0-477.13.1.lve.1.el8.x86_64
    grep: /boot/grub2/grubenv: No such file or directory
    grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such file or directory.
    The default is /boot/loader/entries/a116afcdb59d4e0ebff2720230c2dbc5-4.18.0-477.13.1.lve.1.el8.x86_64.conf with index 2 and kernel /boot/vmlinuz-4.18.0-477.13.1.lve.1.el8.x86_64
    [root@omega ~]# cp -rp /boot/efi/EFI/almalinux/grubenv /boot/efi/EFI/centos/grubenv​
    cp: cannot stat '/boot/efi/EFI/almalinux/grubenv': No such file or directory
    Thank you so much.

    Is there any chance you can open a ticket with us via our ticket support system? We'd like to investigate this further and get this sorted for you today.

    Support system: https://cloudlinux.zendesk.com/hc/en-us/requests/new

    Cheers!

    Leave a comment:


  • maromania
    replied
    Code:
    [root@omega ~]# grub2-mkconfig -o /etc/grub2.cfg
    Generating grub configuration file ...
    /usr/bin/grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such fileor directory.
    [root@omega ~]# grub2-mkconfig -o /etc/grub2-efi.cfg
    Generating grub configuration file ...
    /usr/bin/grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such fileor directory.
    [root@omega ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
    Generating grub configuration file ...
    /usr/bin/grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such fileor directory.
    [root@omega ~]# grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg​
    /sbin/grub2-mkconfig: line 274: /boot/efi/EFI/centos/grub.cfg​.new: No such file or directory
    [root@omega ~]#
    Code:
    ​[root@omega ~]# rsync -avP /boot/efi/EFI/centos/ /boot/efi/EFI/almalinux/
    sending incremental file list
    rsync: change_dir "/boot/efi/EFI/centos" failed: No such file or directory (2)
    
    sent 20 bytes received 12 bytes 64.00 bytes/sec
    total size is 0 speedup is 0.00
    rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1189) [sender=3.1.3]
    [root@omega ~]# grubby --set-default /boot/vmlinuz-4.18.0-477.13.1.lve.1.el8.x86_64
    grep: /boot/grub2/grubenv: No such file or directory
    grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such file or directory.
    The default is /boot/loader/entries/a116afcdb59d4e0ebff2720230c2dbc5-4.18.0-477.13.1.lve.1.el8.x86_64.conf with index 2 and kernel /boot/vmlinuz-4.18.0-477.13.1.lve.1.el8.x86_64
    [root@omega ~]# cp -rp /boot/efi/EFI/almalinux/grubenv /boot/efi/EFI/centos/grubenv​
    cp: cannot stat '/boot/efi/EFI/almalinux/grubenv': No such file or directory

    Leave a comment:


  • Miguel Varela
    replied
    Originally posted by maromania View Post
    In another server this commands fixed the problem:

    Code:
    mount /dev/sdd1 /mnt/
    cp /boot/efi/EFI/centos/grub.cfg /mnt/EFI/centos/
    
    mount /dev/sdb1 /mnt/
    cp /boot/efi/EFI/centos/grub.cfg /mnt/EFI/centos/
    
    mount /dev/sda1 /mnt/
    cp /boot/efi/EFI/centos/grub.cfg /mnt/EFI/centos/
    But in this new SSD server it doesn't work for me.​
    Hmhm, I see.

    Can you post the full errors here, please, for the commands we provided you?

    Leave a comment:


  • maromania
    replied
    In another server this commands fixed the problem:

    Code:
    mount /dev/sdd1 /mnt/
    cp /boot/efi/EFI/centos/grub.cfg /mnt/EFI/centos/
    
    mount /dev/sdb1 /mnt/
    cp /boot/efi/EFI/centos/grub.cfg /mnt/EFI/centos/
    
    mount /dev/sda1 /mnt/
    cp /boot/efi/EFI/centos/grub.cfg /mnt/EFI/centos/
    But in this new SSD server it doesn't work for me.​

    Leave a comment:


  • maromania
    replied
    all the commands gives errors. Reboot and same error.

    Leave a comment:


  • Miguel Varela
    replied
    Originally posted by maromania View Post
    Hi,

    Code:
    uname -r
    4.18.0-477.15.1.el8_8.x86_64
    Code:
    rpm -qa| grep kernel
    kernel-modules-4.18.0-477.13.1.lve.1.el8.x86_64
    kernel-4.18.0-477.15.1.el8_8.x86_64
    kernel-4.18.0-477.13.1.lve.1.el8.x86_64
    kernel-debug-modules-4.18.0-477.13.1.lve.1.el8.x86_64
    kernel-core-4.18.0-477.15.1.el8_8.x86_64
    kernel-tools-libs-4.18.0-477.13.1.lve.1.el8.x86_64
    kernel-modules-4.18.0-477.15.1.el8_8.x86_64
    kernel-headers-4.18.0-477.13.1.lve.1.el8.x86_64
    kernel-core-4.18.0-477.13.1.lve.1.el8.x86_64
    kernel-tools-4.18.0-477.13.1.lve.1.el8.x86_64
    kernel-modules-4.18.0-477.10.1.el8_8.x86_64
    kernel-4.18.0-477.10.1.el8_8.x86_64
    kernel-debug-core-4.18.0-477.13.1.lve.1.el8.x86_64
    kernel-core-4.18.0-477.10.1.el8_8.x86_64

    Code:
    ​grub2-mkconfig -o /etc/grub2.cfg
    Generating grub configuration file ...
    /usr/bin/grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such fileor directory.
    ​​
    Do ignore that error for now, have you run all the commands I provided you? If so, have you tried to reboot the server?

    Leave a comment:


  • maromania
    replied
    Hi,

    Code:
    uname -r
    4.18.0-477.15.1.el8_8.x86_64
    Code:
    rpm -qa| grep kernel
    kernel-modules-4.18.0-477.13.1.lve.1.el8.x86_64
    kernel-4.18.0-477.15.1.el8_8.x86_64
    kernel-4.18.0-477.13.1.lve.1.el8.x86_64
    kernel-debug-modules-4.18.0-477.13.1.lve.1.el8.x86_64
    kernel-core-4.18.0-477.15.1.el8_8.x86_64
    kernel-tools-libs-4.18.0-477.13.1.lve.1.el8.x86_64
    kernel-modules-4.18.0-477.15.1.el8_8.x86_64
    kernel-headers-4.18.0-477.13.1.lve.1.el8.x86_64
    kernel-core-4.18.0-477.13.1.lve.1.el8.x86_64
    kernel-tools-4.18.0-477.13.1.lve.1.el8.x86_64
    kernel-modules-4.18.0-477.10.1.el8_8.x86_64
    kernel-4.18.0-477.10.1.el8_8.x86_64
    kernel-debug-core-4.18.0-477.13.1.lve.1.el8.x86_64
    kernel-core-4.18.0-477.10.1.el8_8.x86_64

    Code:
    ​grub2-mkconfig -o /etc/grub2.cfg
    Generating grub configuration file ...
    /usr/bin/grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such fileor directory.
    ​​

    Leave a comment:


  • Miguel Varela
    replied
    Hey there!

    Can you confirm the kernel that it's loading? It's loading .15.1 instead of 13.2, I bet, are you able to run rpm -qa|grep kernel as well?

    To sum it up, here's what I need you to run:

    Code:
    uname -r
    
    rpm -qa| grep kernel

    And in order to attempt to fix it:

    Code:
    grub2-mkconfig -o /etc/grub2.cfg
    grub2-mkconfig -o /etc/grub2-efi.cfg
    grub2-mkconfig -o /boot/grub2/grub.cfg
    grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg​
    
    rsync -avP /boot/efi/EFI/centos/ /boot/efi/EFI/almalinux/
    grubby --set-default /boot/vmlinuz-4.18.0-477.13.1.lve.1.el8.x86_64
    cp -rp /boot/efi/EFI/almalinux/grubenv /boot/efi/EFI/centos/grubenv​
    Do give it a try.

    Cheers!
    Last edited by Miguel Varela; 08-04-2023, 01:05 PM.

    Leave a comment:


  • maromania
    replied
    Originally posted by bogdan.sh View Post
    And the last one please:
    Code:
    cat /proc/mounts | grep -i boot
    /dev/md2 /boot xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,n oquota 0 0
    /dev/nvme0n1p1 /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,ioc harset=ascii,shortname=mixed,errors=remount-ro 0 0​

    Leave a comment:


  • bogdan.sh
    replied
    And the last one please:
    Code:
    cat /proc/mounts  | grep -i boot

    Leave a comment:


  • maromania
    replied
    grep -i efi /etc/fstab
    /dev/nvme0n1p1 /boot/efi vfat defaults 0 1​

    Leave a comment:

Working...
X