{"id":465,"date":"2013-04-09T09:00:00","date_gmt":"2013-04-09T13:00:00","guid":{"rendered":"http:\/\/rajdude.com\/blog\/?p=465"},"modified":"2013-11-27T14:00:05","modified_gmt":"2013-11-27T19:00:05","slug":"presenting-luns-to-hyper-v-2012","status":"publish","type":"post","link":"https:\/\/rajdude.com\/blog\/presenting-luns-to-hyper-v-2012\/","title":{"rendered":"Presenting LUNs to Hyper-V 2012"},"content":{"rendered":"<p>Here are my notes on presenting a LUN from a 3PAR 7400 SAN to a Hyper-V 2012 server running no GUI. The SAN is connected to the server via Fiber. There is a FC switch in between which has been properly configure, zoned, etc. Multiple paths to the same LUNs are configured for redundancy and speed so we need MPIO.<\/p>\n<p><strong>Procedure:<\/strong><\/p>\n<p>1. Install MPIO feature and reboot the Hyper-V server<\/p>\n<p>Note that I did not run the mpiocpl GUI or the mpclaim command as I described <a href=\"http:\/\/rajdude.com\/blog\/enabling-mpio-in-windows-server-2012-core\/\" target=\"_blank\">here<\/a> earlier. You may have to do that.<\/p>\n<p>2. From\u00a0 inside the SAN management console, present a LUN to the Hyper-V server.<\/p>\n<p>Note: while creating the volume\/LUN make sure to check the size against the \u201cChunklet Calc\u201d worksheet inside this spreadsheet \u2013 \u201c<a href=\"http:\/\/rajdude.com\/blog\/wp-content\/uploads\/2013\/11\/3PAR-Design-Spreadsheet-v2.xlsx\">3PAR Design Spreadsheet v2<\/a>\u201d so that\u00a0 no chunklets are stranded. For example, it is better to have a 504 GB LUN than a 500 GB LUN. A 10 GB LUN wastes 6 GB space! A 16 GB LUN wastes nothing. So you\u00a0 have to play around with the numbers in the spreadsheet.<\/p>\n<p>3. At this point you have two options \u2013 use GUI disk management tool from a remote client machine running Windows 8 OR on Hyper-V server itself run these commands:<\/p>\n<blockquote><p>diskpart<\/p>\n<p>DISKPART&gt;list disk (You may see your disk listed but if not run a rescan command)<\/p>\n<p>DISKPART&gt;rescan<\/p>\n<p>DISKPART&gt;list disk (Now you should see your new disk listed but it probably is offline)<\/p>\n<p>DISKPART&gt;list volume (this shows all your current volumes and their drive letters)<\/p>\n<p>DISKPART&gt;Select disk 1<\/p>\n<p>DISKPART&gt;online disk<\/p>\n<p>DISKPART&gt;detail disk (this will give you detailed info)<\/p>\n<p>DISKPART&gt;attributes disk clear readonly<\/p>\n<p>DISKPART&gt;clean<\/p>\n<p>DISKPART&gt;convert mbr<\/p>\n<p>DISKPART&gt;create partition primary<\/p>\n<p>DISKPART&gt;select part 1<\/p>\n<p>DISKPART&gt;format fs=ntfs label=SANtest quick<\/p>\n<p>DISKPART&gt;assign letter E<\/p>\n<p>DISKPART&gt;list volume (you should see the new volume\u00a0 now)<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>Full diskpart syntax can be seen <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/cc766465(v=ws.10).aspx\" target=\"_blank\">here<\/a><\/p>\n<p>Credits and more information <a href=\"http:\/\/www.jwgoerlich.us\/blogengine\/post\/2009\/11\/05\/Use-Diskpart-to-Create-and-Format-Partitions.aspx\" target=\"_blank\">here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here are my notes on presenting a LUN from a 3PAR 7400 SAN to a Hyper-V 2012 server running no GUI. The SAN is connected to the server via Fiber. There is a FC switch in between which has been properly configure, zoned, etc. Multiple paths to the same LUNs are configured for redundancy and speed so we need MPIO. Procedure: 1. Install MPIO feature and reboot the Hyper-V server Note that I did not run the mpiocpl GUI or the mpclaim command as I described here earlier. You may have to do that. 2. From\u00a0 inside the SAN management console, present a LUN to the Hyper-V server. Note: while creating the volume\/LUN make sure to check the size against the \u201cChunklet Calc\u201d worksheet inside this spreadsheet \u2013 \u201c3PAR Design Spreadsheet v2\u201d so that\u00a0 no chunklets are stranded. For example, it is better to have a 504 GB LUN than a 500 GB LUN. A 10 GB LUN wastes 6 GB space! A 16 GB LUN wastes nothing. So you\u00a0 have to play around with the numbers in the spreadsheet. 3. At this point you have two options \u2013 use GUI disk management tool from a remote client machine running Windows 8 OR on Hyper-V server itself run these commands: diskpart DISKPART&gt;list disk (You may see your disk listed but if not run a rescan command) DISKPART&gt;rescan DISKPART&gt;list disk (Now you should see your new disk listed but it probably is offline) DISKPART&gt;list volume (this shows all your current volumes and their drive letters) DISKPART&gt;Select disk 1 DISKPART&gt;online disk DISKPART&gt;detail disk (this will give you detailed info) DISKPART&gt;attributes disk clear readonly DISKPART&gt;clean DISKPART&gt;convert mbr DISKPART&gt;create partition primary DISKPART&gt;select part 1 DISKPART&gt;format fs=ntfs label=SANtest quick DISKPART&gt;assign letter E DISKPART&gt;list volume (you should see the new volume\u00a0 now) &nbsp; Full diskpart syntax can be seen here Credits and more information here<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[70,75],"class_list":["post-465","post","type-post","status-publish","format-standard","hentry","category-itsys","tag-hyper-v-server-2012","tag-san"],"_links":{"self":[{"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/posts\/465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/comments?post=465"}],"version-history":[{"count":5,"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/posts\/465\/revisions"}],"predecessor-version":[{"id":606,"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/posts\/465\/revisions\/606"}],"wp:attachment":[{"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/media?parent=465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/categories?post=465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/tags?post=465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}