{"id":40,"date":"2012-07-26T10:25:00","date_gmt":"2012-07-26T08:25:00","guid":{"rendered":"https:\/\/test.n3oxid.fr\/?p=40"},"modified":"2021-04-18T21:15:50","modified_gmt":"2021-04-18T19:15:50","slug":"ajout-dun-volume-san-avec-gestion-du-multipath-sous-gnu-linux-debian","status":"publish","type":"post","link":"https:\/\/www.n3oxid.fr\/?p=40","title":{"rendered":"Ajout d&#8217;un volume SAN avec gestion du multipath sous GNU\/Linux Debian"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Installation des outils<\/h2>\n\n\n\n<p>Installer les paquets permettant de g\u00e9rer les p\u00e9riph\u00e9riques SCSI ainsi que le&nbsp;<em>mulitpath<\/em>&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># aptitude install scsitools multipath-tools<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">R\u00e9cup\u00e9ration de l&#8217;ID des cartes HBA<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\"># cat \/sys\/class\/fc_host\/host*\/port_name<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">D\u00e9couverte du volume SAN<\/h2>\n\n\n\n<p>Lancer une v\u00e9rification des nouveaux p\u00e9riph\u00e9riques SCSI&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># rescan-scsi-bus.sh<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Configuration du Multipath<\/h2>\n\n\n\n<p>Editer le fichier de configuration pour la gestion du&nbsp;<em>multipath<\/em>&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># vim \/etc\/multipath.conf<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">##\n## This is a template multipath-tools configuration file\n## Uncomment the lines relevent to your environment\n##\ndefaults {\n\tudev_dir                \/dev\n\tpolling_interval        10\n\tselector                \"round-robin 0\"\n\tpath_grouping_policy    multibus\n\tgetuid_callout          \"\/lib\/udev\/scsi_id --whitelisted --device=\/dev\/%n\"\n\tprio                    const\n\tpath_checker            directio\n\trr_min_io               100\n\tflush_on_last_del       no\n\tmax_fds                 8192\n\trr_weight               priorities\n\tfailback                immediate\n\tno_path_retry           fail\n\tuser_friendly_names     no\n\tmode                    644\n\tuid                     0\n\tgid                     disk\n}\n\nblacklist {\n\tdevnode         \"^hd[a-z][[0-9]*]\"\n\tdevnode         \"^cciss!c[0-9]d[0-9]*\"\n}\n\nmultipaths {\n\tmultipath {\n\t\twwid                    36001438005decacc0000e00024a40000\n\t\talias                   vdisk\n\t\tpath_grouping_policy    group_by_prio\n\t\tpath_selector           \"round-robin 0\"\n\t\tfailback                immediate\n\t\t#rr_weight              priorities\n\t\trr_weight               uniform\n\t\tno_path_retry           5\n\t\trr_min_io               100\n\t}\n}\n<\/pre>\n\n\n\n<p><ins>Remarque<\/ins>&nbsp;: le World Wide ID (wwid) pourra \u00eatre r\u00e9cup\u00e9r\u00e9 et modifi\u00e9 en cons\u00e9quence ult\u00e9rieurement. Charger le module pour la gestion du&nbsp;<em>multipath<\/em>&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># modprobe dm-multipath<\/pre>\n\n\n\n<p>Lancer la d\u00e9couverte des diff\u00e9rents chemins pour l&#8217;acc\u00e8s au volume SAN&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># multipath<\/pre>\n\n\n\n<p>R\u00e9cup\u00e9rer le WWID afin de modifier le pr\u00e9c\u00e9dent fichier de configuration&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># multipath -ll<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Montage du volume<\/h2>\n\n\n\n<p>Cr\u00e9er un r\u00e9pertoire de test pour le point de montage&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># mkdir \/media\/test<\/pre>\n\n\n\n<p>Renseigner ce point de montage dans le&nbsp;<em>fstab<\/em>&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># echo -en \"\/dev\/mapper\/vdisk\\t\/media\/test\\text3\\tdefaults\\t0  0\" &gt;&gt; \/etc\/fstab<\/pre>\n\n\n\n<p>Monter le volume SAN&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># mount \/media\/test<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Installation des outils Installer les paquets permettant de g\u00e9rer les p\u00e9riph\u00e9riques SCSI ainsi que le&nbsp;mulitpath&nbsp;: # aptitude install scsitools multipath-tools R\u00e9cup\u00e9ration de l&#8217;ID des cartes HBA # cat \/sys\/class\/fc_host\/host*\/port_name D\u00e9couverte &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[8,9,30,31],"class_list":["post-40","post","type-post","status-publish","format-standard","hentry","category-computing","tag-debian","tag-linux","tag-multipath","tag-san"],"_links":{"self":[{"href":"https:\/\/www.n3oxid.fr\/index.php?rest_route=\/wp\/v2\/posts\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.n3oxid.fr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.n3oxid.fr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.n3oxid.fr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.n3oxid.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=40"}],"version-history":[{"count":1,"href":"https:\/\/www.n3oxid.fr\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions"}],"predecessor-version":[{"id":41,"href":"https:\/\/www.n3oxid.fr\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions\/41"}],"wp:attachment":[{"href":"https:\/\/www.n3oxid.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.n3oxid.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.n3oxid.fr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}