Operating System - HP-UX
1833764 Members
2175 Online
110063 Solutions
New Discussion

Mirror after cold start from Make_Tape_Recovery

 
Yodi_1
Occasional Visitor

Mirror after cold start from Make_Tape_Recovery

Hi, My system is rx4640, running UX 11.23, Using Make_Tape_Recovery to upgrade disk from 36GB to 72GB, recovery running well, but I can't reconfigure the Mirror.
When I try to configure mirror, at the step to run vgextend, I got message "# Vgcfgbackup: Invalid LVMREC on physical Volume /dev/rdsk/c3t0d0"
When I checked at vgdisplay it show: Cur PV and Act PV is not match.
I followed the information I got from KMINE (2200100364), but when I try to recreate /etc/lvmtab, it can't create. So please help me if you know the solution
6 REPLIES 6
Ravi_8
Honored Contributor

Re: Mirror after cold start from Make_Tape_Recovery

Hi,

lvextend is to be used to create mirroring not the vgextend. try running command vgscan -v before running lvextend
never give up
Victor BERRIDGE
Honored Contributor

Re: Mirror after cold start from Make_Tape_Recovery

Hi Yodi,
I dont to what point an rx and rp box are different (We here dont have itanium boxes yet...)
So dont take for granted my thoughts...
If I understand well you did a make_recovery tape and used it in order to exchange your 36GB disks to 72GB, is that so?
Can you tell us a bit more?
Which 2 disks did you change/ which is the one you booted from now:
echo 'boot_string/S'|adb /stand/vmunix /dev/kmem
...
I would restart (since you just did almost a fresh install) once I know sure which disk Im on by going to /etc, mv lvmtab lvmtab.bak, mv ioconfig ioconfig.bak, then reboot or ioscan followed by insf -C insf -e... then vgscan -v and see if you have just the disk in lvmtab now. From then its a pvcreate (-f) the second disk and after I suppose you know...
The doc you used was about a vgreduce to remove a disk that failed, you case is not similar since if I understood well you reinstalled on new bigger disks and now want to mirror but cannot vgextend

Courage
All the best
Victor
Ivajlo Yanakiev
Respected Contributor

Re: Mirror after cold start from Make_Tape_Recovery

Sent vgdisplay -v , mount and
ioscan -nf

Borislav Perkov
Respected Contributor

Re: Mirror after cold start from Make_Tape_Recovery

Hi Yodi,
You need to recreate the LVMREC on the disk.
Check or run this commands.
1. Establish the mirroring. Make sure the auto string is "hpux -lq".
2. Find out the idle time when your system will not be busy. Replace the mirror disk with a new disk.
3. Run ioscan -f and make sure the new disk is claimed. At this time lvlnboot, vgdisplay etc., will give you errors.
4. Do a vgcfgrestore onto the new disk.
vgcfgrestore -n vg00 /dev/rdsk/c3t0d0
vgchange -a y vg00
mkboot -l /dev/rdsk/c3t0d0
mkboot -a "hpux" /dev/rdsk/c3t0d0
vgsync
lvlnboot -r /dev/vg00/lvol3 /dev/vg00
lvlnboot -b /dev/vg00/lvol1 /dev/vg00
lvlnboot -s /dev/vg00/lvol2 /dev/vg00
lvlnboot -d /dev/vg00/lvol2 /dev/vg00
lvlnboot -R
lvlnboot -v
Make sure both the disks are listed as bootable. Verify the mirrors.
Regards,
Borislav
Ivajlo Yanakiev
Respected Contributor

Re: Mirror after cold start from Make_Tape_Recovery

bad option here:

mkboot -a "hpux" /dev/rdsk/c3t0d0
must be use :
mkboot -a "hpux -lq " /dev/rdsk/c3t0d0

and check with
lifcp
#lifcp /dev/rdsk/c3t0d0:AUTO -

vgsync
"lvlnboot -r /dev/vg00/lvol3 /dev/vg00
lvlnboot -b /dev/vg00/lvol1 /dev/vg00
lvlnboot -s /dev/vg00/lvol2 /dev/vg00
lvlnboot -d /dev/vg00/lvol2 /dev/vg00
lvlnboot -R
lvlnboot -v"

Here you need only
lvlnboot -R
lvlnboot -v

And finaly you must edit
/stand/bootconf
and add second disk

But any way you have problem adding second disk into VG

Did you create partitions using
idisk ?

Yodi_1
Occasional Visitor

Re: Mirror after cold start from Make_Tape_Recovery

Team,
Thanks for your help and support, By the way I got the Solution, when I followed again document from KMINE (2200100364).
#strings /etc/lvmtab == mirror disk still in lvmtab
#mv /etc/lvmtab /etc/lvmtab.orig
#vgscan -v
#vgreduce -f /dev/vg00
#vgscan -v
#strings /etc/lvmtab ==== in here the mirror disk alreday dissapear

and then after that I followed document KBRC00014526 to create mirror in IA for HP-UX 11.23

Again thanks for your support.

Regards
Yodi