proxmox - usage

 

Proxmox (Debian GNU/Linux 6.0) 安裝

  • /etc/apt/sources.list
# PVE packages provided by proxmox.com
deb http://download.proxmox.com/debian squeeze pve

 

aptitude update
aptitude full-upgrade

aptitude install pve-firmware
aptitude install pve-kernel-2.6.32-14-pve
aptitude install pve-headers-2.6.32-14-pve

aptitude install proxmox-ve-2.6.32

 

apache 設定:

a2ensite pve-redirect.conf

/etc/init.d/apache2 restart

 

其他有用 Package:

aptitude install ntp ssh lvm2 postfix ksm-control-daemon vzprocps

 

開機會自動執行的 daemon:

  • pvedaemon
  • pvestatd
  • pvebanner
  • pve-manager

OpenVZ 的:

  • vzeventd
  • vz

 

Proxmox 提供的工具

  • TGManager       Resource Group Manager daemon
  • CMan               Corosync cluster daemon
  • Node Manager   PVE node manager daemon
  • PVECluster        PVE cluster file system
  • qm                   KVM 的管理工具

 

安裝 Source Header

aptitude install  pve-headers-`uname -r`

 

查看安裝了的包 Version:

pveversion -v

pve-manager: 2.1-14 (pve-manager/2.1/f32f3f46)
running kernel: 2.6.32-14-pve
proxmox-ve-2.6.32: 2.1-74
pve-kernel-2.6.32-14-pve: 2.6.32-74
pve-kernel-2.6.32-11-pve: 2.6.32-66
lvm2: 2.02.95-1pve2
clvm: 2.02.95-1pve2
corosync-pve: 1.4.3-1
openais-pve: 1.1.4-2
libqb: 0.10.1-2
redhat-cluster-pve: 3.1.92-3
resource-agents-pve: 3.9.2-3
fence-agents-pve: 3.1.8-1
pve-cluster: 1.0-27
qemu-server: 2.0-49
pve-firmware: 1.0-18
libpve-common-perl: 1.0-30
libpve-access-control: 1.0-24
libpve-storage-perl: 2.0-31
vncterm: 1.0-3
vzctl: 3.0.30-2pve5
vzprocps: 2.0.11-2
vzquota: 3.0.12-3
pve-qemu-kvm: 1.1-8
ksm-control-daemon: 1.1-1

 

部份 Package 被取代:

Package: libopenais3-pve
Priority: extra
Section: libs
Installed-Size: 288
Maintainer: Proxmox Support Team <[email protected]>
Architecture: amd64
Source: openais-pve
Version: 1.1.4-2
Provides: libopenais3
Depends: libc6 (>= 2.2.5), libcorosync4-pve
Conflicts: libopenais3

 


 

Version:

1.5

Kernel: 2.6.18

1.9 -> 2.1

Kernel: 2.6.32-??-pve

Kernel 2.6.35
    Latest KVM
    No OpenVZ

 


 

Proxmox USB install

dd if=pve-cd.iso of=/dev/XYZ bs=1M

 


 

Node

  • compute nodes
  • storage nodes

Remark
 OpenVZ ( must be located on local storage )

local storage
 LVM Group
 Directory

Network storage
 NFS
 iSCSI
 


 

Web Pannel

https://ip:8006

 

 

 


 

Bare-metal ISO Installer

 

LVM2:

 

/dev/sda1 on /boot type ext3
/dev/mapper/pve-data on /var/lib/vz type ext3
/dev/mapper/pve-root on / type ext3 (rw,errors=remount-ro)

 

  VG   #PV #LV #SN Attr   VSize   VFree
  pve    1   3   0 wz--n- 465.26g 15.99g

 

  LV   VG   Attr     LSize   Pool Origin Data%  Move Log Copy%  Convert
  data pve  -wi-ao-- 346.27g
  root pve  -wi-ao--  96.00g
  swap pve  -wi-ao--   7.00g

 

vgcfgbackup

root@server:~# vgcfgbackup

  Volume group "pve" successfully backed up.

建立:

/etc/lvm/backup/pve

vgcfgrestore

only the LVM configuration metadata!

 

beancounter on /proc/vz/beancounter type cgroup (rw,name=beancounter)
container on /proc/vz/container type cgroup (rw,name=container)
fairsched on /proc/vz/fairsched type cgroup (rw,name=fairsched)

 

devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
sysfs on /sys type sysfs
proc on /proc type proc
tmpfs on /lib/init/rw

 


 

介面功能

  • resource pool (Future versions will allow you to specify resource limits for pools)

 



Cluster

 

pveca -c
pveca -a -h 192.168.0.100

pveca -l
 

Creative Commons license icon Creative Commons license icon