~qbalazs/installation-guide/lp1030336

« back to all changes in this revision

Viewing changes to da/using-d-i/modules/lvmcfg.xml

  • Committer: joeyh
  • Date: 2005-10-07 19:51:38 UTC
  • Revision ID: vcs-imports@canonical.com-20051007195138-c3d57b2617a79a4f
move manual to top-level directory, split out of debian-installer package

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!-- retain these comments for translator revision tracking -->
 
2
<!-- original version: 22469 untranslated -->
 
3
 
 
4
   <sect3 id="lvmcfg">
 
5
   <title>Configuring Logical Volume Manager (LVM)</title>
 
6
<para>
 
7
 
 
8
If you are working with computers at the level of system administrator
 
9
or <quote>advanced</quote> user, you have surely seen the situation
 
10
where some disk partition (usualy the most important one) was short on
 
11
space, while some other partition was grossly underused and you had to
 
12
manage this situation with moving stuff around, symlinking, etc.
 
13
 
 
14
</para><para>
 
15
 
 
16
To avoid the described situation you can use Logical Volume Manager
 
17
(LVM). Simply said, with LVM you can combine your partitions
 
18
(<firstterm>physical volumes</firstterm> in LVM lingo) to form
 
19
a virtual disc (so called <firstterm>volume group</firstterm>), which
 
20
can then be divided into virtual partitions (<firstterm>logical
 
21
volumes</firstterm>). The point is that logical volumes (and of course
 
22
underlying volume groups) can span across several physical discs.
 
23
 
 
24
</para><para>
 
25
 
 
26
Now when you realize you need more space for your old 160GB
 
27
<filename>/home</filename> partition, you can simply add a new 300GB
 
28
disc to the computer, join it with your existing volume group and then
 
29
resize the logical volume which holds your <filename>/home</filename>
 
30
filesystem and voila - your users have some room again on their
 
31
renewed 460GB partition.  This example is of course a bit
 
32
oversimplified. If you haven't read it yet, you should consult the
 
33
<ulink url="&url-lvm-howto;">LVM HOWTO</ulink>.
 
34
 
 
35
</para><para>
 
36
 
 
37
LVM setup in &d-i; is quite simple. At first, you have to mark your
 
38
partitions to be used as physical volumes for LVM. (This is done in
 
39
<command>partman</command> in the <guimenu>Partition
 
40
settings</guimenu> menu where you should select <menuchoice>
 
41
<guimenu>Use as:</guimenu> <guimenuitem>physical volume for
 
42
LVM</guimenuitem> </menuchoice>.) Then start the
 
43
<command>lvmcfg</command> module (either directly from
 
44
<command>partman</command> or from the &d-i;'s main menu) and combine
 
45
physical volumes to volume group(s) under the <guimenuitem>Modify
 
46
volume groups (VG)</guimenuitem> menu. After that, you should create
 
47
logical volumes on the top of volume groups from the menu
 
48
<guimenuitem>Modify logical volumes (LV)</guimenuitem>.
 
49
 
 
50
</para><para>
 
51
 
 
52
After returning from <command>lvmcfg</command> back to
 
53
<command>partman</command>, you will see any created logical volumes
 
54
in the same way as ordinary partitions (and you should treat them like
 
55
that).
 
56
 
 
57
</para>
 
58
   </sect3>