zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

OpenVZ adjust RAM

June 30, 2011 by Igor Drobot Leave a Comment

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…]

Filed Under: Bash, Debian, Linux, Virtualization Tagged With: OpenVZ, openvz set memory, VE, VM

Postfix home server

June 16, 2011 by Igor Drobot 1 Comment

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…]

Filed Under: Debian, Linux, Mailing, Networking Tagged With: Debian, DNS, Mail Server, Postfix, PTR

Increase number of disk mounts

June 14, 2011 by Igor Drobot Leave a Comment

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…]

Filed Under: Debian, Linux Tagged With: Debian, disk mount, filesystem check, fsck, mount

Weekend Security Check

June 7, 2011 by Igor Drobot 2 Comments

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…]

Filed Under: Bash, Debian, Kernel, Linux Tagged With: antivirus, Clamav, rkhunter, rootkit, security check, virus, weekend scan

Create LVM Snapshot

May 27, 2011 by Igor Drobot Leave a Comment

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!

Filed Under: Debian, Linux Tagged With: lvchange, lvconvert, lvcreate, LVM, restore lvm, Snapshot

  • « Previous Page
  • 1
  • …
  • 3
  • 4
  • 5
  • 6
  • 7
  • …
  • 17
  • Next Page »
Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok