From: "Bryn M. Reeves" <bmr@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Cc: "Riches Jr, RobertX M" <robertx.m.riches.jr@intel.com>
Subject: Re: [linux-lvm] vgcreate fails with return value 5
Date: Wed, 13 Oct 2010 11:57:17 +0100 [thread overview]
Message-ID: <4CB5908D.4040602@redhat.com> (raw)
In-Reply-To: <4BD43A85686FC34D819098DB1C3999D9B0C5CE17@orsmsx502.amr.corp.intel.com>
On 10/11/2010 07:21 PM, Riches Jr, RobertX M wrote:
> I�m running into an odd problem in which vgcreate fails with a return value or
> exit code of 5. It is called from a script that calls pvcreate twice to create
> two PVs, then immediately calls vgcreate to create the VG.
Exit status 5 just means "command failed":
$ grep -r ECMD_FAILED ~/cvs/LVM2/lib/commands/errors.h
#define ECMD_FAILED 5
> An exit code of 5 appears to indicate excessive numbers of VGs. However, there
> are no other VGs on the system prior to this call to vgcreate. Search engine
There are hundreds of possible reasons for this error:
$ grep -r ECMD_FAILED ~/cvs/LVM2/ | wc -l
271
> results indicate the PV might be corrupt. However, the PV was just created a few
> milliseconds before calling vgcreate.
The tools normally output a more descriptive error indicating what went
wrong. If for some reason you are not getting anything helpful add more
verbosity (e.g. -vvvv) to try to understand where it's failing.
Regards,
Bryn.
prev parent reply other threads:[~2010-10-13 10:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-11 18:21 [linux-lvm] vgcreate fails with return value 5 Riches Jr, RobertX M
2010-10-11 21:04 ` Malahal Naineni
2010-10-13 10:57 ` Bryn M. Reeves [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CB5908D.4040602@redhat.com \
--to=bmr@redhat.com \
--cc=linux-lvm@redhat.com \
--cc=robertx.m.riches.jr@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).