Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 165765

Summary: lvchange -j is presented to user but not doc'ed
Product: Red Hat Enterprise Linux 4 Reporter: Corey Marthaler <cmarthal>
Component: lvm2Assignee: Alasdair Kergon <agk>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: kupcevic, mbroz
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-09-04 15:19:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Corey Marthaler 2005-08-11 21:27:06 UTC
Description of problem:
I'm not sure what "-j" does, but it says I can use it:

lvm> lvchange
  One or more of -a, -C, -j, -m, -M, -p, -r, --refresh, --alloc, --addtag or
--deltag required

lvm> lvchange -h
  lvchange: Change the attributes of logical volume(s)

lvchange
        [-A|--autobackup y|n]
        [-a|--available [e|l]y|n]
        [--addtag Tag]
        [--alloc AllocationPolicy]
        [-C|--contiguous y|n]
        [-d|--debug]
        [--deltag Tag]
        [-f|--force]
        [-h|--help]
        [--ignorelockingfailure]
        [-M|--persistent y|n] [--major major] [--minor minor]
        [-P|--partial]
        [-p|--permission r|rw]
        [-r|--readahead ReadAheadSectors]
        [--refresh]
        [-t|--test]
        [-v|--verbose]
        [--version]
        LogicalVolume[Path] [LogicalVolume[Path]...]


lvm> lvchange -j /dev/gfs/testvol
  Invalid argument /dev/gfs/testvol
  Error during parsing of command line.
lvm> lvchange -jy /dev/gfs/testvol
  Invalid argument y
  Error during parsing of command line.
lvm> lvchange -j 1 /dev/gfs/testvol
  --major and --minor require -My

Comment 1 Milan Broz 2006-09-04 15:19:14 UTC
Option -j is shortcut for --major. 
Not implemented in lvm2 yet.
Closing this as duplicate of feature request for implementing LVM2 major number
option.

*** This bug has been marked as a duplicate of 204997 ***