1834862 Members
2315 Online
110070 Solutions
New Discussion

Re: vgcreate problems

 
Dan Copeland_1
Advisor

vgcreate problems

After a reinstall as a result of system crash I'm getting a device busy error when I try a vgcreate on a disk that is not part of any other vg. Any suggestions? Thanks in advance.
Dan
4 REPLIES 4
Vincenzo Restuccia
Honored Contributor

Re: vgcreate problems

pvcreate -f /dev/rdsk/cxtyd0
Victor BERRIDGE
Honored Contributor

Re: vgcreate problems

Hi,
Vincenzo is right, since your disks have been used once , it still has info on them so you will have to force by using pvcreate -f, or remove the disk files:
rmsf -a -D /dev/dks c4t4d0 c4t4d1...
and recreate them with ioscan and insf -e...
I would use pvcreate -f for a start (solves most cases...)

Good luck
Victor
MANOJ SRIVASTAVA
Honored Contributor

Re: vgcreate problems

Hi Dan

Do a pvdisplay /dev/dsk/cxtydz for that disk , in case to verify that this disk is part of other vg's or not . If not then

pvcreate -f /dev/dsk/cxtydz to create the disk.

And then you can created the VG group. If still the same is in some voulme group then I think we start from one more before , check in /etc/lvmtab using strings and still if the disk is that file then first remove it from there by doing a vgremove / vgreduce .


Manoj Srivastava
Peggy Fong
Respected Contributor

Re: vgcreate problems

Did you get this one fixed? I was going to suggest you also do a vgscan -p -v to see what turns up in the errors....was there a hardware problem?
Thanks,
Peggy