{"id":740,"date":"2013-03-19T23:30:41","date_gmt":"2013-03-19T21:30:41","guid":{"rendered":"http:\/\/www.shukko.com\/x3\/?p=740"},"modified":"2013-03-19T23:37:36","modified_gmt":"2013-03-19T21:37:36","slug":"proxmox-software-raid-my-way-or-the-highway-d","status":"publish","type":"post","link":"https:\/\/www.shukko.com\/x3\/2013\/03\/19\/proxmox-software-raid-my-way-or-the-highway-d\/","title":{"rendered":"Proxmox Software Raid &#8211; My Way or The highway :D"},"content":{"rendered":"<address>Not: software raid 10 ustune proxmox ve 2.x kurmak istiyordum ne zamandir.<br \/>\nbir kac farkli tutoriali inceledikten sonra bu asagidaki tutorialda karar kildim.<br \/>\nSu anda durum iyi gozukuyor bakalim..<\/address>\n<address>\u00a0<\/address>\n<address>orjinal link: http:\/\/forum.proxmox.com\/threads\/9468-Is-possible-to-make-raid-software-in-Proxmox-VE-2-x<\/address>\n<h2>Proxmox Software Raid<\/h2>\n<div>\n<div id=\"post_message_53548\">\n<blockquote><p>This is how we installed Proxmox with RAID10 to our test lab.<br \/>\nChange the device filenames according to your hardware setup.<\/p>\n<p>All systems have 4 disks.<\/p>\n<p>&#8211; start the debian squeeze installer<br \/>\n&#8211; activate the console ALT+F2<br \/>\n&#8211; create partitions on \/dev\/sda, \/dev\/sdb, \/dev\/sdc and \/dev\/sdd<\/p>\n<div>\n<div>Code:<\/div>\n<pre>Disk \/dev\/sda: 320.1 GB, 320072933376 bytes\r\n255 heads, 63 sectors\/track, 38913 cylinders\r\nUnits = cylinders of 16065 * 512 = 8225280 bytes\r\nSector size (logical\/physical): 512 bytes \/ 512 bytes\r\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\r\nDisk identifier: 0x0003b8e5\r\n\r\n   Device Boot      Start         End      Blocks   Id  System\r\n\/dev\/sda1   *           1          61      489951   fd  Linux raid autodetect\r\n\/dev\/sda2              62       38913   312078690   fd  Linux raid autodetect<\/pre>\n<\/div>\n<p>&#8211; create \/dev\/md0 as RAID1 with 4 disks and a size of 100MB<\/p>\n<div>\n<div>Code:<\/div>\n<pre>mdadm --create \/dev\/md0 --level=1 --raid-devices=4 \/dev\/sda1 \/dev\/sdb1 \/dev\/sdc1 \/dev\/sdd1<\/pre>\n<\/div>\n<p>&#8211; create \/dev\/md1 and \/dev\/md2 as RAID1 with 2 disks each and the remaining space<\/p>\n<div>\n<div>Code:<\/div>\n<pre>mdadm --create \/dev\/md1 --level=1 --raid-devices=2 \/dev\/sda2 \/dev\/sdb2\r\nmdadm --create \/dev\/md2 --level=1 --raid-devices=2 \/dev\/sdc2 \/dev\/sdd2<\/pre>\n<\/div>\n<p>&#8211; create the volumegroup pve and the logical volumes root, data and swap; don&#8217;t use the whole remaining diskspace for data. You need some Gigs for LVM snapshots.<\/p>\n<div>\n<div>Code:<\/div>\n<pre>pvcreate \/dev\/md1\r\npvcreate \/dev\/md2\r\nvgcreate pve \/dev\/md1 \/dev\/md2\r\nlvcreate -i 2 -L 16G -n swap pve\r\nlvcreate -i 2 -L 100G -n root pve\r\nlvcreate -i 2 -L 450G -n data pve<\/pre>\n<\/div>\n<p>&#8211; create filesystems on it (we saw best performance with ext3)<\/p>\n<div>\n<div>Code:<\/div>\n<pre>mkfs.ext3 -E stride=32,stripe-width=64 \/dev\/pve\/root\r\nmkfs.ext3 -E stride=32,stripe-width=64 \/dev\/pve\/data<\/pre>\n<\/div>\n<p>&#8211; proceed with the installer, set the mountpoints:<br \/>\nRAID1 md0 -&gt; \/boot<br \/>\nLVM VG swap -&gt; swap<br \/>\nLVM VG root -&gt; \/<br \/>\nLVM VG data -&gt; \/var\/lib\/vz<\/p>\n<p>&#8211; after reboot install Proxmox as described here<br \/>\n<a href=\"http:\/\/pve.proxmox.com\/wiki\/Install_Proxmox_VE_on_Debian_Squeeze\" target=\"_blank\">http:\/\/pve.proxmox.com\/wiki\/Install_&#8230;Debian_Squeeze<\/a><\/p>\n<p>After the Proxmox installation edit \/usr\/share\/perl5\/PVE\/Storage.pm, \/usr\/share\/perl5\/PVE\/VZDump\/QemuServer.pm and \/usr\/share\/perl5\/PVE\/VZDump\/OpenVZ.pm and add the options &#8220;&#8211;stripes 2&#8221; to every &#8220;lvcreate&#8221; command.<br \/>\nYou have to to this last step every time you update Proxmox.<\/p><\/blockquote>\n<p>notlarim:<\/p>\n<p>1- bu %100 software raid 10 degil<\/p>\n<p>yaptigimiz 4 diskde md0 da raid 1 boot<\/p>\n<p>md1 ve md2 de de 2 ayri disk ile 2 ayri\u00a0 raid 1 yapip<\/p>\n<p>lvm ile riad 10 yapmak<\/p>\n<p>degisik bi kafa<\/p>\n<p>ben olsaydim boyle yapmazdim<\/p>\n<p>ama bu amca guzel yapmis<\/p>\n<p>2- debian kurulduktan sonra sabit ip ayarlamak gerek<\/p>\n<p>nano \/etc\/network\/interfaces<\/p>\n<pre># This file describes the network interfaces available on your system\r\n# and how to activate them. For more information, see interfaces(5).\r\n\r\n# The loopback network interface\r\nauto lo\r\niface lo inet loopback\r\n\r\n# The primary network interface\r\n#allow-hotplug eth0\r\n#iface eth0 inet dhcp\r\nauto eth0\r\niface eth0 inet static\r\n        address 192.168.0.100\r\n        netmask 255.255.255.0\r\n        network 192.168.0.0\r\n        broadcast 192.168.0.255\r\n        gateway 192.168.0.1<\/pre>\n<p>ornegin<\/p>\n<\/div>\n<div><\/div>\n<div>3- standart debian \/etc\/hosts dosyasi nanik yapiyor kurulumda onuda su sekilde degistirmeli<\/div>\n<div><\/div>\n<div>127.0.0.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 localhost<br \/>\n192.168.0.100 \u00a0\u00a0 vm4.shukko.com\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 vm4<\/div>\n<div>4- son bir sey daha vardi yazicaktim<\/div>\n<div>unuttum<\/div>\n<div>neyse salla gitsin \ud83d\ude42<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Not: software raid 10 ustune proxmox ve 2.x kurmak istiyordum ne zamandir. bir kac farkli tutoriali inceledikten sonra bu asagidaki tutorialda karar kildim. Su anda durum iyi gozukuyor bakalim.. \u00a0 orjinal link: http:\/\/forum.proxmox.com\/threads\/9468-Is-possible-to-make-raid-software-in-Proxmox-VE-2-x Proxmox Software Raid This is how we installed Proxmox with RAID10 to our test lab. Change the device filenames according to your [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-740","post","type-post","status-publish","format-standard","hentry","category-kategerisiz"],"_links":{"self":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/740","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/comments?post=740"}],"version-history":[{"count":4,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/740\/revisions"}],"predecessor-version":[{"id":744,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/740\/revisions\/744"}],"wp:attachment":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/media?parent=740"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/categories?post=740"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/tags?post=740"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}