1835259 Members
2560 Online
110078 Solutions
New Discussion

pvcreate error !!!

 
Sritharan
Valued Contributor

pvcreate error !!!

Hi,

I have a disk that is ~ 2GB (that contain some data that not needed anymore)so I want to create a Volume Group, but when do pvcreate I get this error :

#pvcreate /dev/rdsk/c1t1d0
pvcreate: The physical volume already belongs

#pvcreate -f /dev/rdsk/c1t1d0
pvcreate: writing LVM record: I/O error

Is this probably because some bad sectors in the disk ??

this is the output of diskinfo

SCSI describe of /dev/rdsk/c1t1d0:
vendor: HP
product id: C3010M1
type: direct access
size: 1956086 Kbytes
bytes per sector: 512
rev level: 0B04
blocks per disk: 3912172
ISO version: 0
ECMA version: 0
ANSI version: 2
removable media: no
response format: 2

Need some help here

Thanks & Regards
Sri
Known is a drop...unknown is an ocean -> quote from a movie
15 REPLIES 15
Tom Danzig
Honored Contributor

Re: pvcreate error !!!

Try this to check the disk:

dd if=/dev/dsk/c1t1d0 of=/dev/null bs=32k

If you get any read errors, the disk is most likely bad.

You could also use the exercise function in stm as well.
Clemens van Everdingen
Honored Contributor

Re: pvcreate error !!!

Hi,

Most likely the disk is defect !

for the rule above

dd if=/dev/dsk/c1t1d0 of=/dev/null bs=32k

replace dsk by rdsk !

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Rita C Workman
Honored Contributor

Re: pvcreate error !!!

Notice it says that this physical disk belongs to a volume group. Have you tried first reducing/removing it from where it currently belongs....before you try to pvcreate and connect it to something new...


Just a thought,
Rita
Jean-Louis Phelix
Honored Contributor

Re: pvcreate error !!!

Hi,

Are you sure that this PV doesn't belongs to an active VG ? Do a :

strings /etc/lvmtab | grep c1t1d0

Check also if it's not an alternate link of a currently active PV.

Regards,

Jean-Louis.
It works for me (© Bill McNAMARA ...)
T G Manikandan
Honored Contributor

Re: pvcreate error !!!

First check

strings /etc/lvmtab |grep c1t1d0

to find which volume group the disk belongs.

Then check your
vgdisplay -v /dev/vgnn
to check whether the disk is displayed there.

If the disk is part of the volume group then you should remove it from the volume group and then do a pvcreate.
Make sure that there are no used volumes there


Sritharan
Valued Contributor

Re: pvcreate error !!!

Hi ,

Right now I'm doing the
dd if=/dev/rdsk/c1t1d0 of=/dev/null bs=32k
but its taking long time and dtill waiting for the output.


Hi Rita,
I just installed 11.11 on my server this hard disk is unused.

Hi Jean-Louis,
I have checked the lvmtab and it doesn't specify anything regarding this disk.


Need more info

TIA
Sri


Known is a drop...unknown is an ocean -> quote from a movie
Sritharan
Valued Contributor

Re: pvcreate error !!!

Hi ,

this is the output of the
# dd if=/dev/rdsk/c1t1d0 of=/dev/null bs=32k
61127+1 records in
61127+1 records out

What does this mean ???

Need more info

Thanks & Regards
Sri
Known is a drop...unknown is an ocean -> quote from a movie
Vincent Farrugia
Honored Contributor

Re: pvcreate error !!!

Hello,

Usually pvcreate -f should do it, if you have an IO error, either the harddisk didn't spin up, or you have a faulty harddisk.

HTH,
Vince
Tape Drives RULE!!!
Jean-Louis Phelix
Honored Contributor

Re: pvcreate error !!!

Hi,

If you're sure that your disk is free, you should also try a dd to write on the disk. Try to duplicate an existing disk to confirm a hardware problem.

Regards,

Jean-Louis.
It works for me (© Bill McNAMARA ...)
Jean-Louis Phelix
Honored Contributor

Re: pvcreate error !!!

hi,

For your information :

"61127+1 records in" means that you have read 61127 block of 32k (1956064) + 1 partial block (22k remaining)
"61127+1 records out" same info for write on /dev/null

Regards,

Jean-Louis.
It works for me (© Bill McNAMARA ...)
Darrell Allen
Honored Contributor

Re: pvcreate error !!!

Hi,

What does pvdisplay /dev/dsk/c1t1d0 return?

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Sritharan
Valued Contributor

Re: pvcreate error !!!

Hi Darell,


This is the pvdisplay
# pvdisplay /dev/dsk/c1t1d0
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/dsk/c1t1d0" belongs.
pvdisplay: Cannot display physical volume "/dev/dsk/c1t1d0".

Thanks & Regards
Sri
Known is a drop...unknown is an ocean -> quote from a movie
Sritharan
Valued Contributor

Re: pvcreate error !!!

Hi,

This is the output of the
# dd if=/dev/rdsk/c1t5d0 of=/dev/rdsk/c1t1d0
I/O error
1+0 records in
0+1 records out


I think the I had to get new disk.


Thanks & Regards
Sri
Known is a drop...unknown is an ocean -> quote from a movie
Vincente Fernandes
Valued Contributor

Re: pvcreate error !!!

Sri,

You last message indicates it is really a bad drive, time to replace it with maybe a higher capacity one as disk have become so cheap nowadays.
Sritharan
Valued Contributor

Re: pvcreate error !!!

Friends,

Thank you very much for your immediate response to my problem.

Thanks & Regards
Sri
Known is a drop...unknown is an ocean -> quote from a movie