Operating System - HP-UX
1833875 Members
1842 Online
110063 Solutions
New Discussion

pvcreate -f /dev/rdsk/c0doto getting hang

 
AA786
Frequent Advisor

pvcreate -f /dev/rdsk/c0doto getting hang

pvcreate -f /dev/rdsk/c0doto getting hang

any other command to create pv? if any harddisk error how i can chk hardisk is god or not ?

Aarun
8 REPLIES 8
Peter Godron
Honored Contributor

Re: pvcreate -f /dev/rdsk/c0doto getting hang

Aarun,
do you have a typing mistake ?

Should it be:
pvcreate -f /dev/rdsk/c0d0t0

Are you sure about your device path ?

In your position I would use SAM.


Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.

So far you have not awarded any points !



Wouter Jagers
Honored Contributor

Re: pvcreate -f /dev/rdsk/c0doto getting hang

As Peter said: first check your device name. No o's should be inthere.

For checking a disk, these can be useful:

# diskinfo -v /dev/rdsk/c0d0t0
(rdsk, not dsk !)

# ioscan -fnCdisk

Cheers,
Wout
an engineer's aim in a discussion is not to persuade, but to clarify.
James George_1
Trusted Contributor

Re: pvcreate -f /dev/rdsk/c0doto getting hang

Hi

Make sure your that you are using "zero" in c0t0d0 and not using the alphabet o.

check ioscan and see the disk is ok .
#ioscan -fnC disk ( make sure you are picking the correct disk )

rgds / James
forum is for techies .....heaven is for those who are born again !!
Patrick Wallek
Honored Contributor

Re: pvcreate -f /dev/rdsk/c0doto getting hang

What kind of disk is it you are trying the pvcreate on? All machines I have seen usually have c0t0d0 as the CD/DVD drive.

If that is it, then you can't do a pvcreate on those.
Torsten.
Acclaimed Contributor

Re: pvcreate -f /dev/rdsk/c0doto getting hang

Hi and welcome to the forums,

there is a good chance to hang your system if you pvcreate your one and only boot disk
;-)

Better way to pvcreate is to do it *without* the "-f" switch.

Compare the "ioscan -fnCdisk" with the "vgdisplay -v" to see what disks are in use.

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!   
Sheriff Andy
Trusted Contributor

Re: pvcreate -f /dev/rdsk/c0doto getting hang

Aarun,

Make sure that you run the strings against your lvmtab before you run the pvcreate.

# strings /etc/lvmtab | grep c0t0d0

If present, then you won't be able to run pvcreate against it. If it isn't present, then run the pvcreate.

# pvcreate -f /dev/rdsk/c0t0d0

AA786
Frequent Advisor

Re: pvcreate -f /dev/rdsk/c0doto getting hang


i put c0doto as Example
Realy the hardisk was not good
changed and its working
# pvcreate /dev/rdsk/c2t1d0
Physical volume "/dev/rdsk/c2t1d0" has been successfully created.


thanks
AA

AA786
Frequent Advisor

Re: pvcreate -f /dev/rdsk/c0doto getting hang

thanks