cancel
Showing results for 
Search instead for 
Did you mean: 

vgcreate: device busy

 
SOLVED
Go to solution
dictum9
Super Advisor

vgcreate: device busy

This is on 11.23 on a 4640, any idea why this is happening? I am reusing the disks from another VG that I deleted.
Should I do pvcreate -f on these disks?


# vgcreate -s 32 -l 128 /dev/vgHitachiEHP /dev/dsk/c10t4d2 /dev/dsk/c10t4d3 /dev/dsk/c10t4d4 /dev/dsk/c10t4d5 \
/dev/dsk/c10t4d6 /dev/dsk/c10t4d7 /dev/dsk/c10t0d0 /dev/dsk/c10t0d1 /dev/dsk/c10t0d2
/dev/dsk/c10t4d6 /dev/dsk/c10t4d7 /dev/dsk/c10t0d0 /dev/dsk/c10t0d1 /dev/dsk/c10t0d2
Increased the number of physical extents per physical volume to 1610.
vgcreate: Couldn't install the physical volume "/dev/dsk/c10t0d0".
Device busy
vgcreate: Couldn't install the physical volume "/dev/dsk/c10t0d1".
Device busy
vgcreate: Couldn't install the physical volume "/dev/dsk/c10t0d2".
Device busy
Volume Group configuration for /dev/vgHitachiEHP has been saved in /etc/lvmconf/vgHitachiEHP.conf

5 REPLIES
stephen peng
Valued Contributor
Solution

Re: vgcreate: device busy

make sure every PV you include to create the new VG was not in /etc/lvmtab.
stephen peng
Valued Contributor

Re: vgcreate: device busy

if you did "delete" the VG, use pvcreate -f on those disks belong to the old VG before to create PV and then try vgextend, vgHitachiEHP should have been created.
TwoProc
Honored Contributor

Re: vgcreate: device busy

Well, first, let's get the syntax right. You've got the following line:

/dev/dsk/c10t4d6 /dev/dsk/c10t4d7 /dev/dsk/c10t0d0 /dev/dsk/c10t0d1 /dev/dsk/c10t0d2

in the command twice. Or, was that just a mis-paste?

Then run a "pvdisplay -v /dev/dsk/c10t0d1| more" command and see if that disk is already participating in an volume group somewhere.

Also, do a
strings /etc/lvmtab | grep c10t0d1

and see if that disk is participating in any volume group on your system.

Anyways, make sure that disk isn't participating in any volume groups before you do that.

Also, keep in mind that if you've got service guard, this disk could be part of an inactive clustered service. So, you'll need to rule that out as well.
We are the people our parents warned us about --Jimmy Buffett
singh sanjeev
Trusted Contributor

Re: vgcreate: device busy

make sure that you are using empty rihgt disk:

#strings /etc/lvmtab |grep -i c?t?d?
#pvdisplay /dev/dsk/c?t?d?

finally satisfy with that disk are not in use any where on the system:

#pvcreate <-f> /dev/rdsk/c?t?f?

then try doing vgcreate.


Increased the number of physical extents per physical volume to 1610.

use larger max_pe and pe per pe size



Sanjeev Singh
Chandrahasa s
Valued Contributor

Re: vgcreate: device busy

Hi,

Try with pvcreate -f diskname

then try to create vg


Chandra