The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
HDD not recognised while trying to install Linux enterprise on HP laptop kayode Linux 6 09-16-2008 07:33 AM
New hdd not being recognised properly by OS wiggiesworld UNIX for Dummies Questions & Answers 1 06-03-2006 09:59 AM
During CD boot, hard disk does not get recognised sjsowmya AIX 1 08-11-2005 05:55 AM
available disk space on disk device??? alan UNIX for Dummies Questions & Answers 4 01-02-2004 03:06 AM
My network card wasn't recognised IMOTEB UNIX for Dummies Questions & Answers 2 02-09-2002 02:26 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-09-2007
m223464 m223464 is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 41
New disk not being recognised

Hi,

I've replaced hdisk0 in a Blade server but am having problems re-enabling the mirror as it appears the configuration database is not recognising the new disk.

The first 2 steps to re-enable the mirror fail:
$ extendvg rootvg hdisk0
0516-008 extendvg: LVM system call returned an unknown
error code (-271).
0516-792 extendvg: Unable to extend volume group.

$ mirrorvg '-Q' '-m' rootvg hdisk0
0516-304 getlvodm: Unable to find device id 00000000000000000000000000000000 in the Device
Configuration Database.
0516-014 mirrorvg: []: The physical volume appears to belong to another
volume group.
0516-1200 mirrorvg: Failed to mirror the volume group.


I checked lspv and this showed the new disk as available:
$ lspv
hdisk0 none None
hdisk1 001016cc923411e7 rootvg active


However if I try to display the hdisk0 I get the following error:
$ lspv hdisk0
0516-304 : Unable to find device id hdisk0 in the Device
Configuration Database.


If I try to manually configure hdisk0 I get this message
$ cfgmgr -l hdisk0
cfgmgr: 0514-604 Cannot access the CuDv object class in the


Can anyone offer any suggestions as to what could be causing the problem?

Thanks
Gareth
  #2 (permalink)  
Old 05-09-2007
funksen funksen is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2006
Location: Austria/Vienna
Posts: 430
try
export ODMDIR=/etc/objrepos

an retry your steps listed above
  #3 (permalink)  
Old 05-09-2007
kapilraj kapilraj is offline
Registered User
  
 

Join Date: Dec 2006
Location: Maryland
Posts: 162
What does "bootinfo -s hdisk0" say ?
What version of AIX ?

Can you post "lspv" output ?
  #4 (permalink)  
Old 05-10-2007
johnf johnf is offline
Registered User
  
 

Join Date: May 2006
Location: England
Posts: 284
Can you create a seperate VG on this PV? This will tell you whether the disk is in fact defective.
  #5 (permalink)  
Old 05-10-2007
m223464 m223464 is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 41
Thanks everyone for your responses.

Quote:
try
export ODMDIR=/etc/objrepos

an retry your steps listed above
I tried this but got the same errors

Quote:
What does "bootinfo -s hdisk0" say ?
What version of AIX ?

Can you post "lspv" output ?
$ bootinfo -s hdisk0
57231

$ oslevel
5.2.0.0

lspv output was already listed.

Quote:
Can you create a seperate VG on this PV? This will tell you whether the disk is in fact defective.
This worked. I was able to create a vg and a file system within that.

I've now removed this vg and lspv now shows different results

$ lspv
hdisk0 001016cc76879bc5 None
hdisk1 001016cc923411e7 rootvg active

$ lspv -l hdisk0
0516-320 : Physical volume 001016cc76879bc50000000000000000 is not assigned to
a volume group.

However, having done this I tried the extendvg command again but it didn't work.

It has dawned on me that the instructions I was using were for v5.3 and this is on v5.2, however I can't find similar instructions for 5.2 to find out if they'd be any different.

Gareth
  #6 (permalink)  
Old 05-10-2007
kapilraj kapilraj is offline
Registered User
  
 

Join Date: Dec 2006
Location: Maryland
Posts: 162
The procedure for aix 5.3 and 5.2 are all the same. Most of the times AIX works w/o any problems ... there is something more to your problems here...

What is the error now when you tried extendvg ? Can you please post the following command outputs ... as you said "replaced a rootvg disk" you may have a ghost disk attached to rootvg.

lsvg rootvg
lsvg -l rootvg
lsvg -p rootvg # If you see a pvid other than an hdisk , try a reducevg -f <pvid>. you may have to reduce the mirror copies if you had any.

Regards,

Kaps
  #7 (permalink)  
Old 05-10-2007
dam294 dam294 is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 16
Quote:
Originally Posted by m223464
Hi,

I've replaced hdisk0 in a Blade server but am having problems re-enabling the mirror as it appears the configuration database is not recognising the new disk.

The first 2 steps to re-enable the mirror fail:
$ extendvg rootvg hdisk0
0516-008 extendvg: LVM system call returned an unknown
error code (-271).
0516-792 extendvg: Unable to extend volume group.

$ mirrorvg '-Q' '-m' rootvg hdisk0
0516-304 getlvodm: Unable to find device id 00000000000000000000000000000000 in the Device
Configuration Database.
0516-014 mirrorvg: []: The physical volume appears to belong to another
volume group.
0516-1200 mirrorvg: Failed to mirror the volume group.


I checked lspv and this showed the new disk as available:
$ lspv
hdisk0 none None
hdisk1 001016cc923411e7 rootvg active


However if I try to display the hdisk0 I get the following error:
$ lspv hdisk0
0516-304 : Unable to find device id hdisk0 in the Device
Configuration Database.


If I try to manually configure hdisk0 I get this message
$ cfgmgr -l hdisk0
cfgmgr: 0514-604 Cannot access the CuDv object class in the


Can anyone offer any suggestions as to what could be causing the problem?

Thanks
Gareth

I believe the problem you're having is that your hdisk0 doesn't have a PVID assigned. Look at your lspv output, the second column for hdisk1 is the PVID. Try this..

chdev -l hdisk0 -a pv=yes

Now your hdisk0 should have a PVID assigned and be ready to use.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:29 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0