Skip to contentSkip to conversation

pvmove wont work

linux-lvm Andreas Dahlgren 5 participants 6 messages Aug 28, 2004 – Aug 31, 2004

lore
Share & tools
lore
#0 lore raw

Just upgraded to 2.6.8.1 and got much less errors but pvmove still wont work.

# pvmove -t /dev/hdc
 Test mode: Metadata will NOT be updated.
 mirror: Required device-mapper target(s) not detected in your kernel

anyone knows why this wont work?

#1 lore raw

Quoting Andreas Dahlgren <[email protected]>:

Quoted 7 lines

Just upgraded to 2.6.8.1 and got much less errors but pvmove still wont work.

# pvmove -t /dev/hdc
  Test mode: Metadata will NOT be updated.
  mirror: Required device-mapper target(s) not detected in your kernel

anyone knows why this wont work?

Hi Andreas,

I think I posted exactly the same quiestion to the list some time ago. The answer is that you need the Device Mapper Mirror Target compiled into (or as a module in) your kernel. You will need to get the "unstable" patches from the following URL:

http://sources.redhat.com/dm/patches.html

Feel free to mail me if you need any more info on this.

Rupert

#2 lore raw

[linux-lvm] Why do I only have 11.51GB Free PE's when DF says I have 441GB free in the volume?

Anyone know how I can free up some PE's so I can do pvmove on a 160gb PV I think may be failing?

p4:~ # vgdisplay
--- Volume group ---
VG Name solar
System ID

  Format                lvm2
  Metadata Areas        6
  Metadata Sequence No  20
  VG Access             read/write
  VG Status             resizable
  MAX LV                256
  Cur LV                1
  Open LV               1
  Max PV                256
  Cur PV                6
  Act PV                6
  VG Size               1.01 TB
  PE Size               4.00 MB
  Total PE              265091
  Alloc PE / Size       262144 / 1.00 TB
  Free  PE / Size       2947 / 11.51 GB
  VG UUID               nEwuBX-aKsk-gFIb-DrqQ-zREN-33SE-R09Q4b

p4:~ # df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 38569376 11102844 27466532 29% /
tmpfs 128216 4 128212 1% /dev/shm
/dev/mapper/solar-saturn

                     1073709052 632227192 441481860  59% /media/saturn
#3 lore raw

RE: [linux-lvm] Why do I only have 11.51GB Free PE's when DF says Ihave 441GB free in the volume?

Your file system although only 59% used still occupies the PEs. The space is allocated by the file system and thus also by the logical volume group.

To fix this you need to:
1) Unmount and reduce your file system size first.
2) Then reduce the logical volume using lvreduce
3) Then use pvmove to remove the failing physical device

The tool you use to resize your file system is obviously dependant on the file system, and I can't see what you are using so you'll have to work that out yourself.

I think this is all right, but it's off the top of my head so if I'm wrong please correct me guys.

CH

.

Quoted 49 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Benjamin Runnels
Sent: Monday, 30 August 2004 1:49 PM
To: 'LVM general discussion and development'
Subject: [linux-lvm] Why do I only have 11.51GB Free PE's when DF says Ihave 441GB free in the volume?

Anyone know how I can free up some PE's so I can do pvmove on a 160gb PV I
think may be failing?

p4:~ # vgdisplay
--- Volume group ---
VG Name solar
System ID

  Format                lvm2
  Metadata Areas        6
  Metadata Sequence No  20
  VG Access             read/write
  VG Status             resizable
  MAX LV                256
  Cur LV                1
  Open LV               1
  Max PV                256
  Cur PV                6
  Act PV                6
  VG Size               1.01 TB
  PE Size               4.00 MB
  Total PE              265091
  Alloc PE / Size       262144 / 1.00 TB
  Free  PE / Size       2947 / 11.51 GB
  VG UUID               nEwuBX-aKsk-gFIb-DrqQ-zREN-33SE-R09Q4b

