Operating System - HP-UX
1833767 Members
2517 Online
110063 Solutions
New Discussion

Re: Mirror help needed (testing mirrored disk)

 
carlomd
Advisor

Mirror help needed (testing mirrored disk)

Hi all, I've searched here but not sure if some of the answers matched ours, so I started a new one. We're new to HPUX and specially mirroring, we called HP a while back for mirroring help and got some docs and we did it, I looked at the outputs by looking at some of the other threads here and it showed that our's looked ok. But when we actually went ahead to try and boot of the mirror, it fails with -
Boot
: disk(0/1/1/1.2.0.0.0.0.0;0)/stand/vmunix
disk(0/1/1/1.2.0.0.0.0.0;0)/stand/vmunix: cannot open, or not executable
Exec failed: No such file or directory

Here's the outputs that we looked at -

# ./lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c2t0d0 (0/1/1/0.0.0) -- Boot Disk
/dev/dsk/c3t2d0 (0/1/1/1.2.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c2t0d0
/dev/dsk/c3t2d0
Root: lvol3 on: /dev/dsk/c2t0d0
/dev/dsk/c3t2d0
Swap: lvol2 on: /dev/dsk/c2t0d0
/dev/dsk/c3t2d0
Dump: lvol2 on: /dev/dsk/c2t0d0, 0

# lifls -l /dev/dsk/c2t0d0
volume ISL10 data size 7984 directory size 8 06/04/19 14:02:34
filename type start size implement created
===============================================================
HPUX -12928 584 1024 0 06/04/19 14:02:34
ISL -12800 1608 242 0 03/08/29 23:48:24
AUTO -12289 1856 1 0 03/08/29 23:48:24
PAD -12290 1864 1644 0 03/08/29 23:48:24
LABEL BIN 3512 8 0 06/11/14 17:53:50
# lifls -l /dev/dsk/c3t2d0
volume ISL10 data size 7984 directory size 8 06/04/19 14:02:34
filename type start size implement created
===============================================================
ISL -12800 584 242 0 06/04/19 14:02:34
AUTO -12289 832 1 0 06/04/19 14:02:34
HPUX -12928 840 1024 0 06/04/19 14:02:34
PAD -12290 1864 1468 0 06/04/19 14:02:34
LABEL BIN 3336 8 0 07/01/18 11:18:16

# ./setboot
Primary bootpath : 0/1/1/0.0.0
Alternate bootpath : 0/1/1/1.2.0

Autoboot is ON (enabled)
Autosearch is ON (enabled)

Can you tell us what we missed, do we have to start over again on the mirrors. Thanks in advanced.
18 REPLIES 18
Tim Nelson
Honored Contributor

Re: Mirror help needed (testing mirrored disk)

How about a vgdisplay -v /dev/vg00

Pete Randall
Outstanding Contributor

Re: Mirror help needed (testing mirrored disk)

I had a similar problem that may offer you some help:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=514590


Pete

Pete
carlomd
Advisor

Re: Mirror help needed (testing mirrored disk)

Thanks for the replies guys, Tim here's vgdisplay, Pete I looked at it and it didn't make sense to me, we have only 2 hdd's that are mirrored, we're still trying to narrow it down there's so much info to absorb right now.
# ./vgdisplay -v /dev/vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4384
VGDA 4
PE Size (Mbytes) 32
Total PE 8748
Alloc PE 8748
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 320
Current LE 10
Allocated PE 20
Used PV 2

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 4096
Current LE 128
Allocated PE 256
Used PV 2

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 110432
Current LE 3451
Allocated PE 6902
Used PV 2

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 5024
Current LE 157
Allocated PE 314
Used PV 2

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 5024
Current LE 157
Allocated PE 314
Used PV 2

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 5024
Current LE 157
Allocated PE 314
Used PV 2

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 5024
Current LE 157
Allocated PE 314
Used PV 2

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 5024
Current LE 157
Allocated PE 314
Used PV 2


--- Physical volumes ---
PV Name /dev/dsk/c2t0d0
PV Status available
Total PE 4374
Free PE 0
Autoswitch On

PV Name /dev/dsk/c3t2d0
PV Status available
Total PE 4374
Free PE 0
Autoswitch On
James R. Ferguson
Acclaimed Contributor

Re: Mirror help needed (testing mirrored disk)

Hi:

If you didn't mirror your first three logical voulmes (lvol1, lvol2 and lvol3) in that order, this may be the problem. Reduce ('lvreduce') and re-mirror in order.

Regards!

...JRF...
Tim Nelson
Honored Contributor

Re: Mirror help needed (testing mirrored disk)

When you did the lvextends to each lvol to /dev/dsk/c3t2d0 did you do them in order ?

I.e. lvol1, then lvol2, lvol3 etc ??

how about a pvdisplay -v /dev/dsk/c3t2d0

Can you boot from c3t2d0 and interact with ISL ?

carlomd
Advisor

Re: Mirror help needed (testing mirrored disk)

I asked the guy that I was working with when we first mirrored it, he doesn't really remember how we did it, if we did it looking at df then it won't be in order, cause df output shows the vol's out of order. Maybe I should start all over again and write it down as I go for my cheat sheet.
carlomd
Advisor

Re: Mirror help needed (testing mirrored disk)

Here's the output of pvdisplay -

# ./pvdisplay -v /dev/dsk/c3t2d0 | more
--- Physical volumes ---
PV Name /dev/dsk/c3t2d0
VG Name /dev/vg00
PV Status available
Allocatable yes
VGDA 2
Cur LV 8
PE Size (Mbytes) 32
Total PE 4374
Free PE 0
Allocated PE 4374
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On

--- Distribution of physical volume ---
LV Name LE of LV PE for LV
/dev/vg00/lvol1 10 10
/dev/vg00/lvol2 128 128
/dev/vg00/lvol3 3451 3451
/dev/vg00/lvol4 157 157
/dev/vg00/lvol5 157 157
/dev/vg00/lvol6 157 157
/dev/vg00/lvol7 157 157
/dev/vg00/lvol8 157 157

--- Physical extents ---
PE Status LV LE
00000 current /dev/vg00/lvol1 00000
00001 current /dev/vg00/lvol1 00001
00002 current /dev/vg00/lvol1 00002
00003 current /dev/vg00/lvol1 00003
00004 current /dev/vg00/lvol1 00004
00005 current /dev/vg00/lvol1 00005
00006 current /dev/vg00/lvol1 00006
00007 current /dev/vg00/lvol1 00007
00008 current /dev/vg00/lvol1 00008
Standard input

04154 current /dev/vg00/lvol7 00094
04155 current /dev/vg00/lvol7 00095
04156 current /dev/vg00/lvol7 00096
04157 current /dev/vg00/lvol7 00097
04158 current /dev/vg00/lvol7 00098
04159 current /dev/vg00/lvol7 00099
04160 current /dev/vg00/lvol7 00100
04161 current /dev/vg00/lvol7 00101
04162 current /dev/vg00/lvol7 00102
carlomd
Advisor

Re: Mirror help needed (testing mirrored disk)

Can you boot from c3t2d0 and interact with ISL ?
No, that's the mirrored disk we wanted to test. What's the syntax for lvreduce in case we need to undo the mirror, thanks.
James R. Ferguson
Acclaimed Contributor

Re: Mirror help needed (testing mirrored disk)

Hi (again);

> What's the syntax for lvreduce in case we need to undo the mirror

Why not consult the manpages?

Regards!

...JRF...
carlomd
Advisor

Re: Mirror help needed (testing mirrored disk)

We will, is it safe to lvreduce while the server's online with users logged in running jobs. Thanks
James R. Ferguson
Acclaimed Contributor

Re: Mirror help needed (testing mirrored disk)

HI:

> it safe to lvreduce while the server's online with users logged in running jobs.

Yes.

You can also safely mirror while your users are operating normally.

Regards!

...JRF...
carlomd
Advisor

Re: Mirror help needed (testing mirrored disk)

Hi all, so yeah I succesfully removed all the mirrors, now I gotta go through the docs on mirroring, I'll keep you posted if anything comes up. Thanks
Geoff Wild
Honored Contributor

Re: Mirror help needed (testing mirrored disk)

Re-mirror the root disk - follow this procedure:

More then likely, he missed step 6:

Say /dev/dsk/c0t6d0 is the root disk and /dev/dsk/c3t6d0 is the disk you want to make a mirror of.

1. Create a bootable LVM disk to be used for the mirror.
pvcreate -B /dev/rdsk/c3t6d0
2. Add this disk to the current root volume group.
vgextend /dev/vg00 /dev/dsk/c3t6d0
3. Make the new disk a boot disk.
mkboot -l /dev/rdsk/c3t6d0
4. Copy the correct AUTO file into the new LIF area.
mkboot -a "hpux -lq (;0)/vmunix" /dev/rdsk/c3t6d0
5. Mirror the boot, root and primary swap logical volumes to the new
bootable disk. Ensure that all devices in vg00, such as /usr, /swap,
etc., are mirrored.
The following is an example of mirroring the boot logical volume:
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c3t6d0
The following is an example of mirroring the primary swap logical
volume:
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c3t6d0
The following is an example of mirroring the root logical volume:
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c3t6d0
6. Update the boot information contained in the BDRA for the mirror
copies of boot, primary swap and root.
/usr/sbin/lvlnboot -b /dev/vg00/lvol1
/usr/sbin/lvlnboot -s /dev/vg00/lvol2
/usr/sbin/lvlnboot -r /dev/vg00/lvol3
7. Check if the BDRA is correct.
/usr/sbin/lvlnboot -R /dev/vg00
8. Verify that the mirrors were properly created.
lvlnboot -v /dev/vg00
The output of this command is shown in a display like the following:
Boot Definitions for Volume Group /dev/vg00:
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t6d0 (1/0/0/3/0.6.0) -- Boot Disk
/dev/dsk/c3t6d0 (1/0/1/0/0/1/1.6.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Root: lvol3 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Swap: lvol2 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Dump: lvol2 on: /dev/dsk/c0t6d0, 0

vgdisplay -v vg00

Then lvextend for all other lvols:

lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol9 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol10 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol11 /dev/dsk/c3t6d0



Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
carlomd
Advisor

Re: Mirror help needed (testing mirrored disk)

Hi all, I got done with the instructions, I just gotta test it, there's one thing I didn't see on most of the guides out there, is the quorum option which I heard can be helpful in an event any of my 2 hdd's die -
# mkboot -a "hpux -lq" /dev/rdsk/c0t5d0
can I still run that command even though I'm done going through the guide. Thanks
James R. Ferguson
Acclaimed Contributor

Re: Mirror help needed (testing mirrored disk)

Hi (again):

Yes, you can run 'mkboot' to set the low quorum.

Regards!

...JRF...
Muttikkal_1
Occasional Contributor

Re: Mirror help needed (testing mirrored disk)

for making mirror disk for root
you want to use -B option with pvcreate command
then vgextend to the root vg
then lvextend one by one lvs with -m 1 option
Pls cross check u did all these steps properly
carlomd
Advisor

Re: Mirror help needed (testing mirrored disk)

Hi all, we finally got to test the mirror this weekend and it was a success, we now have a bootable mirror drive. Thanks to all your advice and tips.
carlomd
Advisor

Re: Mirror help needed (testing mirrored disk)

Closing thread