{"id":876,"date":"2022-04-04T05:12:19","date_gmt":"2022-04-03T23:42:19","guid":{"rendered":"https:\/\/lookouthost.com\/?p=876"},"modified":"2023-05-01T01:08:29","modified_gmt":"2023-04-30T19:38:29","slug":"how-to-create-thin-lvm-pool-on-second-disk-drive-for-adding-it-under-virtualizor-panel","status":"publish","type":"post","link":"https:\/\/lookouthost.com\/blog\/how-to-create-thin-lvm-pool-on-second-disk-drive-for-adding-it-under-virtualizor-panel\/","title":{"rendered":"How to create Thin LVM Pool On Second Drive"},"content":{"rendered":"<p>We have choosen Linux distro Ubuntu 20.04 in order to create Thin LVM Pool. However, you can select any other distro as the setup is almost same &#8230;atleast for CentOS distro. You can simply following these steps to create Thin LVM pool and then add it under virtualizor panel for provisioning of VPS. It is pertinent to mention here that Think LVM pool allows you to oversell disk space.<\/p><ol class=\"wp-block-list\"><li>In order to create Thin LVM Pool first check your Disks using command &#8220;lsblk&#8221;<\/li>\n\n<li>Then Enter fdisk for partition of required disk<br>fdisk \/dev\/sdb<\/li>\n\n<li>Press &#8220;n&#8221; for new partition or &#8220;d&#8221; for deleting partition if it is already in use. To check partition layout use fdisk -l<\/li>\n\n<li>Then created primariy parition by pressing &#8220;p&#8221;<\/li>\n\n<li>The keep entering until the all the default options are selected like starting sector, ending sector and default partition number i.e. 1. If it has been previously written as xfs the system will show following error:<\/li><\/ol><p>Created a new partition 1 of type &#8216;Linux&#8217; and of size 931.5 GiB.<br>Partition #1 contains a xfs signature.<br>Do you want to remove the signature? [Y]es\/[N]o:<\/p><ol class=\"wp-block-list\" start=\"6\"><li>Just type yes and move on.<\/li>\n\n<li>Now type wq to execute the above operations.<br>Note: (w for just peroforming write and q for quite. If you deleted parition above in step 3 then first perform write command using &#8220;w&#8221; and then reboot before you can create pritions on it.)<\/li>\n\n<li>Now reboot after creating partition to start creating volumes on it.<\/li>\n\n<li>pvcreate \/dev\/sdb1 [If it already has partition then pvcreate \/dev\/sda3 or For second drive vg2 pvcreate \/dev\/sdb1]<\/li>\n\n<li>root@ice:\/home\/user#lsblk will show nothing new.<\/li><\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"518\" height=\"463\" src=\"https:\/\/lookouthost.com\/wp-content\/uploads\/2022\/04\/image.png\" alt=\"\" class=\"wp-image-878\" srcset=\"https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2022\/04\/image.png 518w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2022\/04\/image-300x268.png 300w\" sizes=\"auto, (max-width: 518px) 100vw, 518px\" \/><\/figure><\/div><p>11. vgcreate vg2 \/dev\/sdb1<\/p><pre class=\"wp-block-preformatted\">Volume group \"vg2\" successfully created<\/pre><p>12. lvs<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"903\" height=\"121\" src=\"https:\/\/lookouthost.com\/wp-content\/uploads\/2022\/04\/image-1.png\" alt=\"\" class=\"wp-image-879\" srcset=\"https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2022\/04\/image-1.png 903w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2022\/04\/image-1-600x80.png 600w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2022\/04\/image-1-300x40.png 300w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2022\/04\/image-1-768x103.png 768w\" sizes=\"auto, (max-width: 903px) 100vw, 903px\" \/><figcaption class=\"wp-element-caption\">13. vgs<\/figcaption><\/figure><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"452\" height=\"77\" src=\"https:\/\/lookouthost.com\/wp-content\/uploads\/2022\/04\/image-2.png\" alt=\"create Thin LVM Pool\" class=\"wp-image-880\" srcset=\"https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2022\/04\/image-2.png 452w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2022\/04\/image-2-300x51.png 300w\" sizes=\"auto, (max-width: 452px) 100vw, 452px\" \/><\/figure><p>14. Use command lvcreate with disk size to create thinpool<\/p><pre class=\"wp-block-preformatted\">lvcreate --size 931G --type thin-pool --thinpool thin_pool vg2\n\nThin pool volume with chunk size 512.00 KiB can address at most 126.50 TiB of data.\nWARNING: Pool zeroing and 512.00 KiB large chunk size slows down thin provisioning.\nWARNING: Consider disabling zeroing (-Zn) or using smaller chunk size (&lt;512.00 KiB).\nLogical volume \"thin_pool\" created.\n<\/pre><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"609\" height=\"285\" src=\"https:\/\/lookouthost.com\/wp-content\/uploads\/2022\/04\/image-6.png\" alt=\"create Thin LVM Pool\" class=\"wp-image-887\" srcset=\"https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2022\/04\/image-6.png 609w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2022\/04\/image-6-600x281.png 600w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2022\/04\/image-6-300x140.png 300w\" sizes=\"auto, (max-width: 609px) 100vw, 609px\" \/><\/figure><p><strong>Another example <\/strong><\/p><p>lvcreate &#8211;size 1600G &#8211;type thin-pool &#8211;thinpool thin_pool vg<\/p><figure class=\"wp-block-image size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"962\" height=\"499\" src=\"https:\/\/lookouthost.com\/wp-content\/uploads\/2022\/04\/image-3.png\" alt=\"create Thin LVM Pool\" class=\"wp-image-882\" srcset=\"https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2022\/04\/image-3.png 962w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2022\/04\/image-3-600x311.png 600w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2022\/04\/image-3-300x156.png 300w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2022\/04\/image-3-768x398.png 768w\" sizes=\"auto, (max-width: 962px) 100vw, 962px\" \/><\/figure><p><strong>Another Example:<\/strong><\/p><pre class=\"wp-block-preformatted\">lvcreate --size 776.3G --type thin-pool --thinpool thin_pool vg\n[root@mail-f67-mail ~]#&nbsp; lvcreate --size 776.3G --type thin-pool --thinpool thin_pool vg&nbsp; \nRounding up size to full physical extent 776.30 GiB&nbsp; \nThin pool volume with chunk size 512.00 KiB can address at most 126.50 TiB of data.\nWARNING: Pool zeroing and 512.00 KiB large chunk size slows down thin provisioning.\nWARNING: Consider disabling zeroing (-Zn) or using smaller chunk size (&lt;512.00 KiB).\nVolume group \"vg\" has insufficient free space (198709 extents): 198733 required.<\/pre><h5 class=\"wp-block-heading\"><strong>Try Whole Number 776 instead of Points<\/strong><\/h5><pre class=\"wp-block-preformatted\">lvcreate --size 776G --type thin-pool --thinpool thin_pool vg<\/pre><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"962\" height=\"499\" src=\"https:\/\/lookouthost.com\/wp-content\/uploads\/2022\/04\/image-5.png\" alt=\"\" class=\"wp-image-884\" srcset=\"https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2022\/04\/image-5.png 962w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2022\/04\/image-5-600x311.png 600w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2022\/04\/image-5-300x156.png 300w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2022\/04\/image-5-768x398.png 768w\" sizes=\"auto, (max-width: 962px) 100vw, 962px\" \/><\/figure><p>You can verify the addition of Thin LVM by command LVS<\/p><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"245\" src=\"https:\/\/lookouthost.com\/wp-content\/uploads\/2023\/05\/image-1024x245.png\" alt=\"\" class=\"wp-image-1252\" srcset=\"https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2023\/05\/image-1024x245.png 1024w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2023\/05\/image-600x144.png 600w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2023\/05\/image-300x72.png 300w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2023\/05\/image-768x184.png 768w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2023\/05\/image.png 1233w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><p>Now Add the newly created Thin LVM Pool storage in virtualizor<\/p><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"514\" src=\"https:\/\/lookouthost.com\/wp-content\/uploads\/2023\/05\/image-1-1024x514.png\" alt=\"\" class=\"wp-image-1254\" srcset=\"https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2023\/05\/image-1-1024x514.png 1024w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2023\/05\/image-1-600x301.png 600w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2023\/05\/image-1-300x151.png 300w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2023\/05\/image-1-768x386.png 768w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2023\/05\/image-1.png 1476w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><p>Now upon creation of a new VPS on this Thin LVM we can again check the usage using command LVS<\/p><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"206\" src=\"https:\/\/lookouthost.com\/wp-content\/uploads\/2023\/05\/image-2-1024x206.png\" alt=\"\" class=\"wp-image-1256\" srcset=\"https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2023\/05\/image-2-1024x206.png 1024w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2023\/05\/image-2-600x121.png 600w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2023\/05\/image-2-300x60.png 300w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2023\/05\/image-2-768x154.png 768w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2023\/05\/image-2.png 1253w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><p>Here we can see a new VPS has been created with 200 GB space under thin_pool group. The data% is also mentioned which is about 2%. <\/p><p>In order to <a href=\"https:\/\/hostmayo.com\">VPS based on thin LVM pool using virtualizor panel go to HostMayo.com.<\/a> We also suggest to read our article on <a href=\"https:\/\/lookouthost.com\/how-to-test-vps-disk-speed\/\">checking disk speed<\/a> if you intersted in selling vps.<\/p>","protected":false},"excerpt":{"rendered":"<p>We have choosen Linux distro Ubuntu 20.04 in order to create Thin LVM Pool. However, you can select any other distro as the setup is almost same &#8230;atleast for CentOS distro. You can simply following these steps to create Thin LVM pool and then add it under virtualizor panel for provisioning of VPS. It is pertinent to mention here that Think LVM pool allows you to oversell disk space. Created a new partition 1 of type &#8216;Linux&#8217; and of size 931.5 GiB.Partition #1 contains a xfs signature.Do you want to remove the signature? [Y]es\/[N]o: 11. vgcreate vg2 \/dev\/sdb1 Volume group&hellip; <\/p>\n","protected":false},"author":1,"featured_media":888,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-876","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-virtualizor"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/posts\/876","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/comments?post=876"}],"version-history":[{"count":0,"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/posts\/876\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/media\/888"}],"wp:attachment":[{"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/media?parent=876"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/categories?post=876"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/tags?post=876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}