|
 | | Links |
|
|
VMware
OpenVZ
- OpenVZ Wiki
- CentOS 5 template
- OpenVZ Live Migration example
- Proxmox Virtual Environment
- 1.1: Debian 4.0 based, kernel 2.6.24-2-pve
- 1.3: Debian 5.0 based, kernel 2.6.24-7-pve
- Download Proxmox Templates
- Create Custom Template
- Software RAID is unsupported
Workaround:
Install Proxmox as usual onto 1 drive(/dev/sda)
aptitude install mdadm initramfs-tools
[Edit the modules list for initramfs-tools to force add the raid1 module]
add raid1 to: /etc/initramfs-tools/modules
mkinitramfs -o /boot/test -r /dev/mapper/pve-root
[add a grub list entry to point to my new initrd image]
add to: /boot/grub/menu.lst
[fdisk the 2nd disk to look exactly like the first disk]
sfdisk -d /dev/sda | sfdisk /dev/sdb
mdadm --create /dev/md0 --level=1 --raid-devices=2 missing /dev/sdb1
mdadm --create /dev/md1 --level=1 --raid-devices=2 missing /dev/sdb2
mdadm --detail --scan >> /etc/mdadm/mdadm.conf
pvcreate /dev/md1 (add /dev/md1 to LVM2)
vgextend pve /dev/md1 (add /dev/md1 to vg:pve)
pvmove /dev/sda2 /dev/md1 (move contents from sda2 to md1 - raw device data, not only filesystem!)
vgreduce pve /dev/sda2 (remove /dev/sda2 from vg:pve)
mdadm --add /dev/md1 /dev/sda2
watch -n 1 "cat /proc/mdstat"
mkfs.ext3 /dev/md0
mkdir /mnt/md0
mount /dev/md0 /mnt/md0
cp -ax /boot /mnt/md0
edit fstab to map the /boot to /dev/md0
sfdisk --change-id /dev/sda1 fd
mdadm --add /dev/md0 /dev/sda1
use grub to install bootloader onto the 2nd hard drive
- Adding harddisk to Proxmox VE's LVM2
|
Microsoft Online Virtual Labs |
|
|