Operating System - HP-UX
1755721 Members
3240 Online
108837 Solutions
New Discussion

Re: Storage migration using mirror

 
SOLVED
Go to solution
Vitorxx
Occasional Contributor

Storage migration using mirror

Hi Guys,

 

I have VG01 on my HP-UX 11.11 v1 with 2 disks on 2 different storage) using mirror:

 

15995 /dev/dsk/c14t0d1   15995 current  /dev/dsk/c12t0d1   15995 current

 

 I have to replace one storage(c12t0d1), can I have third disk from new storage in mirror? After that remove the disk from old storage?

 

I am creating a procedure to complete this task, and I not sure if it is the best away or I am skipping steps , can someone give an idea?

 

1-     Present new disk from new storage

2-     pvcreate /dev/dsk/ cxtxdx
3-     vgextend /dev/vg01  /dev/ cxtxdx
4-     lvextend - m 1 /dev/vg01/lvxx /dev/dsk/cxtxdx
5-     lvreduce -m 0 /dev/vg01/lvolxx /dev/dsk/c12t0d1
5-     vgreduce /dev/vgxx  /dev/dsk/c12t0d1

 

I appreciate your help on this.

 

Thanks.

3 REPLIES 3
Uday_S_Ankolekar
Honored Contributor

Re: Storage migration using mirror

Your approach seems to be correct if you have Mirror/UX installed.

You can also consider pvmove.

 

Good Luck

 

-USA

Good Luck..
Patrick Wallek
Honored Contributor
Solution

Re: Storage migration using mirror

The 2 things that need to change are in your lvextend and lvreduce commands.

 

After you extend you will have 2 mirrors, so you need:

 

4-     lvextend - m 2 /dev/vg01/lvxx /dev/dsk/cxtxdx

 

After you reduce you will still have 1 mirror, so you need:

 

5-     lvreduce -m 1 /dev/vg01/lvolxx /dev/dsk/c12t0d1

 

Other than that, all looks good.

Vitorxx
Occasional Contributor

Re: Storage migration using mirror

Yes, I have mirror ux installed.

 

Thank you everyone. I appreciate your attention.