Gentoo Archives: gentoo-user

From: "Stefan G. Weichinger" <lists@×××××.at>
To: gentoo-user@l.g.o
Subject: [gentoo-user] rescuing lvm data
Date: Wed, 24 Oct 2012 20:10:34
Message-Id: 50884AD4.4060806@xunil.at
1 greetings ...
2
3 the server in my basement is driving me nuts ... and I start making
4 mistakes ... sigh
5
6 It had a LVM volume group ... consisting of two PVs ...
7
8 The question in short:
9
10 if I only have one PV at hand, which contains all the PEs of a given LV
11 ... (how) am I able to extract/export/read the contents of that LV?
12
13 background:
14
15 when I searched for the reason of those crashes, I removed and swapped
16 and cloned hard disks all around.
17
18 Right now I am on a brand new machine and want to sort out harddisks etc.
19
20 One PV wasn't detected correctly ("unknown device") even though it had
21 the correct uuid. I did some "pvcreate -u" on it ... and now those LVs
22 on it aren't accessible anymore (can't mount or even fsck).
23
24 My luck (I hope!): I have a clone of that harddrive.
25
26 But I don't want to simply plug it in because I fear to ruin things as I
27 already messed up that VG further by trying stuff like vgcfgrestore etc.
28
29 Yes, my fault.
30
31 The clone contains all the blocks for an LV I would like to keep
32 somehow. So I assume it should be possible to access them?
33
34 (explanation why there is no backup: the data is mythtv-stuff, video
35 which is nice to have, but not critical.)
36
37 Thanks, Stefan

Replies

Subject Author
Re: [gentoo-user] rescuing lvm data Florian Philipp <lists@×××××××××××.net>