21.02.2013 Views

AIX 5L Problem Determination - IBM Redbooks

AIX 5L Problem Determination - IBM Redbooks

AIX 5L Problem Determination - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ODM corruption can also occur if an LVM operation terminates abnormally and<br />

leaves the ODM in an inconsistent state. This may happen, for example, if the file<br />

system on which the ODM resides (normally root, /) becomes full during the<br />

process of importing a volume group.<br />

If you suspect that the ODM entries for a particular volume group have been<br />

corrupted, a simple way to resynchronize the entries is to varyoff and export the<br />

volume group from the system, then import and varyon to refresh the ODM. This<br />

process can only be performed for non-rootvg volume groups.<br />

For the rootvg volume group, you can use the redefinevg command, which<br />

examines every disk in the system to determine which volume group it belongs to<br />

and then updates the ODM. For example:<br />

# redefinevg rootvg<br />

If you suspect that the LVM information stored on disk has become corrupted,<br />

use the synclvodm command to synchronize and rebuild the LVCB, the device<br />

configuration database, and the VGDAs on the physical volumes. For example:<br />

# synclvodm -v myvg<br />

If you have a volume group where one or more logical volumes is mirrored, use<br />

the syncvg command if you suspect that one or more mirrored copies has<br />

become stale. The command can be used to resynchronize an individual logical<br />

volume, a physical disk, or an entire volume group. For example:<br />

# syncvg -l lv02<br />

The above command synchronizes the mirror copies of the logical volume lv02.<br />

# syncvg -v myvg<br />

The above command synchronizes all of the logical volumes in the volume group<br />

myvg.<br />

7.2.4 Understanding importvg problems<br />

If importing a volume group into a system is not possible using the importvg<br />

command, the following areas are the typical problem areas:<br />

► <strong>AIX</strong> version level<br />

► Invalid PVID<br />

► Disk change while volume group was exported<br />

► Shared disk environment<br />

In general, if the importvg command is unsuccessful, check the error log for<br />

information that can point to the problem.<br />

Chapter 7. LVM, file system, and disk problem determination 141

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!