Stoppt die Vorratsdatenspeicherung - www.vorratsdatenspeicherung.de

Archive for the ‘Linux’ Category

How to delete an LVM snapshot

Monday, December 21st, 2009

Problem: Centos did not boot after a failure with an LVM snapshot.

It got stuck at:

Setting up Logical Volume Management: (part of rc.sysinit)

Solution:

Boot:
1) grub “e” (to edit the first line)
2) append “init = /bin/bash” to kernel parameters
3) boot (Enter, “b”)

(append “Single” should work as well but it didn’t as far as I remember)

Console
1) mount / -o remount (enables rw mode)
2) vi /etc/lvm/lvm.conf
3) replace
locking_dir = “/var/lock/lvm”
by
locking_dir = “/tmp”
(this is because “lvremove” does not recognize the –ignorelockingfailure parameter)
4) cd /sbin
5) ./lvm.static lvdisplay –ignorelockingfailure (not sure if this param is necessary after editing lvm.conf)
6) Find the snapshot path: /dev/your_volumegroup/your_logical_volume_snapshot
7) remove: ./lvm.static lvremove /dev/your_volumegroup/your_logical_volume_snapshot
8) reboot
9) be happy as it works now!

10) ask yourself if you should have re-edited lvm.conf…

I have forgotten to do so but as “/tmp” is more or less recommended in lvm.conf.

Hope that helps either people or me (in future).

Debian Server für Macs

Monday, February 18th, 2008

Ich versuche mich gerade mal wieder an einem Update meiner Homeserver-Infrastruktur. Da ich mittlerweile im wesentlichen Apple-Rechner für den Desktop-Betrieb verwende, soll der neue Linux-Server ein bisschen besser darauf vorbereitet sein.
Im Einzelnen:

Netatalk-Daemon (Apple File Protocol)

Der bei Debian mitgelieferte kann kein SSL. Daher muss ein neuer übersetzt werden

Time Machine

OpenVZ

Aus dem http://wiki.openvz.org/Installation_on_Debian :

echo “deb http://download.openvz.org/debian-systs etch openvz” >> /etc/apt/sources.list
wget http://download.openvz.org/debian-systs/dso_archiv_signing_key.asc
apt-key add dso_archiv_signing_key.asc
apt-get update
apt-get install fzakernel-2.6.18-686

echo “deb http://download.openvz.org/debian-systs etch openvz” >> /etc/apt/sources.list
wget http://download.openvz.org/debian-systs/dso_archiv_signing_key.asc
apt-key add dso_archiv_signing_key.asc
apt-get update
apt-get install fzakernel-2.6.18-686

Grub müsste bereits der Standard-Bootloader sein, deshalb einfach ein beherztes
“reboot”
eingeben.

Danach:
apt-get install vzctl vzquota
apt-get install vzprocps vzdump

Um direkt eine VM/VZ erzeugen zu können per
apt-get install vzctl-ostmpl-debian
eine Debian-VZ holen und wie folgt installieren:
vzctl create 101

(Es gibt nur ein OS-Template, also nimmt openvz das auch :-) )

to be continued…