{"id":538,"date":"2019-04-15T11:15:10","date_gmt":"2019-04-15T19:15:10","guid":{"rendered":"https:\/\/angrysysadmins.tech\/?p=538"},"modified":"2019-04-15T14:57:32","modified_gmt":"2019-04-15T22:57:32","slug":"xcp-ng-how-to-create-virtual-disk-larger-that-2tb","status":"publish","type":"post","link":"https:\/\/angrysysadmins.tech\/index.php\/2019\/04\/grassyloki\/xcp-ng-how-to-create-virtual-disk-larger-that-2tb\/","title":{"rendered":"XenServer \\ XCP-ng: How to Create a Virtual Disk Larger than 2tb"},"content":{"rendered":"<p>So recently I ran into an issue where I needed to create a virtual disk 20TB in size. Unfortunately, XCP-ng does not allow doing this through its manager because it uses an older disk system. However, you can manually create an LVM partition and map it to the VM. Here is what you need to do:<\/p>\n<p>&nbsp;<\/p>\n<p>Grab your SR UUID from the management console. The UUID I will be using for example commands is f8f32ef5-81d7-9154-d0f2-b92559b8ecbc. You will need to replace it with your UUID.<\/p>\n<p>&nbsp;<\/p>\n<p>Now we need to get the volume group device name:<\/p>\n<pre>vgs | awk '{print $1}' | grep f8f32ef5-81d7-9154-d0f2-b92559b8ecbc<\/pre>\n<p>&nbsp;<\/p>\n<p>Now we create the volume. Make to change the &#8220;20T&#8221; to your desired size in TB:<\/p>\n<pre>lvcreate -L20T -n\"LV-\"$(uuidgen) VG_XenStorage-f8f32ef5-81d7-9154-d0f2-b92559b8ecbc --config global{metadata_read_only=0}<\/pre>\n<p>&nbsp;<\/p>\n<p>Finally, scan the SR and you should see a no name virtual disk.<\/p>\n<pre>xe sr-scan uuid=f8f32ef5-81d7-9154-d0f2-b92559b8ecbc<\/pre>\n<p>&nbsp;<\/p>\n<p>Now you can attach the created disk to your VM. Just make sure to change the name in the management center.<\/p>\n<p>&nbsp;<\/p>\n<p>There might be a way to thin provision it, but I don&#8217;t know how to do that. If you have found a way to do so, please comment down below.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So recently I ran into an issue where I needed to create a virtual disk 20TB in size. Unfortunately, XCP-ng does not allow doing this through its manager because it uses an older disk system. However, you can manually create an LVM partition and map it to the VM. Here is what you need to <br \/><a class=\"read-more-button\" href=\"https:\/\/angrysysadmins.tech\/index.php\/2019\/04\/grassyloki\/xcp-ng-how-to-create-virtual-disk-larger-that-2tb\/\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43,8,22,66],"tags":[69,67,126,125],"coauthors":[39],"class_list":["post-538","post","type-post","status-publish","format-standard","hentry","category-bash","category-linux","category-virtualization","category-xen","tag-xcp-ng","tag-xen","tag-xencenter","tag-xenserver"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>XenServer \\ XCP-ng: How to Create a Virtual Disk Larger than 2tb - Angry Sysadmins<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/angrysysadmins.tech\/index.php\/2019\/04\/grassyloki\/xcp-ng-how-to-create-virtual-disk-larger-that-2tb\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"XenServer \\ XCP-ng: How to Create a Virtual Disk Larger than 2tb - Angry Sysadmins\" \/>\n<meta property=\"og:description\" content=\"So recently I ran into an issue where I needed to create a virtual disk 20TB in size. Unfortunately, XCP-ng does not allow doing this through its manager because it uses an older disk system. However, you can manually create an LVM partition and map it to the VM. Here is what you need to Read More &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/angrysysadmins.tech\/index.php\/2019\/04\/grassyloki\/xcp-ng-how-to-create-virtual-disk-larger-that-2tb\/\" \/>\n<meta property=\"og:site_name\" content=\"Angry Sysadmins\" \/>\n<meta property=\"article:published_time\" content=\"2019-04-15T19:15:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-04-15T22:57:32+00:00\" \/>\n<meta name=\"author\" content=\"Ryan Parker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ryan Parker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/04\\\/grassyloki\\\/xcp-ng-how-to-create-virtual-disk-larger-that-2tb\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/04\\\/grassyloki\\\/xcp-ng-how-to-create-virtual-disk-larger-that-2tb\\\/\"},\"author\":{\"name\":\"Ryan Parker\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#\\\/schema\\\/person\\\/651321cd35645fb6a4d8a75b7bc7c199\"},\"headline\":\"XenServer \\\\ XCP-ng: How to Create a Virtual Disk Larger than 2tb\",\"datePublished\":\"2019-04-15T19:15:10+00:00\",\"dateModified\":\"2019-04-15T22:57:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/04\\\/grassyloki\\\/xcp-ng-how-to-create-virtual-disk-larger-that-2tb\\\/\"},\"wordCount\":203,\"commentCount\":13,\"keywords\":[\"XCP-ng\",\"Xen\",\"xencenter\",\"xenserver\"],\"articleSection\":[\"Bash\",\"Linux\",\"Virtualization\",\"Xen\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/04\\\/grassyloki\\\/xcp-ng-how-to-create-virtual-disk-larger-that-2tb\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/04\\\/grassyloki\\\/xcp-ng-how-to-create-virtual-disk-larger-that-2tb\\\/\",\"url\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/04\\\/grassyloki\\\/xcp-ng-how-to-create-virtual-disk-larger-that-2tb\\\/\",\"name\":\"XenServer \\\\ XCP-ng: How to Create a Virtual Disk Larger than 2tb - Angry Sysadmins\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#website\"},\"datePublished\":\"2019-04-15T19:15:10+00:00\",\"dateModified\":\"2019-04-15T22:57:32+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#\\\/schema\\\/person\\\/651321cd35645fb6a4d8a75b7bc7c199\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/04\\\/grassyloki\\\/xcp-ng-how-to-create-virtual-disk-larger-that-2tb\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/04\\\/grassyloki\\\/xcp-ng-how-to-create-virtual-disk-larger-that-2tb\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/04\\\/grassyloki\\\/xcp-ng-how-to-create-virtual-disk-larger-that-2tb\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/angrysysadmins.tech\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"XenServer \\\\ XCP-ng: How to Create a Virtual Disk Larger than 2tb\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#website\",\"url\":\"https:\\\/\\\/angrysysadmins.tech\\\/\",\"name\":\"Angry Sysadmins\",\"description\":\"A site full of angry sysadmins here to vent and help\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/angrysysadmins.tech\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#\\\/schema\\\/person\\\/651321cd35645fb6a4d8a75b7bc7c199\",\"name\":\"Ryan Parker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fc12b1a02765c8017062ee6f41eb34a7b14575bcd8acd7da40e176fe8f12b10f?s=96&d=mm&r=g664d0e05248e51cb1d71b3f66c6f929d\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fc12b1a02765c8017062ee6f41eb34a7b14575bcd8acd7da40e176fe8f12b10f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fc12b1a02765c8017062ee6f41eb34a7b14575bcd8acd7da40e176fe8f12b10f?s=96&d=mm&r=g\",\"caption\":\"Ryan Parker\"},\"description\":\"Professionally im a Infrastructure Security Specialist. I current maintain a homelab with about 3TB of RAM, 240+ TB of storage, tons of CPU cores, and 100gbit networking backbone in the garage running up my electricity bill.\",\"url\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/author\\\/grassyloki\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"XenServer \\ XCP-ng: How to Create a Virtual Disk Larger than 2tb - Angry Sysadmins","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/angrysysadmins.tech\/index.php\/2019\/04\/grassyloki\/xcp-ng-how-to-create-virtual-disk-larger-that-2tb\/","og_locale":"en_US","og_type":"article","og_title":"XenServer \\ XCP-ng: How to Create a Virtual Disk Larger than 2tb - Angry Sysadmins","og_description":"So recently I ran into an issue where I needed to create a virtual disk 20TB in size. Unfortunately, XCP-ng does not allow doing this through its manager because it uses an older disk system. However, you can manually create an LVM partition and map it to the VM. Here is what you need to Read More &raquo;","og_url":"https:\/\/angrysysadmins.tech\/index.php\/2019\/04\/grassyloki\/xcp-ng-how-to-create-virtual-disk-larger-that-2tb\/","og_site_name":"Angry Sysadmins","article_published_time":"2019-04-15T19:15:10+00:00","article_modified_time":"2019-04-15T22:57:32+00:00","author":"Ryan Parker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ryan Parker","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/angrysysadmins.tech\/index.php\/2019\/04\/grassyloki\/xcp-ng-how-to-create-virtual-disk-larger-that-2tb\/#article","isPartOf":{"@id":"https:\/\/angrysysadmins.tech\/index.php\/2019\/04\/grassyloki\/xcp-ng-how-to-create-virtual-disk-larger-that-2tb\/"},"author":{"name":"Ryan Parker","@id":"https:\/\/angrysysadmins.tech\/#\/schema\/person\/651321cd35645fb6a4d8a75b7bc7c199"},"headline":"XenServer \\ XCP-ng: How to Create a Virtual Disk Larger than 2tb","datePublished":"2019-04-15T19:15:10+00:00","dateModified":"2019-04-15T22:57:32+00:00","mainEntityOfPage":{"@id":"https:\/\/angrysysadmins.tech\/index.php\/2019\/04\/grassyloki\/xcp-ng-how-to-create-virtual-disk-larger-that-2tb\/"},"wordCount":203,"commentCount":13,"keywords":["XCP-ng","Xen","xencenter","xenserver"],"articleSection":["Bash","Linux","Virtualization","Xen"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/angrysysadmins.tech\/index.php\/2019\/04\/grassyloki\/xcp-ng-how-to-create-virtual-disk-larger-that-2tb\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/angrysysadmins.tech\/index.php\/2019\/04\/grassyloki\/xcp-ng-how-to-create-virtual-disk-larger-that-2tb\/","url":"https:\/\/angrysysadmins.tech\/index.php\/2019\/04\/grassyloki\/xcp-ng-how-to-create-virtual-disk-larger-that-2tb\/","name":"XenServer \\ XCP-ng: How to Create a Virtual Disk Larger than 2tb - Angry Sysadmins","isPartOf":{"@id":"https:\/\/angrysysadmins.tech\/#website"},"datePublished":"2019-04-15T19:15:10+00:00","dateModified":"2019-04-15T22:57:32+00:00","author":{"@id":"https:\/\/angrysysadmins.tech\/#\/schema\/person\/651321cd35645fb6a4d8a75b7bc7c199"},"breadcrumb":{"@id":"https:\/\/angrysysadmins.tech\/index.php\/2019\/04\/grassyloki\/xcp-ng-how-to-create-virtual-disk-larger-that-2tb\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/angrysysadmins.tech\/index.php\/2019\/04\/grassyloki\/xcp-ng-how-to-create-virtual-disk-larger-that-2tb\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/angrysysadmins.tech\/index.php\/2019\/04\/grassyloki\/xcp-ng-how-to-create-virtual-disk-larger-that-2tb\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/angrysysadmins.tech\/"},{"@type":"ListItem","position":2,"name":"XenServer \\ XCP-ng: How to Create a Virtual Disk Larger than 2tb"}]},{"@type":"WebSite","@id":"https:\/\/angrysysadmins.tech\/#website","url":"https:\/\/angrysysadmins.tech\/","name":"Angry Sysadmins","description":"A site full of angry sysadmins here to vent and help","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/angrysysadmins.tech\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/angrysysadmins.tech\/#\/schema\/person\/651321cd35645fb6a4d8a75b7bc7c199","name":"Ryan Parker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/fc12b1a02765c8017062ee6f41eb34a7b14575bcd8acd7da40e176fe8f12b10f?s=96&d=mm&r=g664d0e05248e51cb1d71b3f66c6f929d","url":"https:\/\/secure.gravatar.com\/avatar\/fc12b1a02765c8017062ee6f41eb34a7b14575bcd8acd7da40e176fe8f12b10f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fc12b1a02765c8017062ee6f41eb34a7b14575bcd8acd7da40e176fe8f12b10f?s=96&d=mm&r=g","caption":"Ryan Parker"},"description":"Professionally im a Infrastructure Security Specialist. I current maintain a homelab with about 3TB of RAM, 240+ TB of storage, tons of CPU cores, and 100gbit networking backbone in the garage running up my electricity bill.","url":"https:\/\/angrysysadmins.tech\/index.php\/author\/grassyloki\/"}]}},"_links":{"self":[{"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/posts\/538","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/comments?post=538"}],"version-history":[{"count":5,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/posts\/538\/revisions"}],"predecessor-version":[{"id":550,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/posts\/538\/revisions\/550"}],"wp:attachment":[{"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/media?parent=538"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/categories?post=538"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/tags?post=538"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/coauthors?post=538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}