1843959 Members
1887 Online
110226 Solutions
New Discussion

Re: mirror problem

 
karan_3
Advisor

mirror problem

hi
Today i add one hardisk in mirror group .actually i replaced the faulty hardisk in root mirror volume group vg00. i have done every- thing succesfully . after resync when i try to give the command LVLNBOOT -V . the output of the command are as follow.

Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t2d0 (0/0/1/1.2.0) -- Boot Disk
/dev/dsk/c2t2d0 (0/0/2/0.2.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c2t2d0
Root: lvol3 on: /dev/dsk/c2t2d0
Swap: lvol2 on: /dev/dsk/c2t2d0
Dump: lvol2 on: /dev/dsk/c2t2d0, 0


Now i want to know why it is not showing the first harddisk and what happen if the first harddisk will not show in this command.and if it is urgent for booting then why my system still running even i boot from primary disk.


thanks $ regard
karan
7 REPLIES 7
RAC_1
Honored Contributor

Re: mirror problem

You missed something somewhere. Alternate /, swap and root are also not shown.
The faulty disk procedure should be as follows.

vgcfgrestore -n /dev/vg00 /dev/dsk/cxtxdx
vgchange -a y vg00
mkboot /dev/dsk/cxtxdx
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/cxtxdx
vgsync

Now check with lvlnboot and by checking mirror copies and doing lifls, lifcp /dev/rdsk/cxtxdx:AUTO -

Anil
There is no substitute to HARDWORK
A. Clay Stephenson
Acclaimed Contributor

Re: mirror problem

Did you do an lvlnboot -R? I assume that you did a vgcfgrestore rather than a pvcreate.
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: mirror problem

You may have left out the mkboot steps.
If it ain't broke, I can fix that.
karan_3
Advisor

Re: mirror problem

thanks to all
yes Mr. A. Clay Stephenson i forgot the step lvlnboot -R /dev/vg00. but i am not able to understand the step ar as follow:

what happen if the first harddisk will not show in this command.and if it is urgent for booting then why my system still running even i boot from primary disk.
Mel Burslan
Honored Contributor

Re: mirror problem

I think, if I am understanding wht you are saying correctly, after running the command lvlnboot -R /dev/vg00 you started to see the second disk under Boot/Root/Swap/Dump lines. Is this right ? If yes, you are just wondering what could happen if you did not make them show up and the only showing disk failed. If this is the question, the answer is very simple to that : your system would not boot. you would come to the ISL prompt and stop there as the system do not know a boot device, i.e., where to read the /stand/vmunix from.

But if you see both the root and the mirror devices together under all 4 lines, you should not worry.

If you have not run this command yet, I would strongly recommed running it at once:

mkboot -b updatediaglif2 -p ISL -p AUTO -p HPUX -p LABEL /dev/rdsk/c1t2d0

(on a footnote here: please show your appreciation by assigning points to the answers which helped you solve your problems rather than thank you messages. For understanding points system, please visit this link:
http://forums1.itrc.hp.com/service/forums/helptips.do?#28)
________________________________
UNIX because I majored in cryptology...
vinod_25
Valued Contributor

Re: mirror problem

hi karan

/dev/dsk/c1t2d0 is the disk u changed in a root mirrored vg... the steps are as follows..

1)boot in lvm maintenance mode
ISL> hpux -lm
2)do vgcfgrestore to restore LVM config data from config backup to Pv
# vgcfgrestore -n vg00 /dev/rdsk/c1t2d0
3)Activate the Vg
# vgchange -a y vg00
4)use mkboot to put boot utilities and Auto file in LIF area
# mkboot -l /dev/rdsk/c1t1d0
# mkboot -a "hpux" /dev/rdsk/c1t1d0
5)use lvlnboot
# 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
6) remirror using vgsync
# vgsync
7) Reboot the server in multiuser mode
8) check successful completion by
# lvdisplay -v /dev/vg00/lvolZ
# vgdisplay -v vg00

hope this steps helps you karan...

Good Luck

Vinod


Victor Fridyev
Honored Contributor

Re: mirror problem

Hi,

You can use the attached script. It creates mirroring for system volume group, PA_RISC machines.
In order to use the script, remove the new disk from vg00 (lvreduce for all lv and vgreduce).

HTH
Entities are not to be multiplied beyond necessity - RTFM