Operating System - HP-UX
1838348 Members
3971 Online
110125 Solutions
New Discussion

Re: Re-create Mirroring on HP-UX 11.0

 
SOLVED
Go to solution

Re-create Mirroring on HP-UX 11.0

I am working on a B2000 workstation with HP 11.0. This is used as a backup server and has 4 external 18gb drives. The mirroring was setup top left to bottom right and top right to bottom left. Can the mirrors be broken and re-created left to right as I have done on all other servers? If so, how would I accomplish this? I have been reading mirror info but so far been unable to find what I need. This may seem like a nit to you but I have to remember for this one particular server that mirroring is not left to right when something happens. Your help would be greatly appreciated.
Thanks,
Rebecca
4 REPLIES 4
Paula J Frazer-Campbell
Honored Contributor

Re: Re-create Mirroring on HP-UX 11.0

Hi

Yes do a full backup and and make recovery.

Then break the mirrors and and use the disks in a left to right setup - using sam will be the quickest and easiest - just note the path to each disk and use as requied.

Do not forget the backup and make recovery as if all goes wrong then you will require them.

Paula
If you can spell SysAdmin then you is one - anon
John Palmer
Honored Contributor
Solution

Re: Re-create Mirroring on HP-UX 11.0

If these are hot plug drives then you can do this without breaking any mirroring.

1. Unmount your filesystems and deactivate your volume group(s).
2. vgexport your volume group(s).
3. Move the disks to the positions you require.
4. vgimport your volume group(s) specifying the new disk hardware paths.

If you can't move the disks then you'll have to:
1. unmirror all the relevant volumes
2. vgreduce disks from volume groups if necessary.
3. Add disks to volume groups (if necessary).
4. Remirror your volumes.

Regards,
John

Re: Re-create Mirroring on HP-UX 11.0

I did the lvreduce -m 0 but the drive was still listed in the vgxx via sam. Do I also need to reduce the size to bring it down to one drive for the vg which will flag the drive as unused?

In regards to the export/import, I would export the vgs (without a mapfile), physically move the disks to the slots in the jamaica box that I want, and then import the vgs back using the new disk name (/dev/dsk/cxtxdx)?

Vince Inman
Frequent Advisor

Re: Re-create Mirroring on HP-UX 11.0

lvreduce will remove the mirror's from the physical volumes but will not remove the physical volumes from a volume group.

All you need to do is to reduce the mirrors from the undesired disk drives using the lvreduce command (-m 0) and specify the device you want the mirror removed from. Once completed on all targeted mirrors, reestablish the mirror's using the lvextend command (-m 1) and specify the device where you want that mirror to be; which in this case will the device file of the disk to the right of the source disk.