1825782 Members
2134 Online
109687 Solutions
New Discussion

disk busy....

 
SOLVED
Go to solution
Matrah
Advisor

disk busy....

Hello,
I have a EMC disk whitch belong to a vgAPPL of a server 1. I export this vgAPPL and i affect the disk to an other server ( server 2) . I do insf , and when i want to extend the vgTITI with this disk, the system tell me :" disk busy, it belong to a vg"
Someone can tell me why...
this disk don't exist in all /etc/lvmtab of my servers..
6 REPLIES 6
Thierry Poels_1
Honored Contributor

Re: disk busy....

Hi,
if you want to reuse the data on the disk you should opt for vgimport.
If you want to discard the data, and use the diskspace, you should "pvcreate -f" first.

regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Carlos Fernandez Riera
Honored Contributor

Re: disk busy....

1- /dev/dsk/c... may differ from one system to other.

2- Vgimport in the first box and vgexport with -s option.

3- vgimport in the second box whit -s option too.


4- See:

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

and
http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x19c7cf38d6bdd5118ff10090279cd0f9,00.html

unsupported
Frederic Sevestre
Honored Contributor

Re: disk busy....

Hi,
If you want to get ride of the LVM information of this disk you should use pvcreate -f onthat disk before adding it to an other vg.
If you wan't to use this vg on an other server, you will have to use vgimport.
But it is not possible to use this disk with the data on it for an other vg.
Fr??d??ric
Crime doesn't pay...does that mean that my job is a crime ?
Carlos Fernandez Riera
Honored Contributor
Solution

Re: disk busy....

Once again... beware with pvcreate -f... Maybe

/dev/rdsk/c12t0d0 are different disk in two servers.

run:

dd if=/dev/rdsk/cxtxtx bs=1024 skip=8 count=9 | dd bs=8 skip=2 count=1 | od -x | head -1 .

To see if VGID is the same.
unsupported
Sanjay_6
Honored Contributor

Re: disk busy....

Hi Matrah,

If you want the disk to be part of the same VG on the new system as it was on the other system, you have to do a "vgexport" on the old system and a "vgimport" on the new system. IF on the other hand you want to remove the disk from a vg on the old system and add that disk in an existing vg on the new system, do a "vgreduce" on the old system, do a "pvcreate -f" on the disk first on new system and then do a "vgextend" to add the disk on the new system.

Hope this helps.

regds
Matrah
Advisor

Re: disk busy....

It's OK Carlos F.R
thanks for your help...
thanks to you