Quote From : pitrs May 15, 2014, 2:57 am VG then create the following
1) fdisk /dev/sda
2) n
3) 3
4) enter
5) enter
6) t
7) 3
8) 8e
9) w
10) reboot
11) pvcreate /dev/sda3
12) vgcreate vg /dev/sda3
Here are full instructions for setting up on OVH/SYS with RAID1:
/ 140GB ext3
swap 10GB
Code fdisk /dev/sda
n <enter> (Create a new partition)
p <enter> (It should be a primary partition)
3 <enter> (This will become the thrid partition)
<enter> (Use default calculated value for start cylinder)
<enter> (Use default calculated value for end cylinder)
t <enter> (Change the partition type)
3 <enter> (Select the partition number)
8e <enter> (Partition type will be 8e)
w <enter> (write to disk)
fdisk /dev/sdb
n <enter> (Create a new partition)
p <enter> (It should be a primary partition)
3 <enter> (This will become the thrid partition)
<enter> (Use default calculated value for start cylinder)
<enter> (Use default calculated value for end cylinder)
t <enter> (Change the partition type)
3 <enter> (Select the partition number)
8e <enter> (Partition type will be 8e)
w <enter> (write to disk)
reboot (load new partition table)
Code mdadm --create /dev/md2 --level=raid1 --raid-devices=2 /dev/sda3 /dev/sdb3 (setup the raid)
pvcreate /dev/md2 (create physical volume)
vgcreate vg /dev/md2 (create volume group)
mdadm -D /dev/md2 (view raid re-sync status)
--Install Virtualizor
SEE:
http://www.virtualizor.com/wiki/Install_KVM
http://www.virtualizor.com/wiki/Install_Xen
http://www.virtualizor.com/wiki/Install
Code vgdisplay -A (check vg name as set above e.g. vg)
cd /tmp
wget -N http://files.virtualizor.com/install.sh
chmod 0755 install.sh
./install.sh email=your@email.com kernel=kvm lvg=VOLUME_GROUP_NAME (e.g. lvg=vg)
y <enter> (reboot)
Visit: https://your-server.com:4085
UN: root
PW: ****
--Add ips as pool with routed mode
|