1833780 Members
2560 Online
110063 Solutions
New Discussion

re: failure to vgexport

 
SOLVED
Go to solution
Gurcharan Sahota_2
Frequent Advisor

re: failure to vgexport

I'm trying to run a vgexport on vg01 and vg02,
but keep getting the following message - how do I get around this?

vgexport -v -f outfile /dev/vg01
Beginning the export process on Volume group "/dev/vg01".
vgexport: Volume group "/dev/vg01" is still active.
vgexport: Couldn't export volume group "/dev/vg01".

9 REPLIES 9
Muthukumar_5
Honored Contributor
Solution

Re: re: failure to vgexport

/dev/vg01 is still active. You can see that,

# vgdisplay /dev/vg01 | grep 'VG Status'

We have to deactive it

# vgchange -a n /dev/vg01
# unmount

# vgexport -v -f outfile /dev/vg01

It will work now.

hth.
Easy to suggest when don't know about the problem!
melvyn burnard
Honored Contributor

Re: re: failure to vgexport

Are you REALLY wishing to export it? or just wishing to create the outfile without deleting the VG from the system?
If the first option, then deactivate the VG before running the command.
If the second option, then use the -p option. It will still warn you that the VG is active, but will work.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Gurcharan Sahota_2
Frequent Advisor

Re: re: failure to vgexport

nearly but not quite...

now get the following message.

# vgchange -a n /dev/vg01
vgchange: Couldn't deactivate volume group "/dev/vg01":
Device busy
Muthukumar_5
Honored Contributor

Re: re: failure to vgexport

Sorry. unmount mount point first. Somebody may be trying to use mount point. Check with fuser -k

Then vgchange operation.

hth.

Easy to suggest when don't know about the problem!
saju_2
Respected Contributor

Re: re: failure to vgexport

Hi

The logical volumes in that VG is mounted.

Execute bdf|grep vg01
It will show all the mounted LVs
First unmount it and then execute vgchange.

Regards
CS
Muthukumar_5
Honored Contributor

Re: re: failure to vgexport

It is fuser -u not fuser -k. sorry.
Easy to suggest when don't know about the problem!
Gurcharan Sahota_2
Frequent Advisor

Re: re: failure to vgexport

thanks,

I needed to umount all the filesystems first, then I was able to run the vgchange, followed by the vgexport.

Is anyone familiar with the mediainit command?
saju_2
Respected Contributor

Re: re: failure to vgexport

Hi gurcharan

I think your initial problem is solved..Pls start a new thread for the new question and assign points to whoever helped you to solve the initial problem.

Regards
CS
Gurcharan Sahota_2
Frequent Advisor

Re: re: failure to vgexport

the steps suggested completely solved the problem