User Tools

Site Tools


informatica:hp_z400_600_centos7_4

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
informatica:hp_z400_600_centos7_4 [2021/08/19 16:17]
miquel [Crear els comptes d'usuari]
informatica:hp_z400_600_centos7_4 [2021/08/23 15:16] (current)
miquel [Enllaços d'interès]
Line 21: Line 21:
 </WRAP> </WRAP>
  
-===== Configurar de la connexió amb la consola =====+===== Configurar la connexió amb la consola =====
  
 La configuració final prevista dels dos dispositius de xarxa és, La configuració final prevista dels dos dispositius de xarxa és,
Line 374: Line 374:
 Destination     Gateway         Genmask         Flags Metric Ref    Use Iface Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
 default         ciesudsw-core.u 0.0.0.0         UG    100    0        0 enp1s0 default         ciesudsw-core.u 0.0.0.0         UG    100    0        0 enp1s0
-149.236.99.0    0.0.0.0         255.255.255.0       0      0        0 enp55s9+149.236.99.0    0.0.0.0         255.255.255.0       101    0        0 enp55s9
 158.109.48.0    0.0.0.0         255.255.240.0       100    0        0 enp1s0 158.109.48.0    0.0.0.0         255.255.240.0       100    0        0 enp1s0
-link-local      0.0.0.0         255.255.0.0         1002          0 enp55s9 
  
-[root@cie-56-18 NetworkManager]# route -n+# route -n
 Kernel IP routing table Kernel IP routing table
 Destination     Gateway         Genmask         Flags Metric Ref    Use Iface Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
 0.0.0.0         158.109.48.1    0.0.0.0         UG    100    0        0 enp1s0 0.0.0.0         158.109.48.1    0.0.0.0         UG    100    0        0 enp1s0
-149.236.99.0    0.0.0.0         255.255.255.0       0      0        0 enp55s9+149.236.99.0    0.0.0.0         255.255.255.0       101    0        0 enp55s9
 158.109.48.0    0.0.0.0         255.255.240.0       100    0        0 enp1s0 158.109.48.0    0.0.0.0         255.255.240.0       100    0        0 enp1s0
-169.254.0.0     0.0.0.0         255.255.0.0         1002          0 enp55s9 
 </file> </file>
  
Line 398: Line 396:
   * [[https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_and_managing_networking/getting-started-with-networkmanager_configuring-and-managing-networking#loading-manually-created-ifcfg-files-into-networkmanager_getting-started-with-networkmanager | Chapter 2. Getting started with NetworkManager Red Hat Enterprise Linux 8 | Red Hat Customer Portal]]   * [[https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_and_managing_networking/getting-started-with-networkmanager_configuring-and-managing-networking#loading-manually-created-ifcfg-files-into-networkmanager_getting-started-with-networkmanager | Chapter 2. Getting started with NetworkManager Red Hat Enterprise Linux 8 | Red Hat Customer Portal]]
  
 +===== Eliminar els kernels més antics =====
 +
 +Al llarg del procés d'instal·lació i actualització del CentOS, s'han instal·lat kernels més nous que l'inicial, però no s'ha eliminat cap,
 +
 +<file>
 +# uname -snr
 +Linux cie-56-18.uab.cat 3.10.0-1160.36.2.el7.x86_64
 +
 +# awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg
 +0 : CentOS Linux (3.10.0-1160.25.1.el7.x86_64) 7 (Core)
 +1 : CentOS Linux (3.10.0-1160.36.2.el7.x86_64) 7 (Core)
 +2 : CentOS Linux (3.10.0-1160.21.1.el7.x86_64) 7 (Core)
 +3 : CentOS Linux (3.10.0-1160.el7.x86_64) 7 (Core)
 +4 : CentOS Linux (0-rescue-0f254d22a67c404692c5df67336e787a) 7 (Core)
 +5 : Debian GNU/Linux (8.11) (on /dev/sda3)
 +</file>
 +
 +i ara ocupen espai a la partició ''boot''
 +
 +<file>
 +# df -hl
 +Filesystem                           Size  Used Avail Use% Mounted on
 +[...]
 +/dev/mapper/centos_cie--56--18-root   50G   11G   40G  21% /
 +/dev/sdb1                           1014M  430M  585M  43% /boot
 +[...]
 +</file>
 +
 +Per eliminar els més antics, faig servir la comanda ''# package-cleanup --oldkernels --downloadonly'', on l'opció ''downloadonly'' es fa servir per simular la comanda sense fer cap canvi,
 +
 +<file>
 +# package-cleanup --oldkernels --downloadonly 
 +Loaded plugins: fastestmirror, langpacks, refresh-packagekit
 +--> Running transaction check
 +---> Package kernel.x86_64 0:3.10.0-1160.el7 will be erased
 +---> Package kernel.x86_64 0:3.10.0-1160.21.1.el7 will be erased
 +---> Package kernel-devel.x86_64 0:3.10.0-1160.el7 will be erased
 +---> Package kernel-devel.x86_64 0:3.10.0-1160.21.1.el7 will be erased
 +--> Finished Dependency Resolution
 +
 +Dependencies Resolved
 +
 +======================================================================================================================
 + Package                     Arch                  Version                             Repository                Size
 +======================================================================================================================
 +Removing:
 + kernel                      x86_64                3.10.0-1160.el7                     @anaconda                 64 M
 + kernel                      x86_64                3.10.0-1160.21.1.el7                @updates                  64 M
 + kernel-devel                x86_64                3.10.0-1160.el7                     @anaconda                 38 M
 + kernel-devel                x86_64                3.10.0-1160.21.1.el7                @updates                  38 M
 +
 +Transaction Summary
 +======================================================================================================================
 +Remove  4 Packages
 +
 +Installed size: 205 M
 +Background downloading packages, then exiting:
 +exiting because "Download Only" specified
 +</file>
 +
 +Un cop convençut dels canvis proposats, executo la comanda ''package-cleanup --oldkernels'' per aplicar-los,
 +
 +<file>
 +# package-cleanup --oldkernels
 +Loaded plugins: fastestmirror, langpacks, refresh-packagekit
 +--> Running transaction check
 +---> Package kernel.x86_64 0:3.10.0-1160.el7 will be erased
 +---> Package kernel.x86_64 0:3.10.0-1160.21.1.el7 will be erased
 +---> Package kernel-devel.x86_64 0:3.10.0-1160.el7 will be erased
 +---> Package kernel-devel.x86_64 0:3.10.0-1160.21.1.el7 will be erased
 +--> Finished Dependency Resolution
 +
 +Dependencies Resolved
 +
 +======================================================================================================================
 + Package                     Arch                  Version                             Repository                Size
 +======================================================================================================================
 +Removing:
 + kernel                      x86_64                3.10.0-1160.el7                     @anaconda                 64 M
 + kernel                      x86_64                3.10.0-1160.21.1.el7                @updates                  64 M
 + kernel-devel                x86_64                3.10.0-1160.el7                     @anaconda                 38 M
 + kernel-devel                x86_64                3.10.0-1160.21.1.el7                @updates                  38 M
 +
 +Transaction Summary
 +======================================================================================================================
 +Remove  4 Packages
 +
 +Installed size: 205 M
 +Is this ok [y/N]: y
 +Downloading packages:
 +Running transaction check
 +Running transaction test
 +Transaction test succeeded
 +Running transaction
 +  Erasing    : kernel.x86_64                                                                                      1/4 
 +  Erasing    : kernel.x86_64                                                                                      2/4 
 +  Erasing    : kernel-devel.x86_64                                                                                3/4 
 +  Erasing    : kernel-devel.x86_64                                                                                4/4 
 +  Verifying  : kernel-devel-3.10.0-1160.21.1.el7.x86_64                                                           1/
 +  Verifying  : kernel-devel-3.10.0-1160.el7.x86_64                                                                2/4 
 +  Verifying  : kernel-3.10.0-1160.el7.x86_64                                                                      3/4 
 +  Verifying  : kernel-3.10.0-1160.21.1.el7.x86_64                                                                 4/
 +
 +Removed:
 +  kernel.x86_64 0:3.10.0-1160.el7                         kernel.x86_64 0:3.10.0-1160.21.1.el7                        
 +  kernel-devel.x86_64 0:3.10.0-1160.el7                   kernel-devel.x86_64 0:3.10.0-1160.21.1.el7                  
 +
 +Complete!
 +</file>
 +
 +i comprovo l'espai disponible ara a la partició ''boot'',
 +
 +<file>
 +# df -hl
 +Filesystem                           Size  Used Avail Use% Mounted on
 +[...]
 +/dev/mapper/centos_cie--56--18-root   50G   11G   40G  21% /
 +/dev/sdb1                           1014M  292M  723M  29% /boot
 +[...]
 +</file>
informatica/hp_z400_600_centos7_4.1629382671.txt.gz · Last modified: 2021/08/19 16:17 by miquel