1834809 Members
2281 Online
110070 Solutions
New Discussion

fuser ...?

 
SOLVED
Go to solution
mw_4
Frequent Advisor

fuser ...?

Hi All,

I'm trying to create a volume group using the vgcreate command.
I get an error message saying 'the device is busy'

I did fuser which didn't return any processes, etc.

How do I determine what is attached to this device?? I've tried lssf, ioscan, but no additional info that is useful.

The server is hp 9000/800/N4000-55, OS 11.00.

#vgcreate /dev/vg03 /dev/dsk/c3t0d2
vgcreate: Couldn't open physical volume "/dev/dsk/c3t0d2":
Device busy

# fuser -u /dev/dsk/c3t0d2
/dev/dsk/c3t0d2:

I'm a novice using LVM commands so any help would be greatly appreciated.
Step by step
4 REPLIES 4
Frederic Sevestre
Honored Contributor
Solution

Re: fuser ...?

Hi,

Did you check if your device is not use in an other vg ?
# strings /etc/lvmtab | grep /dev/dsk/c3t0d2

Before adding the pv, you have to declare it using pvcreate :
# pvcreate /dev/rdsk/c3t0d2

Fr??d??ric
Crime doesn't pay...does that mean that my job is a crime ?
Stefan Farrelly
Honored Contributor

Re: fuser ...?


You need to use pvcreate first;

pvcreate /dev/rdsk/c.....

If this doesnt work add the -f option

pvcreate -f /dev/rdsk/c....

Then you can add into your VG.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Frederic Sevestre
Honored Contributor

Re: fuser ...?


Have a look there :

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x5dbbd08cc06fd511abcd0090277a778c,00.html

This problem looks like yours.
Crime doesn't pay...does that mean that my job is a crime ?
Michael Tully
Honored Contributor

Re: fuser ...?

Hi,

This sounds like the disk was part
of another group and could have been
exported without the volume group
being deactivated first.

As Stefan has suggested you will need
to use the force option. Have a look
at the man page for further explanation.

# /usr/sbin/pvcreate -f /dev/rdsk/cxtydx
(substitute you disk)

When you go to create your volume I suggest
you create the volume with the capacity
to add more than the standard number of
disks. You never know when you may need to
dramtically add disks to a group.

# vgcreate -p 255 /dev/yourvg /dev/dsk/cxtydz

HTH
~Michael~
Anyone for a Mutiny ?