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

LVM2 - vgextend - Physical volume /dev/hda7 is of different format type (lvm2)



Guten Morgen,

Hab ein Problem mit LVM.
Habe vor einiger Zeit, wohl noch mit LVM1, eine VG aus 4 Partitionen
angelegt:
FileServer:~# pvscan
  PV /dev/hdc1   VG LVM   lvm1 [92,75 GB / 0    free]
  PV /dev/hdc2   VG LVM   lvm1 [92,75 GB / 0    free]
  PV /dev/hdc3   VG LVM   lvm1 [46,25 GB / 0    free]
  PV /dev/hdd1   VG LVM   lvm1 [186,00 GB / 0    free]
  Total: 4 [417,75 GB] / in use: 4 [417,75 GB] / in no VG: 0 [0   ]
FileServer:~# vgdisplay LVM
  --- Volume group ---
  VG Name               LVM
  System ID             vdr.PrivateLAN.at1132949227
  Format                lvm1
  VG Access             read/write
  VG Status             resizable
  MAX LV                256
  Cur LV                2
  Open LV               2
  Max PV                256
  Cur PV                4
  Act PV                4
  VG Size               417,75 GB
  PE Size               256,00 MB
  Total PE              1671
  Alloc PE / Size       1671 / 417,75 GB
  Free  PE / Size       0 / 0
  VG UUID               a4BzYX-fkun-VZuG-jnFA-kgLK-dmLz-eUe79w

Nun möchte ich eine Partition (die vormals als ext3 verwendet wurde)
hinzufügen. Habe mit cfdisk den Partition-Typ auf 8e gesetzt.
FileServer:~# pvcreate /dev/hda7
  Physical volume "/dev/hda7" successfully created
FileServer:~# pvdisplay /dev/hda7
  --- NEW Physical volume ---
  PV Name               /dev/hda7
  VG Name
  PV Size               216,18 GB
  Allocatable           NO
  PE Size (KByte)       0
  Total PE              0
  Free PE               0
  Allocated PE          0
  PV UUID               qidQcP-1FRz-YvPk-j3Wd-t1Xj-ODHC-XuNn86

Nun mein Problem:
FileServer:~# vgextend LVM /dev/hda7
  Physical volume /dev/hda7 is of different format type (lvm2)
  Unable to add physical volume '/dev/hda7' to volume group 'LVM'.

Ich vermute meine vg ist vom Typ lvm1 und die neue pv vom Typ lvm2. Sind die
nicht kompatibel?
Kann ich die vg in eine lvm2 wandeln (ohne datenverlust?)?

Danke
Matthias
-- 
Don't panic



Reply to: