{"id":3518,"date":"2012-12-02T16:45:45","date_gmt":"2012-12-02T07:45:45","guid":{"rendered":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=3518"},"modified":"2012-12-02T22:04:45","modified_gmt":"2012-12-02T13:04:45","slug":"%e5%ae%b6%e9%af%96-esxi-%e5%8c%96","status":"publish","type":"post","link":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=3518","title":{"rendered":"\u5bb6\u9bd6 ESXi \u5316 &#038; \u30ed\u30fc\u30ab\u30eb HDD \u306e raw device mapping \u306e\u65b9\u6cd5"},"content":{"rendered":"<p>\u5148\u65e5\u8cb7\u3063\u3066\u304d\u305f\u30a2\u30a4\u30d3\u30fc\u541b\u306b ESXi \u3092\u5165\u308c\u3001\u307e\u305a\u306f\u5bb6\u9bd6\u3092\u79fb\u884c\u3057\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u5bb6\u9bd6\uff08\u3053\u306e blog \u304c\u52d5\u3044\u3066\u3044\u308b\u9bd6\u3067\u306f\u306a\u3044\uff09\u306f\u5b9f\u30de\u30b7\u30f3\u3067\u52d5\u3044\u3066\u3044\u308b\uff08\u3044\u305f\uff09\u305f\u3081\u3001\u3082\u3061\u308d\u3093\u5b9f\u30c7\u30a3\u30b9\u30af\u306b\u30c7\u30fc\u30bf\u304c\u8f09\u3063\u3066\u3044\u308b\u308f\u3051\u3067\u3059\u304c\u3001\u79fb\u884c\u3059\u308b\u306b\u306f\u4eee\u60f3\u30c7\u30a3\u30b9\u30af\u306b\u30c7\u30fc\u30bf\u3092\u30b3\u30d4\u30fc\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u6700\u521d\u306f\u3001\u65e7\u30c7\u30a3\u30b9\u30af\u3092 USB-HDD \u30a2\u30c0\u30d7\u30bf\u3067\u3064\u306a\u3044\u3067 ESXi \u306e\u6a5f\u80fd\u3067 USB \u30c7\u30d0\u30a4\u30b9\u3092 VM \u306b\u898b\u305b\u3066 dd \u3057\u3088\u3046\u304b\u3068\u601d\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u305f\u3060\u3057\u3001\u3053\u308c\u3060\u3068\u30b3\u30d4\u30fc\u4e2d\u306f\u30c0\u30a6\u30f3\u30bf\u30a4\u30e0\u306b\u306a\u308b\u4e0a\u306b USB2 \u306a\u306e\u3067\u304b\u306a\u308a\u9045\u3044\u306e\u304c\u554f\u984c\u306b\u306a\u308a\u307e\u3059\u3002USB3 \u306a\u3089\u3060\u3044\u3076\u30de\u30b7\u306a\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3002<\/p>\n<p>\u3061\u3087\u3063\u3068\u8abf\u3079\u3066\u307f\u308b\u3068\u3001\u81ea\u5df1\u8cac\u4efb\u30d9\u30fc\u30b9\u306a\u3089\u30ed\u30fc\u30ab\u30eb HDD \u3092\u76f4\u63a5 VM \u306b\u898b\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3089\u3057\u3044\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3057\u305f\uff08iSCSI \u30c7\u30d0\u30a4\u30b9\u306a\u3089 vSphere Client \u304b\u3089\u666e\u901a\u306b\u8a2d\u5b9a\u3067\u304d\u308b\uff09\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\uff08\u9577\u3044\u306e\u3067\u6539\u884c\u3057\u3066\u3042\u308a\u307e\u3059\uff09<\/p>\n<blockquote>\n<pre># vmkfstools\r\n    -z \/vmfs\/devices\/disks\/<strong>\u30c7\u30a3\u30b9\u30af\u30c7\u30d0\u30a4\u30b9\u540d<\/strong>\r\n    \/vmfs\/volumes\/<strong>\u30c7\u30fc\u30bf\u30b9\u30c8\u30a2\u540d<\/strong>\/<strong>VM\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d<\/strong>\/<strong>\u4eee\u60f3\u30c7\u30a3\u30b9\u30af\u30d5\u30a1\u30a4\u30eb\u540d<\/strong>.vmdk\r\n    -a ide<\/pre>\n<\/blockquote>\n<p>-z \u304c\u30ed\u30fc\u30ab\u30eb HDD \u3092\u898b\u305b\u308b\u305f\u3081\u306e\u30de\u30c3\u30d4\u30f3\u30b0\u7528 vmdk \u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u3089\u305b\u308b\u305f\u3081\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3002-a \u306f\u30c7\u30a3\u30b9\u30af\uff08\u6b63\u78ba\u306b\u306fHBA\uff09\u306e\u30bf\u30a4\u30d7\u3067\u3059\u3002\u3061\u306a\u307f\u306b ide \u306f\u3042\u3063\u3066\u3082 sata \u306f\u3042\u308a\u307e\u305b\u3093\u3002\u306a\u306e\u3067 Linux \u304b\u3089\u3060\u3068\u5834\u5408\u306b\u3088\u3063\u3066\u306f \/dev\/sda \u3067\u306f\u306a\u304f \/dev\/hda \u306b\u898b\u3048\u307e\u3059\u3002\u6570\u5e74\u3076\u308a\u306b\u61d0\u304b\u3057\u3044\u30c7\u30d0\u30a4\u30b9\u540d\u3092\u898b\u307e\u3057\u305f\u3088\u3002<\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u63a5\u7d9a\uff08WD Green \u304c\u5bb6\u9bd6\u306e HDD\uff09\u3057\u3066\u3001<br \/>\n<a href=\"http:\/\/umezawa.dyndns.info\/wordpress\/wp-content\/uploads\/2012\/12\/ivy-esxi-rdm-1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/umezawa.dyndns.info\/wordpress\/wp-content\/uploads\/2012\/12\/ivy-esxi-rdm-1.jpg\" alt=\"\" title=\"ESXi \u3067\u306e RDM \u306e\u305f\u3081\u306e\u914d\u7dda\" width=\"320\" height=\"240\" class=\"alignnone size-full wp-image-3523\" \/><\/a><\/p>\n<p>\u3046\u3063\u304b\u308a\u5bb6\u9bd6\u306e HDD \u306e\u65b9\u304b\u3089\u8d77\u52d5\u3057\u306a\u3044\u3088\u3046\u306b\u6ce8\u610f\u3057\u3066 ESXi \u3092\u8d77\u52d5\u3057\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3061\u307e\u3059\u3002<\/p>\n<blockquote>\n<pre># vmkfstools\r\n    -z \/vmfs\/devices\/disks\/t10.ATA_____WDC_WD20EARX2D00PASB0_________________________<i>\u3053\u306e\u90e8\u5206\u30b7\u30ea\u30a2\u30eb\u30ca\u30f3\u30d0\u30fc\u306a\u306e\u3067\u4f0f\u305b\u308b<\/i>\r\n    \/vmfs\/volumes\/datastore0a\/nyx\/green.vmdk\r\n    -a ide<\/pre>\n<\/blockquote>\n<p>\u3067\u304d\u305f vmdk \u3092 VM \u306b\u63a5\u7d9a\u3059\u308c\u3070\u6e96\u5099 OK \u3067\u3059\u3002<br \/>\n<a href=\"http:\/\/umezawa.dyndns.info\/wordpress\/wp-content\/uploads\/2012\/12\/ivy-esxi-rdm-2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/umezawa.dyndns.info\/wordpress\/wp-content\/uploads\/2012\/12\/ivy-esxi-rdm-2.png\" alt=\"\" title=\"ESXi \u3067\u306e RDM \u3067 VM \u306b HDD \u3092\u63a5\u7d9a\" width=\"360\" height=\"320\" class=\"alignnone size-full wp-image-3525\" \/><\/a><br \/>\n\u30cf\u30fc\u30c9\u30c7\u30a3\u30b9\u30af 2 \u3068 3 \u306f\u4eee\u60f3\u30c7\u30a3\u30b9\u30af\u3067\u3059\u3002<\/p>\n<p>\u3042\u3068\u306f\u30c7\u30a3\u30b9\u30af\u969c\u5bb3\u306e\u6642\u3068\u540c\u69d8\u306b\u30df\u30e9\u30fc\u3092\u30ea\u30d3\u30eb\u30c9\u3057\u307e\u3059\u3002<\/p>\n<blockquote>\n<pre>[root@nyx umezawa]# mdadm \/dev\/md0 --grow --raid-devices 3\r\n[root@nyx umezawa]# mdadm \/dev\/md1 --grow --raid-devices 3\r\n[root@nyx umezawa]# mdadm \/dev\/md2 --grow --raid-devices 3\r\n[root@nyx umezawa]# mdadm --manage \/dev\/md0 --add \/dev\/sd[ab]1\r\nmdadm: added \/dev\/sda1\r\nmdadm: added \/dev\/sdb1\r\n[root@nyx umezawa]# mdadm --manage \/dev\/md2 --add \/dev\/sd[ab]2\r\nmdadm: added \/dev\/sda2\r\nmdadm: added \/dev\/sdb2\r\n[root@nyx umezawa]# mdadm --manage \/dev\/md1 --add \/dev\/sd[ab]3\r\nmdadm: added \/dev\/sda3\r\nmdadm: added \/dev\/sdb3\r\n[root@nyx umezawa]#<\/pre>\n<\/blockquote>\n<p>\u3057\u304b\u3057\u3001\u3044\u3044\u304b\u3052\u3093 md \u30c7\u30d0\u30a4\u30b9\u756a\u53f7\u5909\u3048\u305f\u65b9\u304c\u3044\u3044\u6c17\u304c\u3057\u3066\u304d\u305f\u3002md \u30c7\u30d0\u30a4\u30b9\u306e\u756a\u53f7\u3068\u30e1\u30f3\u30d0\u30d6\u30ed\u30c3\u30af\u30c7\u30d0\u30a4\u30b9\u306b\u4ed8\u304f\u756a\u53f7\u304c\u9055\u3063\u3066\u3044\u3066\u6bce\u56de\u9593\u9055\u3048\u308b\u3002<\/p>\n<blockquote>\n<pre>[root@nyx umezawa]# cat \/proc\/mdstat\r\nPersonalities : [raid1]\r\nmd0 : active raid1 sdb1[2] sda1[1] hda1[0]\r\n      1052160 blocks [3\/3] [UUU]\r\n\r\nmd2 : active raid1 sdb2[2] sda2[1] hda2[0]\r\n      2096384 blocks [3\/3] [UUU]\r\n\r\nmd1 : active raid1 sdb3[3](S) sda3[4] hda3[0]\r\n      1949451264 blocks [3\/1] [U__]\r\n      [=&gt;...................]  recovery =  5.8% (114745728\/1949451264) finish=56\r\n6.8min speed=53945K\/sec\r\n\r\nunused devices: &lt;none&gt;\r\n[root@nyx umezawa]#<\/pre>\n<\/blockquote>\n<p>2\u3064\u306e\u30c7\u30a3\u30b9\u30af\u306b\u540c\u6642\u306b\u66f8\u304d\u8fbc\u307e\u306a\u3044\u30671\u3064\u305a\u3064\u30ea\u30d3\u30eb\u30c9\u3057\u3066\u3044\u308b\u3088\u3046\u306a\u306e\u3067\u3001\u5b8c\u4e86\u306b\u306f10\u6642\u9593x2\u306720\u6642\u9593\u304b\u304b\u308b\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001\u8d77\u52d5\u30c7\u30d0\u30a4\u30b9\u304c SATA \u304b\u3089 LSIlogic \u30d1\u30e9\u30ec\u30eb \u306b\u306a\u308b\u306e\u3067\u3001grub \u3092\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u308a initrd \u3092\u518d\u69cb\u7bc9\u3057\u305f\u308a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u305d\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u65e5\u8cb7\u3063\u3066\u304d\u305f\u30a2\u30a4\u30d3\u30fc\u541b\u306b ESXi \u3092\u5165\u308c\u3001\u307e\u305a\u306f\u5bb6\u9bd6\u3092\u79fb\u884c\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3518","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3518","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3518"}],"version-history":[{"count":17,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3518\/revisions"}],"predecessor-version":[{"id":3537,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3518\/revisions\/3537"}],"wp:attachment":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3518"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}