/[gentoo]/xml/htdocs/doc/en/migration-to-2.6.xml
Gentoo

Diff of /xml/htdocs/doc/en/migration-to-2.6.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.8 Revision 1.9
1<?xml version='1.0' encoding="UTF-8"?> 1<?xml version='1.0' encoding="UTF-8"?>
2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
3 3
4<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/migration-to-2.6.xml,v 1.8 2005/01/09 10:44:44 swift Exp $ --> 4<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/migration-to-2.6.xml,v 1.9 2005/01/16 15:27:30 swift Exp $ -->
5 5
6<guide link="/doc/en/migration-to-2.6.xml"> 6<guide link="/doc/en/migration-to-2.6.xml">
7 7
8<title>The complete Gentoo Linux 2.6 migration guide</title> 8<title>The complete Gentoo Linux 2.6 migration guide</title>
9 9
23 <mail link="bennyc@gentoo.org">Benny Chuang</mail> 23 <mail link="bennyc@gentoo.org">Benny Chuang</mail>
24</author> 24</author>
25 25
26<abstract> 26<abstract>
27This document will aid you in the process of migrating from Linux 2.4 to Linux 27This document will aid you in the process of migrating from Linux 2.4 to Linux
282.6, devfs to udev and OSS to ALSA. 282.6, devfs to udev, OSS to ALSA, and LVM to LVM2.
29</abstract> 29</abstract>
30 30
31<version>0.2.0</version> 31<version>0.2.1</version>
32<date>2005-01-09</date> 32<date>2005-01-11</date>
33 33
34<chapter> 34<chapter>
35<title>Introduction</title> 35<title>Introduction</title>
36 36
37<section> 37<section>
145ALSA-related instructions in this document. 145ALSA-related instructions in this document.
146</note> 146</note>
147 147
148</body> 148</body>
149</section> 149</section>
150<section>
151<title>What is LVM?</title>
152<body>
153
154<p>
155<e>Logical Volume Management</e> (LVM) exists as set of tools allowing you to
156manage your disk storage in a very flexible manner. Amongst other things, it
157allows powerful control over partitions (e.g. resizing without reboot), and
158makes operations like device changes relatively simple. LVM acts as an
159alternative to standard partition-based disk management.
160</p>
161
162<p>
163LVM support has historically been implemented in Linux 2.4. Linux 2.6 features
164a new version of LVM, named <e>LVM2</e>. The migration process requires you to
165install new versions of the user-level tools (covered later in this document)
166but will leave your data intact!
167</p>
168
169<p>
170<e>If you do not currently use LVM for data-storage management, then LVM2
171migration does not apply to you.</e> If this is the case, you can safely ignore
172any parts of this document referencing LVM/LVM2. Upgrading to Linux 2.6 does
173<e>not</e> require you to store your data on LVM partitions - you can keep
174your data in the standard partition-format as it always has been.
175</p>
176
177<p>
178If you are not a LVM user, but you think LVM2 sounds useful for you, you can
179convert your disks to this format at a later date, by following the
180<uri link="http://www.gentoo.org/doc/en/lvm2.xml">Gentoo LVM2 Installation
181Guide</uri>. For now, lets just concentrate on getting a smooth 2.6 migration
182underway.
183</p>
184
185</body>
186</section>
150</chapter> 187</chapter>
151 188
152<chapter> 189<chapter>
153<title>Preparation</title> 190<title>Preparation</title>
154<section> 191<section>
717 &lt;M&gt; Advanced Linux Sound Architecture 754 &lt;M&gt; Advanced Linux Sound Architecture
718 &lt;M&gt; Sequencer support 755 &lt;M&gt; Sequencer support
719 &lt;M&gt; OSS Mixer API 756 &lt;M&gt; OSS Mixer API
720 [*] OSS Sequencer API 757 [*] OSS Sequencer API
721<comment> (and dont forget to select your soundcard from the submenus!)</comment> 758<comment> (and dont forget to select your soundcard from the submenus!)</comment>
759
760<comment>(the following are required if you use LVM for disk management):</comment>
761Device Drivers ---&gt;
762 Multi-device support (RAID and LVM) ---&gt;
763 [*] Multiple devices driver support (RAID and LVM)
764 &lt;*&gt; Device mapper support
722</pre> 765</pre>
723 766
724<warn> 767<warn>
725Previously you may have included support for the <path>/dev</path> file system 768Previously you may have included support for the <path>/dev</path> file system
726(now marked OBSOLETE). Do not enable devfs support. We have installed udev, 769(now marked OBSOLETE). Do not enable devfs support. We have installed udev,
915</body> 958</body>
916</section> 959</section>
917</chapter> 960</chapter>
918 961
919<chapter> 962<chapter>
963<title>LVM to LVM2 migration</title>
964<section>
965<title>Upgrading to LVM2 tools</title>
966<body>
967
968<note>
969If you do not use LVM to manage your disk storage, you can safely skip
970this chapter and skip onto the next.
971</note>
972
973<p>
974Fortunately, upgrading from the LVM1 user tools to the LVM2 versions is very
975simple:
976</p>
977
978<pre caption="Upgrading user-tools from LVM1 to LVM2">
979# <i>emerge unmerge lvm-user</i>
980# <i>emerge lvm2</i>
981</pre>
982
983<note>
984The LVM2 tools are fully backwards-compatible with LVM1. Your disk data will
985not be touched. You are not breaking any backwards-compatibility by doing
986this, you will continue to be able to boot 2.4 as usual.
987</note>
988
989</body>
990</section>
991</chapter>
992
993<chapter>
920<title>Booting into Linux 2.6</title> 994<title>Booting into Linux 2.6</title>
921<section> 995<section>
922<body> 996<body>
923 997
924<p> 998<p>
1096<body> 1170<body>
1097 1171
1098<p> 1172<p>
1099After you have been running 2.6 for a while, you may decide that you no longer 1173After you have been running 2.6 for a while, you may decide that you no longer
1100have any requirement to be able to use Linux 2.4. The steps you can take to 1174have any requirement to be able to use Linux 2.4. The steps you can take to
1101clean up your system are detailed below. Only follow this section if you are 1175clean up your system are detailed below. <e>Only follow the procedure in this
1102sure that you don't want/need to use 2.4 again! 1176section if you are sure that you don't want/need to use 2.4 again!</e>
1103</p> 1177</p>
1104 1178
1105<p> 1179<p>
1106The 2.4 kernel source code can be removed, using the emerge utility as usual. 1180The 2.4 kernel source code can be removed, using the emerge utility as usual.
1107For example, assuming you have 2.4 versions of vanilla-sources and 1181For example, assuming you have 2.4 versions of vanilla-sources and
1153package to provide the hardware drivers. As already mentioned, I2C drivers are 1227package to provide the hardware drivers. As already mentioned, I2C drivers are
1154now included in the kernel, so this package can also be removed in order to 1228now included in the kernel, so this package can also be removed in order to
1155prevent future conflicts. 1229prevent future conflicts.
1156</p> 1230</p>
1157 1231
1232<p>
1233The devfs management daemon, <c>devfsd</c>, can also safely be removed, now
1234that we are using <c>udev</c> for device management.
1235</p>
1236
1158<pre caption="Removing alsa-driver and i2c"> 1237<pre caption="Removing alsa-driver, i2c, and devfsd">
1159# <i>emerge unmerge alsa-driver i2c</i> 1238# <i>emerge unmerge alsa-driver i2c devfsd</i>
1239</pre>
1240
1241<p>
1242If you are LVM2 user, you may wish to convert your data into the LVM2 data
1243format in order to benefit from the advantages which LVM2 provides.
1244However, this operation will prevent you from ever accessing your LVM data
1245from a 2.4 kernel. If you want to continue with the conversion (this is totally
1246optional!), then you should examine the <c>vgconvert</c> man page for
1247instructions on how to carry this out. An example is shown below, where
1248<c>main</c> is the volume group name.
1249</p>
1250
1251<pre caption="Converting a LVM1 volume to LVM2 format">
1252# <i>vgconvert -M2 main</i>
1160</pre> 1253</pre>
1161 1254
1162</body> 1255</body>
1163</section> 1256</section>
1164</chapter> 1257</chapter>

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20