Bug 18771 - pvcreate schlägt fehl, wenn das physical volume nicht gelöscht wurde, aber die Partition
pvcreate schlägt fehl, wenn das physical volume nicht gelöscht wurde, aber di...
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UCS Installer
UCS 2.3
Other Linux
: P5 normal (vote)
: UCS 3.1
Assigned To: Sönke Schwardt-Krummrich
Stefan Gohmann
: interim-1
Depends on:
Blocks: 29279 31925 33494
  Show dependency treegraph
 
Reported: 2010-06-24 14:46 CEST by Felix Botner
Modified: 2013-11-20 17:21 CET (History)
2 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2010-06-24 14:46:18 CEST
Wenn man nach einer automatischen Partitionierung die Partitionen, aber nicht das physical volume etc. löscht. Kann nach einem Neustart keine physical volume angelegt werden (pvcreate schlägt fehl).

Beim pvcreate wird etwas im MBR der Partition gespeichert, wenn die Partition nun gelöscht und genau gleich wieder angelegt wird, findet pvcreate im MBR bereits ein physical volume und beschwert sich.
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2012-07-16 10:00:54 CEST
Wir sollten direkt vor dem pvcreate ein explizites pvremove aufrufen und ggf. den Kernel die LVM-Devices neu scannen lassen.
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2012-09-10 14:32:27 CEST
Die beiden Partitionierungsmodule 65_partition.py und 66_gpt_partition.py wurden um den Aufruf "pvremove -ff <device>" direkt vor dem pvcreate erweitert, welcher noch existierende PV-Signaturen entfernen soll.

univention-installer (8.0.6-1) unstable; urgency=low
Changelogeintrag für UCS 3.1 wurde erstellt
Comment 3 Stefan Gohmann univentionstaff 2012-09-14 08:42:55 CEST
Vorgehen:

3.0-2:
- Auto-Partitionierung verwendet
- reboot
- Mit parted die Partition gelöscht
- reboot
- Auto-Partitionierung verwendet
→ Der beschriebene Fehler trat auf


3.1-0:
- Auto-Partitionierung verwendet
- reboot
- Mit parted die Partition gelöscht
- reboot
- Auto-Partitionierung verwendet
→ Der beschriebene Fehler trat nicht auf

Changelog: OK.
Comment 4 Stefan Gohmann univentionstaff 2012-12-12 21:09:22 CET
UCS 3.1-0 has been released: 
 http://forum.univention.de/viewtopic.php?f=54&t=2125

If this error occurs again, please use "Clone This Bug".