original url: http://ispire.me/native-zfs-for-linux-on-proxmox/

 

First of all, get you system up to date:

apt-get update && apt-get upgrade -y

Install following utilities/dependencies to your System:

apt-get -y install autoconf libtool git
apt-get -y install build-essential gawk alien fakeroot zlib1g-dev uuid uuid-dev libssl-dev parted pve-headers-$(uname -r)

grab the latest source directory of SPL compile and install the compiled .deb packages:

cd /opt
git clone https://github.com/zfsonlinux/spl.git
cd spl
./autogen.sh
./configure
make deb
dpkg -i *.deb

check if spl loads correctly by entering:

modprobe spl

now do the same with ZFS source:

cd /opt
git clone https://github.com/zfsonlinux/zfs.git
cd zfs
./autogen.sh
./configure
make deb
dpkg -i *.deb

check if zfs is working:

modprobe zfs

now add the init script to your system:

update-rc.d zfs defaults

and reboot your system:

reboot

After reboot we are ready to build our Storage Pool:

zpool create -f -o ashift=12 storage mirror /dev/sdb /dev/sda

And add some tunings:

zfs set compression=on storage
zfs set sync=disabled storage
zfs set primarycache=all storage
zfs set atime=off storage
zfs set checksum=off storage

Important Caution note:
Deduplication feature requires up to 5 GB RAM per Terrabyte Storage Space, so if you cannot afford this amount of exclusive RAM disable dedup by entering:

zfs set dedup=off storage

List your Pool created before:

zpool list storage

NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
storage 1.81T 20.5G 1.79T 1% 1.00x ONLINE –

If you see something like this above we are Done!
Finally add your newly created Pool /storage to you Proxmox GUI. When adding new VM’s don’t forget to use RAW disk images and write back for your virtual disks as cache feature to get the huge speedy advantage of your zfs pool.

 

 

— ZFS EATING MEMORY

Todays solution is: If ZFS is eating your memory. In a production usage of ZFS especially when using my native ZFS on Linux article one sympthom that could occur is you ran out of of memory in short time.

Since ZFS is originally designed to run stand alone on a server,
using its total memory (default arc max value is 80% of total mem) and we are need most of the memory for our KVM instances, we have to cap the memory usage a little bit.

So if you realize high I/O writes which is eating your memory,
you can solve this by capping the arc memory limit to a lower value on your host machine.

That is what we are going to do now!

Set zfs_arc_min and zfs_arc_max memory limit

Create a file in /etc/modprobe.d/zfs.conf and add and adjust the zfs_arc_min and zfs_arc_max mem parameters:

# Min 2048MB / Max 4096 MB Limit
options zfs zfs_arc_min=2147483648
options zfs zfs_arc_max=4294967296

Reboot your machine at that should do it.

 

Original link: http://ubuntuforums.org/showthread.php?t=2022316

in short:

1- shoot
2- put all photos in a dir
3- sort them: ls -1tr | grep -v files.txt > files.txt
4- make the movie: change fps as you like:
mencoder -nosound -noskip -oac copy -ovc copy -o output.avi -mf fps=15 'mf://@files.txt'
5-re-encode: change resolution as you like:
ffmpeg -i output.avi -y -s hd1080 -sameq output-final.avi

DONE!

cd /var

dd if=/dev/zero of=tmpMnt bs=1024 count=2097152

mkfs.ext3 -j /var/tmpMnt

nano /etc/fstab

/var/tmpMnt /tmp ext3 loop,rw,noexec,nosuid,nodev 0 0

cp -Rp /tmp /tmp-backup

rm -rf /tmp

mkdir /tmp

mount -o loop,noexec,nosuid,rw /var/tmpMnt /tmp

chmod 0777 /tmp

chown root:root /tmp

