Announcement

Collapse
No announcement yet.

Kernel problem

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

  • #16
    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.
    ​​

    Comment


    • #17
      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?

      Comment


      • #18
        all the commands gives errors. Reboot and same error.

        Comment


        • #19
          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.​

          Comment


          • #20
            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?

            Comment


            • #21
              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

              Comment


              • #22
                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!

                Comment


                • #23
                  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 ?​​

                  Comment


                  • #24
                    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.

                    Comment


                    • #25
                      Problem fixed by installing the new kernel.
                      Thank you

                      Comment


                      • #26
                        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 :-)

                        Comment

                        Working...
                        X