[lvm-devel] pvchange returns 5 when the other vg is exported

Liuhua Wang lwang at suse.com
Fri Mar 11 07:35:59 UTC 2016


Hi David,

On Thu, Mar 10, 2016 at 01:39:37PM -0600, David Teigland wrote:
> > 
> >    Because vg2 is exported and vg2 locates on the head of list, firstly vg_read(vg2) 
> >    will cause set read error and cause ignore_vg() to return 1 (read_error != SUCCESS)
> >    
> >    Then ret_max remains ECMD_FAILED(5) and is returned. I don't think returning error
> >    is expected since vg2 has no relationship with /dev/vdb1.
> 
> Thanks, I've fixed this here:
> https://git.fedorahosted.org/cgit/lvm2.git/commit/?id=0f10823ec910c0a6015b20580f5aa26f209cea04

I tested the patch works. Thanks a lot!
---
Best,
Liuhua




More information about the lvm-devel mailing list