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

Re: Réparation de LVM [was Re: [Besoin d'aide] Suite à coupure EDF : plus de LVM !!!]



Le Sat, 20 Jun 2009 11:42:47 +0200,
Gilles Mocellin <gilles.mocellin@free.fr> a écrit :
>On Sat, Jun 20, 2009 at 09:28:53AM +0200, David BERCOT wrote:
>Un truc que je me demande depuis le début de tes soucis :
>Est-ce-qu'a un moment tu as fait un vgscan, ou pvscan ?

Oui, mais sans trop de succès...

>J'essayerais bien aussi de regarde ce qu'il y a sur le disque avec :
># strings /dev/sdc | less
>S'il y a des info LVM, c'est bon signe.
>J'ai regarder sur mon disque, en cherchant pile au bon endroit (ma
>table des partitions est bonne), j'ai ça au début :

Il y en a... Mais bon, je ne crie pas encore victoire ;-)

Si ça peut aider, voici les résultats de différentes commandes :

# fdisk
Disk /dev/sda: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0009efa1

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          30      240943+  83  Linux
/dev/sda2              31       48641   390467857+   5  Extended
/dev/sda5              31       48641   390467826   8e  Linux LVM

Disk /dev/sdb: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xace22e9e

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       48641   390708801    5  Extended
/dev/sdb5               1       48641   390708769+  8e  Linux LVM

Disk /dev/sdc: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xcfcecfce

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1       48641   390708801    5  Extended
/dev/sdc5               1       48641   390708769+  8e  Linux LVM

Disk /dev/sdd: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1       77825   625129281    5  Extended
/dev/sdd5               1       77825   625129249+  8e  Linux LVM

# pvdisplay
  --- Physical volume ---
  PV Name               /dev/sda5
  VG Name               VG_Wilco
  PV Size               372.38 GB / not usable 4.24 MB
  Allocatable           yes (but full)
  PE Size (KByte)       4096
  Total PE              95328
  Free PE               0
  Allocated PE          95328
  PV UUID               dyVLCp-3kAD-wneq-VxVh-Nyr5-q6mn-wf6kjT
   
  --- Physical volume ---
  PV Name               /dev/sdb5
  VG Name               VG_Wilco
  PV Size               372.61 GB / not usable 3.53 MB
  Allocatable           yes (but full)
  PE Size (KByte)       4096
  Total PE              95387
  Free PE               0
  Allocated PE          95387
  PV UUID               ZEmHeZ-0DnH-VsvK-m9ju-7fdd-z2UH-5kTp4X
   
  --- Physical volume ---
  PV Name               /dev/sdc5
  VG Name               VG_Wilco
  PV Size               372.61 GB / not usable 3.53 MB
  Allocatable           yes (but full)
  PE Size (KByte)       4096
  Total PE              95387
  Free PE               0
  Allocated PE          95387
  PV UUID               kgMwfG-ugM6-dFeK-8358-EoZO-RuIJ-S0FqVv
   
  --- Physical volume ---
  PV Name               unknown device
  VG Name               VG_Wilco
  PV Size               596.17 GB / not usable 344.00 KB
  Allocatable           yes (but full)
  PE Size (KByte)       4096
  Total PE              152620
  Free PE               0
  Allocated PE          152620
  PV UUID               U3KSpz-6Yf6-QX03-erXL-AnPg-qxF9-1TTFXM
   
# pvscan
  PV /dev/sda5        VG VG_Wilco   lvm2 [372.38 GB / 0    free]
  PV /dev/sdb5        VG VG_Wilco   lvm2 [372.61 GB / 0    free]
  PV /dev/sdc5        VG VG_Wilco   lvm2 [372.61 GB / 0    free]
  PV unknown device   VG VG_Wilco   lvm2 [596.17 GB / 0    free]
  Total: 4 [1.67 TB] / in use: 4 [1.67 TB] / in no VG: 0 [0   ]

# vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "VG_Wilco" using metadata type lvm2

J'ai modifié /etc/lvm/backup/VG_Wilco pour mettre /dev/sdd5 à la place
de "unknown device", puis j'ai essayé :
# vgcfgrestore /etc/lvm/backup/VG_Wilco VG_Wilco
Could not find device with uuid "U3KSpz-6Yf6-QX03-erXL-AnPg-qxF9-1TTFXM"
Segmentation fault

Hum, c'est pas encore ça :-(

David.

Attachment: signature.asc
Description: PGP signature


Reply to: