Monday, February 26, 2007

LVM information crash with ODM

It is a nightmare. I found that one of the AIX server cannot build a mirror of the rootvg. After investigation, it even failed to extend a new disk (PV) to rootvg. Then I tried "odmget" command and found something strange: ODM indicated that there were 2 PVs in rootvg already.

Therefore, the situation is the ODM and LVM records are not consistent. What should I do? Luckily, I got a wonderful command - synclvodm

I ran "synclvodm -v rootvg", that's all. The new PV was added to rootvg and I could just happily build the mirror (smitty mirrorvg). Bravo !!!!

Ref: Man page of synclvodm

No comments: