HPE 9000 and HPE e3000 Servers
1756586 Members
3225 Online
108848 Solutions
New Discussion юеВ

Rebuilding a K250

 
SOLVED
Go to solution
Marie H. Saldana
Occasional Contributor

Rebuilding a K250

I am unable to boot a K250 and have to reinstall everything.
I need info on how to mirror a boot disk after installing the OS.
Can anyone Help! me.
4 REPLIES 4
John Palmer
Honored Contributor
Solution

Re: Rebuilding a K250

Excerpt from the 'Response Centre FAQ's':-

Document ID: rcfaxlvm001

Determine the hardware address of the disk that will become the mirror disk.
The command 'ioscan -fnC disk' will display the hardware address and device
files of the disk drives connected to the system. Record the hardware address,
it will be needed later to set the alternate boot path.

In this example the disk to be used as the mirror will be /dev/dsk/c1t0d0.

1) swlist -l bundle | grep -i mirror

This will display MirrorDisk/UX if installed on the system. If MirrorDisk/UX
isn't found then it will need to be loaded. This fileset **is not** part of the
standard Core-OS. This product must be purchased - contact your local HP Sales
Office for more information.

2) pvcreate -B /dev/rdsk/c1t0d0

The -B option is used to create a bootable Physical Volume.

3) mkboot /dev/rdsk/c1t0d0

NOTE: Make sure to use the character device file when using mkboot.

4) mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t0d0

NOTE: Use the -lq option when your root volume group contains only 2 disks.
If more than 2 disks are in the root volume group, the -lq option is not needed
as quorum will be maintained even if 1 disk fails.

5) vgextend /dev/vg00 /dev/dsk/c1t0d0

This adds the Physical Volume to the root volume group

6) lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0

This command extends the mirror copy of the boot logical volume to the specified
physical volume. This logical volume must be mirrored first.

NOTE: The lvextend command has to be done on all logical volumes on the primary disk.
This means that lvextend has to be done on lvol1 -> lvolX.

After the logical volume that contains the kernel has been mirrored, then use
the same lvextend command to extend the rest of the logical volumes in the root volume group.

lvextend -m 1 /dev/vg00/lvolX /dev/dsk/c1t0d0


7) lvlnboot -r /dev/vg00/lvol3

Specifies the root logical volume

NOTE: The root logical volume is /dev/vg00/lvol1 for 10.01 & 10.10, and /dev/vg00/lvol3
(as in this example) is the root logical volume in 10.20.

8) lvlnboot -s /dev/vg00/lvol2

Specifies the swap logical volume

NOTE: To determine where the swap logical volume is located use the 'swapinfo'
command. For further information on 'swapinfo' see the manpage.

9) lvlnboot -d /dev/vg00/lvol2

Specifies the dump logical volume

10) lvlnboot -b /dev/vg00/lvol1

Specifies the boot logical volume (for 10.20 only)

11) lvlnboot -R

Recovers any BDRA info

12) lvlnboot -v

Verify boot, root, swap and dump settings.

13) setboot

This will display the Primary and Alternate boot paths that are currently set.

14) setboot -a 52.1.0

Change the Alternate Boot Path to the path of the Root Mirror.

15) shutdown -r 0

Shut down the system and boot from the mirror disk.

NOTE: The system will shut down and reboot, as the system starts to come back up,
look for the message (system's output may vary):
TO INTERRUPT THE BOOT SEQUENCE, PRESS AND HOLD ESCAPE. -> MODEL 700'S

TO INTERRUPT THE BOOT SEQUENCE, PRESS ANY KEY -> MODEL 800

This will display the Boot Admin display.
At the boot_admin> prompt type: bo Mirror_disk_hardware_address
For example -> bo 4/8.10.0
On some systems, "bo alt" will work if the alternate boot device is configured.

The system will prompt to interact with IPL, answer "no", and the system will
boot from the mirror root disk.
Victor BERRIDGE
Honored Contributor

Re: Rebuilding a K250

Lets summarize what John gave you:

1)Mirroring disks is only possible if you have a licence for mirror-ux

2) you dont the licence: there is nothing else to do but get one if you really need it, because there is always the possibility to boot from an alernate boot device=>your 2nd disk
To do so if your disks are identical:
use dd:
dd if=/dev/rdsk/cxxxxx of=/dev/rdsk/c0t6d0 bs=1024k

look at some previous mail on the subject

You could also use make_recovery also to create a 2nd boot disk cloning the 1rst one...

3) You have the licence and the product is installed:
#pvcreate -B /dev/rdsk/cXd0s2
#mkboot -l /dev/rdsk/cXd0s2
#mkboot -a "hpux (;0)/stand/vmunix" /dev/rdsk/cXd0s2
then
#vgextend /dev/vg00 /dev/dsk/cXd0s2

then mirror all your lv in rootvg
#lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/cXd0s2
#lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/cXd0s2
etc...
Finally
#lvlnboot -r /dev/vg00/lvol1
#lvlnboot -s /dev/vg00/lvol2
#vgcfgbackup vg00
Marie H. Saldana
Occasional Contributor

Re: Rebuilding a K250

This was right on. It was perfect.
Thank You!
Andreas Voss
Honored Contributor

Re: Rebuilding a K250

Hi,

just for convenience put you a script at attachment that will do root disk mirroring.

Regards

Andrew