no VGs found


 
Thread Tools Search this Thread
Operating Systems AIX no VGs found
# 1  
Old 10-07-2005
no VGs found

When I give lsvg command
It says no VGs found
When I give lspv,it gives a listing of all PVs corresponding to their respective VGs i.e. rootvg,uservg,etc.
But when I give lspv hdisk0
It says rootvg not found in Configuration Manager Database.


thanks
Manu
# 2  
Old 10-10-2005
there are a few ways to fix this problem

1. Fix the odm view of the root
========================
if you can run this command it try this prosedure
lqueryvg -Atp hdisk0
redefinevg -d hdisk0 rootvg
synclvodm -v rootvg


If one did not work try this one
============================
2. Make a backup of the ODM databsess be for you start
==========================================
Part1 Backup you ODM
1. cd /etc/objrepos
2. mkdir bak
3. cp Cu* bak

Part2 --> Run this script
#!/bin/ksh
PV=/dev/ipldevice
VG=rootvg
lqueryvg -Lp $PV | awk '{ print $2 }' | while read LVname; do
odmdelete -q "name = $LVname" -o CuAt
odmdelete -q "name = $LVname" -o CuDv
odmdelete -q "value3 = $LVname" -o CuDvDr
odmdelete -q "dependency = $LVname" -o CuDep
done
odmdelete -q "name = $VG" -o CuAt
odmdelete -q "parent = $VG" -o CuDv
odmdelete -q "name = $VG" -o CuDv
odmdelete -q "name = $VG" -o CuDep
odmdelete -q "dependency = $VG" -o CuDep
if [ "$VG" = rootvg ]
then
odmdelete -q "value1 = 10" -o CuDvDr
else
odmdelete -q "value1 = $VG" -o CuDvDr
fi
odmdelete -q "value3 = $VG" -o CuDvDr
importvg -y $VG $PV # ignore varyoffvg errors
varyonvg $VG
synclvodm -Pv $VG
savebase

DO a lspv to see if you have a rootvg if not use the backout plan

PART3 Backout
1. cd /etc/objrepos/bak
2. cp Cu* /etc/objrepos/



========================================================
Last hope
=======
3. Mksysb restore of the last mksysb you have taken (last resort)



Before you do any of this you may just want to check with IBM support On your problem
Start at the top prosedure firs and work your way down as 2 and 3 are more
disruptive prosedures as soon as the problem is fixed let me know wich one you used in the end.
# 3  
Old 10-11-2005
thanks a lot ..it worked
# 4  
Old 10-11-2005
Computer

Smilie No problems
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

If first pattern is found, look for second pattern. If second pattern not found, delete line

I had a spot of trouble coming up with a title, hopefully you'll understand once you read my problem... :) I have the output of an ldapsearch that looks like this: dn: cn=sam,ou=company,o=com uidNumber: 7174 gidNumber: 49563 homeDirectory: /home/sam loginshell: /bin/bash uid: sam... (2 Replies)
Discussion started by: samgoober
2 Replies

2. Programming

curses.h not found , gtk/gtk.h not found

i have downloaded <libncurses5-dev_5.7+20101128-1_i386.deb> and <ndk++-0.0.1alpha4.tar.bz2> which contains the header files curses.h and gtk/gtk.h .. i have also included them using .. #include "/home/ball/Desktop/Sudoku/project/libncurses5-dev_5.7+20101128-1_i386/usr/include/curses.h" ... (2 Replies)
Discussion started by: upvan111
2 Replies

3. Shell Programming and Scripting

Identify missing VGs

lsvg command returns rootvg mqB01vg heartbeatvg mqA01vg oracleAvg2 cevgA01 orastgevg ..... lsvg -o command returns rootvg mqB01vg heartbeatvg mqA01vg oracleAvg2 ...... (3 Replies)
Discussion started by: Daniel Gate
3 Replies

4. Solaris

In cluster configuration ora* VGs are not controlled by VCS

Need some one to explain "In cluster configuration ora* VGs are not controlled by VCS". Actually, I am not aware of this. Thanks, Rama (0 Replies)
Discussion started by: ramareddi16
0 Replies

5. AIX

Unknown VGs

Hi Guys, I found on one of the server there are 2 VG's which I dont have any Idea of who created .. as below bash-3.00$ lsvg old_rootvg rootvg datavg altinst_rootvg altinst_rootvg under is meant for alternate disk installation.. But I'm not sure for which version of OS it was... (5 Replies)
Discussion started by: kkeng808
5 Replies

6. SuSE

Remove disks from VGs in LVM

Hi, I have following set up on Open suse 11 vgdisplay pvdisplay lvdisplay I would like to remove these disks /dev/sdb and /dev/sdc from LVM and do not use them for anything.. Can anyone please help me with this ? (1 Reply)
Discussion started by: upengan78
1 Replies

7. AIX

Wierd thing about FSs and VGs

Hello It appears that on a regular basis, perhaps when weekly rebooting happens, not sure yet, my odm becomes out of sync. When doing a smitty file system list by volume group, the FS type is displayed as ??? on several FSs. Always in the same VG. I know how to fix this problem, thing is,... (4 Replies)
Discussion started by: mhenryj
4 Replies

8. AIX

mksysb restore ( vgs on SAN disks)

I have my application vendor looking at this but I want to do my own investigation. I restored from mksysb and I see my vgs that contain my internal disks. But I do not see my vgs that contain disks from the SAN. This scares me .. {{ Ha, ha!! My AIX expert boss just told me I have nothing... (0 Replies)
Discussion started by: Skyybugg
0 Replies

9. Shell Programming and Scripting

how can i check in csh if command found or not found ?

hello all im trying to use in sun Solaris the information received from the top command now i several machines that dont have install the top program so when im running the script im geting error saying after im running this code : set MemoryInfo = `top | grep Memory` if (... (2 Replies)
Discussion started by: umen
2 Replies

10. UNIX for Dummies Questions & Answers

HELP ld.so.1 NOT FOUND

I made the fatal mistake of rename the usr directory. I cannot run any commands due to the fact that ld.so.1 is in usr/lib/--and it doesn't exist How can I recover my system? (1 Reply)
Discussion started by: SmartJuniorUnix
1 Replies
Login or Register to Ask a Question