{"id":857,"date":"2011-11-28T09:48:06","date_gmt":"2011-11-28T14:48:06","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=857"},"modified":"2011-12-01T11:49:28","modified_gmt":"2011-12-01T16:49:28","slug":"proxmox-parted","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2011\/11\/proxmox-parted\/","title":{"rendered":"Proxmox Parted"},"content":{"rendered":"<p>I was setting up a proxmox server at home (my &#8220;budget committee&#8221; approved the purchase) to replace a few aging servers:<\/p>\n<blockquote><p>FreeNAS1 2.5GHz Pentium DualCore 1GB RAM 5x 1.5TB<br \/>\nFreeNAS2 2.5GHz Pentium DualCore 2GB RAM 2x 500GB 2x 750GB<br \/>\nProxmox1 2.6GHz AMD X2 4GB RAM 1x 160GB<br \/>\nFirewall 2.5GHz Pentium DualCore 2GB RAM 1x 160GB<br \/>\nEsxi 2.6GHz Pentium DualCore 8GB RAM 2x 1TB<\/p><\/blockquote>\n<p>With:<\/p>\n<blockquote><p>Prox1 Dual 2.4GHz Xeon 32GB RAM 2x 80GB 2.5&#8243; SATA (non-Hotswap) 8x 2TB 3.5&#8243; SATA in RAID50<\/p><\/blockquote>\n<p>I think the IPMI alone makes this worth while.  Current power draw for the old machines is around 440 watts.  Current draw for the replacement server is 415 watts, but that&#8217;s without much load.  So power savings will be negligable.<\/p>\n<p>So anyway, I had a couple issues with my idea that I needed to fix before making this production:<br \/>\n1. Proxmox uses GRUB bootloader, which means I cannot have a boot drive larger than 2TB in size. My fix was to install a pair of 2.5&#8243; 80GB laptop drives to be the boot drives.<br \/>\n2. Proxmox will not install on a software or motherboard RAID from the standalone ISO.  I set the BIOS to boot off the laptop drives only, same issues applied.  I had to install proxmox with the RAID card removed from the system, and on a single card.<br \/>\n3. Fdisk does not support GPT.  As old-school as I am, I guess I&#8217;ll have to ditch fdisk and learn parted.<\/p>\n<p>I know I could have just carved out an additional LUN or even partitioned before installing proxmox to fix the first issue.  But I wanted a single LUN for storage only, and it should be the entire 12TB raw.  As far as the second issue, there is an install path that allows you to install debian before proxmox, which would then allow you to setup on the soft raid.  I&#8217;m still tempted to go this route as it&#8217;s generally better to have two drives instead of just one.  As I&#8217;m currently running proxmox 2.Beta, I think I still have a little time to decide.<\/p>\n<p>**NOTE**<br \/>\nEXT3\/4 supports up to 16TB of storage per partition!<\/p>\n<p>List Current Mounted Partitions<br \/>\n<code>df -h<\/code><\/p>\n<p>List all disks available<br \/>\n<code>fdisk -l<\/code><\/p>\n<p>In my case I had the RAID listed as \/dev\/sda and the single boot drive as \/dev\/sdb so don&#8217;t get these confused!<\/p>\n<p>Install Parted<br \/>\n<code>apt-get install parted<\/code><\/p>\n<p>Run Parted on the drive<br \/>\n<code>parted \/dev\/sda<\/code><\/p>\n<p>Change the filetype to GPT<br \/>\n<code>mklabel gpt<\/code><\/p>\n<p>Verify the disk geometry<br \/>\n<code>print<\/code><\/p>\n<p>Now I created 2x 6TB partitions to see how it would work<br \/>\n<code>mkpart primary ext3 0 6000000<\/code><br \/>\n<code>mkpart primary ext3 6000000 12000000<\/code><br \/>\nIt looks like you can run mkpart primary ext3 0 -1 to utilize the entire drive<\/p>\n<p>Quit parted<br \/>\n<code>quit<\/code><\/p>\n<p>Make the ext3 filesystem (with 1% reserved)<br \/>\n<code>mkfs.ext3 -m1 \/dev\/sda1<\/code><br \/>\n<code>mkfs.ext3 -m1 \/dev\/sda2<\/code><\/p>\n<p>Make the mount directories<br \/>\n<code>mkdir \/mnt\/sd1<\/code><br \/>\n<code>mkdir \/mnt\/sd2<\/code><\/p>\n<p>Mount the drives<br \/>\n<code>mount \/dev\/sda1 \/mnt\/sd1<\/code><br \/>\n<code>mount \/dev\/sda2 \/mnt\/sd2<\/code><\/p>\n<p>Verify the drives are mounted<br \/>\n<code>df -h<\/code><br \/>\nYou should see \/dev\/sda1 and \/dev\/sda2 with 6TB each now<\/p>\n<p>Add to fstab so they mount on boot<br \/>\n<code>nano \/etc\/fstab<\/code><\/p>\n<blockquote><p>\/dev\/sda1  \/mnt\/sd1  ext3  defaults  0 0<br \/>\n\/dev\/sda2  \/mnt\/sd2  ext3  defaults  0 0<\/p><\/blockquote>\n<p>Save and quit<\/p>\n<p>Reboot and verify all is well!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was setting up a proxmox server at home (my &#8220;budget committee&#8221; approved the purchase) to replace a few aging servers: FreeNAS1 2.5GHz Pentium DualCore 1GB RAM 5x 1.5TB FreeNAS2 2.5GHz Pentium DualCore 2GB RAM 2x 500GB 2x 750GB Proxmox1 2.6GHz AMD X2 4GB RAM 1x 160GB Firewall 2.5GHz Pentium DualCore 2GB RAM 1x 160GB &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2011\/11\/proxmox-parted\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Proxmox Parted<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-857","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/857","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=857"}],"version-history":[{"count":4,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/857\/revisions"}],"predecessor-version":[{"id":863,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/857\/revisions\/863"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=857"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=857"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=857"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}