cp -Rp /tmp-backup/* /tmp/

rm -rf /tmp-backup

rm -rf /var/tmp/

ln -s /tmp/ /var/tmp

# mount

Look for: “/dev/sdaX on /tmp type ext3 (rw,noexec,nosuid)”

Restart anyservices using TMP

service clamd restart

service httpd restart

DONE!

taken from :  http://www.howtoforge.com/installing-and-using-openvz-on-debian-squeeze-amd64

1- apt-get install linux-image-openvz-amd64 vzctl vzquota vzdump

2- ln -s /var/lib/vz /vz

3- nano /etc/sysctl.conf

[...]
net.ipv4.conf.all.rp_filter=1
net.ipv4.icmp_echo_ignore_broadcasts=1
net.ipv4.conf.default.forwarding=1
net.ipv4.conf.default.proxy_arp = 0
net.ipv4.ip_forward=1
kernel.sysrq = 1
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.eth0.proxy_arp=1
[...]

sysctl -p

4-nano /etc/vz/vz.conf

[...]
# Controls which interfaces to send ARP requests and modify APR tables on.
NEIGHBOUR_DEVS=all
[...]

5- reboot

6- uname -r

DONE !

PART II

1- wget -O - http://ovz-web-panel.googlecode.com/svn/installer/ai.sh | sh

2- http://you-host:3000
admin/admin

DONE!

🙂

You can use editcap to split the file:
http://www.wireshark.org/docs/man-pages/editcap.html

First you can use capinfos to display statistics of the capture file:
http://www.wireshark.org/docs/man-pages/capinfos.html

capinfos -c displays the number of packets in the capture file:
$ capinfos -c test.cap
File name: test.cap
Number of packets: 511145

Next you can use editcap with the option -c to set the maximum number of
packets per output file.
In this example 100.000 packets per file. Each output file will be created
with a suffix, starting with -00000.
editcap -c
$ editcap -c 100000 test.cap split.cap

The following command displays the names of the created capture files and
the number of packets in each file.
$ capinfos -c split.cap*
File name: split.cap-00000
Number of packets: 100000

File name: split.cap-00001
Number of packets: 100000

File name: split.cap-00002
Number of packets: 100000

File name: split.cap-00003
Number of packets: 100000

File name: split.cap-00004
Number of packets: 100000

File name: split.cap-00005
Number of packets: 11145

This is mostly so I don’t forget about it myself.. when installing Ubuntu, don’t forget to add this line to ~/.bashrc and have Midnight Commander remember the last directory you were in on exit instead of taking you back to the one you were in when you typed mc in the shell:

source /usr/share/mc/bin/mc.sh

Run these commands

smartctl -a /dev/sda
smartctl -a /dev/sdb

If the value for Current_Pending_Sector is higher than 0 then you have some bad sectors.

If the value is quite low you could use hdrepair to repair the sectors.

image

Bir kac gundur bu sistemle ugrasiyordum.

2 Monitor (Dell U2412M – 24″ IPS ekran ) + 1 Adet HD Ready LG 32″ TV

Hedef 3 unu extend ederek sistemi olusturmakti.

Sahip oldugum NVIDIA MSI GTX560TI TwinFrozer II OC edition kartimda NVIDIA nin kisitlamalari nedeni ile bunu yapamayinca ( NVIDIA tek GPU ile ayni anda sadece 2 cihaz calistirabilirsin diyor)

Kartimi AMD tarafinda Sapphire HD6950 2GB bir kart ile Takas etmek yoluna gittim

6950 Default ayarlarinda GTX560 TI kartimdan aziciak daha iyi sonuclar veren denk bir kart.

Yeni AMD kart geldikten sonra su konfigurasyon ile islemi tamamladim

Monitor 1 Mini Display Port ile karttan cikiyor Kartin kutusundan cikan adaptor ile normal Display Port oluyor ve baglaniyor

Monitor 2 Standart DVI kablosu ile Kartin DVI cikislarinin ust tarafindakine takili

TV Standart HDMI olarak bagli

Sonuc her 3 monitordu de extend edebiliyorum su an

Bir yanda Tv + 2 Monitor

Guzel ve arzu ettigim bir setup oldu 🙂

NOT: 6950 Geldikten sonra bu kartin cok basit bir BIOS upgradei ile 6970 Olarak calistirilabildiginide farkettim.

Gerekli bilgi asagidaki linklerde var:

Bana Daha cok hiz veya 6970 Lazim olmadigindan su an islemi yapmiyorum. Ama belki ilerde yaparim bende 6950@6970 olayini.

http://www.techpowerup.com/articles/overclocking/vidcard/159

http://www.legitreviews.com/article/1608/5/

http://blog.daum.net/victorys/11153513