LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-15-2010, 06:05 AM   #1
hartajdugal
LQ Newbie
 
Registered: Jul 2010
Posts: 2

Rep: Reputation: 0
vgdisplay -v -D results in invalid option -D in rhel 5.5(tikanga)


Hi,
Any idea when the -D option was withdrawn ? I could not find much information on this . Also, what exactly is the difference between vgdisplay -v -D and just vgdisplay -v .
Thanks,
Hartaj Singh .
 
Old 07-15-2010, 06:17 AM   #2
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Hi Hartaj,

Not sure exactly when it was withdrawn. But testing with/without the -D on an old RHEL 4 machine of mine; there seems to be no difference:

Code:
# vgdisplay VolGroup00
  --- Volume group ---
  VG Name               VolGroup00
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  10
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                5
  Open LV               5
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               279.25 GB
  PE Size               32.00 MB
  Total PE              8936
  Alloc PE / Size       8936 / 279.25 GB
  Free  PE / Size       0 / 0   
  VG UUID               bATTIh-TNs0-2H66-zQWb-16ow-SD4H-RuJmDW
   
# vgdisplay -D VolGroup00
  --- Volume group ---
  VG Name               VolGroup00
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  10
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                5
  Open LV               5
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               279.25 GB
  PE Size               32.00 MB
  Total PE              8936
  Alloc PE / Size       8936 / 279.25 GB
  Free  PE / Size       0 / 0   
  VG UUID               bATTIh-TNs0-2H66-zQWb-16ow-SD4H-RuJmDW
 
Old 07-15-2010, 10:40 AM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
When in doubt, refer to the man pages. The only D option is -d for debug in RHEL 5.5.
 
Old 07-16-2010, 12:02 AM   #4
hartajdugal
LQ Newbie
 
Registered: Jul 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks guys..
I did check the man page . In fact there is some difference between the -D and -d options . I found this somewhere :

-d, --debug
Enables additional debugging output (if compiled with DEBUG).

-D, --disk
Show attributes from the volume group descriptor area on disk(s). Without this switch they are shown from the kernel. Useful if the volume group isn't activated.

Hence my confusion . Any idea about this ?
 
Old 07-16-2010, 12:11 AM   #5
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by hartajdugal View Post
Thanks guys..
I did check the man page . In fact there is some difference between the -D and -d options . I found this somewhere :

-d, --debug
Enables additional debugging output (if compiled with DEBUG).

-D, --disk
Show attributes from the volume group descriptor area on disk(s). Without this switch they are shown from the kernel. Useful if the volume group isn't activated.

Hence my confusion . Any idea about this ?
There is no -D option in RHEL/CentOS. I think -D option would be in some other flavor of Linux or Unix.
Certainly NOT in RHEL/CentOS/Fedora.


The only options available are:-
Code:
       vgdisplay    [-A|--activevolumegroups]    [-c|--colon]    [-d|--debug]
       [-h|--help]   [--ignorelockingfailure]   [-P|--partial]   [-s|--short]
       [-v[v]|--verbose [--verbose]] [--version] [VolumeGroupName...]
 
Old 07-16-2010, 08:34 AM   #6
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Quote:
There is no -D option in RHEL/CentOS. I think -D option would be in some other flavor of Linux or Unix.
Certainly NOT in RHEL/CentOS/Fedora.
Yes and No - definitely RHEL/CentOS 5 don't have a -D option. However it seems RHEL 4 did have the -D option - I have tested on an old RHEL 4 machine of mine.
 
Old 07-16-2010, 10:57 AM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by hartajdugal View Post
Thanks guys..
I did check the man page . In fact there is some difference between the -D and -d options . I found this somewhere :

-d, --debug
Enables additional debugging output (if compiled with DEBUG).

-D, --disk
Show attributes from the volume group descriptor area on disk(s). Without this switch they are shown from the kernel. Useful if the volume group isn't activated.

Hence my confusion . Any idea about this ?
Which man page you looking at? The default man page on the RHEL 5.5 machine I looked at lacked the -D option in it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ls *txt* returns invalid option --e Eh ??? MrMark Linux - Newbie 8 12-21-2016 10:20 AM
Segmentation fault when running vgdisplay Joyce1981 Linux - Server 0 01-07-2009 03:54 PM
dkmraid -i invalid option sang_froid Linux - General 0 10-16-2006 08:50 AM
cp indicates invalid option Murdock1979 Linux - Software 1 01-24-2006 02:21 AM
in.telnetd: invalid option -- L implant23 Linux - Networking 1 12-01-2002 11:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration