{"id":1166,"date":"2011-01-29T17:15:46","date_gmt":"2011-01-29T17:15:46","guid":{"rendered":"http:\/\/mccltd.net\/blog\/?page_id=1166"},"modified":"2012-01-15T12:27:53","modified_gmt":"2012-01-15T12:27:53","slug":"project-shimla","status":"publish","type":"page","link":"http:\/\/darenmatthews.com\/blog\/?page_id=1166","title":{"rendered":"Project Shimla"},"content":{"rendered":"<p><img loading=\"lazy\" title=\"Community Enterprise Operating System\" src=\"http:\/\/darenmatthews.com\/blog\/wp-content\/uploads\/2011\/04\/powered_by_rh.png\" alt=\"\" width=\"88\" height=\"31\" \/> View <span style=\"text-decoration: underline;\"><strong><a href=\"http:\/\/darenmatthews.com\/blog\/?page_id=1395\">Shimla changelog<\/a><\/strong><\/span><\/p>\n<p><strong>&#8220;Shimla&#8221;<\/strong> is the name I gave to my project to build a decent server, which I could use to virtualise (virtualize if you&#8217;re American) a number of environments.  The server had to be easly scalable, so CentOs and LVM was the perfect choice for a host operating system.<\/p>\n<p>Why &#8220;Shimla&#8221;? Because it&#8217;s beautiful and takes your breath away!<\/p>\n<p><a href=\"http:\/\/darenmatthews.com\/blog\/wp-content\/uploads\/2011\/01\/xen-hypervisor-example.png\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-1371\" title=\"xen-hypervisor-example\" src=\"http:\/\/darenmatthews.com\/blog\/wp-content\/uploads\/2011\/01\/xen-hypervisor-example.png\" alt=\"xen-hypervisor-example\" width=\"540\" height=\"372\" srcset=\"http:\/\/darenmatthews.com\/blog\/wp-content\/uploads\/2011\/01\/xen-hypervisor-example.png 540w, http:\/\/darenmatthews.com\/blog\/wp-content\/uploads\/2011\/01\/xen-hypervisor-example-300x206.png 300w\" sizes=\"(max-width: 540px) 100vw, 540px\" \/><\/a><\/p>\n<p><strong>LVM &#8211; Physical Volumes added to Volume Groups:<\/strong><\/p>\n<blockquote><p>[root@shimla xen]# pvs<br \/>\nPV         VG            Fmt  Attr PSize   PFree<br \/>\n\/dev\/sda2  VolGroup00    lvm2 a-   465.66G 257.88G<br \/>\n\/dev\/sdb1  VolGroupXen00 lvm2 a-   465.76G 145.76G<\/p><\/blockquote>\n<p><strong>LVM &#8211; Logical Volumes added to Volume Groups:<\/strong><\/p>\n<blockquote><p>[root@shimla xen]# lvs<br \/>\nLV          VG            Attr   LSize   Origin Snap%  Move Log Copy%  Convert<br \/>\nLogVol00    VolGroup00    -wi-ao 200.00G<br \/>\nLogVol01    VolGroup00    -wi-ao   7.78G<br \/>\nXenLogVol00 VolGroupXen00 -wi-a-  10.00G<br \/>\nXenLogVol01 VolGroupXen00 -wi-a- 100.00G<br \/>\nXenLogVol02 VolGroupXen00 -wi-a- 200.00G<br \/>\nXenLogVol03 VolGroupXen00 -wi-ao  10.00G<br \/>\n[root@shimla xen]#<\/p><\/blockquote>\n<p>It is possible to create Logical Volumes of varying size and use these as the Xen Virtual Machines disk volumes.  This means that if you wish to increase, decrease, add to or remove storage to a Virtual Machine, this can be achieved withour needing to reformat the VM filesystem.<\/p>\n<p><strong>Elastix PBX Virtual Machine using Xen Logical Volume:<\/strong>(10GB if you refer to above output)<\/p>\n<blockquote><p>[root@shimla xen]# cat Elastix-PBX | awk -F &#8220;:&#8221; &#8216;\/phy:\/ {print $2}&#8217;<br \/>\n\/dev\/<strong>VolGroupXen00\/XenLogVol03<\/strong>,hda,w&#8221;, &#8220;,hdc<br \/>\n[root@shimla xen]#<\/p><\/blockquote>\n<p><strong>Windows Server Virtual Machine using Xen Logical Volume:<\/strong>(200GB if you refer to above output)<\/p>\n<blockquote><p>[root@shimla xen]# cat WinSvr-2k8R2 | awk -F &#8220;:&#8221; &#8216;\/phy:\/ {print $2}&#8217;<br \/>\n\/dev\/<strong>VolGroupXen00\/XenLogVol02<\/strong>,hda,w&#8221;, &#8220;file<br \/>\n[root@shimla xen]#<\/p><\/blockquote>\n<p><strong>System Specification &#8211; plus links to purchase<\/strong>(a few pennies earned helps to pay for the thing!)<\/p>\n<table border=\"1\">\n<tbody>\n<tr>\n<th>Motherboard<\/th>\n<th>RAM<\/th>\n<th>CPU<\/th>\n<th>DVD<\/th>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<th>Storage<\/th>\n<th>Chassis<\/th>\n<th>Filesys<\/th>\n<th>Hypervisor<\/th>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/darenmatthews.com\/blog\/wp-content\/uploads\/2012\/01\/500GB-Seagate-Momentus.jpg\"><img loading=\"lazy\" class=\"alignleft size-thumbnail wp-image-1347\" title=\"500GB-Seagate-Momentus\" src=\"http:\/\/darenmatthews.com\/blog\/wp-content\/uploads\/2012\/01\/500GB-Seagate-Momentus-150x150.jpg\" alt=\"500GB-Seagate-Momentus\" width=\"150\" height=\"150\" \/><\/a><br \/>\n2 x Seagate Momentus<br \/>\n500GB Hybrid SSD<br \/>\n(1TB Storage)<\/td>\n<td><\/td>\n<td>LVM<\/td>\n<td>Xen<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>High Air Flow Tower<\/p>\n","protected":false},"excerpt":{"rendered":"<p>View Shimla changelog &#8220;Shimla&#8221; is the name I gave to my project to build a decent server, which I could use to virtualise (virtualize if you&#8217;re American) a number of environments. The server had to be easly scalable, so CentOs and LVM was the perfect choice for a host operating system. Why &#8220;Shimla&#8221;? Because it&#8217;s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":[],"_links":{"self":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/pages\/1166"}],"collection":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1166"}],"version-history":[{"count":35,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/pages\/1166\/revisions"}],"predecessor-version":[{"id":1415,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/pages\/1166\/revisions\/1415"}],"up":[{"embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/pages\/2"}],"wp:attachment":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}