Operating System - HP-UX
1831666 Members
3626 Online
110029 Solutions
New Discussion

problems while creating Volume Group

 
chethan
Occasional Advisor

problems while creating Volume Group

My system has detected 3 HDs,on one os has installed, i tried to execute the following command on one disk
pvcreate -f /dev/rdsk/cxtxdx
error:It was giving DEFECT01 error

So i tried on other HD
pvcreate -f is successful but i came across the following error:
vgcreate /dev/dsk/vg01 /dev/dsk/cxtxtx
error:vgcreate: Couldn't open physical volume "/dev/dsk/c3t1d0":
Resource temporarily unavailable

please help me out.. how to resolve these prolems?
8 REPLIES 8
Torsten.
Acclaimed Contributor

Re: problems while creating Volume Group

Hi,

because 2 bad disks at the same time are unlikely, it could be a connection problem.

First check the connection, run ioscan to see if the disks are CLAIMED, and run "dd" to test.
Watch the syslog.

Results?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Jollyjet
Valued Contributor

Re: problems while creating Volume Group

Hi Chetan,

check the server physically whether any amber light is blowing in the disk's try to remove the disks and reconnect it and run ioscan -fnC disk and check using diskinfo /dev/rdsk/c#t#d# and send the output.
Khalid Shakoor
Regular Advisor

Re: problems while creating Volume Group

HI
The step u are define is Correct. some time when u insert hard drive it not sit on place accurate. Ensure that the hard drive are physical Connect and machine Detect it successfully.
to verified run ioscan -fnC disk
After verified RUN
pvcreate -f /dev/rdsk/cxtxdx

I personally think that its hardware Issue. Please check it again

Khalid




chethan
Occasional Advisor

Re: problems while creating Volume Group

i tried all suggestions given by you but ioscan detects all the HDs as claimed... even pvcreate -f was successful but while creating VG following error has come:
#vgcreate /dev/vg01 /dev/dsk/cxtxdx
Increased the number of physical extents per physical volume to 2169.
vgcreate: IO error on Physical Volume device "/dev/dsk/cxtxdx".

wts d problem.. pls let me know the solution
Torsten.
Acclaimed Contributor

Re: problems while creating Volume Group

"vgcreate: IO error on Physical Volume device "/dev/dsk/cxtxdx"."

Could be connection related.
Check cabeling, termination and run a "dd", e.g.

dd if=/dev/rdsk/cxtydz of=/dev/null

check syslog.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Jollyjet
Valued Contributor

Re: problems while creating Volume Group

hi Chetan if you are getting IO error the disk is unusable better to request for a new disk. If the server is under AMC or warranty call to HP toll free and log a call and get the hard disk replaced.
Bill Hassell
Honored Contributor

Re: problems while creating Volume Group

The disk is bad. ioscan simply reports that the driver knows the type of disk that is attached but performs no tests on the device. pvcreate actually writes data onto the disk as well as vgcreate and vgextend. If these commands fail with an I/O error (as they have), the disk is useless. You'll also see a number of disk errors in syslog.log.


Bill Hassell, sysadmin
Marco A.
Esteemed Contributor

Re: problems while creating Volume Group

Hello Chethan,

I believe that disk in good and you need to check your LVM patch level, I saw that issue before and was fixed by patching the system with the appropriate patches.

ex :

For 11.11
Patch Name: PHCO_34196

Patch Description: s700_800 11.11 LVM commands cumulative patch

Look at the itrc patch database for the right patches depending of your OS.

GoodLuck!
Just unplug and plug in again ....