{"id":30263,"date":"2017-06-29T14:56:28","date_gmt":"2017-06-29T14:56:28","guid":{"rendered":"http:\/\/systemadmin.es\/?p=5117"},"modified":"2017-06-29T14:56:28","modified_gmt":"2017-06-29T14:56:28","slug":"hacer-un-rescan-de-discos-iscsi","status":"publish","type":"post","link":"https:\/\/icloud.pe\/blog\/hacer-un-rescan-de-discos-iscsi\/","title":{"rendered":"Hacer un rescan de discos iSCSI"},"content":{"rendered":"<p>En el caso que hayamos cambiado el tama\u00f1o de un disco iSCSI, vamos a necesitar hacer un rescan de las sesiones iSCSI<\/p>\n<p><!-- more --><\/p>\n<p>Vamos a suponer que hemos ampliado el siguiente disco:<\/p>\n<pre>\r\n# fdisk -l \/dev\/sdb\r\n\r\n<strong>Disk \/dev\/sdb: 32.2 GB<\/strong>, 32212254720 bytes\r\n64 heads, 32 sectors\/track, 30720 cylinders\r\nUnits = cylinders of 2048 * 512 = 1048576 bytes\r\n\r\n   Device Boot      Start         End      Blocks   Id  System\r\n\/dev\/sdb1               1       30720    31457264   83  Linux\r\n<\/pre>\n<p>Mediante iscsiadm podemos hacer el rescan de las sessiones iSCSI:<\/p>\n<pre>\r\n# iscsiadm -m node -R\r\nRescanning session [sid: 1, target: iqn.1992-08.com.netapp:sn.193472889, portal: 10.12.16.222,3260]\r\n<\/pre>\n<p>A continuaci\u00f3n veremos el nuevo tama\u00f1o del disco:<\/p>\n<pre>\r\n# fdisk -l \/dev\/sdb\r\n\r\n<strong>Disk \/dev\/sdb: 85.8 GB<\/strong>, 85899345920 bytes\r\n64 heads, 32 sectors\/track, 81920 cylinders\r\nUnits = cylinders of 2048 * 512 = 1048576 bytes\r\n\r\n   Device Boot      Start         End      Blocks   Id  System\r\n\/dev\/sdb1               1       30720    31457264   83  Linux\r\n<\/pre>\n<p>\tTags: <a href=\"http:\/\/systemadmin.es\/tag\/iscsi\" title=\"iSCSI\" rel=\"tag\">iSCSI<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>En el caso que hayamos cambiado el tama&ntilde;o de un disco iSCSI, vamos a necesitar hacer un rescan de las sesiones iSCSI Vamos a suponer que hemos ampliado el siguiente disco: # fdisk -l \/dev\/sdb Disk \/dev\/sdb: 32.2 GB, 32212254720 bytes 64 heads, 32 sectors\/track, 30720 cylinders Units = cylinders of 2048 * 512 = [&hellip;]<\/p>\n","protected":false},"author":321,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5107,63],"tags":[],"class_list":["post-30263","post","type-post","status-publish","format-standard","hentry","category-iscsi","category-storage"],"_links":{"self":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts\/30263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/users\/321"}],"replies":[{"embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/comments?post=30263"}],"version-history":[{"count":3,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts\/30263\/revisions"}],"predecessor-version":[{"id":41903,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts\/30263\/revisions\/41903"}],"wp:attachment":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/media?parent=30263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/categories?post=30263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/tags?post=30263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}