1832462 Members
3184 Online
110043 Solutions
New Discussion

Mirroring VG00

 
SOLVED
Go to solution
Rafael Casero
Regular Advisor

Mirroring VG00

I'm trying to Mirror vg00, getting the following error:

miaux10: / =>mkboot -a "hpux -lq /stand/vmunix" /dev/dsk/c3t6d0
-a specified but no current boot area on /dev/dsk/c3t6d0

These are the following steps I have taken:

What's missing.

miaux10: / =>pvcreate -B /dev/rdsk/c3t6d0
Physical volume "/dev/rdsk/c3t6d0" has been successfully created.
miaux10: / =>vgextend /dev/vg00 /dev/dsk/c3t6d0
vgextend: Warning: Max_PE_per_PV for the volume group (4328) too small for this PV (4375).
Using only 4328 PEs from this physical volume.
Volume group "/dev/vg00" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
miaux10: / =>mkboot /dev/dsk/c3t6d0
miaux10: / =>mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/dsk/c3t6d0
-a specified but no current boot area on /dev/dsk/c3t6d0
miaux10: / =>mkboot -a "hpux -lq" /stand/vmunix" /dev/dsk/c3t6d0
>
miaux10: / =>mkboot -a "hpux -lq /stand/vmunix" /dev/dsk/c3t6d0
-a specified but no current boot area on /dev/dsk/c3t6d0
28 REPLIES 28
Deoncia Grayson_1
Honored Contributor
Solution

Re: Mirroring VG00

Maybe this link will be of help as to what happened:


http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=788265
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Steven E. Protter
Exalted Contributor

Re: Mirroring VG00

Shalom,

You have missed a few stps.

Is this 11i v1 ?

pvcreate -B /dev/rdsk/c1t0d0 #use real disk

mkboot -l /dev/rdsk/c1t0d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t0d0 # use real disk


# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?

If you are running 64-bit OS:

# mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?


vgextend /dev/vg00 /dev/dsk/c1t0d0 # same thing
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0

# real disk. repeat for other lvols

lvlnboot -r /dev/vg00/lvol3 # root fs /
lvlnboot -s /dev/vg00/lvol2 #swap
lvlnboot -d /dev/vg00/lvol2 #swap/dump
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v
setboot
setboot -a 52.1.0 # second disk

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Rafael Casero
Regular Advisor

Re: Mirroring VG00

Current OS version is 11.23

Rafael Casero
Regular Advisor

Re: Mirroring VG00

Current OS version is 11.23 On Itanium

Pete Randall
Outstanding Contributor

Re: Mirroring VG00

Enrico P.
Honored Contributor

Re: Mirroring VG00

Hi,
for Itanium mirror procedure follow the attachment ...

Enrico
Rafael Casero
Regular Advisor

Re: Mirroring VG00

Pete,

For some reason I cannot get to this link.

Torsten.
Acclaimed Contributor

Re: Mirroring VG00

Before you begin to follow the steps given in the link provided by Pete, reverse the steps you already done.

Important: vgreduce the disk before you start over.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Pete Randall
Outstanding Contributor

Re: Mirroring VG00

Sorry - apparently they've moved or removed that link.

Here is another reference. You'll need to find the section titled "Mirroring a Boot Disk with LVM on HP-UX 11i for HP Integrity Servers":


http://docs.hp.com/en/B2355-90950/ch06s02.html#cchgjafa


Pete

Pete
Torsten.
Acclaimed Contributor

Re: Mirroring VG00

The link is still working (there is a space in the post), I try it again

http://h21007.www2.hp.com/dspp/tech/tech_TechSingleTipDetailPage_IDX/1,2366,5343
,00.html

but here is another

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000082066576

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: Mirroring VG00


No points for this please, I just want to verify the formatting problem. The link again for copy and paste:

http://h21007.www2.hp.com/dspp/tech/tech_TechSingleTipDetailPage_IDX/1,2366,5343,00.html

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Pete Randall
Outstanding Contributor

Re: Mirroring VG00

I got Torsten's link to work by clicking on it, then manually editing it to add the ,00.html part that ends up on the third line. You have to sign in to HP passport which redirects you to some other page, but if you then go through the clicking and editing again, it will work.

http://h21007.www2.hp.com/dspp/tech/tech_TechSingleTipDetailPage_IDX/1,2366,5343,00.html


Pete

Pete
Doug O'Leary
Honored Contributor

Re: Mirroring VG00

Hey;

As others have pointed out, the procedures for itanium and parisc are different. I've generated a checklist that I've used quite often - available at:

http://www.olearycomputers.com/ll/hp_mirrorux.html

HTH;

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Michael Steele_2
Honored Contributor

Re: Mirroring VG00

Here's the same link for itanium servers. Turn to page 630 "Mirroring Root, Boot, and Primary Swap Logical Volumes for HP
9000 (PA-RISC) Systems"

http://docs.hp.com/en/B2355-90950/B2355-90950.pdf
Support Fatherhood - Stop Family Law
Michael Steele_2
Honored Contributor

Re: Mirroring VG00

Sorry, ( haven't had coffee yet this morning )

I've pasted this in from Andrew Rutter @
http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=966323

HOW TO CREATE A MIRRORED BOOT DISK WITH LVM ON ITANIUM SYSTEMS



This document assumes that MirrorDisk/UX is already installed on the system and patch PHCO_31709 or a superseded patch has been installed afterwards.

To check MirrorDisk/UX is installed use

#swlist â l product B2491BA (servers)
#swlist â l product B5430BA (workstation)

#swlist ¦ grep â i mirror

Check device files with ioscan
#ioscan â funC disk

Use vi to create a partition description file like examples below
#vi /tmp/partitionfile

For HPUX 11.22 uses a 3 line file

2
EFI 100MB
HPUX 100%

For HPUX 11.23 uses a 4 line file

3
EFI 500MB
HPUX 100%
HPSP 400MB

Use idisk to partition the disk as required
#idisk â wf /tmp/partitionfile /dev/rdsk/cxtxdx

Use insf to create device files
#insf â e

Check partitions on disks with
#idisk â p /dev/rdsk/cxtxdx
should display 3 partitions EFI, HPUX, HPSP

Create a physical volume on the desired disk with pvcreate ensuring you specify s2 device files
#pvcreate â B /dev/rdsk/cxtxdxs2

(-f option only required if disk previously used in system)

Add the physical volume to the ROOT volume group using s2
#vgextend /dev/vg00 /dev/dsk/cxtxdxs2

If disk has been previously used initialize efi fat partition
#efi_fsinit â d /dev/rdsk/cxtxdxs1

Use mkboot to place boot utils in boot area on disk and lif files under /usr/lib/efi and /usr/lib/uxbootlif
#mkboot â e â l /dev/rdsk/cxtxdx

use pvdisplay to note the sequence of lvols
#pvdisplay â v /dev/dsk/cxtxdxs2 ¦ more

Create mirror copies of all lvols to be mirrored
#lvextend â m 1 /dev/vg00/lvol1 /dev/dsk/cxtxdxs2
#lvextend â m 1 /dev/vg00/lvol2 /dev/dsk/cxtxdxs2
for all lvols or use this shell loop to extend automatically

#for lvol in lvol1 lvol2 lvol3 ⠦⠦⠦.lvol8 (specify all lvols to be mirrored)
>do
>lvextend â m 1 /dev/vg00/$lvol /dev/dsk/cxtxdxs2
>done

Confirm efi partition is present and populated
#efi_ls â d /dev/rdsk/cxtxdxs1
#efi_ls â d /dev/rdsk/cxtxdxs1 â u /EFI/HPUX/AUTO /tmp/AUTO; cat /tmp/AUTO

Edit the AUTO file to â lq
#efi_cp â d /dev/rdsk/cxtxdxs1 â u /EFI/HPUX/AUTO /tmp/AUTO

#vi /tmp/AUTO
modify boot vmunix to boot vmunix â lq

Then copy file back to both EFI partitions (both disks)
#efi_cp â d /dev/rdsk/cxtxdxs1 /tmp/AUTO /EFI/HPUX/AUTO

Check again
#efi_ls â d /dev/rdsk/cxtxdxs1
#efi_ls â d /dev/rdsk/cxtxdxs1 â u /EFI/HPUX/AUTO /tmp/AUTO; cat /tmp/AUTO

List contents of LIF area on mirrored disk
#lifls â l /dev/rdsk/cxtxdxs2

Update the BDRA and LABEL files
#lvlnboot â R /dev/vg00

Check disks are listed as boot disks for ROOT BOOT and SWAP
#lvlnboot â v /dev/vg00

If any are missing
#lvlnboot â r /dev/vg00/lvol3 /dev/vg00
#lvlnboot â s /dev/vg00/lvol2 /dev/vg00
#lvlnboot â d /dev/vg00/lvol2 /dev/vg00
#lvlnboot â b /dev/vg00/lvol1 /dev/vg00

Add a line to /stand/bootconf for new bootdisk using vi
#vi /stand/bootconf
l /dev/dsk/c0t6d0
l /dev/dsk/cxtxdx

check new disk appears in /etc/lvmtab
#strings /etc/lvmtab

Set alt path for mirrored
#setboot â a [hw path of mirror] disk (11.22 uses std alt path)
#setboot â h [hw path of mirror] disk (11.23 uses HA alternative)
Check PVâ s with
#vgdisplay â v vg00

check all lvols are mirrored with
#lvdisplay â v /dev/vg00/lvol1 ¦ pg
#lvdisplay â v /dev/vg00/lvol2 ¦ pg

Check partitions on disks with
#idisk â p /dev/rdsk/cxtxdx
should display 3 partitions EFI, HPUX, HPSP

Copy contents of HPSP on original disk to mirrored disk partition
#dd if=/dev/rdsk/cxtxdxs3 of=/dev/rdsk/cxtxdxs3 bs=1024k

Note

If cold install of 11.23 - HPSP will not be populated with diagnostics
These need installing from offline diagnostics cd

Reboot server and boot offline diagnostics cd
Select option to run cd installer to install/update contents to HPSP

Once installed on one disk this can be copied with dd as above

shutdown and reboot to alt path to check mirror is bootable
Support Fatherhood - Stop Family Law
Rafael Casero
Regular Advisor

Re: Mirroring VG00

I'm currently going through the process.

Disk that will be used for mirror.
miaux10: / =>diskinfo /dev/rdsk/c3t6d0
SCSI describe of /dev/rdsk/c3t6d0:
vendor: HP 73.4G
product id: ST373454LC
type: direct access
size: 71687369 Kbytes
bytes per sector: 512

Master disk:
miaux10: / =>diskinfo /dev/rdsk/c0t6d0
SCSI describe of /dev/rdsk/c0t6d0:
vendor: HP 73.4G
product id: ST373454LC
type: direct access
size: 71687369 Kbytes
bytes per sector: 512

According to document, when I create the

/tmp/partitionfile for 11.23

3
EFI 500MB
HPUX 100%
HPSP 400MB

Not sure how this file should look. And what fields to modify..

First time doing this... as you all can tell.
Enrico P.
Honored Contributor

Re: Mirroring VG00

Hi,
Default is

EFI 500MB
HPUX 100%
HPSP 400MB

This file is for partition your boot disk in three parts.
With ioscan command you will see

/dev/rdsk/c3t6d0s1
/dev/rdsk/c3t6d0s2
/dev/rdsk/c3t6d0s3

you can check this value

diskinfo /dev/rdsk/c3t6d0s1 (EFI size)
diskinfo /dev/rdsk/c3t6d0s3 (HPSP size)
diskinfo /dev/rdsk/c3t6d0s2 (HPUX size)


Enrico
Rafael Casero
Regular Advisor

Re: Mirroring VG00

Not sure what
# - what is this referencing.
HPSP 400MB - Not sure what this is.
Torsten.
Acclaimed Contributor

Re: Mirroring VG00

HPSP - HP service partition, used for the offline diagnostics.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Rafael Casero
Regular Advisor

Re: Mirroring VG00

I'm getting error at

miaux10: / =>mkboot -e -l /dev/rdsk/c3t6d0
Error writing to /dev/rdsk/c3t6d0s2: No such device or address



miaux10: / =>ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
==========================================================================
disk 1 1/0/0/3/0.6.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/dsk/c0t6d0 /dev/rdsk/c0t6d0
/dev/dsk/c0t6d0s1 /dev/rdsk/c0t6d0s1
/dev/dsk/c0t6d0s2 /dev/rdsk/c0t6d0s2
/dev/dsk/c0t6d0s3 /dev/rdsk/c0t6d0s3
disk 0 1/0/0/3/1.2.0 sdisk CLAIMED DEVICE _NEC DVD_RW ND-3550A
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 2 1/0/1/1/0/1/1.6.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/dsk/c3t6d0 /dev/rdsk/c3t6d0
/dev/dsk/c3t6d0s1 /dev/rdsk/c3t6d0s1
/dev/dsk/c3t6d0s2 /dev/rdsk/c3t6d0s2
miaux10: / =>mkboot -e -l /dev/rdsk/c3t6d0
Error writing to /dev/rdsk/c3t6d0s2: No such device or address
Rafael Casero
Regular Advisor

Re: Mirroring VG00

Let me include the /tmp/partitionfile created.

miaux10: / =>cat /tmp/partitionfile
2
EFI 70007MB
HPUX 100%
HPSP 400MB

Thanks, All for your help.

Torsten.
Acclaimed Contributor

Re: Mirroring VG00

Not "2", use "3" if you have 3 more lines in this files. This is the number of partitions.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: Mirroring VG00

500MB is really enogh for the first (EFI) partition.

Your first line should look like
EFI 500MB

the whole file:

3
EFI 500MB
HPUX 100%
HPSP 400MB

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Rafael Casero
Regular Advisor

Re: Mirroring VG00

Can I just rerun the process again, or what do I have to do to revert back ?