Operating System - HP-UX
1833328 Members
2790 Online
110051 Solutions
New Discussion

Attached is the output of lvol4

 
Shawn Miller_2
Frequent Advisor

Attached is the output of lvol4

c3t6d0 is the primary and I want c5t6d0 to remain the mirror, but I want only c5t6d0 to remain as the mirror.
7 REPLIES 7
Gordon Davis
Occasional Advisor

Re: Attached is the output of lvol4

Break the mirror, then recreate the mirror specifying the desired device.

Modify the following to suit your needs ...

lvextend -m 1 /dev/vg01/lv_u01 /dev/dsk/c1t4d0

Gordon
Sridhar Bhaskarla
Honored Contributor

Re: Attached is the output of lvol4

Hi,

You can use pvmove. But I would say it is better to reduce the mirrors and extend the mirror.

lvreduce -m 0 /dev/vg00/lvol4 /dev/dsk/c3t5d0 /dev/dsk/c5t5d0 /dev/dsk/c5t6d0

Now extend the mirror using only one device

lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c5t6d0

This should be simple and will take the same time as of pvmove.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Uday_S_Ankolekar
Honored Contributor

Re: Attached is the output of lvol4

If you remove mirror copy from both of your disks by lvreduce and then add only one disk as a mirror with lvextend command.

lvreduce -m 0 /dev/vgnn/lvol4 /dev/dsk/c3t6d0 /dev/dsk/c5t6d0.
This will take out your mirror copy. Then

lvextend -m 1 /dev/vgnn/lvol4 /dev/dsk/c5t6d0
should create mirror copy on c5t6d0

-USA..
Good Luck..
Uday_S_Ankolekar
Honored Contributor

Re: Attached is the output of lvol4

...And if you have online JFS then you can do it online..

-USA..
Good Luck..
Sridhar Bhaskarla
Honored Contributor

Re: Attached is the output of lvol4

Hi (Again),

Just wanted to make it clear. What you are doing here is reducing the mirror on multiple disks and extending it to one disk.

You do not need OnlineJFS for this work. This can be done online anytime.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Uday_S_Ankolekar
Honored Contributor

Re: Attached is the output of lvol4

Yes.. Sridhar is Right
Good Luck..
Vincente Fernandes
Valued Contributor

Re: Attached is the output of lvol4

Remove the mirror copy by
lvreduce -m 0 /dev/vgnn/lvol4 /dev/dsk/c3t6d0 /dev/dsk/c5t6d0.
Create the mirror by
lvextend -m 1 /dev/vgnn/lvol4 /dev/dsk/c5t6d0
Note: The PE's numbers won't match when you do a lvdisplay on lvol4. The lvextned will mirror lvol4 on c5t6d0 starting from the 1st available extents.