1838629 Members
2869 Online
110128 Solutions
New Discussion

Re: vgexport problem

 
blal
Frequent Advisor

vgexport problem

Hi

I have imported one vg using map file and -s option.

Now I want to remove the vg.

When I do vgchange -a n , it says couldn't deactivate ,Device busy error.
(The device associated with this vg is ok.)

There is no mounted file system which belongs to this vg.

I tried to re create lvmtab using vgscan -v .
still the problem persists.

What else could be the reason.

I just want to remove the volume group from the system .

regds,
baiju.




Live and let live.
7 REPLIES 7
Massimo Bianchi
Honored Contributor

Re: vgexport problem

Hi,
Is there any application using the raw device ?


Try with

fuser /dev/vgXX/lvol*

and eventually kill them.

Another check: see if the minor is unique:

ll /dev/vg*/group


Is two minor are identical, lvm goes crazy lize this.

Massimo
Pete Randall
Outstanding Contributor

Re: vgexport problem

What is your $PWD?
Did you ever activate the VG?


Pete


Pete
Robert-Jan Goossens
Honored Contributor

Re: vgexport problem

Hi Baiju,

Did you try just to export it wihtout any options ?

# vgexport vg??

Robert-Jan.
blal
Frequent Advisor

Re: vgexport problem

$PWD is /

I have activated this vg and mounted the Filesystems.(presenlty all are unmounted)

There is now row LVs with this VG.

Is there is any forcefull way of removing a VG.
Live and let live.
James R. Ferguson
Acclaimed Contributor

Re: vgexport problem

Hi:

Make sure there is nothing mounted or using any mountpoints. You can use 'fuser'.

Make sure that you don't have a swap device in use.

Make sure that you can access the disk (it could be bad):

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

Regards!

...JRF...
blal
Frequent Advisor

Re: vgexport problem

Hi

export with out option is asking to deactivate using vgchange .

Thanks
baiju.
Live and let live.
blal
Frequent Advisor

Re: vgexport problem

Hi

The problem got solved .

I removed the LUNs and recreated the lvmtab by vgscan -v .


This was the only solution which worked.

Thanks for all ur helpings.

regds,
baiju
Live and let live.