1834255 Members
2647 Online
110066 Solutions
New Discussion

Can't pvcreate on disk

 
SOLVED
Go to solution
Jonathan Fife
Honored Contributor

Can't pvcreate on disk

Hi all,

I'm trying to mirror vg00 on one of our HP-UX 11.0 systems. Disk c1t2d0 currently holds vg00, and c2t2d0 is unused as far as I can tell. This is an older server whose history I am unfamiliar with.

ioscan -fnc disk shows:
disk 1 0/0/2/0.2.0 sdisk CLAIMED DEVICE SEAGATE ST318404LC
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0

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

However, when I try to do a pvcreate -B on it I get:

# pvcreate -B /dev/rdsk/c2t2d0
pvcreate: The physical volume already belongs to a volume group

What am I missing?
Decay is inherent in all compounded things. Strive on with diligence
5 REPLIES 5
Marvin Strong
Honored Contributor
Solution

Re: Can't pvcreate on disk

pvdisplay /dev/dsk/c2t2d0

just to make sure its not used.
may want to strings /etc/lvmtab also

if its not used and your sure

pvcreate -fB /dev/rdsk/c2t2d0

to force it.

spex
Honored Contributor

Re: Can't pvcreate on disk

Hi Jonathan,

# strings /etc/lvmtab | grep c2t2d0

Does c2t2d0 show up?

Also try:

# lvdisplay -v /dev/vgxx/lvolx | head -30

for each logical volume. Does c2t2d0 appear anywhere?

PCS
James R. Ferguson
Acclaimed Contributor

Re: Can't pvcreate on disk

Hi Johathan:

At one time, the disk was used. Try:

# pvcreate -f -B /dev/rdsk/c2t2d0

Regards!

...JRF...
Jonathan Fife
Honored Contributor

Re: Can't pvcreate on disk

It doesn't show up in strings /etc/lvmtab, or in any lv/vgdisplays.

I really just wanted to make sure I wasn't blowing away something actually in use somewhere I couldn't see before I did the pvcreate -fB.

Thanks for the reassurance!
Decay is inherent in all compounded things. Strive on with diligence
Jonathan Fife
Honored Contributor

Re: Can't pvcreate on disk

# strings /etc/lvmtab | grep c2t2d0
# pvcreate -fB /dev/rdsk/c2t2d0
Physical volume "/dev/rdsk/c2t2d0" has been successfully created.
#
Decay is inherent in all compounded things. Strive on with diligence