Linux LVM users
 help / color / mirror / Atom feed
* [linux-lvm] pvmove - Can't expand LV: Mirror support missing from kernel?
@ 2004-07-01 13:54 Magnus Månsson
  2004-07-02 22:09 ` [linux-lvm] pvmove - Can't expand LV: Mirror support missing fromkernel? Steve Wray
  0 siblings, 1 reply; 10+ messages in thread
From: Magnus Månsson @ 2004-07-01 13:54 UTC (permalink / raw)
  To: linux-lvm

Hi,
I am having some trouble doing pvmove.

I did reduce the fs and resize the lv with these commands:
e2fsck -f /dev/mapper/vg00-data && resize2fs /dev/mapper/vg00-data
551000
lvresize -L 552000M /dev/vg00/data

So now pvdisplay says something like:
part    total   free    alloc
hdb1    1786    0       1786
hde1    1786    0       1786
hdf1    1786    0       1786
hdg1    2680    0       2680
hdh1    1190    603     587
sda1    3724    3724    0

Since I want to remove hdb1 and hde1 I tried to pvmove hdb1 with:
pvmove /dev/hdb1
My output follows:
thor:~# pvmove /dev/hdb1
  Can't expand LV: Mirror support missing from kernel?
  ABORTING: Temporary mirror activation failed.  Run pvmove --abort.
  device-mapper ioctl cmd 9 failed: Invalid argument
  Couldn't load device 'vg00-pvmove0'.
thor:~# pvmove --abort 
  Can't expand LV: Mirror support missing from kernel?
  Suspension of temporary mirror LV failed
  Can't expand LV: Mirror support missing from kernel?

I am running a clean 2.6.7-kernel, with device mapper, dm-crypt and raid
(including all raidlevels) as modules, the only thing I do not have
under RAID and LVM is Multipath I/O support.

Can anyone please tell me why I am getting this problem and how to solve
it?


Do CC me, I am not subscribed to the list.

Thanks in advance
-- 
Magnus M�nsson <ganja@0x63.nu>

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

* RE: [linux-lvm] pvmove - Can't expand LV: Mirror support missing fromkernel?
  2004-07-01 13:54 [linux-lvm] pvmove - Can't expand LV: Mirror support missing from kernel? Magnus Månsson
@ 2004-07-02 22:09 ` Steve Wray
  2004-07-02 23:41   ` Dan Merillat
  0 siblings, 1 reply; 10+ messages in thread
From: Steve Wray @ 2004-07-02 22:09 UTC (permalink / raw)
  To: 'LVM general discussion and development'; +Cc: ganja

> Magnus M�nsson wrote:
> 
> Hi,
> I am having some trouble doing pvmove.

Me too.

I'm afraid that the only response I've ever got to this is
'its not supported in LVM2'.

Some people have suggested using a kernel with the latest dm
patches, which I tried and which failed.

About the only answer I have is to have enough spare disk to move 
everything over and remove the lv's residing on those pv's,
reorganise them and then move everything back.

I think that the unpleasent answer here is that LVM2 is *not*
ready for the enterprise user... sadly I've already deployed it.

[snip]
> I am running a clean 2.6.7-kernel, with device mapper, 
> dm-crypt and raid (including all raidlevels) as modules, the only thing I do not
have
> under RAID and LVM is Multipath I/O support.

Yup, likewise; I was there about a month ago and it still doesn't
work...

> Can anyone please tell me why I am getting this problem and 
> how to solve it?

I strongly doubt that you'll get any help out of the list on this,
but if someone does send you a fix which works, off-list, *please*
send it to me too; I have two failing disks which I need to decommission.

Thanks!

(I'm hoping against hope that there really is a fix for this,
and if theres anyone who would know, they'd be on this list.
So if noone on this list comes up with a fix, I'd submit that 
LVM2 should absolutely NOT be used on production systems (until there 
*is* a fix: LVM is great in principle)).

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

* Re: [linux-lvm] pvmove - Can't expand LV: Mirror support missing fromkernel?
  2004-07-02 22:09 ` [linux-lvm] pvmove - Can't expand LV: Mirror support missing fromkernel? Steve Wray
@ 2004-07-02 23:41   ` Dan Merillat
  2004-07-03  0:22     ` Garrick Staples
  2004-07-03  2:22     ` [linux-lvm] pvmove - Can't expand LV: Mirror support missingfromkernel? Steve Wray
  0 siblings, 2 replies; 10+ messages in thread
From: Dan Merillat @ 2004-07-02 23:41 UTC (permalink / raw)
  To: LVM general discussion and development

On Sat, 03 Jul 2004, Steve Wray wrote:

> I strongly doubt that you'll get any help out of the list on this,
> but if someone does send you a fix which works, off-list, *please*
> send it to me too; I have two failing disks which I need to decommission.

stock 2.6 dosn't have many dm-targets in it.  Pick up the LVM patches
off the website and apply them for the more "experimental" things like
mirroring.

--Dan

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

* Re: [linux-lvm] pvmove - Can't expand LV: Mirror support missing fromkernel?
  2004-07-02 23:41   ` Dan Merillat
@ 2004-07-03  0:22     ` Garrick Staples
  2004-07-03  2:30       ` [linux-lvm] pvmove - Can't expand LV: Mirror support missingfromkernel? Steve Wray
  2004-07-03  2:22     ` [linux-lvm] pvmove - Can't expand LV: Mirror support missingfromkernel? Steve Wray
  1 sibling, 1 reply; 10+ messages in thread
From: Garrick Staples @ 2004-07-03  0:22 UTC (permalink / raw)
  To: LVM general discussion and development

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

On Fri, Jul 02, 2004 at 07:41:54PM -0400, Dan Merillat alleged:
> On Sat, 03 Jul 2004, Steve Wray wrote:
> 
> > I strongly doubt that you'll get any help out of the list on this,
> > but if someone does send you a fix which works, off-list, *please*
> > send it to me too; I have two failing disks which I need to decommission.
> 
> stock 2.6 dosn't have many dm-targets in it.  Pick up the LVM patches
> off the website and apply them for the more "experimental" things like
> mirroring.

What the?

$ tar jtvf 2.6.7-udm1.tar.bz2 
drwxr-xr-x root/wheel        0 2004-07-01 13:45:46 2.6.7-udm1/
-rw-r--r-- root/wheel 14760862 2004-07-01 13:33:43 2.6.7-udm1/00001.patch
-rw-r--r-- root/wheel      372 2004-07-01 13:34:15 2.6.7-udm1/00002.patch
-rw-r--r-- root/wheel      825 2004-07-01 13:34:26 2.6.7-udm1/00003.patch
...

Some of those patch tarballs seem to be patching a whole lot more then
just dm.

-- 
Garrick Staples, Linux/HPCC Administrator
University of Southern California

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

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

* RE: [linux-lvm] pvmove - Can't expand LV: Mirror support missingfromkernel?
  2004-07-02 23:41   ` Dan Merillat
  2004-07-03  0:22     ` Garrick Staples
@ 2004-07-03  2:22     ` Steve Wray
  1 sibling, 0 replies; 10+ messages in thread
From: Steve Wray @ 2004-07-03  2:22 UTC (permalink / raw)
  To: 'LVM general discussion and development'

Dan Merillat wrote:
> On Sat, 03 Jul 2004, Steve Wray wrote:
> 
> > I strongly doubt that you'll get any help out of the list on this,
> > but if someone does send you a fix which works, off-list, *please*
> > send it to me too; I have two failing disks which I need to 
> decommission.
> 
> stock 2.6 dosn't have many dm-targets in it.  Pick up the LVM patches
> off the website and apply them for the more "experimental" things like
> mirroring.

You mean like dm-mirror?

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

* RE: [linux-lvm] pvmove - Can't expand LV: Mirror support missingfromkernel?
  2004-07-03  0:22     ` Garrick Staples
@ 2004-07-03  2:30       ` Steve Wray
  2004-07-03 16:46         ` Alasdair G Kergon
  0 siblings, 1 reply; 10+ messages in thread
From: Steve Wray @ 2004-07-03  2:30 UTC (permalink / raw)
  To: 'LVM general discussion and development'

Garrick Staples wrote:
> 
> On Fri, Jul 02, 2004 at 07:41:54PM -0400, Dan Merillat alleged:
> > On Sat, 03 Jul 2004, Steve Wray wrote:
> > 
> > > I strongly doubt that you'll get any help out of the list on this,
> > > but if someone does send you a fix which works, off-list, *please*
> > > send it to me too; I have two failing disks which I need to decommission.
> > 
> > stock 2.6 dosn't have many dm-targets in it.  Pick up the LVM patches
> > off the website and apply them for the more "experimental" things like
> > mirroring.
> 
> What the?
> 
[snip]
> 
> Some of those patch tarballs seem to be patching a whole lot more then
> just dm.

Indeed and this is what I have in the .config for a kernel which can't 
do a pvmove;

CONFIG_BLK_DEV_DM=m
CONFIG_DM_CRYPT=m
CONFIG_DM_MULTIPATH=m
CONFIG_DM_SNAPSHOT=m
CONFIG_DM_MIRROR=m
CONFIG_DM_FLAKEY=m
CONFIG_BLK_DEV_DM_BBR=m


oh and, yes, I did run modprobe dm-mirror.

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

* Re: [linux-lvm] pvmove - Can't expand LV: Mirror support missingfromkernel?
  2004-07-03  2:30       ` [linux-lvm] pvmove - Can't expand LV: Mirror support missingfromkernel? Steve Wray
@ 2004-07-03 16:46         ` Alasdair G Kergon
  2004-07-04  0:49           ` [linux-lvm] pvmove - Can't expand LV: Mirror supportmissingfromkernel? Steve Wray
  0 siblings, 1 reply; 10+ messages in thread
From: Alasdair G Kergon @ 2004-07-03 16:46 UTC (permalink / raw)
  To: LVM general discussion and development

On Sat, Jul 03, 2004 at 02:30:45PM +1200, Steve Wray wrote:
> Indeed and this is what I have in the .config for a kernel which can't 
> do a pvmove;
 
> CONFIG_DM_MIRROR=m

> oh and, yes, I did run modprobe dm-mirror.

What does 'dmsetup targets' return?
Does it include 'mirror' in the output list?
(And confirm what versions you're using: run 'lvm version')
 
Alasdair
-- 
agk@redhat.com

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

* RE: [linux-lvm] pvmove - Can't expand LV: Mirror supportmissingfromkernel?
  2004-07-03 16:46         ` Alasdair G Kergon
@ 2004-07-04  0:49           ` Steve Wray
  2004-07-04 11:38             ` Alasdair G Kergon
  0 siblings, 1 reply; 10+ messages in thread
From: Steve Wray @ 2004-07-04  0:49 UTC (permalink / raw)
  To: 'LVM general discussion and development'

Alasdair G Kergon wrote:
> 
> On Sat, Jul 03, 2004 at 02:30:45PM +1200, Steve Wray wrote:
> > Indeed and this is what I have in the .config for a kernel which can't 
> > do a pvmove;
>  
> > CONFIG_DM_MIRROR=m
> 
> > oh and, yes, I did run modprobe dm-mirror.
> 
> What does 'dmsetup targets' return?

# dmsetup targets
Unknown command
Usage:

dmsetup [--version] [-v|--verbose [-v|--verbose ...]]
        [-r|--readonly] [-j|--major <major>] [-m|--minor <minor>]
[snip]

So I got an updated version of dmsetup and now I get;
# dmsetup targets
mirror           v1.0.1
striped          v1.0.1
linear           v1.0.1
error            v1.0.1

but pvmove -tv /dev/hdf4 still fails with;

  ABORTING: Temporary mirror activation failed.

> Does it include 'mirror' in the output list?

does now
:)

> (And confirm what versions you're using: run 'lvm version')

# lvm version
  LVM version:     2.00.08 (2003-11-14)
  Library version: 1.00.07-ioctl (2003-11-21)
  Driver version:  4.1.0

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

* Re: [linux-lvm] pvmove - Can't expand LV: Mirror supportmissingfromkernel?
  2004-07-04  0:49           ` [linux-lvm] pvmove - Can't expand LV: Mirror supportmissingfromkernel? Steve Wray
@ 2004-07-04 11:38             ` Alasdair G Kergon
  2004-07-04 19:00               ` [linux-lvm] pvmove - Can't expand LV: Mirrorsupportmissingfromkernel? Steve Wray
  0 siblings, 1 reply; 10+ messages in thread
From: Alasdair G Kergon @ 2004-07-04 11:38 UTC (permalink / raw)
  To: LVM general discussion and development

On Sun, Jul 04, 2004 at 12:49:06PM +1200, Steve Wray wrote:
> but pvmove -tv /dev/hdf4 still fails with;
>   ABORTING: Temporary mirror activation failed.

That's test mode for you: it's continuing further into
the pvmove than is possible when all writes are turned off
(which is what test mode does) - it needs fixing to bail
out sooner cleanly.
 
> # lvm version
>   LVM version:     2.00.08 (2003-11-14)
>   Library version: 1.00.07-ioctl (2003-11-21)

You really should update both of those.
Look at the current WHAT_NEW file to see how many fixed bugs 
you're running with!
 
Alasdair
-- 
agk@redhat.com

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

* RE: [linux-lvm] pvmove - Can't expand LV: Mirrorsupportmissingfromkernel?
  2004-07-04 11:38             ` Alasdair G Kergon
@ 2004-07-04 19:00               ` Steve Wray
  0 siblings, 0 replies; 10+ messages in thread
From: Steve Wray @ 2004-07-04 19:00 UTC (permalink / raw)
  To: 'LVM general discussion and development'

Alasdair G Kergon wrote:

> On Sun, Jul 04, 2004 at 12:49:06PM +1200, Steve Wray wrote:
> > but pvmove -tv /dev/hdf4 still fails with;
> >   ABORTING: Temporary mirror activation failed.
> 
> That's test mode for you: it's continuing further into
> the pvmove than is possible when all writes are turned off
> (which is what test mode does) - it needs fixing to bail
> out sooner cleanly.

So you are saying that its not really bad and I should run it without test 
mode and it will be ok?

 
> > # lvm version
> >   LVM version:     2.00.08 (2003-11-14)
> >   Library version: 1.00.07-ioctl (2003-11-21)
> 
> You really should update both of those.
> Look at the current WHAT_NEW file to see how many fixed bugs 
> you're running with!

Will do, thanks

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

end of thread, other threads:[~2004-07-04 19:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-01 13:54 [linux-lvm] pvmove - Can't expand LV: Mirror support missing from kernel? Magnus Månsson
2004-07-02 22:09 ` [linux-lvm] pvmove - Can't expand LV: Mirror support missing fromkernel? Steve Wray
2004-07-02 23:41   ` Dan Merillat
2004-07-03  0:22     ` Garrick Staples
2004-07-03  2:30       ` [linux-lvm] pvmove - Can't expand LV: Mirror support missingfromkernel? Steve Wray
2004-07-03 16:46         ` Alasdair G Kergon
2004-07-04  0:49           ` [linux-lvm] pvmove - Can't expand LV: Mirror supportmissingfromkernel? Steve Wray
2004-07-04 11:38             ` Alasdair G Kergon
2004-07-04 19:00               ` [linux-lvm] pvmove - Can't expand LV: Mirrorsupportmissingfromkernel? Steve Wray
2004-07-03  2:22     ` [linux-lvm] pvmove - Can't expand LV: Mirror support missingfromkernel? Steve Wray

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