1757115 Members
1932 Online
108858 Solutions
New Discussion юеВ

Re: How to unexport VG?

 
SOLVED
Go to solution
Mousa55
Super Advisor

How to unexport VG?

Hi All,

I am trying to build a cluster and
I am exporting one volume group frome node 1 to node 2 and all steps has been successfully
And when execute the bdf command in first node I will see
/dev/vg01 /mcsg without lvol1 but in node 2 will see
/dev/vg01/lvol1 /mcsg
But I want now to unexport this volume group, donтАЩt need to export this VG
How I can do it that

Thanks & kind Regards
12 REPLIES 12
Suraj K Sankari
Honored Contributor

Re: How to unexport VG?

Hi,

In HP there is nothing called "unexport" there is two things export and import thats all

Suraj
Mousa55
Super Advisor

Re: How to unexport VG?

Hi All,

you are not understand my questions, i mean how i can to cancel the export process in a second node, i don't need to export this VG (vg01) to second node.



Thanks & kind Regards
Sherif A. Louis
Valued Contributor
Solution

Re: How to unexport VG?

just run:
vgchange -a n vg01
vgexport vg01

this deletes vg01 from ur system as if it was never there...

next time do a
vgexport -v -m /tmp/vg01.map -f /tmp/vg01.out -p -s vg01
from the first system move the .map and the .out file to the second
create the vg
vgimport -v -s -m /tmp/vg01.map -f /tmp/vg01.out vg01

hope this solves it
Sajjad Sahir
Honored Contributor

Re: How to unexport VG?

Dear nejad

deactivate the volume group from second node
vgchange - a n /dev/vgname
vgexport /dev/vgname in second node
it will remove the volume group in second node

thanks and regards

Sajjad
Sajjad Sahir
Honored Contributor

Re: How to unexport VG?



Dear Nejad

what u have done in node1 volume group, u created new logical volume? please clearly mention?

then only we can send the complete procedure for it, tell the volume grup is in shared mode.

thanks and regards

Sajjad Sahir
Asif Sharif
Honored Contributor

Re: How to unexport VG?

Hi Nejad,

Read the below doc.

Exporting a Volume Group
importing a Volume Group
http://docs.hp.com/en/5992-4589/ch03s03.html#bajbfead

Regards,
Asif Sharif
Regards,
Asif Sharif
Asif Sharif
Honored Contributor

Re: How to unexport VG?

Hi Nejad,

Perform the following steps to vgexport & vgimport before building the cluster.

on node2 you need to run this command.

umount /mcsg
vgchange -a n vg01
vgexport -p -v -s -m /tmp/vg01.map vg01
rcp /tmp/vg01.map node2:/tmp/

On Node 1

mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x0X0000(Give the same number as on node2 --check with command #ll /dev/*/group)
vgimport -v -s -m /tmp/vg01.map vg01

vgchange -a y vg01
mkdir -p /mcsg
mount /dev/vg01/lvol1 /mcsg

Regards,
Asif Sharif
Regards,
Asif Sharif
Mousa55
Super Advisor

Re: How to unexport VG?

Thanks for all,

Yes Mr. Sajjad I have in node 1 one volume group and one logical volume
/dev/vg01/lvol1
And I know all steps to export and import VG from node 1 to node 2
But I want to cancel this exporting and back again without export vg01
On node 2


Thanks & kind Regards
Sajjad Sahir
Honored Contributor

Re: How to unexport VG?


hi dear Nejad

my guess was correct u know the all steps
u want to remove the volume group from node2

u have to deactivate the volume group from node2 first then export the volume group
it will remove the volume group from u node2.


thanks and regards


Sajjad Sahir