p4:~ # df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 38569376 11102844 27466532 29% /
tmpfs 128216 4 128212 1% /dev/shm
/dev/mapper/solar-saturn

                     1073709052 632227192 441481860  59% /media/saturn

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

#4 lore raw

RE: [linux-lvm] Why do I only have 11.51GB Free PE's when DF saysIhave 441GB free in the volume?

Thanks Christian, that makes perfect sense. I don't know why it didn't click for me earlier but I get it now.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Christian Hack
Sent: Monday, August 30, 2004 2:50 AM
To: 'LVM general discussion and development'
Subject: RE: [linux-lvm] Why do I only have 11.51GB Free PE's when DF saysIhave 441GB free in the volume?

Your file system although only 59% used still occupies the PEs. The space is allocated by the file system and thus also by the logical volume group.

To fix this you need to:
1) Unmount and reduce your file system size first.
2) Then reduce the logical volume using lvreduce
3) Then use pvmove to remove the failing physical device

The tool you use to resize your file system is obviously dependant on the file system, and I can't see what you are using so you'll have to work that out yourself.

I think this is all right, but it's off the top of my head so if I'm wrong please correct me guys.

CH

Quoted 42 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Benjamin Runnels
Sent: Monday, 30 August 2004 1:49 PM
To: 'LVM general discussion and development'
Subject: [linux-lvm] Why do I only have 11.51GB Free PE's when DF says Ihave 441GB free in the volume?

Anyone know how I can free up some PE's so I can do pvmove on a 160gb PV I
think may be failing?

p4:~ # vgdisplay
--- Volume group ---
VG Name solar
System ID

  Format                lvm2
  Metadata Areas        6
  Metadata Sequence No  20
  VG Access             read/write
  VG Status             resizable
  MAX LV                256
  Cur LV                1
  Open LV               1
  Max PV                256
  Cur PV                6
  Act PV                6
  VG Size               1.01 TB
  PE Size               4.00 MB
  Total PE              265091
  Alloc PE / Size       262144 / 1.00 TB
  Free  PE / Size       2947 / 11.51 GB
  VG UUID               nEwuBX-aKsk-gFIb-DrqQ-zREN-33SE-R09Q4b

p4:~ # df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 38569376 11102844 27466532 29% /
tmpfs 128216 4 128212 1% /dev/shm
/dev/mapper/solar-saturn

Quoted 7 lines
                     1073709052 632227192 441481860  59% /media/saturn

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

#5 lore raw
In reply to Rupert Hair
Quoted 11 lines · Rupert Hair

Quoting Andreas Dahlgren <[email protected]>:

Quoted 7 lines

Just upgraded to 2.6.8.1 and got much less errors but pvmove still wont work.

# pvmove -t /dev/hdc
  Test mode: Metadata will NOT be updated.
  mirror: Required device-mapper target(s) not detected in your kernel

anyone knows why this wont work?

Hi Andreas,

Quoted 8 lines

I think I posted exactly the same quiestion to the list some time ago. The answer is that you need the Device Mapper Mirror Target compiled into (or as a module in) your kernel. You will need to get the "unstable" patches from the following URL:

http://sources.redhat.com/dm/patches.html

Feel free to mail me if you need any more info on this.

Erm...the mirror target is available in 2.6.8.1 now I believe - you just need to make sure it's enabled in your .config when you compile your kernel. I believe the dm-mirror target is all that's required for pvmove.

regards,

Signature · 8 lines
AJ Lewis                                   Voice:  612-638-0500
Red Hat Inc.                               E-Mail: [email protected]
720 Washington Ave. SE, Suite 200
Minneapolis, MN 55414
   
Current GPG fingerprint = D9F8 EDCE 4242 855F A03D  9B63 F50C 54A8 578C 8715
Grab the key at: http://people.redhat.com/alewis/gpg.html or one of the
many keyservers out there...