Your Ad Here

IBM AIX/UNIX system storage administration ksh/perl scripting

Saturday, March 28, 2009

0516-008 varyonvg: LVM system call returned an unknown error code (3).

Problem:

The system was rebooted itself and they can't varyon
a volume group:
varyonvg vgss01page
0516-008 varyonvg: LVM system call returned an unknown
error code (3).

Solution:

lsvg -o -> not variedon
lspv:

hdisk2 000df0af41b969ae vgss01page
hdisk3 000df0af3ca7e15f vgss01page

lquerypv -h /dev/hdisk2 80 10
00000080 000DF0AF 41B969AE 00000000 00000000 |....A.i.........|

lquerypv -h /dev/hdisk3 80 10
00000080 000DF0AF 3CA7E15F 00000000 00000000 |....<.._........|

lqueryvg -Atp hdisk2 and hdisk3 gives the proper information except for
Physical: 000df0afc5256113 1 0 which is not part of the vg

chpv -va hdisk2 -> 0516-010 lqueryvg: Volume group must be varied on;
use varyonvg command.
0516-722 chpv: Unable to change physical volume hdisk2.

chpv -va hdisk3 -> 0516-010 lqueryvg: Volume group must be varied on;
use varyonvg command.
0516-722 chpv: Unable to change physical volume hdisk3.

exportvg vgss01page -> ok
rmdev -dl hdis2 -> ok
rmdev -dl hdisk3 -> ok

cfgmgr -> hanging for a while but completed
importvg -y vgss01page hdisk2 ->

0516-304 getlvodm: Unable to find device id 000df0afc5256113 in the
Device
Configuration Database.
PV Status: hdisk2 000df0af41b969ae PVACTIVE
hdisk3 000df0af3ca7e15f PVACTIVE
000df0afc5256113 NONAME
varyonvg: Volume group vgss01page is varied on.
0516-510 synclvodm: Physical volume not found for physical volume
identifier 000df0afc52561130000000000000000.
0516-548 synclvodm: Partially successful with updating volume
group vgss01page.
vgss01page
PV Status: hdisk2 000df0af41b969ae PVACTIVE
hdisk3 000df0af3ca7e15f PVACTIVE
000df0afc5256113 NONAME
varyonvg: Volume group vgss01page is varied on.
lsvg -l vgss01page
vgss01page:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT
POINT
paging01 paging 271 271 1 closed/syncd N/A

13:39(usehss01:/export/home/root) # uptime
01:41PM up 5:51, 5 users, load average: 0.03, 0.04, 0.05
13:41(usehss01:/export/home/root) #

sysdumpdev -L
0453-039

Device name: /dev/sysdumpnull
Major device number: 7
Minor device number: 2
Size: 0 bytes
Date/Time: Wed Dec 31 19:00:00 EST 1969
Dump status: -1
no dump device defined

# sysdumpdev -l
primary /dev/sysdumpnull
secondary /dev/sysdumpnull
copy directory /var/adm/ras
forced copy flag TRUE
always allow dump TRUE
dump compression OFF

sent customr a technote procedure to create a valid dump device

reducevg -d vgss01page 000df0afc5256113

reducevg -d vgss01page 000df0afc5256113
0516-304 putlvodm: Unable to find device id
000df0afc52561130000000000000000 in the Device
Configuration Database.
0516-896 reducevg: Warning, cannot remove physical volume
000df0afc5256113 from Device Configuration Database.

lsvg -p vgss01page
vgss01page:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE
DISTRIBUTION
hdisk2 active 271 0
00..00..00..00..00
hdisk3 active 542 542
109..108..108..108..109

swapon -a to actvate the paging space

No comments:

Labels

Blog Archive

BlogCatalog