Operating System - HP-UX
1834089 Members
2629 Online
110063 Solutions
New Discussion

error trying to add a disk on vg

 
Fernando Ferri Wollner
Frequent Advisor

error trying to add a disk on vg

When i try to add a disk to vg00 it returns the error:
couldn't open physical volume /dev/...
device busy.
I've already created it using pvcreate but when i try to run vgextend it returns this error.

Thanks
8 REPLIES 8
Helen French
Honored Contributor

Re: error trying to add a disk on vg

Is the disk working okay? Check output of:

# diskinfo /dev/rdsk/cxtydz
# ioscan -fnC disk
# dd if=/dev/rdsk/cxtydz of=/dev/null bs=1024K
# stm and check disk
Life is a promise, fulfill it!
James R. Ferguson
Acclaimed Contributor

Re: error trying to add a disk on vg

Hi:

Verify that the physical disk is, in fact, good:

# diskinfo /dev/rdsk/cXtYdZ

...make sure the size is *non-zero*

Also:

# dd if=/dev/rdsk/cXtYdZ of=/dev/null bs=64k count=100

...you want the same number of records "in" as "out".

Regards!

...JRF...
Sridhar Bhaskarla
Honored Contributor

Re: error trying to add a disk on vg

Hi,

The disk could be bad.

Try

dd if=/dev/rdsk/cxtydz of=/dev/null bs=64k

If you get any errors, then replace it with another one.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
John Poff
Honored Contributor

Re: error trying to add a disk on vg

Hi,

Try an 'fuser /dev/dsk/...' and see what process is holding the disk device open. Then do a 'ps -fp ..' using the PID returned by the fuser command. I'd be curious to see what is holding the device open, and I'd be reluctant to try to add this disk to a VG until you know what it is complaining about. Are you sure this disk isn't being used somewhere else?

JP
castro_2
Regular Advisor

Re: error trying to add a disk on vg

First do
pvcreate -f /dev/rsk/cXtXdX

or use the SAM
Regards
castro_2
Regular Advisor

Re: error trying to add a disk on vg

sorry
/dev/rdsk/cXtXdX
Eugeny Brychkov
Honored Contributor

Re: error trying to add a disk on vg

Hello all,
just an idea... can we extend vg00 in multi-user mode? I guess first of all it should be deactivated... oops - it's vg00 and can not be deactivated! Maybe to try single-user mode?
Eugeny
Eugeny Brychkov
Honored Contributor

Re: error trying to add a disk on vg

Looks like I'm wrong :o((
VG should be active to be vgextended...
Anyway, device is busy can mean that this physical volume is used somewhere in the system. For example, you have active VG with some PVs in it. Then you pick one PV from this VG, do 'pvcreate -f' on it (successfully, I guess) and then trying to include 'new' PV to another VG. I guess system should say 'hey, this PV cxtydz is already assigned to VGab!'.
Thus please check output of
strings /etc/lvmtab
to see if you'll find this PV with this device file in the list...
Eugeny