Mirroring Vg00

6
Logica Mobile networks _______________________________________________ Integration services 5 Custom House Plaza, Harbourmaster Place, Dublin 1 Phone (+353) 1819 3400, FAX (+353) 1819 3401 Title Telepath SR2700 Adding a mirror copy for vg00 Control Document ID: Mirroring_vg00 Version: 1.1 Location: 10.16.0.2 /products/SMSC/2700/standard_config/TP2700_parameters/Unix/mop Originator David Mathevet Creation Date 03/04/01 Status Released Approver Stephen McElroy

description

disk mirror

Transcript of Mirroring Vg00

Page 1: Mirroring Vg00

Logica Mobile networks _______________________________________________ Integration services

5 Custom House Plaza, Harbourmaster Place, Dublin 1 Phone (+353) 1819 3400, FAX (+353) 1819 3401

Title

Telepath SR2700

Adding a mirror copy for vg00

Control Document ID: Mirroring_vg00 Version: 1.1 Location: 10.16.0.2 /products/SMSC/2700/standard_config/TP2700_parameters/Unix/mop Originator David Mathevet Creation Date 03/04/01 Status Released Approver Stephen McElroy

Page 2: Mirroring Vg00

Logica Mobile networks ________________________________________ Integration services

5 Custom House Plaza, Harbourmaster Place, IFSC, Dublin 1 Phone (+353) 1819 3400 Fax (+353) 1819 3401

2

Abstract This documents gives instructions for an onsite engineer to mirror the vg00 volume group. THIS GUIDE IS FOR INTERNAL LOGICA USE ONLY AND NOT CUSTOMER FACING.

Distribution Stephen McElroy Colin Fennelly

Jean Marc Berroyer Brendan McGoldrick

Stephen Tighe JL Valentin

Paul Smyth David Mathevet

History Version Modified By Date Description Approved

By 0.1 David Mathevet 03/04/01 First Draft S. McElroy 1.0 David Mathevet 03/04/01 First release S. McElroy 1.1 David Mathevet 09/05/01 Added instructions to remove one

disk from the vg00 S. McElroy

Page 3: Mirroring Vg00

Logica Mobile networks ________________________________________ Integration services

5 Custom House Plaza, Harbourmaster Place, IFSC, Dublin 1 Phone (+353) 1819 3400 Fax (+353) 1819 3401

3

Copyright

1996 © Logica Limited 5 Customer House Plaza, Harbourmaster Place, Dublin 1,

All rights reserved. This document or any part thereof may not, without the written consent of Aldiscon Limited, be copied, reprinted or reproduced in any material form including but not limited to photocopying, transcribing, transmitting or storing it in any medium or translating it into any language, in any form or by any means, be it electronic, mechanical, xerographic, optical, magnetic or otherwise.

(Rev 1.1 September 1994)

The information contained in this document is proprietary and confidential and all copyright, trade marks, trade names, patents and other intellectual property rights in the documentation are the exclusive property of Aldiscon Limited unless otherwise specified. The information (including but not limited to data, drawings, specification, documentation, software listings, source or object code) shall not at any time be disclosed directly or indirectly to any third party without Aldiscon Limited’s prior written consent.

(Rev 1.1 September 1994)

The information contained herein is believed to be accurate and reliable. Aldiscon Limited accepts no responsibility for its use by any means or in any way whatsoever Aldiscon Limited shall not be liable for any expenses, costs by damage that may result from the use of the information contained within this document. The information contained herein is subject to change without notice.

(Rev 1.1 September 1994)

Page 4: Mirroring Vg00

Logica Mobile networks ________________________________________ Integration services

5 Custom House Plaza, Harbourmaster Place, IFSC, Dublin 1 Phone (+353) 1819 3400 Fax (+353) 1819 3401

4

Table of Contents Table of Contents................................................................................................................. 4

1. Adding a mirror copy for the root volume group (vg00)........................................... 5 2. Removing one mirror copy for the root volume group (vg00).................................. 5

Appendix A:- System Installation and Upgrade Checklist .................................................... 6

Page 5: Mirroring Vg00

Logica Mobile networks ________________________________________ Integration services

5 Custom House Plaza, Harbourmaster Place, IFSC, Dublin 1 Phone (+353) 1819 3400 Fax (+353) 1819 3401

5

1. Adding a mirror copy for the root volume group (vg00) First identify the disk you want to use as a mirror: # ioscan –fnuC disk Take note of its /dev/rdsk/cXtYdZ parameter raw device file. # pvcreate –f –B /dev/rdsk/cXtYdZ # mkboot –l /dev/rdsk/ cXtYdZ # mkboot –a “hpux (;0)/hp-ux” /dev/rdsk/ cXtYdZ # vgextend /dev/vg00 /dev/dsk/ cXtYdZ Then for each logical volume of the vg00, add a mirror copy into the second disk Example assuming we have lvol1 up to lvol9: # for i in 1 2 3 4 5 6 7 8 9 > do > lvextend –m 1 /dev/vg00/lvol$i /dev/dsk/ cXtYdZ > done This last part may that one hour to complete because disks have to synchronize. Finally, prepare LVM logical volume to be root, boot, primary swap,and dump volume # lvlnboot –r /dev/vg00/lvol3 # lvlnboot –b /dev/vg00/lvol1 # lvlnboot –s /dev/vg00/lvol2 # lvlnboot -R

2. Removing one mirror copy for the root volume group (vg00) In case you have to remove one of the mirror copies of the vg00, then you have to do the following: Identify the device file of the disk you want to remove from the root volume group (cXtYdZ) and the final number of mirror copies for the volume group (<i>) For each of the logical volumes of vg00: # lvreduce –m <i> /dev/vg00/lvol /dev/dsk/cXtYdZ Then remove the disk from the volume group: # vgreduce /dev/vg00 /dev/dsk/cXtYdZ Finally recreate the links for the boot area: # rm /dev/root # lvlnboot –v –R # lvlnboot –r /dev/vg00/lvol3 # lvlnboot –b /dev/vg00/lvol1 # lvlnboot –s /dev/vg00/lvol2

Page 6: Mirroring Vg00

Logica Mobile networks ________________________________________ Integration services

5 Custom House Plaza, Harbourmaster Place, IFSC, Dublin 1 Phone (+353) 1819 3400 Fax (+353) 1819 3401

6

Appendix A:- System Installation and Upgrade Checklist Date Started_______________ Customer_______________ System Name________________ IP Address________________ Component Sub-Component Completed/Details Filesystem size Assigned engineer _____________________ Approved by _________________________