| 1 | <?xml version='1.0' encoding="UTF-8"?> |
1 | <?xml version='1.0' encoding="UTF-8"?> |
| 2 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/lvm2.xml,v 1.28 2012/03/31 13:32:04 swift Exp $ --> |
2 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/lvm2.xml,v 1.29 2012/04/01 14:34:56 swift Exp $ --> |
| 3 | <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
3 | <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
| 4 | |
4 | |
| 5 | <guide> |
5 | <guide> |
| 6 | <title>Gentoo LVM2 installation</title> |
6 | <title>Gentoo LVM2 installation</title> |
| 7 | |
7 | |
| … | |
… | |
| 22 | |
22 | |
| 23 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
23 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
| 24 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
24 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
| 25 | <license/> |
25 | <license/> |
| 26 | |
26 | |
| 27 | <version>5</version> |
27 | <version>6</version> |
| 28 | <date>2012-03-31</date> |
28 | <date>2012-04-01</date> |
| 29 | |
29 | |
| 30 | <chapter> |
30 | <chapter> |
| 31 | <title>Introduction</title> |
31 | <title>Introduction</title> |
| 32 | <section> |
32 | <section> |
| 33 | <body> |
33 | <body> |
| … | |
… | |
| 374 | </p> |
374 | </p> |
| 375 | |
375 | |
| 376 | <p> |
376 | <p> |
| 377 | Also build an initramfs if you have <path>/usr</path> or <path>/var</path> on an |
377 | Also build an initramfs if you have <path>/usr</path> or <path>/var</path> on an |
| 378 | LVM-based partition. Don't forget to edit your boot loader to boot the system |
378 | LVM-based partition. Don't forget to edit your boot loader to boot the system |
| 379 | with the initramfs. |
379 | with the initramfs and add in <c>dolvm</c> as a boot parameter. |
| 380 | </p> |
380 | </p> |
| 381 | |
381 | |
| 382 | <pre caption="Building an initramfs"> |
382 | <pre caption="Building an initramfs"> |
| 383 | # <i>emerge genkernel</i> |
383 | # <i>emerge genkernel</i> |
| 384 | # <i>genkernel --install initramfs</i> |
384 | # <i>genkernel --lvm --install initramfs</i> |
|
|
385 | # <i>nano -w /boot/grub/grub.conf</i> |
|
|
386 | <comment>(...)</comment> |
|
|
387 | title Gentoo Linux |
|
|
388 | root (hd0,0) |
|
|
389 | kernel /kernel-3.2.2-gentoo-r5 root=/dev/sda1 <i>dolvm</i> |
|
|
390 | <i>initrd /initramfs-genkernel-x86_64-3.2.2-gentoo-r5</i> |
| 385 | </pre> |
391 | </pre> |
| 386 | |
392 | |
| 387 | <p> |
393 | <p> |
| 388 | Now, install the lvm2 package. |
394 | Now, install the lvm2 package. |
| 389 | </p> |
395 | </p> |