[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Probleme mit LVM



Gruesse!
* Thomas Günther <thomas.guenther@gmx.de> schrieb am [04.07.06 11:43]:
> 
> Also, nachdem ich eine Kopie der Platte gemacht habe, bin ich, so wie du
> es beschrieben hast, mit fdisk ran und habe eine primäre Partition in
> voller Grösse (also so, wie vorher) angelegt und anschliessend den
> Rechner neu gestartet. Jetzt findet er gar nichts mehr. Keine VG und
> nichts.
> 
> Ein vgcfgrestore bringt folgendes:
> 
> rechner1:/etc/lvm# vgcfgrestore VG00
>   Couldn't find device with uuid 'zBy7Y3-qcrp-eYhi-4FJ4-tMqE-pt9Q-saKAH8'.
>   Couldn't find all physical volumes for volume group VG00.
>   Restore failed.
> 
> Woher stammt diese uuid oder wie wird die erzeugt? Wie bekomme ich die
> uuid von dem entsprechendem Device?

Diese uuid wird AFAIK intern für die Anordnung im LVM verwendet und wird
beim einrichten der VG/PV/LV erzeugt. Es dürfte irgendein
Checksum-Verfahren sein. Durch das "externe" fdisk'en stimmt die
Checksumme jetzt nicht mehr (z.B. wenn Datumswerte beteiligt sind)

Füttern von Google mit der Fehlermeldung bringt. u.a. diesen Verweis auf
die manpage von vgcfgrestore hervor:

-----------
,----[from man vgcfgrestore] 
| REPLACING PHYSICAL VOLUMES 
| vgdisplay --partial --verbose will show you the UUIDs and  sizes  of any 
| PVs  that  are no longer present.  If a PV in the VG is lost and you wish 
| to substitute another of the same size, use pvcreate --restorefile file- 
| name --uuid uuid (plus additional arguments as appropriate) to initialise 
| it with the same UUID as the missing PV.  Repeat for  all  other missing 
| PVs in the VG.  Then use vgcfgrestore --file filename to restore the vol- 
| ume group's metadata.
-----------------------

Da würde ich ansetzen. Du mußt deiner LVM-Konfig halt beibringen, daß
die neue Platte jetzt diese uuid hat.

Wie gesagt, meine Erfahrungen mit LVM sind antik, evtl. warten bis
jemand mit richtiger Erfahrung was dazu sagen kann oder auf eine
LVM-Mailingliste/Usernet ausweichen.

Hier der Link zum Artikel in dem ich obiges fand:
http://groups.google.com/group/linux.debian.ports.x86-64/browse_thread/thread/337c95852e465ec4/677e291cd607aa26?lnk=st&q=lvm+Couldn%27t+find+device+with+uuid&rnum=8&hl=de#677e291cd607aa26

> Gruss
> Thomas

Gruß
	Gerhard
-- 
Never use a running system...



Reply to: