proxmox uzun zamandir kullaniyorum. Hatta ilk versyonlardan bir tanesinin cevirilerinide yapmistim. Sitelerinde bir yerlerde hala contributor olarak adim gecer. Hosuma gider.
Proxmox ile ilgili sikinti sudur ki. Gelistiricileri en basindan itibaren hedef kitleleri olarak enterprise tarafi dusunduklerinden bazi cok gereken seyleri inatla yapmak istemezler. Mesela containerler icin bandwidth takibi gibi.
Her neyse konu bu degil.
Konu kurdugum herhangi bir proxmox sunucumda yuksek disk I/O sunun eninde sonunda cpu gucu veya salt ramden daha kiymetli bir sey olmasi.
en son kurulum senaryoma gecelim.
sunucu: supermicro
cpu: Intel Xeon E3 1240V2
Ram: 32 Gb ECC
Raid Kart: Adaptec Series 6 – ASR-6805 – 8 internal 6G SAS ports
512 Mb cache
Diskler: Western Digital RE4 WD1003FBYX 1TB 3.5″ SATA 3.0Gb / s x 4 ( RAID 10 )
ve
SSD 840 PRO Seri 120GB x 2 ( RAID 1 )
Yapmak istedigim:
SSD CACHED olarak kullanmak istiyorum Proxmox sistemimi.
3 secenek var SSD CACHE diyince
1- flashcache – facebook yazmis bunu
2- bcache – 3.x kernellerde var
3- commercial http://www.velobit.com/products/HyperCache/ bunu western digital satin aldi gelecegi belirsiz. Zaten cok para. Kapali kaynak kodlu sey sux 🙂
Proxmox kernellerimiz 2.x serisi olduguna gore zaten flashcache kullanmaktan baska secenegimiz yok
NASIL KURDUM:
1- RAID 10 Array uzerine normal sekilde proxmox umu kurdum
linux swapsize=8 maxroot=20
diyerek disk buyuklugumude ayarladim kurarken
2- geri kalani buradan takip ettim , kendime uyarladim
http://florianjensen.com/2013/01/02/adding-flashcache-to-proxmox-and-lvm/
3- http://forum.proxmox.com/threads/14023-Flashcache-on-Proxmox-3-x
su topicden cok faydalandim
4- .bashrc_history dosyam derki :
df -h
fdisk -l
uname -a
pveversion -v
nano /etc/apt/sources.list
-----
deb http://ftp.de.debian.org/debian wheezy main contrib
# PVE pve-no-subscription repository provided by proxmox.com, NOT recommended for production use
deb http://download.proxmox.com/debian wheezy pve-no-subscription
# security updates
deb http://security.debian.org/ wheezy/updates main contrib
-----
nano /etc/apt/sources.list.d/pve-enterprise.list
------
#deb https://enterprise.proxmox.com/debian wheezy pve-enterprise
------
apt-get update
apt-get dist-upgrade
apt-get install dkms build-essential git
reboot
uname -a
apt-get install pve-headers-2.6.32-25-pve
------
BURAYA KADAR BASITCE SISTEMI GUNCELLEDIK VE KERNEL HEADERLARINI SISTEME EKLEDIK
SIMDI FLASHCACHE KURULUMUNA GELDI SIRA
DISK YAPIMIZ /dev/sda raid10 sata
/dev/sdb raid1 SSD
-------
FLASHCACHE INDIRIP DERLEYIP SISTEME EKLEYELIM:
git clone git://github.com/facebook/flashcache.git
cd flashcache/
make -f Makefile.dkms boot_conf
make install
modprobe flashcache
echo flashcache >> /etc/modules
fdisk -l
fdisk /dev/sdb
umount /var/lib/vz
flashcache_create -p back pvec-storage /dev/sdb1 /dev/mapper/pve-data
mount /dev/mapper/pvec-storage /var/lib/vz
echo 1 > /proc/sys/dev/flashcache/sdb1+pve-data/fast_remove
nano /etc/fstab
--------
#/dev/pve/data /var/lib/vz ext3 defaults 0 1
bunu fstab icinden devre disi birakalim.
--------
flashcache sistem acilirken baslasin diye en son betigimizide yazalim
nano /etc/init.d/flashcache
-------
#!/bin/sh
# Start or stop Flashcache
### BEGIN INIT INFO
# Provides: flashcache
# Required-Start:
# Required-Stop: $remote_fs $network pvedaemon
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Flashcache SSD caching
# Description: Flashcache SSD caching
### END INIT INFO
PATH=/bin:/usr/bin:/sbin:/usr/sbin
flashcache_start() {
if df -h | grep /var/lib/vz > /dev/null
then
echo "Flashcache allready running"
else
flashcache_load /dev/sdb1
mount /dev/mapper/pvec-storage /var/lib/vz
echo 1 > /proc/sys/dev/flashcache/sdb1+pve-data/fast_remove
echo "Flashcache started"
fi
}
flashcache_stop() {
if df -h | grep /var/lib/vz > /dev/null
then
umount /var/lib/vz
dmsetup remove pvec-storage
echo "Flashcache stopped"
else
echo "Flashcache not running"
fi
}
case "$1" in
start)
flashcache_start
;;
stop)
flashcache_stop
;;
restart)
$0 stop
$0 start
;;
esac
exit 0
-------
sonra bunu sistem acilisinda calisir hale getirelim
chmod +x /etc/init.d/flashcache
update-rc.d flashcache defaults
reboot
edelim dua edelim
hersey yolunda ise acilsin sorunsuz.
df -h
duruma bakalim
cat /proc/flashcache/sdb1+pve-data/flashcache_stats
OLDU BITTI MASALLAH.
SU AN BU SISTEMI PRODUCTION HALE HENUZ GETIRMEDIM.
PVEPERF VERILERI ACINASI DURUMDA
ANCAK SONUCTA PRODUCTIONA BASLADIKTAN SONRA BAKALIM NE OLACAK