User Tools

Site Tools


informatica:hp_z230_400sb_centos7_3

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
Last revision Both sides next revision
informatica:hp_z230_400sb_centos7_3 [2021/08/20 17:28]
miquel [Configuració de la xarxa UAB]
informatica:hp_z230_400sb_centos7_3 [2021/08/24 15:41]
miquel [Comprovació de les rutes]
Line 65: Line 65:
 ===== Connexió i configuració dels dos monitors ===== ===== Connexió i configuració dels dos monitors =====
  
-<WRAP todo> +Connecto l'estació de treball el monitor HP Compaq LE2202x (sortida DisplayPort amb adaptador a DVI) i el monitor HP LA1951g (sortida DVI), i l'ordinador els reconeix i configura correctament. El monitor HP LE2202x es configura com pantalla principal (finestra del TopSpin) i el monitor HP LA1951g com pantalla secundària (finestres de la BSMS, de lock, etc.), 
-Aprofitar les instruccions [[informatica:hp_z400_600_centos7_3 | Instal·lació de CentOS 7 3a part]] + 
-</WRAP>+  * HP LE2202x 
 +    * Pantalla principal 
 +    * Característiques tècniques: 21,5 polsades (16:9), resolució: 1920 x 1080 @ 60.0 Hz, entrades: DVI-D & VGA.  
 +  * HP LA1951g 
 +    * Pantalla secundària 
 +    * Característiques tècniques: 19 polsades (5:4), resolució: 1280 x 1024 @ 75 Hz, entrades: DVID-D & VGA.
  
 ===== Configuració de KDE ===== ===== Configuració de KDE =====
Line 79: Line 84:
 </WRAP> </WRAP>
  
-===== Configurar la connexió amb la consola ===== +===== Configurar les connexions de xarxa =====
- +
-<WRAP todo> +
-Aprofitar les instruccions a [[informatica:hp_z400_600_centos7_4 | Instal·lació de CentOS 7 -4a part]] +
-</WRAP>+
  
 ==== Configuració de la xarxa UAB ==== ==== Configuració de la xarxa UAB ====
Line 174: Line 175:
  
 per la nova configuració estàtica, per la nova configuració estàtica,
- 
-<WRAP todo> 
  
 <file> <file>
 # cd /etc/sysconfig/network-scripts # cd /etc/sysconfig/network-scripts
 # cat ifcfg-UAB-LAN  # cat ifcfg-UAB-LAN 
-HWADDR=3C:D9:2B:73:EA:93+
 TYPE=Ethernet TYPE=Ethernet
 +NAME=UAB-LAN
 +UUID=5f23e0c4-ba38-4644-98e3-c8a8fc3f3c62
 +HWADDR=50:65:F3:3A:12:5E
 PROXY_METHOD=none PROXY_METHOD=none
 BROWSER_ONLY=no BROWSER_ONLY=no
-ETHTOOL_OPTS="autoneg on" 
 BOOTPROTO=none BOOTPROTO=none
 DEFROUTE=yes DEFROUTE=yes
 IPV4_FAILURE_FATAL=yes IPV4_FAILURE_FATAL=yes
 +ONBOOT=yes
 +IPADDR=158.109.54.214
 +PREFIX=20
 +GATEWAY=158.109.48.1
 +DNS1=158.109.0.36
 +DNS2=158.109.254.130
 +DOMAIN="uab.cat uab.es"
 IPV6INIT=no IPV6INIT=no
-NAME=UAB-LAN +IPV6_AUTOCONF=yes 
-UUID=be7bd600-74cb-49ef-919f-c3c027459391 +IPV6_DEFROUTE=yes 
-ONBOOT=no +IPV6_FAILURE_FATAL=no 
-USERS=sermnadmin +IPV6_ADDR_GEN_MODE=stable-privacy 
-IPADDR=158.109.56.18 +IPV6_PRIVACY=no
-PREFIX=20 +
-GATEWAY=158.109.48.0 +
-DNS1=158.109.254.130 +
-DNS2=158.109.0.36 +
-DOMAIN=uab.es+
 </file> </file>
