Linux LVM users
 help / color / mirror / Atom feed
* [linux-lvm] pvmove wont work
@ 2004-08-28 21:09 Andreas Dahlgren
  2004-08-28 21:34 ` Rupert Hair
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Dahlgren @ 2004-08-28 21:09 UTC (permalink / raw)
  To: linux-lvm

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?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-lvm] pvmove wont work
  2004-08-28 21:09 [linux-lvm] pvmove wont work Andreas Dahlgren
@ 2004-08-28 21:34 ` Rupert Hair
  2004-08-30  3:49   ` [linux-lvm] Why do I only have 11.51GB Free PE's when DF says I have 441GB free in the volume? Benjamin Runnels
  2004-08-30 15:46   ` [linux-lvm] pvmove wont work AJ Lewis
  0 siblings, 2 replies; 6+ messages in thread
From: Rupert Hair @ 2004-08-28 21:34 UTC (permalink / raw)
  To: LVM general discussion and development

Quoting Andreas Dahlgren <andreas.dahlgren@home.se>:

> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [linux-lvm] Why do I only have 11.51GB Free PE's when DF says I have 441GB free in the volume?
  2004-08-28 21:34 ` Rupert Hair
@ 2004-08-30  3:49   ` Benjamin Runnels
  2004-08-30  7:49     ` [linux-lvm] Why do I only have 11.51GB Free PE's when DF says Ihave " Christian Hack
  2004-08-30 15:46   ` [linux-lvm] pvmove wont work AJ Lewis
  1 sibling, 1 reply; 6+ messages in thread
From: Benjamin Runnels @ 2004-08-30  3:49 UTC (permalink / raw)
  To: 'LVM general discussion and development'

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [linux-lvm] Why do I only have 11.51GB Free PE's when DF says Ihave 441GB free in the volume?
  2004-08-30  3:49   ` [linux-lvm] Why do I only have 11.51GB Free PE's when DF says I have 441GB free in the volume? Benjamin Runnels
@ 2004-08-30  7:49     ` Christian Hack
  2004-08-31  0:52       ` [linux-lvm] Why do I only have 11.51GB Free PE's when DF saysIhave " Benjamin Runnels
  0 siblings, 1 reply; 6+ messages in thread
From: Christian Hack @ 2004-08-30  7:49 UTC (permalink / raw)
  To: 'LVM general discussion and development'

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

.
> -----Original Message-----
> From: linux-lvm-bounces@redhat.com 
> [mailto:linux-lvm-bounces@redhat.com] 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
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-lvm] pvmove wont work
  2004-08-28 21:34 ` Rupert Hair
  2004-08-30  3:49   ` [linux-lvm] Why do I only have 11.51GB Free PE's when DF says I have 441GB free in the volume? Benjamin Runnels
@ 2004-08-30 15:46   ` AJ Lewis
  1 sibling, 0 replies; 6+ messages in thread
From: AJ Lewis @ 2004-08-30 15:46 UTC (permalink / raw)
  To: LVM general discussion and development

[-- Attachment #1: Type: text/plain, Size: 1414 bytes --]

On Sat, Aug 28, 2004 at 10:34:25PM +0100, Rupert Hair wrote:
> Quoting Andreas Dahlgren <andreas.dahlgren@home.se>:
> 
> > 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.

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,
-- 
AJ Lewis                                   Voice:  612-638-0500
Red Hat Inc.                               E-Mail: alewis@redhat.com
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...


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [linux-lvm] Why do I only have 11.51GB Free PE's when DF saysIhave 441GB free in the volume?
  2004-08-30  7:49     ` [linux-lvm] Why do I only have 11.51GB Free PE's when DF says Ihave " Christian Hack
@ 2004-08-31  0:52       ` Benjamin Runnels
  0 siblings, 0 replies; 6+ messages in thread
From: Benjamin Runnels @ 2004-08-31  0:52 UTC (permalink / raw)
  To: 'LVM general discussion and development'

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: linux-lvm-bounces@redhat.com [mailto:linux-lvm-bounces@redhat.com] 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


> -----Original Message-----
> From: linux-lvm-bounces@redhat.com 
> [mailto:linux-lvm-bounces@redhat.com] 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
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
> 


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-08-31  0:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-28 21:09 [linux-lvm] pvmove wont work Andreas Dahlgren
2004-08-28 21:34 ` Rupert Hair
2004-08-30  3:49   ` [linux-lvm] Why do I only have 11.51GB Free PE's when DF says I have 441GB free in the volume? Benjamin Runnels
2004-08-30  7:49     ` [linux-lvm] Why do I only have 11.51GB Free PE's when DF says Ihave " Christian Hack
2004-08-31  0:52       ` [linux-lvm] Why do I only have 11.51GB Free PE's when DF saysIhave " Benjamin Runnels
2004-08-30 15:46   ` [linux-lvm] pvmove wont work AJ Lewis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox