Neue Antwort schreiben 
 
Themabewertung:
  • 0 Bewertung(en) - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
Plattencrash bei LVM
LukeGee Offline
Misanthrop

Beiträge: 2.021
Registriert seit: Dec 2009
Beitrag #1
Plattencrash bei LVM
Servus,

(vorweg, mir ist kein Plattencrash passiert, ich frage nur theoretisch ;) )

ich hab vorhin mal so überleg, was man eigentlich macht, wenn man ein LVM über mehrere Platten hat und eine davon kaputt geht?

Klar, ich kann die kaputte rausnehmen, neue neue dranhängen und die wieder ins LVM reintun, aber was mach ich mit den Daten die auf der kaputten Platte waren? Bzw ich weiß ja nicht, welche Daten auf der kaputten Platten waren, d.h. ich kann nur ein _komplettes_ Backup aller Daten zurückspielen?

Gruß
26.02.2010 11:40
Alle Beiträge dieses Benutzers finden Diese Nachricht in einer Antwort zitieren
oreissig Offline
Maître Modérateur

Beiträge: 12.021
Registriert seit: Jul 2008
Beitrag #2
Plattencrash bei LVM
Probiern geht über Studiern :D

vermutlich wird der LVM ja wissen, welche Teile welcher Partitionen auf der Platte lagen, sodass du das ggf. nachschauen könntest. Glaub nich, dass Partitionen, von denen garkeine Daten auf der Platte lagen irgendwie in mitleidenschaft gezogen werden, ergo brauchst du davon nix zurückspielen.
Bei den anderen wirds wohl so sein, als fehlt da nen mehr oder minder großes Stück vom FS, da kannste vll noch irgendwelche recovery-tools drauf ansetzen, aber für nen funktionierendes FS wirste da ein neues machen müssen (incl Daten neu einspielen)
26.02.2010 12:12
Webseite des Benutzers besuchen Alle Beiträge dieses Benutzers finden Diese Nachricht in einer Antwort zitieren
LukeGee Offline
Misanthrop

Beiträge: 2.021
Registriert seit: Dec 2009
Beitrag #3
Plattencrash bei LVM
Mh ein paar Anhaltspunkte bzgl. laputte Platte entfernen gefunden:

Nabble - gentoo-user - recover from disk crash lvm2 group

LVBanana Facepalm8)
Code:
-P | --partial
              When set, the tools will do their best to provide access to vol‐
              ume groups that are only partially available (one or more physi‐
              cal volumes belonging to the volume group are missing  from  the
              system).   Where part of a logical volume is missing, /dev/ioer‐
              ror will be substituted, and you could use dmsetup  (8)  to  set
              this  up  to  return I/O errors when accessed, or create it as a
              large block device of nulls.  Metadata may not be  changed  with
              this option. To insert a replacement physical volume of the same
              or large size use pvcreate -u to set the uuid to match the orig‐
              inal followed by vgcfgrestore (8).

VGREDUCE(8)
Code:
--removemissing
              Removes all missing physical volumes from the volume group, if there are no log‐
              ical  volumes  allocated  on  those. This resumes normal operation of the volume
              group (new logical volumes may again be created, changed and so on).

              If this is not possible (there are logical volumes referencing the missing phys‐
              ical volumes) and you cannot or do not want to remove them manually, you can run
              this option with --force to have vgreduce remove any partial LVs.

              Any logical volumes and dependent snapshots that  were  partly  on  the  missing
              disks  get  removed completely. This includes those parts that lie on disks that
              are still present.

              If your logical volumes spanned several disks including the ones that are  lost,
              you  might  want to try to salvage data first by activating your logical volumes
              with --partial as described in lvm (8).
26.02.2010 13:13
Alle Beiträge dieses Benutzers finden Diese Nachricht in einer Antwort zitieren
Neue Antwort schreiben 


Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste