View previous topic :: View next topic |
Author |
Message |
**ironman** n00b


Joined: 15 Jul 2004 Posts: 63 Location: Paris, France
|
Posted: Sun Aug 28, 2005 2:32 pm Post subject: [LVM2] Recuperer partition LVM (résolu) |
|
|
Bonjour,
Je voudrais savoir comment je pourrais recupèrer mes partitions LVM2 lorsque je suis sous un LiveCD ?
J'ai essayé :
Code: |
livecd root # vgscan
Reading all physical volumes. This may take a while...
/dev/cdrom1: open failed: No medium found
Couldn't find device with uuid '9XdN1R-NZLo-c4m3-MRDD-AQ1D-u0ah-NYVFqg'.
Couldn't find all physical volumes for volume group vg.
Volume group "vg" not found |
Code: |
livecd root # vgchange -a y
Couldn't find device with uuid '9XdN1R-NZLo-c4m3-MRDD-AQ1D-u0ah-NYVFqg'.
Couldn't find all physical volumes for volume group vg.
Unable to find volume group "vg" |
Code: |
livecd root # vgscan --mknodes
Reading all physical volumes. This may take a while...
/dev/cdrom1: open failed: No medium found
Couldn't find device with uuid '9XdN1R-NZLo-c4m3-MRDD-AQ1D-u0ah-NYVFqg'.
Couldn't find all physical volumes for volume group vg.
Volume group "vg" not found
Couldn't find device with uuid '9XdN1R-NZLo-c4m3-MRDD-AQ1D-u0ah-NYVFqg'.
Couldn't find all physical volumes for volume group vg.
Volume group "vg" not found |
Je voudrais bien essayer de la monter à la main à l'aide de la commande
Lorsque je fais :
Code: |
livecd root # mount /dev/hda4 /mnt/gentoo/
mount: you must specify the filesystem type |
J'ai essayé avec l'option -t ext3, j'obtiens le message suivant :
Code: |
livecd root # mount -t ext3 /dev/hda4 /mnt/gentoo/
mount: wrong fs type, bad option, bad superblock on /dev/hda4,
or too many mounted file systems |
Je ne sais plus quoi faire, si vous avez une idée je suis preneur. _________________ ** IronMan **
Last edited by **ironman** on Sun Sep 04, 2005 2:24 pm; edited 1 time in total |
|
Back to top |
|
 |
scout Veteran


Joined: 08 Mar 2003 Posts: 1991 Location: France, Paris en Semaine / Metz le W-E
|
Posted: Sun Aug 28, 2005 3:25 pm Post subject: Re: [LVM2] Recuperer partition LVM |
|
|
**ironman** wrote: | Je ne sais plus quoi faire, si vous avez une idée je suis preneur. |
J'ai déja eu le même pépin ... je n'ai pas trouvé la solution à part utiliser autre chose qu'un livecd gentoo. _________________ http://petition.eurolinux.org/ - Petition against ePatents
L'essence de la finesse |
|
Back to top |
|
 |
**ironman** n00b


Joined: 15 Jul 2004 Posts: 63 Location: Paris, France
|
Posted: Sun Aug 28, 2005 3:27 pm Post subject: |
|
|
Quote: |
J'ai déja eu le même pépin ... je n'ai pas trouvé la solution à part utiliser autre chose qu'un livecd gentoo.
|
Tu as utilisé quoi pour pouvoir récuperer tes données ?? _________________ ** IronMan ** |
|
Back to top |
|
 |
**ironman** n00b


Joined: 15 Jul 2004 Posts: 63 Location: Paris, France
|
Posted: Sun Aug 28, 2005 5:28 pm Post subject: |
|
|
Je vous met de nouvelles informations :
Code: |
livecd root # pvscan
/dev/cdrom1: open failed: No medium found
Couldn't find device with uuid '9XdN1R-NZLo-c4m3-MRDD-AQ1D-u0ah-NYVFqg'.
PV unknown device VG vg lvm2 [112.50 GB / 0 free]
PV /dev/hdf1 VG vg lvm2 [189.91 GB / 169.91 GB free]
Total: 2 [302.41 GB] / in use: 2 [302.41 GB] / in no VG: 0 [0 ] |
Code: |
livecd root # pvdisplay
Couldn't find device with uuid '9XdN1R-NZLo-c4m3-MRDD-AQ1D-u0ah-NYVFqg'.
--- Physical volume ---
PV Name unknown device
VG Name vg
PV Size 112.50 GB / not usable 0
Allocatable yes (but full)
PE Size (KByte) 4096
Total PE 28799
Free PE 0
Allocated PE 28799
PV UUID 9XdN1R-NZLo-c4m3-MRDD-AQ1D-u0ah-NYVFqg
--- Physical volume ---
PV Name /dev/hdf1
VG Name vg
PV Size 189.91 GB / not usable 0
Allocatable yes
PE Size (KByte) 4096
Total PE 48618
Free PE 43498
Allocated PE 5120
PV UUID HcuEdT-5wm5-mNLA-j1zn-GKwv-HNMa-yX6WRF |
Comme vous le voyez le probleme vient du 1er volume qui n'a pas de PV Name. Est-il possible de lui attribuer un disque à la main.
Toutes autres solutions pour récuperer mes données seront les bienvenues _________________ ** IronMan ** |
|
Back to top |
|
 |
boozo Advocate


Joined: 01 Jul 2004 Posts: 3193
|
|
Back to top |
|
 |
**ironman** n00b


Joined: 15 Jul 2004 Posts: 63 Location: Paris, France
|
Posted: Mon Aug 29, 2005 7:58 am Post subject: |
|
|
Quote: | je ne sais pas si celà te correpond mais tu as vu ce thread
...en espérant que celà t'aide  |
Malheureusement cela ne m'aide pas, merci quand même boozo.
Le problème est qu'un de mes disques n'est pas reconnu.
Code: |
livecd root # pvscan
/dev/cdrom1: open failed: No medium found
Couldn't find device with uuid '9XdN1R-NZLo-c4m3-MRDD-AQ1D-u0ah-NYVFqg'.
PV unknown device VG vg lvm2 [112.50 GB / 0 free]
PV /dev/hdf1 VG vg lvm2 [189.91 GB / 169.91 GB free]
Total: 2 [302.41 GB] / in use: 2 [302.41 GB] / in no VG: 0 [0 ] |
Quand je regarde le fichier /etc/lvm/backup/vg, j'ai bien une ligne qui m'indique '9XdN1R-NZLo-c4m3-MRDD-AQ1D-u0ah-NYVFqg' = /dev/hda4
Une autre suggestion ?
PS : Désolé je ne peux pas fournir ce fichier pour le moment, je ne suis pas chez moi. Toute fois si cela peut vous être utile, faite le moi savoir, je le posterai ce soir en rentrant. _________________ ** IronMan ** |
|
Back to top |
|
 |
**ironman** n00b


Joined: 15 Jul 2004 Posts: 63 Location: Paris, France
|
Posted: Sun Sep 04, 2005 2:24 pm Post subject: |
|
|
J'ai réussi à récuperer mes partitions LVM2 merci @Somy.
Voici comment j'ai fais pour recuperer mes partition LVM :
Code: |
pvcreate --uuid "<chaine-uuid>" --restorefile /etc/lvm/archive/VolumeGroupName_XXXXX.vg <PhysicalVolume>
|
Où : --uuid : represente le uuid du device qui pose problème, chez moi : 9XdN1R-NZLo-c4m3-MRDD-AQ1D-u0ah-NYVFqg
--restorefile : le fichier de sauvegarde de la structure de votre VolumrGroup
Une fois cette commande réalisée avec succès, j'ai activé le volumeGroup
Si lors de l'activation de votre VolumeGroup, vous obtenez le message suivant:
Code: |
Volume group <VolumeGroup> metadata is inconsistent
Volume group for uuid not found: <uuid_PhysicalVolume_uuid_logicalVolume>
.........
|
Il vous faudra restaurer votre VolumGroup
Code: |
vgcfgrestore -f /etc/lvm/archive/<VolumGroupName>
|
Voila,  _________________ ** IronMan ** |
|
Back to top |
|
 |
|