{"id":43,"date":"2021-02-03T19:16:56","date_gmt":"2021-02-03T19:16:56","guid":{"rendered":"https:\/\/wiki.reuters-it.com\/?p=43"},"modified":"2021-06-11T12:18:42","modified_gmt":"2021-06-11T12:18:42","slug":"raw-festplatte-einbinden","status":"publish","type":"post","link":"https:\/\/wiki.reuters-it.com\/?p=43","title":{"rendered":"RAW Festplatte in VMware ESXi einbinden"},"content":{"rendered":"\n<p>To configure a local device as an RDM disk:<\/p>\n\n\n\n<ol><li>Open an SSH session to the ESXi\/ESX host.<br> <\/li><li>Run this command to list the disks that are attached to the ESXi host:<br> <br># ls -l \/vmfs\/devices\/disks<br> <\/li><li>From the list, identify the local device you want to configure as an RDM and copy the device name.<br> <br><strong>Note<\/strong>: The device name is likely be prefixed with t10. and look similar to:<br> <br>t10.F405E46494C4540046F455B64787D285941707D203F45765<br> <\/li><li>To configure the device as an RDM and output the RDM pointer file to your chosen destination, run this command:<br> <br># vmkfstools -z \/vmfs\/devices\/disks\/<em>diskname<\/em>\/vmfs\/volumes\/<em>datastorename<\/em>\/<em>vmfolder<\/em>\/<em>vmname<\/em>.vmdk<br><br>For example:<br><br># vmkfstools -z \/vmfs\/devices\/disks\/t10.F405E46494C4540046F455B64787D285941707D203F45765 \/vmfs\/volumes\/Datastore2\/localrdm1\/localrdm1.vmdk<br><br><strong>Note<\/strong>: The size of the newly created RDM pointer file appears to be the same size and the Raw Device it it mapped to, this is a dummy file and is not consuming any storage space.<br><\/li><li>When you have created the RDM pointer file, attach the RDM to a virtual machine using the vSphere Client:<br><ol><li>Right click the virtual machine you want to add an RDM disk to.<\/li><li>Click <strong>Edit Settings<\/strong>.<\/li><li>Click <strong>Add<\/strong>.<\/li><li>Select <strong>Hard Disk<\/strong>.<\/li><li>Select <strong>Use an existing virtual disk<\/strong>.<\/li><li>Browse to the directory you saved the RDM pointer to in step 5 and select the RDM pointer file and click <strong>Next<\/strong>.<\/li><li>Select the virtual SCSI controller you want to attach the disk to and click <strong>Next<\/strong>.<\/li><li>Click <strong>Finish<\/strong>.<br><\/li><\/ol><\/li><li>You should now see your new hard disk in the virtual machine inventory as <strong>Mapped Raw LUN<\/strong>.<\/li><\/ol>\n\n\n\n<p><strong>Notes<\/strong>:<\/p>\n\n\n\n<ul><li>As this virtual machine now has an attached local disk migration, using vMotion is not possible.<\/li><li>If you need to remove the local RDM mapping from the virtual machine, just apply the same process you would with a shared storage RDM. In the vSphere Client: right-click the virtual machine, click <strong>Edit settings<\/strong>, select the RDM disk and then click <strong>delete from disk<\/strong>. This does not delete the data on the disk, it only deletes the RDM mapping file.<\/li><\/ul>\n\n\n\n<p><strong>Notes 2:<\/strong><\/p>\n\n\n\n<ul><li>Das Target darf im Namen nicht *<em>rdm.vmdk<\/em> enthalten (steht in der Blacklist)<\/li><li>Die Parameter f\u00fcr <em>vmkfstools<\/em> m\u00fcssen voll qualifizierte Dateinamen enthalten<\/li><\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To configure a local device as an RDM disk: Open an SSH session to the ESXi\/ESX host. Run this command to list the disks that are attached to the ESXi host: # ls -l \/vmfs\/devices\/disks From the list, identify the local device you want to configure as an RDM and copy the device name. Note:&#8230; <a href=\"https:\/\/wiki.reuters-it.com\/?p=43\">weiterlesen &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[14,3,13],"tags":[15],"_links":{"self":[{"href":"https:\/\/wiki.reuters-it.com\/index.php?rest_route=\/wp\/v2\/posts\/43"}],"collection":[{"href":"https:\/\/wiki.reuters-it.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wiki.reuters-it.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.reuters-it.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wiki.reuters-it.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=43"}],"version-history":[{"count":5,"href":"https:\/\/wiki.reuters-it.com\/index.php?rest_route=\/wp\/v2\/posts\/43\/revisions"}],"predecessor-version":[{"id":50,"href":"https:\/\/wiki.reuters-it.com\/index.php?rest_route=\/wp\/v2\/posts\/43\/revisions\/50"}],"wp:attachment":[{"href":"https:\/\/wiki.reuters-it.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=43"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wiki.reuters-it.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=43"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wiki.reuters-it.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=43"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}