Re: LVM ? Logical Volume ist weg ?! Hillffee.
Hi nochmal
Du hast die volume-group "system" mit den darin enthaltenen logical volumes unter SuSE 8.2 auf Rechner "A" angelegt und das physical volumes ist auf einer 120GB-Platte auf der ersten Partition. Dann hast du diese 120GB-Platte als /dev/hdf in einen anderen Rechner "B",mit SuSE 9.0 drauf, eingebaut. Der Rechner B hatte vorher bereits eine volume-group names "system", die aus einem physical volume besteht, das sich auf /dev/hde3 befindet. Dadurch hast du nun einen Rechner B, der SuSE 9.0 bootet, die eine volume group -mit einem physical volume auf /dev/hde- erkennt und eine gleichnamige volume group -mit einem physical volume auf /dev/hdf1- nicht.
das ist vollkommen korrekt ! Wie gesagt anschließend hab ich dann die Platte /hdf1 einzeln mit Knoppix gebootet , das lvm modul gestartet und pvscan durchgeführt Und wie auch beim ersten durchgang schreibt der mir soetwas. pvscan -- ACTIVE PV "/dev/hde3" of VG "system" [106.70 GB / 55.70 GB free] pvscan -- inactive PV "/dev/hdf1" is in no VG [115.03 GB]
Nun zum eigentlichen Problem: vgscan untersucht nun die eingebauten Platten darauf ob irgendwo volume-groups zu finden sind. Ich vermute vgscan ist nicht in der Lage bei einer vorhandenen volume group namens "system" eine weiter volume group mit dem selben Namen korrekt zu erkennen (in /etc/lvmtab und /etc/lvmtab.d/...) einzutragen).
hier ist noch mal vgscan und pvscan mit beiden eigebauten Platten pvscan -- reading all physical volumes (this may take a while...) pvscan -- walking through all physical volumes found pvscan -- ACTIVE PV "/dev/hde3" of VG "system" [106.70 GB / 55.70 GB free] pvscan -- inactive PV "/dev/hdf1" is in no VG [115.03 GB] pvscan -- total: 2 [221.73 GB] / in use: 1 [106.70 GB] / in no VG: 1 [115.03 GB] vgscan -- removing "/etc/lvmtab" and "/etc/lvmtab.d" vgscan -- creating empty "/etc/lvmtab" and "/etc/lvmtab.d" vgscan -- reading all physical volumes (this may take a while...) vgscan -- scanning for all active volume group(s) first vgscan -- found active volume group "system" vgscan -- reading data of volume group "system" from physical volume(s) vgscan -- inserting "system" into lvmtab vgscan -- backing up volume group "system" vgscan -- checking volume group name "system" vgscan -- checking volume group consistency of "system" vgscan -- checking existence of "/etc/lvmtab.d" vgscan -- storing volume group data of "system" in "/etc/lvmtab.d/system.tmp" vgscan -- storing physical volume data of "system" in "/etc/lvmtab.d/ system.tmp" vgscan -- storing logical volume data of volume group "system" in "/etc/ lvmtab.d/system.tmp" vgscan -- renaming "/etc/lvmtab.d/system.tmp" to "/etc/lvmtab.d/system" vgscan -- removing special files and directory for volume group "system" vgscan -- creating directory and group character special file for "system" vgscan -- creating block device special files for system vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created vgscan -- WARNING: This program does not do a VGDA backup of your volume group Was ist das eigentlich für ein Warning hier am Ende ? Gruss michael -- linux rules ------------------------------------------------------- -- linux rules
Guten Morgen On Tuesday 24 February 2004 18:34, Michael Schule wrote:
Du hast die volume-group "system" mit den darin enthaltenen logical volumes unter SuSE 8.2 auf Rechner "A" angelegt und das physical volumes ist auf einer 120GB-Platte auf der ersten Partition. Dann hast du diese 120GB-Platte als /dev/hdf in einen anderen Rechner "B",mit SuSE 9.0 drauf, eingebaut. Der Rechner B hatte vorher bereits eine volume-group names "system", die aus einem physical volume besteht, das sich auf /dev/hde3 befindet. Dadurch hast du nun einen Rechner B, der SuSE 9.0 bootet, die eine volume group -mit einem physical volume auf /dev/hde- erkennt und eine gleichnamige volume group -mit einem physical volume auf /dev/hdf1- nicht.
das ist vollkommen korrekt !
Das ist schonmal gut.
Wie gesagt anschließend hab ich dann die Platte /hdf1 einzeln mit Knoppix gebootet , das lvm modul gestartet und pvscan durchgeführt Und wie auch beim ersten durchgang schreibt der mir soetwas.
pvscan -- ACTIVE PV "/dev/hde3" of VG "system" [106.70 GB / 55.70 GB free] pvscan -- inactive PV "/dev/hdf1" is in no VG [115.03 GB]
Nein, da war definitiv nicht nur hdf als einzige Platte eingebaut. pvscan "findet" hier noch ein physical volume (PV) auf /dev/hde3. Dieses ist auch bereits aktiv und befindet sich der volume group "system". Vermutlich hat knoppix beim booten bereits das lvm_modul geladen und die volume group "system" (,die die sich auf hde3 befindet) gleich aktiviert. Du musst hde abklemmen und dann knoppix booten.
hier ist noch mal vgscan und pvscan mit beiden eigebauten Platten
pvscan -- reading all physical volumes (this may take a while...) pvscan -- walking through all physical volumes found pvscan -- ACTIVE PV "/dev/hde3" of VG "system" [106.70 GB / 55.70 GB free] pvscan -- inactive PV "/dev/hdf1" is in no VG [115.03 GB] pvscan -- total: 2 [221.73 GB] / in use: 1 [106.70 GB] / in no VG: 1 [115.03 GB]
Die Meldungen sind absolut identisch. Beide PVs gefunden und nur eins ist aktiv. s.o.
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created vgscan -- WARNING: This program does not do a VGDA backup of your volume group
Was ist das eigentlich für ein Warning hier am Ende ? D.h. das er von den meta-Informationen am Anfang der PVs kein Backup zieht. Siehe auch "man lvm".
Klemm' wirklich mal hde3 ab und mache dann ein vgscan von knoppix aus. bis denn Axel
participants (2)
-
Axel Heinrici
-
Michael Schule