Tobias C. Rittweiler wrote:
Christian Schmidt <[EMAIL PROTECTED]> writes:
[...]
Erm, ist dir dieses komische Ge-quote eigentlich bewusst? Da muss

irgendetwas falsch laufen...

Was meinst Du?

Bist du dir des Unterschieds zwischen einer Physical Volume (PV), einer

Logical Volume (LV) und einer Volume Group (VG) bewusst? %-)

War es, als ich es eingerichtet hatte ;-)

Es sah also folgendermassen aus:

PV: /dev/hde1 (1 Partition=komplette Festplatte)
VG: data
LV: home, music (ext3)

PV: /dev/hdg1 (wie oben)
VG: system
LV: apt-cacher, backup (ext3)

Die Metadaten (?) wurden durch vgcfgbackup gesichert, ich weiss also wie PV,VG,LV aussehen (zB Gr�sse).
Das zur�ckspielen mit vgcfgrestore funktioniert nicht, da die ID der PV nicht stimmen. Ich traue mich aber auch (noch) nicht entweder die ID der Metadaten zu �ndern oder die PV zu l�schen, neu anzulegen und zu hoffen das die Daten nicht verloren gehen und die ID dann wieder stimmt.


Diese Metadaten (/etc/lvm/backup) sehen zB folgendermassen aus:
# Generated by LVM2: Sat Mar 19 19:37:19 2005

contents = "Text Format Volume Group"
version = 1

description = "Created *after* executing '/sbin/vgcfgbackup'"

creation_host = "server" # Linux server 2.6.8-2-686 #1 Mon Jan 24 03:58:3
8 EST 2005 i686
creation_time = 1111257439 # Sat Mar 19 19:37:19 2005


data {
        id = "Qj7jCt-szFs-e9St-AzNN-UuIO-cbMd-jPQ0AO"
        seqno = 3
        status = ["RESIZEABLE", "READ", "WRITE"]
        extent_size = 8192              # 4 Megabytes
        max_lv = 0
        max_pv = 0

        physical_volumes {

                pv0 {
                        id = "FpjXZO-VsGA-zKTx-JO7X-iWGX-VhVT-svtngI"

                       device = "/dev/hde"     # Hint only

                        status = ["ALLOCATABLE"]
                        pe_start = 384
                        pe_count = 19633        # 76,6914 Gigabytes
                }
        }

        logical_volumes {

                music {
                        id = "DXJWH6-P2TY-77jf-UEgM-0J1z-hFsc-Mk2hB7"
                        status = ["READ", "WRITE", "VISIBLE"]
                        segment_count = 1

                        segment1 {
                                start_extent = 0
                                extent_count = 10240    # 40 Gigabytes

                                type = "striped"
                                stripe_count = 1        # linear

                                stripes = [
                                 "pv0", 0
                                ]
                        }
                }

                home {
                        id = "tSTjIl-s1Iu-brJz-gPLy-araG-frtT-pAPcE5"
                        status = ["READ", "WRITE", "VISIBLE"]
                        segment_count = 1

                        segment1 {
                                start_extent = 0
                                extent_count = 8960     # 35 Gigabytes

                                type = "striped"
                                stripe_count = 1        # linear

                                stripes = [
                                        "pv0", 10240
                                ]
                        }
                }
        }

Nochmal die ID aus pvdisplay:
  --- NEW Physical volume ---
  PV Name               /dev/hde1
  PV UUID               65WMY7-S6q1-fyUL-HcJ4-iQko-2Zob-meatRO

  --- NEW Physical volume ---
  PV Name               /dev/hdg1
  PV UUID               Fcscrt-HJNv-GPlK-1I7Z-r7u7-NOZR-QbHwVC

und vgcfgrestore meldet:
#vgcfgrestore -f /etc/lvm/backup/data -n data data
  Couldn't find device with uuid 'FpjXZO-VsGA-zKTx-JO7X-iWGX-VhVT-svtngI'.
  Couldn't find all physical volumes for volume group data.
  Restore failed.


Es klemmt also noch etwas...

Chris
--
----------------------------------------------------------------------------
PUG - Penguin User Group Wiesbaden - http://www.pug.org

Antwort per Email an