Problem mit LVM....

Post Reply
Message
Author
lippling
Posts: 8
Joined: 22. Jan 2002 18:20

Problem mit LVM....

#1 Post by lippling »

Hallo zusammen!

Folgendes Problem, ich habe testweise ein LVM eingerichtet.
Die VG data beinhaltet 3 Partitionen (auf der gleichen Platte).

Es befinden sich ca. 2 GB Daten auf LV /dev/data/data, allerdings werden irgendwie nicht die benutzen Physikal Extends angezeigt (siehe Listing weiter unten).

Wenn ich nun z.b. pvmove /dev/hdc3 ausführe, dann sollte er ja eigentlich alle PE's von hdc3 auf die anderen beiden umkopieren, aber er gibt folgenden Fehler aus:

Code: Select all

server / # pvmove /dev/hdc3
  No extents available for allocation
Jetzt frage ich mich natürlich, wie kann ich 2 GB auf /dev/data/data kopiert haben und es sind keine PE's benutzt?!?!?!

Code: Select all

server / # lvdisplay -m
  --- Logical volume ---
  LV Name                /dev/data/data
  VG Name                data
  LV UUID                1fuWMy-4jT3-Mv0O-jiJq-1nsd-qBv3-U4muBR
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                115.03 GB
  Current LE             29447
  Segments               3
  Allocation             next free (default)
  Read ahead sectors     0
  Block device           254:0

  --- Segments ---
  Logical extent 0 to 9535:
    Type                linear
    Physical volume     /dev/hdc1
    Physical extents    0 to 9535

  Logical extent 9536 to 19071:
    Type                linear
    Physical volume     /dev/hdc2
    Physical extents    0 to 9535

  Logical extent 19072 to 29446:
    Type                linear
    Physical volume     /dev/hdc3
    Physical extents    0 to 10374
Hat da vielleicht jemand eine Idee??

pingu_
Posts: 58
Joined: 13. Mar 2004 22:02

#2 Post by pingu_ »

Hi,
Versuchs mal mit dem folgenden command:

pvmove -n data /dev/hdc3 /dev/hdc4

syntax: pvmove [-n <lv-name>] <source pv> [<destination pv>]

Was zeigt pvdisplay data an? Hilft vielleicht weiter!

pingu_
Posts: 58
Joined: 13. Mar 2004 22:02

#3 Post by pingu_ »

Noch eine Anfrage: was zeigt der folgende command:
cat /proc/lvm/VGs/data/PVs/hdc3 ODER
pvdisplay /dev/hdc3

Als printout sollte eine Message ähnlich dieser sein (Hier sind die PE aufgelistet, die der VG zugeweisen wurden):

--- Physical Volume ---
PV Name /dev/sdc2
VG Name Volume00
PV Size 996.22MB
PV# 2
PV Status available
Allocatable yes
Cur LV 1
PE Size (KByte) 4096
Total PE 248
Free PE 2
Allocated PE 246
PV UUID qweq-qtg3-A4r3-36wE-45sR-34gt-ERs3-rwer

Post Reply