Bug 238487 - null error message when attemping vgsplit of snap origin
Summary: null error message when attemping vgsplit of snap origin
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: lvm2
Version: 4.4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Milan Broz
QA Contact: Corey Marthaler
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-04-30 20:43 UTC by Corey Marthaler
Modified: 2013-03-01 04:05 UTC (History)
6 users (show)

Fixed In Version: RHBA-2007-0753
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-11-15 15:58:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2007:0753 0 normal SHIPPED_LIVE lvm2 bug fix and enhancement update 2007-11-14 16:56:08 UTC

Description Corey Marthaler 2007-04-30 20:43:34 UTC
Description of problem:

[root@basic ~]# pvs
  PV         VG            Fmt  Attr PSize  PFree
  /dev/sda3  VolGroup00    lvm2 a-   68.25G  64.00M
  /dev/sdc1  stripe_2_2252 lvm2 a-    1.59T 240.00M
  /dev/sdd1  stripe_2_2252 lvm2 a-    1.59T 240.00M
  /dev/sde1  stripe_2_2252 lvm2 a-    1.59T   1.59T
  /dev/sdf1  stripe_2_2252 lvm2 a-    1.59T   1.59T
  /dev/sdg1  stripe_2_2252 lvm2 a-    1.59T   1.59T
  /dev/sdh1  stripe_2_2252 lvm2 a-    1.59T   1.59T
[root@basic ~]# vgs
  VG            #PV #LV #SN Attr   VSize  VFree
  VolGroup00      1   2   0 wz--n- 68.25G 64.00M
  stripe_2_2252   6   1   3 wz--n-  9.55T  6.37T


[root@basic ~]# lvs -a -o +devices
  LV             VG            Attr   LSize   Origin         Snap%  Move Log
Copy%  Devices           
  LogVol00       VolGroup00    -wi-ao  66.25G                                  
    /dev/sda3(0)      
  LogVol01       VolGroup00    -wi-ao   1.94G                                  
    /dev/sda3(2120)   
  snap0          stripe_2_2252 swi--- 100.00M stripe_2_22520                   
    /dev/sde1(0)      
  snap1          stripe_2_2252 swi--- 100.00M stripe_2_22520                   
    /dev/sdf1(0)      
  snap2          stripe_2_2252 swi---  76.00M stripe_2_22520                   
    /dev/sdg1(0)      
  stripe_2_22520 stripe_2_2252 owi---   3.18T                                  
    /dev/sdc1(0),/dev/sdd1(0)


[root@basic ~]# vgsplit stripe_2_2252 split_885 /dev/sdc1 /dev/sdd1
  /dev/cdrom: open failed: Read-only file system
  Attempt to close device '/dev/cdrom' which is not open.
  Snapshot (null) split


Since sdd and sdc are both being used in the vg, I think that lvm is correct in
having the cmd fail, but it should give a valid error message, I believe like
the following:

[root@basic ~]# vgsplit stripe_2_2252 split_885 /dev/sdc1 /dev/sde1
  /dev/cdrom: open failed: Read-only file system
  Attempt to close device '/dev/cdrom' which is not open.
  Can't split Logical Volume stripe_2_22520 between two Volume Groups


Version-Release number of selected component (if applicable):
[root@basic ~]# rpm -q lvm2
lvm2-2.02.21-5.el4
[root@basic ~]# uname -ar
Linux basic 2.6.9-55.ELlargesmp #1 SMP Fri Apr 20 17:07:53 EDT 2007 ppc64 ppc64
ppc64 GNU/Linux


How reproducible:
everytime

Comment 1 Milan Broz 2007-05-15 15:00:09 UTC
Fixed upstream in 2.02.26.

Comment 2 RHEL Program Management 2007-05-15 15:04:26 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 5 Corey Marthaler 2007-07-27 19:19:31 UTC
fix verified lvm2-2.02.27-1.el4.

Comment 7 errata-xmlrpc 2007-11-15 15:58:30 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2007-0753.html



Note You need to log in before you can comment on or make changes to this bug.