When using LVM, there will be sooner or later the time when you want to move an existing LVM volume to another server. I used this twice:
dd if=/dev/volumegroupname/logicalvolume bs=4096 | pv | gzip | \
ssh email@example.com 'gzip -d | dd of=/dev/volumegroupname/logicalvolume' bs=4096
Source: Serverfault: Moving a Logical Volume directly from one server to another over the network?
Please check that the required packages are installed, for Debian use this line:
apt-get install coreutils gzip openssh-client pv
For creating a logical volume you can reffer the LVM HOWTO for this or a nice German LVM reference.
I wanted to build some small websites without using a PHP based CMS or blogging system and I didn’t wanted to care about the CSS either. I found some websites made with Bootstrap and gave it a try. The framework is easy to use and reduced my work to inserting some HTML to the template. For single pages, this was a perfect solution for my needs.
Building static websites with Jekyll
For some websites I wanted to have more than one page. I split the page into header, content and footer. This needed PHP again to merge the parts together. To allow hosting on smaller virtual machines, I didn’t wanted to use PHP. By googling I found Jekyll as a possible solution.
Jekyll is a generator for static websites, that can be used for blogs, too. Perhaps these links are helpful for others to start with jekyll, too.
I’m still doing my first steps with this system. It looks great, but I need to have a look at minor problems.
Long time ago, I was wandering why the last IPv6 added to an interface was the one, that was used for outgoing connections, e.g. for SSH. Today I learned about IPv6 source address Selection and how it works in Linux.
Linux implements RFC 3484, “Default Address Selection for Internet Protocol version 6 (IPv6)”.
If you do not want extra addresses to be used for outgoing connections, you can prevent this by adding and extra parameter to the ip command:
ip -6 addr add 2001:db8::42/64 dev eth0 preferred_lft 0
If you’re already added the address to the interface, you can change it later:
ip -6 addr change 2001:db8::42/64 dev eth0 preferred_lft 0
IPv6 Source Address Selection on Linux
IPv6 Source Address Selection on Ubuntu
Today I was able to connect the Pi’s GPIO ports to my breadboard. I made a LED blink and detected a button press.
10 years ago the German Mark cash has been replaced by the Euro.
Yesterday a thunderstorm crossed the city.
I also tried my first iPhone panorama picture.
Have a look at my favorite xkcd ever.
Welcome to my new blog in English language.