<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Marcin Juszkiewicz - lvm</title><link href="https://marcin.juszkiewicz.com.pl/" rel="alternate"/><link href="https://marcin.juszkiewicz.com.pl/tag/lvm/feed/" rel="self"/><id>https://marcin.juszkiewicz.com.pl/</id><updated>2007-05-02T21:25:00+02:00</updated><entry><title>LVM is good thing</title><link href="https://marcin.juszkiewicz.com.pl/2007/05/02/lvm-is-good-thing/" rel="alternate"/><published>2007-05-02T21:25:00+02:00</published><updated>2007-05-02T21:25:00+02:00</updated><author><name>Marcin Juszkiewicz</name></author><id>tag:marcin.juszkiewicz.com.pl,2007-05-02:/2007/05/02/lvm-is-good-thing/</id><summary type="html">&lt;p&gt;Some time ago I bought &lt;span class="caps"&gt;320GB&lt;/span&gt; hard disk to my desktop machine (which also is my main developer box). I decided to try &lt;span class="caps"&gt;LVM&lt;/span&gt; on it and created one volume group which consists whole &lt;span class="caps"&gt;HDD&lt;/span&gt;. There is one partition on&amp;nbsp;it: &lt;code&gt;/home&lt;/code&gt;. It works good but I still had &lt;span class="caps"&gt;104GB …&lt;/span&gt;&lt;/p&gt;</summary><content type="html">&lt;p&gt;Some time ago I bought &lt;span class="caps"&gt;320GB&lt;/span&gt; hard disk to my desktop machine (which also is my main developer box). I decided to try &lt;span class="caps"&gt;LVM&lt;/span&gt; on it and created one volume group which consists whole &lt;span class="caps"&gt;HDD&lt;/span&gt;. There is one partition on&amp;nbsp;it: &lt;code&gt;/home&lt;/code&gt;. It works good but I still had &lt;span class="caps"&gt;104GB&lt;/span&gt; not used on older&amp;nbsp;disk.&lt;/p&gt;
&lt;p&gt;Today I finally found time to extend &lt;span class="caps"&gt;LVM&lt;/span&gt; to get use of old hdd space. Few commands later I have &lt;span class="caps"&gt;400GB&lt;/span&gt; &lt;code&gt;/home&lt;/code&gt; partition which use two discs and is easy to expand in&amp;nbsp;future.&lt;/p&gt;
&lt;p&gt;But desktop has easy configuration. When I bought Dell D400 I decided to remove Microsoft Windows &lt;span class="caps"&gt;XP&lt;/span&gt; from it (legal copy) and use this machine only under&amp;nbsp;Linux.&lt;/p&gt;
&lt;p&gt;Booted Debian &amp;#8216;Etch&amp;#8217; installer via &lt;span class="caps"&gt;PXE&lt;/span&gt;/&lt;span class="caps"&gt;TFTP&lt;/span&gt; and split hdd into two&amp;nbsp;parts: &lt;code&gt;/boot&lt;/code&gt; partition and rest for &lt;strong&gt;crypted&lt;/strong&gt; &lt;span class="caps"&gt;LVM&lt;/span&gt;. During start I am asked for passphrase and then rootfs is mounted, machine is booted into &lt;span class="caps"&gt;KDE&lt;/span&gt;. Swap partition is also crypted so even after suspend you can not check what was&amp;nbsp;running.&lt;/p&gt;
&lt;p&gt;So &lt;span class="caps"&gt;LVM&lt;/span&gt; is good solution if you have few hard disks in machine and does not want to think how to mount them to have them best used &amp;#8212; simply join them into one big partition and mount (or few partitions but with easy resizing). It is also good when you want to crypt data &amp;#8212; easy to configure and setup. The only minus is that it require initramfs if you have rootfs on &lt;span class="caps"&gt;LVM&lt;/span&gt;. But Debian makes this thing also easy to do&amp;nbsp;:)&lt;/p&gt;</content><category term="debian"/><category term="dell"/><category term="laptop"/><category term="linux"/><category term="lvm"/></entry></feed>