Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem exporting volume group

Status
Not open for further replies.

terrywashington

Technical User
Jun 28, 2001
185
0
0
US
I am attempting to export a volume group called sanvg consisting of a single SAN disk from a 5.1 environment into a 5.3 environment. Both OSs live on a seperate disks in a 7044-270. I umounted the volume group filesystem, ran the exportvg sanvg command and received the below error.

# exportvg sanvg
0516-764 exportvg: The volume group must be varied off
before exporting.

I then ran the varyoffvg sanvg command and received the below error.

# varyoffvg sanvg
0516-012 lvaryoffvg: Logical volume must be closed. If the logical
volume contains a filesystem, the umount command will close
the LV device.
0516-942 varyoffvg: Unable to vary off volume group sanvg.

How do I go about closing the logical volume?
 
Did all the filesystems on this volume groupe unmounted ?
 
Though it is not recommended but if you are sure that you have unmounted all the filesystems on that volume group then use this:

varyoffvg -f sanvg

then

exportvg sanvg

Regards,
Khalid
 
check to see if the lv's are open or closed with -

lsvg -l sanvg
 
There was an additional filesystem mounted that was part of the sanvg volume group. I am awaiting the OK from the owner of the box to umount that filesystem. Thanks for the help!
 
Khalid,
Just out of interest what does the "-f" flag do, thought there was just a "-s" option,
Benno

...it really does get worse than this !!
 
oh bugger

sorry i just got confused that with varyonvg command

Thanks Benno for pointing this out

Sorry again

Regards,
Khalid
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top