projets:backup2017:configserveur
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| projets:backup2017:configserveur [2018/03/14 10:01] – créée tonio | projets:backup2017:configserveur [2019/09/29 17:13] (Version actuelle) – tonio | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ===== Configuration serveurs ===== | + | ====== Configuration serveurs |
| - | === Configuration du Mutipathing === | ||
| + | **Installation des packages manquants** | ||
| + | apt-get install sudo | ||
| + | |||
| + | **Configuration de SSHD** | ||
| + | PubkeyAuthentication yes | ||
| + | |||
| + | |||
| + | ==== Configuration du Mutipathing/ | ||
| + | |||
| + | ==== Configuration des cartes Fibre Channel ==== | ||
| **Debain / V7000 / Storwise** | **Debain / V7000 / Storwise** | ||
| + | //Trouver les cartes Fibre Channe// | ||
| < | < | ||
| Ligne 9: | Ligne 19: | ||
| 09:00.1 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03) | 09:00.1 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03) | ||
| </ | </ | ||
| - | Modification des sources.list pour intégrer **non-free** | ||
| - | < | + | //Modifier des sources.list pour intégrer |
| - | deb-src http://httpredir.debian.org/ | + | |
| - | Installation des packages pour les cartes FC QLOGIC | + | < |
| + | deb-src http:// | ||
| + | |||
| + | //Installer les packages pour les cartes FC QLOGIC// | ||
| + | |||
| '' | '' | ||
| - | Installation des packages de gestion des FS | + | //Installer les packages de gestion des FileSystem// |
| '' | '' | ||
| - | Installation du multipathing | + | //Installer le multipathing// |
| '' | '' | ||
| - | Redémarrage du serveur | + | // |
| - | WWN des cartes FC sur les serveurs | + | //Trouver la carte Fibre Channel et son port host// |
| + | < | ||
| + | root@britt: | ||
| + | Class = " | ||
| + | |||
| + | Class Device = " | ||
| + | Class Device path = "/ | ||
| + | dev_loss_tmo | ||
| + | fabric_name | ||
| + | issue_lip | ||
| + | max_npiv_vports | ||
| + | node_name | ||
| + | npiv_vports_inuse | ||
| + | port_id | ||
| + | port_name | ||
| + | port_state | ||
| + | port_type | ||
| + | speed = "4 Gbit" | ||
| + | supported_classes | ||
| + | supported_speeds | ||
| + | symbolic_name | ||
| + | system_hostname | ||
| + | tgtid_bind_type | ||
| + | uevent | ||
| + | vport_create | ||
| + | vport_delete | ||
| + | |||
| + | Device = " | ||
| + | Device path = "/ | ||
| + | fw_dump | ||
| + | issue_logo | ||
| + | nvram = "ISP " | ||
| + | optrom_ctl | ||
| + | optrom | ||
| + | reset = <store method only> | ||
| + | sfp = "" | ||
| + | uevent | ||
| + | vpd = " | ||
| + | |||
| + | Class Device = " | ||
| + | Class Device path = "/ | ||
| + | dev_loss_tmo | ||
| + | fabric_name | ||
| + | issue_lip | ||
| + | max_npiv_vports | ||
| + | node_name | ||
| + | npiv_vports_inuse | ||
| + | port_id | ||
| + | port_name | ||
| + | port_state | ||
| + | port_type | ||
| + | speed = "4 Gbit" | ||
| + | supported_classes | ||
| + | supported_speeds | ||
| + | symbolic_name | ||
| + | system_hostname | ||
| + | tgtid_bind_type | ||
| + | uevent | ||
| + | vport_create | ||
| + | vport_delete | ||
| + | |||
| + | Device = " | ||
| + | Device path = "/ | ||
| + | fw_dump | ||
| + | issue_logo | ||
| + | nvram = "ISP " | ||
| + | optrom_ctl | ||
| + | optrom | ||
| + | reset = <store method only> | ||
| + | sfp = "" | ||
| + | uevent | ||
| + | vpd = " | ||
| + | </ | ||
| + | |||
| + | //Trouver les WWN des cartes FC sur les serveurs// | ||
| < | < | ||
| 0x2100001b328555da | 0x2100001b328555da | ||
| Ligne 33: | Ligne 121: | ||
| 0x2100001b328787bc | 0x2100001b328787bc | ||
| 0x2101001b32a787bc</ | 0x2101001b32a787bc</ | ||
| + | ==== Configuration du mapping puis du multiphating ==== | ||
| + | // Avant le mapping// | ||
| + | < | ||
| + | root@britt: | ||
| + | [6: | ||
| + | [7: | ||
| + | [7: | ||
| + | [7: | ||
| + | </ | ||
| + | ==== Configurer le mapping sur la storwise ==== | ||
| + | // Lister les hosts // | ||
| + | < | ||
| + | IBM_Storwize: | ||
| + | id name port_count iogrp_count status site_id site_name host_cluster_id host_cluster_name | ||
| + | 0 morbraz 2 4 | ||
| + | 1 britt | ||
| + | </ | ||
| + | // Mapper les volumes // | ||
| + | < | ||
| + | IBM_Storwize: | ||
| + | Virtual Disk to Host map, id [10], successfully created | ||
| + | IBM_Storwize: | ||
| + | Virtual Disk to Host map, id [10], successfully created | ||
| + | IBM_Storwize: | ||
| + | Virtual Disk to Host map, id [20], successfully created | ||
| + | IBM_Storwize: | ||
| + | Virtual Disk to Host map, id [20], successfully created | ||
| + | </ | ||
| + | // Vérifier du mapping// | ||
| + | < | ||
| + | IBM_Storwize: | ||
| + | id name SCSI_id host_id host_name vdisk_UID | ||
| + | 5 Serv12_OCFS 20 0 | ||
| + | 5 Serv12_OCFS 20 1 | ||
| + | </ | ||
| + | ==== Vérification du mapping sur le serveur ==== | ||
| - | ---- | + | //Rescanner les cartes FC// |
| + | < | ||
| + | root@britt: | ||
| + | root@britt: | ||
| + | </ | ||
| + | // Après le mapping// | ||
| + | < | ||
| + | root@britt: | ||
| + | [5: | ||
| + | [5: | ||
| + | [6: | ||
| + | [7: | ||
| + | [7: | ||
| + | [7: | ||
| + | </ | ||
| + | < | ||
| + | root@britt:/ | ||
| + | 36005076802810cce8800000000000024 dm-1 IBM,2145 | ||
| + | size=1.0T features=' | ||
| + | `-+- policy=' | ||
| + | `- 5:0:0:20 sdd 8:48 active undef running | ||
| + | 36005076802810cce8800000000000023 dm-0 IBM,2145 | ||
| + | size=1.0T features=' | ||
| + | `-+- policy=' | ||
| + | `- 5:0:0:10 sdc 8:32 active undef running | ||
| + | </ | ||
| + | ===== DEBUG multipath ===== | ||
| + | Quand vous avez un problème avec multipath et DM : DeviceMapper | ||
| + | < | ||
| + | multipathd -k | ||
| + | multipathd> | ||
| + | hcil dev dev_t pri dm_st chk_st dev_st | ||
| + | 3: | ||
| + | 2: | ||
| + | 2:0:0:10 sdc 8:32 50 undef undef unknown orphan | ||
| + | 4: | ||
| + | 4:0:0:10 sde 8:64 10 undef undef unknown orphan | ||
| + | multipathd> | ||
| + | </ | ||
| + | Pour voir la bonne config | ||
| + | < | ||
| + | multipathd -k | ||
| + | multipathd> | ||
| + | defaults { | ||
| + | verbosity 2 | ||
| + | polling_interval 5 | ||
| + | max_polling_interval 20 | ||
| + | reassign_maps " | ||
| + | [...] | ||
| + | </ | ||
| + | Pour voir le problème | ||
| + | < | ||
| + | multipath -v3 | ||
| + | Sep 29 18:48:46 | set open fds limit to 1048576/ | ||
| + | Sep 29 18:48:46 | loading // | ||
| + | Sep 29 18:48:46 | checker tur: message table size = 3 | ||
| + | Sep 29 18:48:46 | loading // | ||
| + | Sep 29 18:48:46 | foreign library " | ||
| + | Sep 29 18:48:46 | sda: udev property ID_WWN whitelisted | ||
| + | Sep 29 18:48:46 | sda: mask = 0x1f | ||
| + | Sep 29 18:48:46 | sda: dev_t = 8:0 | ||
| + | [...] | ||
| + | Sep 29 18:48:46 | wwid 3600507630080814ec000000000000006 not in wwids file, skipping sdb | ||
| + | [...] | ||
| + | </ | ||
| + | ON a trouvé que les WWIDS ne sont pas dans le fichier! | ||
| + | < | ||
| + | # Multipath wwids, Version : 1.0 | ||
| + | # NOTE: This file is automatically maintained by multipath and multipathd. | ||
| + | # You should not need to edit this file in normal circumstances. | ||
| + | # | ||
| + | # Valid WWIDs: | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | </ | ||
| + | Il faut ajouter l' | ||
| + | find_multipaths " | ||
| + | |||
| + | < | ||
| + | root@gueuza:/ | ||
| + | defaults { | ||
| + | verbosity 2 | ||
| + | polling_interval 5 | ||
| + | max_polling_interval 20 | ||
| + | reassign_maps " | ||
| + | multipath_dir "// | ||
| + | path_selector " | ||
| + | path_grouping_policy " | ||
| + | uid_attribute " | ||
| + | [...] | ||
| + | | ||
| + | [...] | ||
| + | </ | ||
| + | Redémarrage de Multipath | ||
| + | < | ||
| + | service multipathd restart | ||
| + | </ | ||
| + | Vérification | ||
| + | < | ||
| + | multipath -ll | ||
| + | 3600507630080814ec000000000000008 dm-6 IBM,2145 | ||
| + | size=10T features=' | ||
| + | |-+- policy=' | ||
| + | | `- 2:0:0:10 sdc 8:32 active ready running | ||
| + | `-+- policy=' | ||
| + | `- 4:0:0:10 sde 8:64 active ready running | ||
| + | 3600507630080814ec000000000000006 dm-5 IBM,2145 | ||
| + | size=2.0T features=' | ||
| + | |-+- policy=' | ||
| + | | `- 4: | ||
| + | `-+- policy=' | ||
| + | `- 2: | ||
| + | </ | ||
| + | < | ||
| + | </ | ||
| + | < | ||
| + | </ | ||
| + | < | ||
| + | </ | ||
| + | ==== Création de la partition et du filesystem ==== | ||
| + | |||
| + | |||
| + | ---- | ||
| + | |||
| + | //Trouver les cartes contrôleurs réseaux sur les serveurs// | ||
| < | < | ||
| 01:00.0 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01) | 01:00.0 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01) | ||
| Ligne 47: | Ligne 296: | ||
| 05:00.3 Ethernet controller: Broadcom Limited NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)</ | 05:00.3 Ethernet controller: Broadcom Limited NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)</ | ||
| + | //Trouver les @MAC des cartes réseaux sur les serveurs// | ||
| < | < | ||
| 1: lo: < | 1: lo: < | ||
| Ligne 65: | Ligne 315: | ||
| + | HP DL180 G6: IPMI: http:// | ||
projets/backup2017/configserveur.1521021718.txt.gz · Dernière modification : 2018/03/14 10:01 de tonio
