This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
informatica:hp_z400_600_centos7_4 [2021/08/19 10:38] miquel [Instal·lar el gestor de llicències CodeMeter] |
informatica:hp_z400_600_centos7_4 [2021/08/23 15:16] (current) miquel [Enllaços d'interès] |
||
---|---|---|---|
Line 5: | Line 5: | ||
* configurar la connexió amb la consola; | * configurar la connexió amb la consola; | ||
* crear els comptes d' | * crear els comptes d' | ||
- | * instal·lar el Topspin 3.6.3 | ||
- | * instal·lar el gestor de llicències CodeMeter. | ||
+ | i deixar-ho tot a punt per | ||
- | ===== Configurar la connexió amb la consola ===== | + | * instal·lar i configurar el Topspin 3.6.3 |
+ | * instal·lar i configurar el gestor de llicències CodeMeter. | ||
- | < | + | ===== Crear els comptes d' |
- | Comprovar | + | |
+ | < | ||
+ | Comentar | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
</ | </ | ||
+ | ===== Configurar la connexió amb la consola ===== | ||
+ | |||
+ | La configuració final prevista dels dos dispositius de xarxa és, | ||
+ | |||
+ | * dispositiu '' | ||
+ | * dispositiu '' | ||
- | ===== Crear els comptes d' | ||
<WRAP tip> | <WRAP tip> | ||
- | Crear: nmrsu, nmr, sermnuab. | + | Tot i que la connexió a la xarxa de la UAB es podria configurar via DHCP, he vist que, en alguns casos molt esporàdics, |
</ | </ | ||
+ | ==== Problemes amb la configuració de les xarxes ==== | ||
+ | |||
+ | Per canviar la connexió a la xarxa de la UAB de DHCP a manual, començo per consultar els paràmetres de la configuració per DHCP, | ||
+ | |||
+ | < | ||
+ | # ip addr | ||
+ | [...] | ||
+ | 3: enp1s0: < | ||
+ | link/ether 3c: | ||
+ | inet 158.109.56.18/ | ||
+ | | ||
+ | inet6 fe80:: | ||
+ | | ||
+ | [...] | ||
+ | </ | ||
+ | |||
+ | L' | ||
+ | |||
+ | < | ||
+ | # cd / | ||
+ | # cat ifcfg-enp1s0 | ||
+ | TYPE=Ethernet | ||
+ | PROXY_METHOD=none | ||
+ | BROWSER_ONLY=no | ||
+ | BOOTPROTO=none | ||
+ | DEFROUTE=yes | ||
+ | IPV4_FAILURE_FATAL=yes | ||
+ | IPV6INIT=no | ||
+ | IPV6_AUTOCONF=" | ||
+ | IPV6_DEFROUTE=" | ||
+ | IPV6_FAILURE_FATAL=" | ||
+ | IPV6_ADDR_GEN_MODE=" | ||
+ | NAME=enp1s0 | ||
+ | UUID=e684c2b9-73aa-469a-9a7d-e5136fd1d15c | ||
+ | ONBOOT=yes | ||
+ | IPV6_PRIVACY=" | ||
+ | HWADDR=3C: | ||
+ | IPADDR=158.109.56.18 | ||
+ | PREFIX=20 | ||
+ | GATEWAY=158.109.48.0 | ||
+ | DNS1=158.109.0.36 | ||
+ | DNS2=158.109.254.130 | ||
+ | DOMAIN=uab.es | ||
+ | </ | ||
+ | |||
+ | Per altra banda, la connexió de xarxa a la consola no està configurada, | ||
+ | |||
+ | < | ||
+ | # ip addr | ||
+ | [...] | ||
+ | : enp55s9: < | ||
+ | link/ether 1c: | ||
+ | [...] | ||
+ | </ | ||
+ | |||
+ | La configuro amb els següents paràmetres, | ||
+ | |||
+ | < | ||
+ | # cat ifcfg-enp55s9 | ||
+ | TYPE=Ethernet | ||
+ | PROXY_METHOD=none | ||
+ | BROWSER_ONLY=no | ||
+ | BOOTPROTO=none | ||
+ | DEFROUTE=yes | ||
+ | IPV4_FAILURE_FATAL=yes | ||
+ | IPV6INIT=no | ||
+ | IPV6_AUTOCONF=yes | ||
+ | IPV6_DEFROUTE=yes | ||
+ | IPV6_FAILURE_FATAL=no | ||
+ | IPV6_ADDR_GEN_MODE=stable-privacy | ||
+ | NAME=enp55s9 | ||
+ | UUID=227b37f9-5a73-4dfb-9ad4-60924a6fe3d9 | ||
+ | ONBOOT=yes | ||
+ | HWADDR=1C: | ||
+ | IPADDR=149.236.99.1 | ||
+ | PREFIX=24 | ||
+ | GATEWAY=149.236.99.1 | ||
+ | </ | ||
+ | |||
+ | i la intento activar amb la comanda '' | ||
+ | |||
+ | < | ||
+ | # service network restart | ||
+ | Restarting network (via systemctl): | ||
+ | k.service" | ||
+ | | ||
+ | # systemctl status network | ||
+ | ● network.service - LSB: Bring up/down networking | ||
+ | | ||
+ | | ||
+ | Docs: man: | ||
+ | Process: 10649 ExecStop=/ | ||
+ | Process: 10382 ExecStart=/ | ||
+ | |||
+ | Aug 11 12:18:40 cie-56-18.uab.cat network[10382]: | ||
+ | Aug 11 12:18:40 cie-56-18.uab.cat network[10382]: | ||
+ | Aug 11 12:18:40 cie-56-18.uab.cat network[10382]: | ||
+ | Aug 11 12:18:40 cie-56-18.uab.cat network[10382]: | ||
+ | Aug 11 12:18:40 cie-56-18.uab.cat network[10382]: | ||
+ | Aug 11 12:18:40 cie-56-18.uab.cat network[10382]: | ||
+ | Aug 11 12:18:40 cie-56-18.uab.cat systemd[1]: network.service: | ||
+ | Aug 11 12:18:40 cie-56-18.uab.cat systemd[1]: Failed to start LSB: Bring up/down networking. | ||
+ | Aug 11 12:18:40 cie-56-18.uab.cat systemd[1]: Unit network.service entered failed state. | ||
+ | Aug 11 12:18:40 cie-56-18.uab.cat systemd[1]: network.service failed. | ||
+ | |||
+ | # journalctl -xe | ||
+ | [...] | ||
+ | Aug 11 12:33:46 cie-56-18.uab.cat NetworkManager[1038]: | ||
+ | Aug 11 12:33:46 cie-56-18.uab.cat NetworkManager[1038]: | ||
+ | Aug 11 12:33:46 cie-56-18.uab.cat NetworkManager[1038]: | ||
+ | Aug 11 12:33:46 cie-56-18.uab.cat NetworkManager[1038]: | ||
+ | Aug 11 12:33:46 cie-56-18.uab.cat NetworkManager[1038]: | ||
+ | Aug 11 12:33:46 cie-56-18.uab.cat NetworkManager[1038]: | ||
+ | Aug 11 12:33:46 cie-56-18.uab.cat NetworkManager[1038]: | ||
+ | Aug 11 12:33:46 cie-56-18.uab.cat NetworkManager[1038]: | ||
+ | Aug 11 12:33:46 cie-56-18.uab.cat NetworkManager[1038]: | ||
+ | Aug 11 12:33:46 cie-56-18.uab.cat NetworkManager[1038]: | ||
+ | |||
+ | </ | ||
+ | |||
+ | Com que la xarxa de l' | ||
+ | |||
+ | Més tard em torno a mirar el problema amb més deteniment, i trobo que està causat perquè s'ha definit una ruta per defecte associada a la IP de la xarxa de l' | ||
+ | |||
+ | < | ||
+ | # route | ||
+ | Kernel IP routing table | ||
+ | Destination | ||
+ | default | ||
+ | 149.236.99.0 | ||
+ | link-local | ||
+ | 192.168.122.0 | ||
+ | |||
+ | # route -n | ||
+ | Kernel IP routing table | ||
+ | Destination | ||
+ | 0.0.0.0 | ||
+ | 149.236.99.0 | ||
+ | 169.254.0.0 | ||
+ | 192.168.122.0 | ||
+ | |||
+ | # ip route | ||
+ | default via 149.236.99.1 dev enp55s9 | ||
+ | 149.236.99.0/ | ||
+ | 169.254.0.0/ | ||
+ | 192.168.122.0/ | ||
+ | </ | ||
+ | |||
+ | La solució és editar el fitxer ''/ | ||
+ | |||
+ | < | ||
+ | # nano -c ifcfg-enp55s9 | ||
+ | |||
+ | (delete line GATEWAY=149.236.99.1) | ||
+ | |||
+ | # systemctl restart network | ||
+ | Job for network.service failed because the control process exited with error code. See " | ||
+ | </ | ||
+ | |||
+ | però el problema no es resol, i una comprovació amb '' | ||
+ | |||
+ | < | ||
+ | # ip route delete 149.236.99.0/ | ||
+ | # ip route | ||
+ | 169.254.0.0/ | ||
+ | 192.168.122.0/ | ||
+ | |||
+ | # ip route delete 169.254.0.0/ | ||
+ | # ip route delete 192.168.122.0/ | ||
+ | # ip route | ||
+ | |||
+ | # | ||
+ | </ | ||
+ | |||
+ | i reiniciar la xarxa un cop més. | ||
+ | |||
+ | Malauradament el problema segueix sense resoldre' | ||
+ | |||
+ | ==== Configuració de la xarxa UAB ==== | ||
+ | |||
+ | Començo per configurar el dispositiu '' | ||
+ | |||
+ | < | ||
+ | # nmcli general status | ||
+ | STATE CONNECTIVITY | ||
+ | connected | ||
+ | |||
+ | # nmcli general hostname | ||
+ | cie-56-18.uab.cat | ||
+ | |||
+ | # nmcli connection show --active | ||
+ | NAME | ||
+ | UAB-LAN | ||
+ | |||
+ | # nmcli connection show id UAB-LAN | ||
+ | connection.id: | ||
+ | connection.uuid: | ||
+ | connection.stable-id: | ||
+ | connection.type: | ||
+ | [...] | ||
+ | connection.permissions: | ||
+ | [...] | ||
+ | 802-3-ethernet.mac-address: | ||
+ | [...] | ||
+ | GENERAL.NAME: | ||
+ | GENERAL.UUID: | ||
+ | GENERAL.DEVICES: | ||
+ | GENERAL.STATE: | ||
+ | GENERAL.DEFAULT: | ||
+ | [...] -- | ||
+ | IP4.ADDRESS[1]: | ||
+ | IP4.GATEWAY: | ||
+ | IP4.ROUTE[1]: | ||
+ | IP4.ROUTE[2]: | ||
+ | IP4.DNS[1]: | ||
+ | IP4.DNS[2]: | ||
+ | IP4.DOMAIN[1]: | ||
+ | DHCP4.OPTION[1]: | ||
+ | [...] | ||
+ | DHCP4.OPTION[9]: | ||
+ | DHCP4.OPTION[10]: | ||
+ | [..] | ||
+ | DHCP4.OPTION[30]: | ||
+ | DHCP4.OPTION[31]: | ||
+ | [...] | ||
+ | </ | ||
+ | |||
+ | per la nova configuració estàtica, | ||
+ | |||
+ | < | ||
+ | # cd / | ||
+ | # cat ifcfg-UAB-LAN | ||
+ | HWADDR=3C: | ||
+ | TYPE=Ethernet | ||
+ | PROXY_METHOD=none | ||
+ | BROWSER_ONLY=no | ||
+ | ETHTOOL_OPTS=" | ||
+ | BOOTPROTO=none | ||
+ | DEFROUTE=yes | ||
+ | IPV4_FAILURE_FATAL=yes | ||
+ | IPV6INIT=no | ||
+ | NAME=UAB-LAN | ||
+ | UUID=be7bd600-74cb-49ef-919f-c3c027459391 | ||
+ | ONBOOT=no | ||
+ | USERS=sermnadmin | ||
+ | IPADDR=158.109.56.18 | ||
+ | PREFIX=20 | ||
+ | GATEWAY=158.109.48.0 | ||
+ | DNS1=158.109.254.130 | ||
+ | DNS2=158.109.0.36 | ||
+ | DOMAIN=uab.es | ||
+ | </ | ||
+ | |||
+ | ==== Configuració de la xarxa de l' | ||
+ | |||
+ | Pel dispositiu de la xarxa de l' | ||
+ | |||
+ | < | ||
+ | # ping -c 5 spect | ||
+ | PING spect (149.236.99.90) 56(84) bytes of data. | ||
+ | 64 bytes from spect (149.236.99.90): | ||
+ | 64 bytes from spect (149.236.99.90): | ||
+ | 64 bytes from spect (149.236.99.90): | ||
+ | 64 bytes from spect (149.236.99.90): | ||
+ | 64 bytes from spect (149.236.99.90): | ||
+ | |||
+ | --- spect ping statistics --- | ||
+ | 5 packets transmitted, | ||
+ | rtt min/ | ||
+ | </ | ||
+ | |||
+ | El fitxer de configuració d' | ||
+ | |||
+ | < | ||
+ | # cat ifcfg-CONSOLE-LAN | ||
+ | ZONE=trusted | ||
+ | USERCTL=no | ||
+ | NETMASK=255.255.255.0 | ||
+ | DEVICE=enp55s9 | ||
+ | TYPE=Ethernet | ||
+ | PROXY_METHOD=none | ||
+ | BROWSER_ONLY=no | ||
+ | BOOTPROTO=none | ||
+ | DEFROUTE=yes | ||
+ | IPV4_FAILURE_FATAL=yes | ||
+ | IPV6INIT=no | ||
+ | IPV6_AUTOCONF=yes | ||
+ | IPV6_DEFROUTE=yes | ||
+ | IPV6_FAILURE_FATAL=no | ||
+ | IPV6_ADDR_GEN_MODE=stable-privacy | ||
+ | NAME=" | ||
+ | UUID=227b37f9-5a73-4dfb-9ad4-60924a6fe3d9 | ||
+ | ONBOOT=yes | ||
+ | HWADDR=1C: | ||
+ | IPADDR=149.236.99.1 | ||
+ | PREFIX=24 | ||
+ | </ | ||
+ | |||
+ | ==== Comprovació de les rutes ==== | ||
+ | |||
+ | Un cop els dos dispositius de xarxa estan en funcionament, | ||
+ | |||
+ | < | ||
+ | # nmcli device status | ||
+ | DEVICE | ||
+ | enp1s0 | ||
+ | enp55s9 | ||
+ | lo | ||
+ | |||
+ | # ping -c 5 spect | ||
+ | PING spect (149.236.99.90) 56(84) bytes of data. | ||
+ | 64 bytes from spect (149.236.99.90): | ||
+ | 64 bytes from spect (149.236.99.90): | ||
+ | 64 bytes from spect (149.236.99.90): | ||
+ | 64 bytes from spect (149.236.99.90): | ||
+ | 64 bytes from spect (149.236.99.90): | ||
+ | |||
+ | --- spect ping statistics --- | ||
+ | 5 packets transmitted, | ||
+ | rtt min/ | ||
+ | |||
+ | # ping -c 5 gw.uab.cat | ||
+ | PING gw.uab.cat (158.109.0.3) 56(84) bytes of data. | ||
+ | 64 bytes from gw.uab.es (158.109.0.3): | ||
+ | 64 bytes from gw.uab.es (158.109.0.3): | ||
+ | 64 bytes from gw.uab.es (158.109.0.3): | ||
+ | 64 bytes from gw.uab.es (158.109.0.3): | ||
+ | 64 bytes from gw.uab.es (158.109.0.3): | ||
+ | |||
+ | --- gw.uab.cat ping statistics --- | ||
+ | 5 packets transmitted, | ||
+ | rtt min/ | ||
+ | </ | ||
+ | |||
+ | comprovo les rutes definides i veig que són les correctes, | ||
+ | |||
+ | < | ||
+ | # route | ||
+ | Kernel IP routing table | ||
+ | Destination | ||
+ | default | ||
+ | 149.236.99.0 | ||
+ | 158.109.48.0 | ||
+ | |||
+ | # route -n | ||
+ | Kernel IP routing table | ||
+ | Destination | ||
+ | 0.0.0.0 | ||
+ | 149.236.99.0 | ||
+ | 158.109.48.0 | ||
+ | </ | ||
+ | |||
+ | ==== Enllaços d' | ||
+ | |||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | ===== Eliminar els kernels més antics ===== | ||
+ | |||
+ | Al llarg del procés d' | ||
+ | |||
+ | < | ||
+ | # uname -snr | ||
+ | Linux cie-56-18.uab.cat 3.10.0-1160.36.2.el7.x86_64 | ||
+ | |||
+ | # awk -F\' ' | ||
+ | 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) | ||
+ | </ | ||
+ | |||
+ | i ara ocupen espai a la partició '' | ||
+ | |||
+ | < | ||
+ | # df -hl | ||
+ | Filesystem | ||
+ | [...] | ||
+ | / | ||
+ | / | ||
+ | [...] | ||
+ | </ | ||
+ | |||
+ | Per eliminar els més antics, faig servir la comanda ''# | ||
+ | |||
+ | < | ||
+ | # package-cleanup --oldkernels --downloadonly | ||
+ | Loaded plugins: fastestmirror, | ||
+ | --> Running transaction check | ||
+ | ---> Package kernel.x86_64 0: | ||
+ | ---> Package kernel.x86_64 0: | ||
+ | ---> Package kernel-devel.x86_64 0: | ||
+ | ---> Package kernel-devel.x86_64 0: | ||
+ | --> Finished Dependency Resolution | ||
+ | |||
+ | Dependencies Resolved | ||
+ | |||
+ | ====================================================================================================================== | ||
+ | | ||
+ | ====================================================================================================================== | ||
+ | Removing: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | Transaction Summary | ||
+ | ====================================================================================================================== | ||
+ | Remove | ||
+ | |||
+ | Installed size: 205 M | ||
+ | Background downloading packages, then exiting: | ||
+ | exiting because " | ||
+ | </ | ||
+ | |||
+ | Un cop convençut dels canvis proposats, executo la comanda '' | ||
+ | |||
+ | < | ||
+ | # package-cleanup --oldkernels | ||
+ | Loaded plugins: fastestmirror, | ||
+ | --> Running transaction check | ||
+ | ---> Package kernel.x86_64 0: | ||
+ | ---> Package kernel.x86_64 0: | ||
+ | ---> Package kernel-devel.x86_64 0: | ||
+ | ---> Package kernel-devel.x86_64 0: | ||
+ | --> Finished Dependency Resolution | ||
+ | |||
+ | Dependencies Resolved | ||
+ | |||
+ | ====================================================================================================================== | ||
+ | | ||
+ | ====================================================================================================================== | ||
+ | Removing: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | Transaction Summary | ||
+ | ====================================================================================================================== | ||
+ | Remove | ||
+ | |||
+ | Installed size: 205 M | ||
+ | Is this ok [y/N]: y | ||
+ | Downloading packages: | ||
+ | Running transaction check | ||
+ | Running transaction test | ||
+ | Transaction test succeeded | ||
+ | Running transaction | ||
+ | Erasing | ||
+ | Erasing | ||
+ | Erasing | ||
+ | Erasing | ||
+ | Verifying | ||
+ | Verifying | ||
+ | Verifying | ||
+ | Verifying | ||
+ | |||
+ | Removed: | ||
+ | kernel.x86_64 0: | ||
+ | kernel-devel.x86_64 0: | ||
+ | |||
+ | Complete! | ||
+ | </ | ||
+ | i comprovo l' | ||
+ | < | ||
+ | # df -hl | ||
+ | Filesystem | ||
+ | [...] | ||
+ | / | ||
+ | / | ||
+ | [...] | ||
+ | </ |