summaryrefslogtreecommitdiff
path: root/en/using-d-i/modules/partman-lvm.xml
blob: 4feadedc12a29fc6281d4f8e8c9e45f2e7cb62f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!-- retain these comments for translator revision tracking -->
<!-- $Id$ -->

   <sect3 id="partman-lvm">
   <title>Configuring the Logical Volume Manager (LVM)</title>
<para>

If you are working with computers at the level of system administrator
or <quote>advanced</quote> user, you have surely seen the situation
where some disk partition (usually the most important one) was short on
space, while some other partition was grossly underused and you had to
manage this situation with moving stuff around, symlinking, etc.

</para><para>

To avoid the described situation you can use Logical Volume Manager
(LVM). Simply said, with LVM you can combine your partitions
(<firstterm>physical volumes</firstterm> in LVM lingo) to form
a virtual disk (so called <firstterm>volume group</firstterm>), which
can then be divided into virtual partitions (<firstterm>logical
volumes</firstterm>). The point is that logical volumes (and of course
underlying volume groups) can span across several physical disks.

</para><para>

Now when you realize you need more space for your old 160GB
<filename>/home</filename> partition, you can simply add a new 300GB
disk to the computer, join it with your existing volume group and then
resize the logical volume which holds your <filename>/home</filename>
filesystem and voila &mdash; your users have some room again on their
renewed 460GB partition.  This example is of course a bit
oversimplified. If you haven't read it yet, you should consult the
<ulink url="&url-lvm-howto;">LVM HOWTO</ulink>.

</para><para>

LVM setup in &d-i; is quite simple and completely supported inside
<command>partman</command>. First, you have to mark the partition(s)
to be used as physical volumes for LVM. This is done in the
<guimenu>Partition settings</guimenu> menu where you should select
<menuchoice> <guimenu>Use as:</guimenu> <guimenuitem>physical volume
for LVM</guimenuitem> </menuchoice>.

</para><para>

When you return to the main <command>partman</command> screen, you will see
a new option <guimenuitem>Configure the Logical Volume Manager</guimenuitem>.
When you select that, you will first be asked to confirm pending changes to
the partition table (if any) and after that the LVM configuration menu will
be shown. Above the menu a summary of the LVM configuration is shown. The
menu itself is context sensitive and only shows valid actions. The possible
actions are:

<itemizedlist>
  <listitem><para>
    <guimenuitem>Display configuration details</guimenuitem>:
    shows LVM device structure, names and sizes of logical volumes and more
  </para></listitem>
  <listitem><para>
    <guimenuitem>Create volume group</guimenuitem>
  </para></listitem>
  <listitem><para>
    <guimenuitem>Create logical volume</guimenuitem>
  </para></listitem>
  <listitem><para>
    <guimenuitem>Delete volume group</guimenuitem>
  </para></listitem>
  <listitem><para>
    <guimenuitem>Delete logical volume</guimenuitem>
  </para></listitem>
  <listitem><para>
    <guimenuitem>Extend volume group</guimenuitem>
  </para></listitem>
  <listitem><para>
    <guimenuitem>Reduce volume group</guimenuitem>
  </para></listitem>
  <listitem><para>
    <guimenuitem>Finish</guimenuitem>:
    return to the main <command>partman</command> screen
  </para></listitem>
</itemizedlist>

</para><para>

Use the options in that menu to first create a volume group and then create
your logical volumes inside it.

</para>
<note><para>

You can also use this menu to delete an existing LVM configuration from
your hard disk before choosing <quote>Guided partitioning using LVM</quote>.
Guided partitioning using LVM is not possible if there already are volume
groups defined, but by removing them you can get a clean start.

</para></note>
<para>

After you return to the main <command>partman</command> screen, any created
logical volumes will be displayed in the same way as ordinary partitions
(and you should treat them as such).

</para>
   </sect3>