Re: AIX 4.3 Stale LVs



On Oct 24, 4:21 am, MJB <helios...@xxxxxxx> wrote:
Hi All,

I've inherited an old AIX 4.3 system with 1GB drives in it. Yesterday
I noticed some stale LVs. I googled the issue and ran some commands I
found in other results. Here is what the system looked like before I
started:

rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT
POINT
hd5 boot 2 4 2 closed/syncd N/A
hd6 paging 128 256 2 open/stale N/A
hd8 jfslog 1 2 2 open/syncd N/A
hd4 jfs 2 4 2 open/stale /
hd2 jfs 146 292 2 open/stale /usr
hd9var jfs 1 2 2 open/stale /var
hd3 jfs 15 30 3 open/stale /tmp
hd1 jfs 1 2 2 open/syncd /home
lv01 jfs 1 1 1 closed/syncd N/A
lv00 jfs 5 10 1 open/syncd /local
lv02 jfs 360 360 2 open/syncd #

After running 'syncvg -v rootvg':
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT
POINT
hd5 boot 2 4 2 closed/syncd N/A
hd6 paging 128 256 2 open/stale N/A
hd8 jfslog 1 2 2 open/syncd N/A
hd4 jfs 2 4 2 open/syncd /
hd2 jfs 146 292 2 open/syncd /usr
hd9var jfs 1 2 2 open/syncd /var
hd3 jfs 15 30 3 open/stale /tmp
hd1 jfs 1 2 2 open/syncd /home
lv01 jfs 1 1 1 closed/syncd N/A
lv00 jfs 5 10 1 open/syncd /local
lv02 jfs 360 360 2 open/syncd #

Now only hd3 (/tmp) and paging space are stale

# syncvg -l hd6
0516-068 lresynclv: Unable to completely resynchronize volume. Run
diagnostics if neccessary.
0516-934 /usr/sbin/syncvg: Unable to synchronize logical volume hd6.

I see a missing device when I run this command:
# lsvg -p rootvg
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE
DISTRIBUTION
hdisk7 active 248 92
06..48..00..00..38
0516-304 lsvg: Unable to find device id 000048054d75e6b0 in the Device
Configuration Database.
000048054d75e6b0 missing 248 105
50..50..00..00..05
hdisk12 active 248 73
50..22..00..00..01
hdisk13 active 248 7
00..00..00..00..07
hdisk9 active 248 0
00..00..00..00..00

But this command shows all disks OK:
# lspv
hdisk7 00004805507bbe5d rootvg
hdisk9 0000145383ffebcf rootvg
hdisk12 0000145384007ccf rootvg
hdisk13 000014538402b614 rootvg

In more detail:
# lspv -l hdisk7
hdisk7:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
hd5 2 2 02..00..00..00..00 N/A
hd2 146 146 41..01..43..49..12 /usr
hd4 2 2 01..00..01..00..00 /
hd1 1 1 00..01..00..00..00 /home
hd8 1 1 00..00..01..00..00 N/A
hd9var 1 1 00..00..01..00..00 /var
hd3 3 3 00..00..03..00..00 /tmp

# lspv -l hdisk9
hdisk9:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
lv02 247 247 50..49..49..49..50 #
lv01 1 1 00..01..00..00..00 N/A

# lspv -l hdisk12
hdisk12:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
lv00 5 10 00..10..00..00..00 /local
hd2 146 146 00..01..47..49..49 /usr
hd5 2 2 00..02..00..00..00 N/A
hd8 1 1 00..01..00..00..00 N/A
hd1 1 1 00..01..00..00..00 /home
hd3 12 12 00..12..00..00..00 /tmp
hd9var 1 1 00..01..00..00..00 /var
hd4 2 2 00..00..02..00..00 /

# lspv -l hdisk13
hdisk13:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
lv02 113 113 50..05..00..15..43 #
hd6 128 128 00..45..49..34..00 N/A

So, 2 questions:
#1 How do I get the stale LVs to read open/synced
#2 How do I get the missing 000048054d75e6b0 out of the ODM?

without too onerous a lecture, this is why documentation and regular
backups are so valuable.
it looks like you have had a disk failure.
the AIX error log will hopefully tell you what happened, and when. try
the "errpt" command. Also look through the syslog (check /etc/
syslog.conf for setup)

run
lsdev -Cc disk
lscfg -vl hdisk\*
lslv -l lvname (hd6 etc; will probably fail)

hope you have some good backups :)
when was the last mksysb or other backups ?

seriously, you will probably be able to remove the half of the mirrors
that are on the problem PV, replace the failing disk (if that's the
problem) and remirror.
I had problems with AIX 4.3 and failing disks years back.
I wouldn't suggest removing ODM entries, it's very easy to corrupt the
VGDA on the PV's as it synchronises itself with the ODM and then
you'll really be in the do-do's.
.



Relevant Pages

  • Re: Forgot to put old_rootvg to sleep before reboot - How to Wake
    ... Performs operations on existing alternate rootvg volume groups. ... To rename Alternate Disk Volume Group: ... The alt_rootvg_op command can be used to determine which disk is the ... flag) can be executed at this time. ...
    (comp.unix.aix)
  • AIX 4.3 Stale LVs
    ... I noticed some stale LVs. ... After running 'syncvg -v rootvg': ... But this command shows all disks OK: ... # lspv -l hdisk7 ...
    (comp.unix.aix)
  • Re: 2 PV in the rootvg through an dd
    ... Is rootvg mirrored on both disks? ... lspv hdisk0 ... If both are available disks in the sytem then try to remove one of the disk ... If it is the problem to remove a disk from rootvg because of identical PVID, ...
    (comp.unix.aix)
  • Re: Cant remove hdisk from rootvg
    ... Run the following command to see what the disk actually knows about the ... This will read the vgda on the disk .. ... Disk VGDA says hdisk1 is IN the volume group and ODM says the disk is ... Can't remove hdisk from rootvg ...
    (AIX-L)
  • Re: Replace a rootvg hard disk with different capacity
    ... Easiest way to do this would be to clone the rootvg to the new disk and then ... just reboot from there and remove the old one. ... new disk and a "lsvg" command will show you 2 vg's and it will be very ...
    (comp.unix.aix)