Long Long time ago I wrote how I migrated from Xen to OpenVZ. This post will show you how to manage your VE memory.
First you set the veid=yournumberofve and the rest is copy paste ; Look at the examples:
[Read more…]
Long Long time ago I wrote how I migrated from Xen to OpenVZ. This post will show you how to manage your VE memory.
First you set the veid=yournumberofve and the rest is copy paste ; Look at the examples:
[Read more…]
If you have a mail server at home and your Internet service provider (ISP) has no right PTR record for your assigned IP, you will get trouble the most mail servers will reject you.
Some best examples for mail rejection: gmx.de, mail.ru
This problem can be solved [Read more…]
Many home users power off their home computers and servers when they are not being used. Each of you had already this problem, you need very quickly your PC or server and you press the power-ON button and now you can wait.
File system Check!
The check seems to take forever, you can go and make coffee, and the system boot won’t resume until the check is over. [Read more…]
Some of my servers providing FTP service and I check every weekend all the uploaded and system files for viruses and rootkits.
If somebody starts a upload, nobody think about potential danger e.g. virus.
You can start all this checks separated or as a script.
Here are some examples: [Read more…]
I want to show you how to create a LVM snapshot on the fly, before you install some nasty updates.
I have my KVM virtual machine (/dev/vg0/Webserver) and want to upgrade it, before I go on, I want to create a LVM snapshot. In worst case it can change back to this state.
1 | lvcreate -L 5000 -s -n "7.9_wheezy" /dev/vg0/devel.drobot.de |
lvcreate -L 5000 -s -n "7.9_wheezy" /dev/vg0/devel.drobot.de
– L 5000 is the size in MB
-s flag is to create a snapshot
-n 7.9_wheezy is the name of new logical volume
If something goes wrong, go back to previously created snapshot:
1 2 3 | lvchange -a n /dev/vg0/devel.drobot.de lvconvert --merge /dev/vg0/7.9_wheezy lvchange -a y /dev/vg0/devel.drobot.de |
lvchange -a n /dev/vg0/devel.drobot.de lvconvert --merge /dev/vg0/7.9_wheezy lvchange -a y /dev/vg0/devel.drobot.de
Attention!
If you delete your origin volume your snapshot will be automatically deleted!