Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Locked Volume Group

78 views
Skip to first unread message

Barry_...@transarc.com

unread,
May 16, 1994, 9:20:45 AM5/16/94
to
Several days while debugging a PERL script to generate a concise
summary of the logical volumes on an AIX system, I started getting
the following message:

testlab12[barry] lsvg vg00
0516-366 lsvg: Volume group vg00 is locked. Try again.

When it first appeared, I thought someone else must be editing the LVM
database. The message has persisted, so that interpretation now seems
less correct.

What does the message signify? How do I unlock the volume group?

BTW, the script mentioned above uses "lsvg" and "lsvg -l" commands.
I wasn't running as root when I started getting the locked message.

Thanks,

Barry

----------------------------------------------------
Barry Wolman ba...@transarc.com
Transarc Corporation 412/338-4364 (voice)
707 Grant Street 412/338-4404 (fax)
Pittsburgh, PA 15219

Andrew G. Russell IV

unread,
May 16, 1994, 8:08:32 PM5/16/94
to
Barry_...@transarc.com wrote:
: Several days while debugging a PERL script to generate a concise

: summary of the logical volumes on an AIX system, I started getting
: the following message:

: testlab12[barry] lsvg vg00
: 0516-366 lsvg: Volume group vg00 is locked. Try again.

: What does the message signify? How do I unlock the volume group?

The volume group is locked.

Try this:

putlvodm -K `getlvodm -v vg00`

A.G.
--
A.G. Russell High Order Software internet: arus...@bga.com
Phone 214-718-4655 210-599-9429 arus...@bifrost.bga.com
on location in Dallas, Texas 214-256-1027 arus...@onramp.net
These are my views, on anyone else they would look silly. FREE THE BERKELEY 4.4

Paul Ribeiro

unread,
May 19, 1994, 1:43:50 PM5/19/94
to
Hi,
I have a situation here where one volume group likes to be in a locked
state, if I do a lspv -l hdisk1 to get a disk map, it will work fine,
if I try it again 2 or 3 times, lspv will core dump and leave the vg
locked. This only happens on hdisk1 ..all of the others don't mind
listing their contents :-)
It's getting to be a pain to have to unlock it once a week. Any ideas
on what I can do to make the vg a little more stable? ..maybe I should
reformat the disk :-)
thanks,
/P

Freddie Mendoza

unread,
May 16, 1994, 3:54:44 PM5/16/94
to
: testlab12[barry] lsvg vg00

: 0516-366 lsvg: Volume group vg00 is locked. Try again.
: What does the message signify? How do I unlock the volume group?

When you do certain things to a VG, LV (and probably PV),
AIX will lock the VG so that nothing else can access it
while certain operations are performed.

Some AIX commands which are in script form can be interrupted
in the middle of doing something.If they have locked the VG and
get interrupted they leave this lock on.
If you try to access the VG again, via the LVM commands, then
you get this message.

read the /usr/lpp/bos/README and look for the word (putlvodm).

: ----------------------------------------------------


: Barry Wolman ba...@transarc.com
: Transarc Corporation 412/338-4364 (voice)
: 707 Grant Street 412/338-4404 (fax)
: Pittsburgh, PA 15219

--
Freddie Mendoza
Internet: a...@tkg.com
The Kernel Group Inc.

0 new messages