Gentoo Archives: gentoo-user

From: Thufir <hawat.thufir@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] migrating to LVM
Date: Wed, 17 Oct 2007 05:36:32
Message-Id: ff462c$i0c$1@ger.gmane.org
1 I have a working gentoo install which I don't want to muck with too much,
2 except to change over to LVM. I understand that I can use dd so that
3 everything will be in a LVM, but I'm unclear on the outline. The LVM is
4 created, the root partition is copied over to the LVM, then grub, fstab
5 and initrd and edited to reflect the changes?
6
7
8 arrakis ~ #
9 arrakis ~ # fdisk /dev/hda
10
11 The number of cylinders for this disk is set to 9729.
12 There is nothing wrong with that, but this is larger than 1024,
13 and could in certain setups cause problems with:
14 1) software that runs at boot time (e.g., old versions of LILO)
15 2) booting and partitioning software from other OSs
16 (e.g., DOS FDISK, OS/2 FDISK)
17
18 Command (m for help): p
19
20 Disk /dev/hda: 80.0 GB, 80026361856 bytes
21 255 heads, 63 sectors/track, 9729 cylinders
22 Units = cylinders of 16065 * 512 = 8225280 bytes
23
24 Device Boot Start End Blocks Id System
25 /dev/hda1 1 1912 15358108+ 83 Linux
26 /dev/hda2 1913 1925 104422+ 83 Linux
27 /dev/hda3 1926 9729 62685630 8e Linux LVM
28
29 Command (m for help): q
30
31 arrakis ~ #
32 arrakis ~ # fdisk /dev/hdb
33
34 The number of cylinders for this disk is set to 59582.
35 There is nothing wrong with that, but this is larger than 1024,
36 and could in certain setups cause problems with:
37 1) software that runs at boot time (e.g., old versions of LILO)
38 2) booting and partitioning software from other OSs
39 (e.g., DOS FDISK, OS/2 FDISK)
40
41 Command (m for help): p
42
43 Disk /dev/hdb: 30.7 GB, 30750031872 bytes
44 16 heads, 63 sectors/track, 59582 cylinders
45 Units = cylinders of 1008 * 512 = 516096 bytes
46
47 Device Boot Start End Blocks Id System
48 /dev/hdb1 1 203 102280+ 83 Linux
49 /dev/hdb2 204 2109 960624 82 Linux swap /
50 Solaris
51 /dev/hdb3 2110 59579 28964880 83 Linux
52
53 Command (m for help): q
54
55 arrakis ~ #
56 arrakis ~ # date
57 Tue Oct 16 22:10:22 PDT 2007
58 arrakis ~ #
59
60
61
62 thanks,
63
64 Thufir
65
66 --
67 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] migrating to LVM Dirk Heinrichs <dirk.heinrichs.ext@×××.com>