Operating System - HP-UX
1748170 Members
3868 Online
108758 Solutions
New Discussion юеВ

Re: splitting mirror for new VG

 
SOLVED
Go to solution
Vishu
Trusted Contributor

splitting mirror for new VG

Hi,

i have one VG vg_data having 4 disks (2 + 2(mirrored)). i want to use the 2*mirrored disk in a new VG vg_data1, but want the same data of vg_data VG. Please provide the procedure.

I thought of following. Plz suggest on it.

1. split all LVs with lvsplit command so that there remain no mirror LV.
2. vgreduce both disks out of vg_data.
3. Create new vg vg_data1.
3. Import those disk in new VG with vgimport command as

# vgimport /dev/vg_data1
14 REPLIES 14
Torsten.
Acclaimed Contributor

Re: splitting mirror for new VG

When using lvsplit

http://docs.hp.com/en/B3921-60631/lvsplit.1M.html

LVs are still part of the VG.

Is this a problem?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Vishu
Trusted Contributor

Re: splitting mirror for new VG

yes, they are. but i want to use those disks in a new VG. so i think they should not be a part of other VG anymore.

please suggest, or if you have some good steps of yours, please provide.
Vishu
Trusted Contributor

Re: splitting mirror for new VG

any help in it?
Vishu
Trusted Contributor

Re: splitting mirror for new VG

hey guys,

I have to perform this activity today. any help would be highly appreciated.
Aneesh Mohan
Honored Contributor

Re: splitting mirror for new VG

Hi,

Honestly , I didnt testet this.

I belive at the time of step 4 you may face some errror because of same vgid you are importing .

If am right then you can use vgchgid command to change

#vgchgid /dev/rdsk/c0t0d0 /dev/rdsk/c0t0d1 /dev/rdsk/c0t0d2

then you can do vgimport procedure.


Please let me know if it works :)

Aneesh
Wim Rombauts
Honored Contributor

Re: splitting mirror for new VG

I think you will just have to try.

It is not documented (not to my knowledge) what exactly happens with vgreduce.
If the disk information is not touched, you could try to import them as a new (but incomplete) volumegroup.
If vgreduce erases necessary information on the disks, you will be stuck.
Slawomir Gora
Honored Contributor

Re: splitting mirror for new VG

Hi,
look at chapter: Splitting a Volume Group
in doc:
http://docs.hp.com/en/5992-6576/ch03s03.html#vgsplit

Vishu
Trusted Contributor

Re: splitting mirror for new VG

Thanks for the responses.

But i can't use vgchgid as it is HPUX 11.11.

@Wim, you are right. as vgreduce will impact the VGRA of the disks, so they can't be exported.
but can i try by having a map file (in preview mode) of vg_data VG and then try importing new VG on those disks.

# vgimport -m /dev/vg_data1

Please suggest.
Aneesh Mohan
Honored Contributor

Re: splitting mirror for new VG

see my solution is to use lvsplit and no vgsplit and it is available in hpux 11.11

I would like to add few more additional things ...

a) may need to -f option while vgimport.

b) you may need to clean "b" lvol(split lvol) on primary vg using lvremove

c) you may need to clean source lvol on new vg using lvremove.

d) then you can use vgreduce -f primaryvg & vgreduce -f newvg


Aneesh