Operating System - HP-UX
1752795 Members
6565 Online
108789 Solutions
New Discussion юеВ

Re: Efficient way to substitute root VG PVs

 
SOLVED
Go to solution
Ralph Grothe
Honored Contributor

Efficient way to substitute root VG PVs

Hi LVM wizards,

I have to substitute the following root PVs:

for pv in `vgdisplay -v vg00|awk '/PV Name/ {print $NF}'|sed 's/dsk/rdsk/'`;do diskinfo $pv;done
SCSI describe of /dev/rdsk/c1t6d0:
vendor: SEAGATE
product id: ST318203LC
type: direct access
size: 17783240 Kbytes
bytes per sector: 512
SCSI describe of /dev/rdsk/c2t6d0:
vendor: SEAGATE
product id: ST318203LC
type: direct access
size: 17783240 Kbytes
bytes per sector: 512


These internal disks are mirrored and the machines form nodes of an MC/SG cluster:

# vgdisplay -v vg00|head -21
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 14
Open LV 14
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4350
VGDA 4
PE Size (Mbytes) 4
Total PE 8680
Alloc PE 8478
Free PE 202
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---

First I thought I could merge the new disks, which are 36GB, in the mirror but unfortunately the value of Max PE per PV wouldn't allow that (see above).

Now I assume I have to install from Ignite tapes (created by make_recovery).

Since I haven't yet restored a system from Ignite tape, I'm not sure about the when and how to interrupt the automatic recovery process in order to adapt the Max PE value and other things possibly needed.
(do I have to use the -i flag when creating the Ignite tapes?)

Regards
Ralph
Madness, thy name is system administration
2 REPLIES 2
James R. Ferguson
Acclaimed Contributor
Solution

Re: Efficient way to substitute root VG PVs

Hi Ralph:

First, I'd get the latest Ignite from here:

http://www.software.hp.com/products/IUX/download.html

Use the new 'make_tape_recovery' which replaces 'make_recovery'. The command I use for doing this is:

# /opt/ignite/bin/make_tape_recovery -x inc_entire=vg00 -I -v -a /dev/rmt/0mn

Note that the "-I" in 'make_tape_recovery' causes the recovery process to be interactive and is the replacement for the "-i" option in the old 'make_recovery'. If you use the '-I' option, booting from tape will automatically offer the interactive Ignite session.

Choose the Advanced Installation mode and on the FileSystem tab note the "Additional Tasks" option. Selecting this will offer you the ability to change the physical vg attributes and set things like 'largefiles' etc.

Regards!

...JRF...
nnf97
Regular Advisor

Re: Efficient way to substitute root VG PVs

You have two options, either create the make_recovery tape with the -i option, or keep a close eye on the console when the system boots up. After you have pointed it to boot from the tape, it again will wait for 10seconds to give you an opportunity to boot interactively.
Live Free or Die (New Hampshire)