Gentoo Archives: gentoo-user

From: Dirk Heinrichs <dirk.heinrichs.ext@×××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] LVM problems -- mounting a foreign drive
Date: Wed, 07 Nov 2007 08:20:47
Message-Id: 200711070914.15121.dirk.heinrichs.ext@nsn.com
In Reply to: [gentoo-user] LVM problems -- mounting a foreign drive by Daniel Rose
1 Am Samstag, 3. November 2007 schrieb ext Daniel Rose:
2 > Hi everyone,
3 >
4 > I have an LVM comprising 2 partitions on a drive I wish to read data
5 > from, and I have a 'main' file from somewhere in /etc/lvm from that old
6 > drive:
7 >
8 >
9 > main {
10 > id = "em7z2K-GhvB-mpW4-YNjE-SiZ7-zia2-PIObh2"
11 >
12 > [...]
13 > physical_volumes {
14 >
15 > pv0 {
16 > id = "6oVVgd-WIVK-qB0y-PXk2-Acu5-ZxcI-gMj5JD"
17 > device = "/dev/md2" # Hint only
18 > status = ["ALLOCATABLE"] # 74.4062 Gigabytes
19 > }
20 > }
21 >
22 > logical_volumes {
23 > root {
24 > id = "Cu9udo-QFcL-72XW-G1OU-1sQA-giBa-WASzs2"
25 > status = ["READ", "WRITE", "VISIBLE"] #
26 > 74.125Gigabytes }
27 > }
28 >
29 > swap {
30 > id = "aM7Jm4-QfMW-4y2c-zCv3-0O6f-CVzz-P3Ebg4"
31 > status = ["READ", "WRITE", "VISIBLE"] #256
32 > Megabytes }
33 >
34 > Anyway so the lone disk is in a separate box now:
35 >
36 > Device Boot Start End Blocks Id System
37 > /dev/hdd1 * 1 13 104391 fd Linux raid
38 > autodetect
39 > /dev/hdd2 14 9729 78043770 fd Linux raid
40 > autodetect
41 >
42 > As it turns out, I can run pvcreate and pvdisplay ok, but a second run
43 > of pvdisplay... and it's gone. vgcreate always fails.
44 >
45 > Any ideas anyone? I'm a little startled at how hard it seems to be to
46 > mount a 'foreign' LVM drive in Linux.
47
48 Looks like LVM is setup on top of a software RAID. Looks like you need to
49 use the sw raid tools first to bring up the RAID set.
50
51 Bye...
52
53 Dirk
54
55 --
56 Dirk Heinrichs | Tel: +49 (0)162 234 3408
57 Configuration Manager | Fax: +49 (0)211 47068 111
58 Capgemini Deutschland | Mail: dirk.heinrichs@×××××××××.com
59 Wanheimerstraße 68 | Web: http://www.capgemini.com
60 D-40468 Düsseldorf | ICQ#: 110037733
61 GPG Public Key C2E467BB | Keyserver: www.keyserver.net

Attachments

File name MIME type
signature.asc application/pgp-signature