Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extendvg Problem

Status
Not open for further replies.

ereshatezer

Technical User
Oct 14, 2004
48
HU
Hello @ll,

I have a very strange extendvg problem.
I inherited a system and now I would like to add new PV to a VG, but I am unable to do it.

I have run out of ideas. Any idea?

The error message is the following:
0516-792 extendvg: Unable to extend volume group.

Here are some details:


#################################
--> lsvg -p B02sapvg
B02sapvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk2 active 443 0 00..00..00..00..00
hdisk3 active 760 6 00..00..00..00..06
hdisk4 active 799 0 00..00..00..00..00
hdisk5 active 799 0 00..00..00..00..00
#################################

hdisk2 000db5bf111d3b17 B02sapvg active
hdisk3 000db5bf12fa6991 B02sapvg active
hdisk4 000db5bf539c77dc B02sapvg active
hdisk5 00579aaa441519ff B02sapvg active
hdisk6 000db5bf111d3b17 B02sapvg active
hdisk7 000db5bf12fa6991 B02sapvg active
hdisk8 000db5bf539c77dc B02sapvg active
hdisk9 00579aaa441519ff B02sapvg active
hdisk10 00ce7b2f21b2011c None
hdisk11 00ce7b2f21b2011c None

###
There are ghost disks, so do not be surprised on the output of lspv as I was..
###
-> odmget -q parent=fscsi0 CuDv |grep name
name = "hdisk2"
name = "hdisk3"
name = "hdisk4"
name = "hdisk5"
name = "hdisk10"
#################################
--> odmget -q parent=fscsi1 CuDv |grep name
name = "hdisk6"
name = "hdisk7"
name = "hdisk8"
name = "hdisk9"
name = "hdisk11"
#################################
fcs0 Available 05-08 FC Adapter
fcs1 Available 07-08 FC Adapter
#################################

Followings were tried.
- WWN numbers are OK.
- pvids were clear, but extendvg didn't work afterwards.
- extendvg -f was tried
- ODM, VGDA corruption was checked.
 
I suppose you want to extend the vg over hdisk10 and/or
hdisk11. Try to remove the disk devices (rmdev -dl hdisk10;rmdev -dl hdisk11) and after that run cfgmgr.
Radu
 
yes, I want to add hdisk10. rmdev and cfgmgr was done.
I tried it with cfgmgr -vl fcs0 nad fcs1 as well
(I forgot to write at the end.)
 
hdisk 10/11 is the same disk

as are 2 & 6 , 3 & 7 , 4 & 8 , 5 & 9.

You dont appear to have any multipath software installed which is why your seeing disks twice. What type of SAN are you using?

Are you trying to extend to 10 & 11 as this would fail for the reason above, try extending just to hdisk10

/usr/sbin/extendvg 'yourvg' 'hdisk10'

Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
Are you using raw disk for oracle data?

Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
Take a look at the chvg manual. Maybe changing the factor parameter (-t) helps you...
 
- yes, hdisk10 and 11 are the same disk. I tried only hdisk10 to add. (and later hdisk11, but none of them worked.)
- I do not use raw disk
- creation of a testvg is working on hdisk10, so I also suspect the VG I would like to extend. chvg manual was checked. I did not find anything usable, maybe one of you?

Here are the details of VG:
--> lsvg B02sapvg
VOLUME GROUP: B02sapvg VG IDENTIFIER: 000db5bf00004c00000000f297d22d50
VG STATE: active PP SIZE: 64 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 2801 (179264 megabytes)
MAX LVs: 256 FREE PPs: 6 (384 megabytes)
LVs: 21 USED PPs: 2795 (178880 megabytes)
OPEN LVs: 21 QUORUM: 1
TOTAL PVs: 4 VG DESCRIPTORS: 4
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 4 AUTO ON: yes
MAX PPs per VG: 32512
MAX PPs per PV: 1016 MAX PVs: 32
LTG size: 128 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable


 
The extendvg command reqd to extend the VG's in turn calls 3 other commands named:

1) getlvodm: to retreive data from ODM about PV's LV's and VG's

2) linstallpv: which makes changes in the VGDA's of disk and adds it to the VG.

3) putlvodm: this command updates the records into the ODM.

try to execute the commands individually

Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
This is the attempt that I wanted to avoid. (getlvodm,linstallpv,putlvodm)
The are so much options of those commands, so I was not sure I use the right ones. I never used them before...
Do you know maybe the exact command I should use? What is the chance that this will make something wrong in the ODM?
 
From the VG definition results that you can't put disks bigger than 64GB into that VG. (MAX PPs per PV:1016 x PP SIZE:64 megabyte(s) = 63.4GB). The hdisk10 is bigger!?! That's why I suppose you should increase the PP numbers by a factor of 2. So `chvg -t 2 B02sapvg` should work...
 
--> lspv hdisk10
0516-320 : Physical volume hdisk10 is not assigned to
a volume group.

When I attempt to add it to the VG, it just get a pvid and fail.

--> lspv
hdisk0 00ce7b2f932db826 rootvg active
hdisk1 00ce7b2f541cd875 rootvg active
hdisk2 000db5bf111d3b17 B02sapvg active
hdisk3 000db5bf12fa6991 B02sapvg active
hdisk4 000db5bf539c77dc B02sapvg active
hdisk5 00579aaa441519ff B02sapvg active
hdisk6 000db5bf111d3b17 B02sapvg active
hdisk7 000db5bf12fa6991 B02sapvg active
hdisk8 000db5bf539c77dc B02sapvg active
hdisk9 00579aaa441519ff B02sapvg active
hdisk10 00ce7b2f4568eee4 None
hdisk11 00ce7b2f4568eee4 None
 
0516-792 extendvg: Unable to extend volume group.

That's all I get.
 
R u using LPARs? or just a regular server?

What's the ouput of:

prtconf

odmget -q name="hdisk10" CuDv

lqueryvg -p hdisk10 -At

Regards,
Khalid
 
Are you able to create a new volumegroup with only this hdisk10 as member?


rgds,

R.
 
Yes, this is an LPAR server and I am able to create VG on this PV.
(I will post the output of the commands requested by khalid on Monday)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top