Recovery from "Volume Group Locked" Error Message


About this document
    Related documentation

About this document

Use this procedure if you get an error message stating that any volume group is locked.
Possible error messages are:

   0516-366 putlvodm: volume group rootvg is locked, try again
   0516-367 putlvodm: Warning: Volume group rootvg is locked. This command
        will continue retries until lock is free.  If lock is inadvertent
        and needs to be removed, execute varyonvg onto active volume
        group to clear the volume group lock
This document applies to all versions of AIX.

Related documentation

The product documentation library is also available:


Many Logical Volume Manager (LVM) commands lock the volume group while they are in operation. Before running any of the commands discussed in this section, use the ps -ef command to ensure that no other LVM commands are running against the volume group in question.

For AIX Versions 3.1 or 3.2

Unlock the volume group by entering:

   putlvodm -K `getlvodm -v [vgname]` 

vgname is the name of the locked volume group. Note the grave marks (back tics) before getlvodm and after vgname. In the event the grave marks cannot be typed, break down the command into its component parts:

  1. Enter
    getlvodm -v rootvg

    Sample output:


  2. Enter
    putlvodm -K 00005264c192a1a3

For machines running AIX Versions 3.1 and 3.2, please see /usr/lpp/bos/README in the Logical Volume Manager section for a discussion of the preceding procedure.

For AIX Versions 4.x

Enter the following command:

    chvg -u [vgname] 

[ Doc Ref: 90605226714704     Publish Date: Oct. 02, 2000     4FAX Ref: 2809 ]