- 
-</WRAP> 
  
 ==== Configuració de la xarxa de l'espectròmetre ==== ==== Configuració de la xarxa de l'espectròmetre ====
  
-Pel dispositiu de la xarxa de l'espectròmetre, indico que la configuració és manual (estàtica), li assigno el nom ''CONSOLE-LAN'', l'activo, i comprovo amb ''ping'' que funciona,+Pel dispositiu de la xarxa de l'espectròmetre, indico que la configuració és manual (estàtica), li assigno el nom ''CONSOLE-LAN''. El fitxer de configuració d'aquest dispositiu és,
  
 <file> <file>
-ping -c 5 spect +cat ./ifcfg-CONSOLE-LAN  
-PING spect (149.236.99.90) 56(84) bytes of data. +NAME="CONSOLE-LAN"
-64 bytes from spect (149.236.99.90): icmp_seq=1 ttl=64 time=0.346 ms +
-64 bytes from spect (149.236.99.90): icmp_seq=2 ttl=64 time=0.115 ms +
-64 bytes from spect (149.236.99.90): icmp_seq=3 ttl=64 time=0.112 ms +
-64 bytes from spect (149.236.99.90): icmp_seq=4 ttl=64 time=0.117 ms +
-64 bytes from spect (149.236.99.90): icmp_seq=5 ttl=64 time=0.133 ms +
- +
---- spect ping statistics --- +
-5 packets transmitted, 5 received, 0% packet loss, time 4000ms +
-rtt min/avg/max/mdev 0.112/0.164/0.346/0.092 ms +
-</file> +
- +
-El fitxer de configuració d'aquest dispositiu és, +
- +
-<file> +
-# cat ifcfg-CONSOLE-LAN +
 ZONE=trusted ZONE=trusted
 USERCTL=no USERCTL=no
-NETMASK=255.255.255.0 +DEVICE=ens3 
-DEVICE=enp55s9+HWADDR=a0:36:9f:8f:0a:b3
 TYPE=Ethernet TYPE=Ethernet
 PROXY_METHOD=none PROXY_METHOD=none
Line 236: Line 222:
 IPV4_FAILURE_FATAL=yes IPV4_FAILURE_FATAL=yes
 IPV6INIT=no IPV6INIT=no
-IPV6_AUTOCONF=yes +UUID=4d9f6b1a-abb6-4880-ba14-72f2841859e8
-IPV6_DEFROUTE=yes +
-IPV6_FAILURE_FATAL=no +
-IPV6_ADDR_GEN_MODE=stable-privacy +
-NAME="CONSOLE-LAN" +
-UUID=227b37f9-5a73-4dfb-9ad4-60924a6fe3d9+
 ONBOOT=yes ONBOOT=yes
-HWADDR=1C:7E:E5:10:90:0A 
 IPADDR=149.236.99.1 IPADDR=149.236.99.1
 PREFIX=24 PREFIX=24
 +NETMASK=255.255.255.0
 +</file>
 +
 +Comprovo amb ''ping'' que hi ha connexió.
 +
 +<file>
 +# ping -c 5 spect
 +PING spect (149.236.99.90) 56(84) bytes of data.
 +64 bytes from spect (149.236.99.90): icmp_seq=1 ttl=64 time=0.448 ms
 +64 bytes from spect (149.236.99.90): icmp_seq=2 ttl=64 time=0.283 ms
 +64 bytes from spect (149.236.99.90): icmp_seq=3 ttl=64 time=0.336 ms
 +64 bytes from spect (149.236.99.90): icmp_seq=4 ttl=64 time=0.269 ms
 +64 bytes from spect (149.236.99.90): icmp_seq=5 ttl=64 time=0.153 ms
 +
 +--- spect ping statistics ---
 +5 packets transmitted, 5 received, 0% packet loss, time 3999ms
 +rtt min/avg/max/mdev = 0.153/0.297/0.448/0.098 ms
 </file> </file>
  
Line 254: Line 251:
 <file> <file>
 # nmcli device status # nmcli device status
-DEVICE   TYPE      STATE      CONNECTION   +DEVICE  TYPE      STATE      CONNECTION  
-enp1s0   ethernet  connected  UAB-LAN      +eno1    ethernet  connected  UAB-LAN     
-enp55s9  ethernet  connected  CONSOLE-LAN  +ens3    ethernet  unmanaged  --          
-lo       loopback  unmanaged  --  +lo      loopback  unmanaged  --         
  
 # ping -c 5 spect # ping -c 5 spect
 PING spect (149.236.99.90) 56(84) bytes of data. PING spect (149.236.99.90) 56(84) bytes of data.
-64 bytes from spect (149.236.99.90): icmp_seq=1 ttl=64 time=0.140 ms +64 bytes from spect (149.236.99.90): icmp_seq=1 ttl=64 time=0.150 ms 
-64 bytes from spect (149.236.99.90): icmp_seq=2 ttl=64 time=0.110 ms +64 bytes from spect (149.236.99.90): icmp_seq=2 ttl=64 time=0.156 ms 
-64 bytes from spect (149.236.99.90): icmp_seq=3 ttl=64 time=0.115 ms +64 bytes from spect (149.236.99.90): icmp_seq=3 ttl=64 time=0.194 ms 
-64 bytes from spect (149.236.99.90): icmp_seq=4 ttl=64 time=0.116 ms +64 bytes from spect (149.236.99.90): icmp_seq=4 ttl=64 time=0.153 ms 
-64 bytes from spect (149.236.99.90): icmp_seq=5 ttl=64 time=0.115 ms+64 bytes from spect (149.236.99.90): icmp_seq=5 ttl=64 time=0.127 ms
  
 --- spect ping statistics --- --- spect ping statistics ---
 5 packets transmitted, 5 received, 0% packet loss, time 3999ms 5 packets transmitted, 5 received, 0% packet loss, time 3999ms
-rtt min/avg/max/mdev = 0.110/0.119/0.140/0.012 ms+rtt min/avg/max/mdev = 0.127/0.156/0.194/0.021 ms
  
 # ping -c 5 gw.uab.cat # ping -c 5 gw.uab.cat
 PING gw.uab.cat (158.109.0.3) 56(84) bytes of data. PING gw.uab.cat (158.109.0.3) 56(84) bytes of data.
-64 bytes from gw.uab.es (158.109.0.3): icmp_seq=1 ttl=253 time=0.211 ms +64 bytes from gw.uab.es (158.109.0.3): icmp_seq=1 ttl=253 time=0.582 ms 
-64 bytes from gw.uab.es (158.109.0.3): icmp_seq=2 ttl=253 time=0.198 ms +64 bytes from gw.uab.es (158.109.0.3): icmp_seq=2 ttl=253 time=0.540 ms 
-64 bytes from gw.uab.es (158.109.0.3): icmp_seq=3 ttl=253 time=0.194 ms +64 bytes from gw.uab.es (158.109.0.3): icmp_seq=3 ttl=253 time=0.537 ms 
-64 bytes from gw.uab.es (158.109.0.3): icmp_seq=4 ttl=253 time=0.203 ms +64 bytes from gw.uab.es (158.109.0.3): icmp_seq=4 ttl=253 time=0.273 ms 
-64 bytes from gw.uab.es (158.109.0.3): icmp_seq=5 ttl=253 time=0.254 ms+64 bytes from gw.uab.es (158.109.0.3): icmp_seq=5 ttl=253 time=0.280 ms
  
 --- gw.uab.cat ping statistics --- --- gw.uab.cat ping statistics ---
-5 packets transmitted, 5 received, 0% packet loss, time 4000ms +5 packets transmitted, 5 received, 0% packet loss, time 4001ms 
-rtt min/avg/max/mdev = 0.194/0.212/0.254/0.021 ms+rtt min/avg/max/mdev = 0.273/0.442/0.582/0.137 ms
 </file> </file>
  
-comprovo les rutes definides i veig que són les correctes,+comprovo les rutes definides i veig que hi són les correctes,
  
 <file> <file>
Line 290: Line 287:
 Kernel IP routing table Kernel IP routing table
 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 eno1 
-149.236.99.0    0.0.0.0         255.255.255.0            0        0 enp55s9 +149.236.99.0    0.0.0.0         255.255.255.0            0        0 ens3 
-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 eno1 
-link-local      0.0.0.0         255.255.0.0         1002          0 enp55s9+link-local      0.0.0.0         255.255.0.0         1002          0 ens3
  
-[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 eno1 
-149.236.99.0    0.0.0.0         255.255.255.0            0        0 enp55s9 +149.236.99.0    0.0.0.0         255.255.255.0            0        0 ens3 
-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 eno1 
-169.254.0.0     0.0.0.0         255.255.0.0         1002          0 enp55s9+169.254.0.0     0.0.0.0         255.255.0.0         1002          0 ens3 
 +</file> 
 + 
 +però que hi ha una (''169.254.0.0 (link-local)'') que cal eliminar amb la comanda ''route del -net 169.254.0.0 ...'' 
 + 
 +<file> 
 +# route del -net 169.254.0.0 netmask 255.255.0.0 dev ens3 metric 1002 
 + 
 +# route -n 
 +Kernel IP routing table 
 +Destination     Gateway         Genmask         Flags Metric Ref    Use Iface 
 +0.0.0.0         158.109.48.1    0.0.0.0         UG    100    0        0 eno1 
 +149.236.99.0    0.0.0.0         255.255.255.0            0        0 ens3 
 +158.109.48.0    0.0.0.0         255.255.240.0       100    0        0 eno1 
 + 
 +# route 
 +Kernel IP routing table 
 +Destination     Gateway         Genmask         Flags Metric Ref    Use Iface 
 +default         ciesudsw-core.u 0.0.0.0         UG    100    0        0 eno1 
 +149.236.99.0    0.0.0.0         255.255.255.0            0        0 ens3 
 +158.109.48.0    0.0.0.0         255.255.240.0       100    0        0 eno1 
 +</file> 
 + 
 +Un cop eliminada, les rutes definides són les correctes. 
 + 
 +=== Enllaços d'interès === 
 + 
 +  * [[https://askubuntu.com/questions/893097/how-to-get-rid-of-169-254-0-0-route | How to get rid of 169.254.0.0 route?]] 
 + 
 + 
 +===== 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-54-214.uab.cat 3.10.0-1160.25.1.el7.x86_64 
 + 
 +# awk -F\' '$1=="menuentry " {print $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.21.1.el7.x86_64) 7 (Core) 
 +2 : CentOS Linux (3.10.0-1160.36.2.el7.x86_64) 7 (Core) 
 +3 : CentOS Linux (3.10.0-1160.el7.x86_64) 7 (Core) 
 +4 : CentOS Linux (0-rescue-e70caa6a85d0497ab6302fee0744e4f5) 7 (Core) 
 +</file> 
 + 
 +i ara ocupen espai a la partició ''boot'' 
 + 
 +<file> 
 +# df -hl 
 +Filesystem                            Size  Used Avail Use% Mounted on 
 +[...] 
 +/dev/mapper/centos_cie--54--214-root   50G  8.8G   42G  18% / 
 +/dev/sda1                            1014M  320M  695M  32% /boot 
 +/dev/mapper/centos_cie--54--214-home  408G  1.3G  406G   1% /home 
 +[...] 
 +</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                     @base                     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                     @base                     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 
 +Warning: RPMDB altered outside of yum. 
 +  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/4  
 +  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/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--54--214-root   50G  8.7G   42G  18% / 
 +/dev/sda1                            1014M  222M  793M  22% /boot 
 +[...]
 </file> </file>
  
informatica/hp_z230_400sb_centos7_3.txt · Last modified: 2021/08/24 15:42 by miquel