cancel
Showing results for 
Search instead for 
Did you mean: 

mirror boot disk 11.31

KNielsen
Occasional Advisor

mirror boot disk 11.31

after insf -e -H I dont get s1, s2 and s3 divice files on the new disk I want to use for mirror (disk5)

# ioscan -m lun
Class I Lun H/W Path Driver S/W State H/W Type Health Description
======================================================================
disk 4 64000/0xfa00/0x0 esdisk CLAIMED DEVICE online HP
0/4/1/0.0x500000e0191c6932.0x0
/dev/disk/disk4 /dev/rdisk/disk4
/dev/disk/disk4_p1 /dev/rdisk/disk4_p1
/dev/disk/disk4_p2 /dev/rdisk/disk4_p2
/dev/disk/disk4_p3 /dev/rdisk/disk4_p3
disk 5 64000/0xfa00/0x1 esdisk CLAIMED DEVICE online HP
0/4/1/0.0x500000e019231e22.0x0
/dev/disk/disk5 /dev/rdisk/disk5
ctl 1 64000/0xfa00/0x5 esctl CLAIMED DEVICE online HP
0/2/1/0.0x201c00a0b8091089.0x0
0/5/2/0.0x201d00a0b8091089.0x0
/dev/pt/pt1
disk 7 64000/0xfa00/0x6 esdisk CLAIMED DEVICE online HP
0/2/1/0.0x201c00a0b8091089.0x401f000000000000
/dev/disk/disk7 /dev/rdisk/disk7
disk 9 64000/0xfa00/0x7 esdisk CLAIMED DEVICE online HP
0/5/2/0.0x201d00a0b8091089.0x401f000000000000
/dev/disk/disk9 /dev/rdisk/disk9
10 REPLIES
Aneesh Mohan
Honored Contributor

Re: mirror boot disk 11.31

Hi ,

Did you initiated idisk on disk5 ?

vi /tmp/idisk
3
EFI 100
HPSP 400MB
HPUX 100%

#idisk -f /tmp/idisk /dev/rdisk/disk5

Regards,
Aneesh
Nido
Trusted Contributor

Re: mirror boot disk 11.31

Hi,

Check documented procedure in www.docs.hp.com
titled "When Good Disks Go Bad: Dealing with Disk Failures Under LVM"

>>>>after insf -e -H I dont get s1, s2 and s3 divice files on the new disk I want to use for mirror
You should use idisk for slicing the disk.


Cheers!!
" Let Villagers Be Happy!! "
SoorajCleris
Honored Contributor

Re: mirror boot disk 11.31

Hi ,

Setup the disk partitions

Create a partition description file:

# vi /tmp/partitionfile
2
EFI 100MB
HPUX 100%

Use the idisk(1M) command to partition the disk according to this file:
# idisk -wf /tmp/partitionfile /dev/rdsk/c2t1d0
idisk version: 1.2
********************** WARNING ***********************
If you continue you may destroy all data on this disk.
Do you wish to continue(yes/no)? yes
...

Create the new device files for the new partitions (c2t1d0s1 and c2t1d0s2)
# insf -e -C disk


Use mkboot(1M) to format the EFI partition (s1), populate it with the EFI files under /usr/lib/efi/, format the LIF volume (part of s2), and populate it with the LIF files (ISL, AUTO, HPUX, LABEL) under /usr/lib/uxbootlf:
# mkboot -e -l /dev/rdsk/c2t1d0
# efi_ls -d /dev/rdsk/c2t1d0s1 (to check EFI)
FileName Last Modified Size
EFI/ 5/19/2003 0
STARTUP.NSH 5/19/2003 336

total space 103215616 bytes, free space 100076032 bytes

# lifls -l /dev/rdsk/c2t1d0s2 (to check LIF)
Write the contents of the AUTO file to the EFI partition:
# mkboot -a "boot vmunix" /dev/dsk/c2t1d0
# efi_cp -d /dev/rdsk/c2t1d0s1 -u /EFI/HPUX/AUTO /tmp/x; cat /tmp/x
(to check it)
NOTE: Specify -a "boot vmunix -lq" if you want the system to boot up without interruption in case of a disk failure.

Initialize the LVM partition (s2) and add it to vg00:
# pvcreate [-f] -B /dev/rdsk/c2t1d0s2 (take care to use s2)
# vgextend vg00 /dev/dsk/c2t1d0s2

Mirror the LVs to the s2 partition:
# for i in lvol1 lvol ... lvol8
> do lvextend -m 1 /dev/vg00/$i /dev/dsk/c2t1d0s2
> done

Write the contents of the LABEL file, i.e. set root, boot, swap and dump device:

# lvlnboot -r /dev/vg00/lvol3
# lvlnboot -b /dev/vg00/lvol1
# lvlnboot -s /dev/vg00/lvol2
# lvlnboot -d /dev/vg00/lvol2

# lvlnboot -v (to check it)
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c3t2d0s2 (0/1/1/1.2.0) -- Boot Disk
/dev/dsk/c2t1d0s2 (0/1/1/0.1.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c3t2d0s2
/dev/dsk/c2t1d0s2
Root: lvol3 on: /dev/dsk/c3t2d0s2
/dev/dsk/c2t1d0s2
Swap: lvol2 on: /dev/dsk/c3t2d0s2
/dev/dsk/c2t1d0s2
Dump: lvol2 on: /dev/dsk/c3t2d0s2, 0
Specify the mirrored disk as an alternate bootpath
# setboot -a
# setboot (to check it)

"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
KNielsen
Occasional Advisor

Re: mirror boot disk 11.31

Thanks for your fast reply

I Used
# idisk -f /tmp/idf -w /dev/rdisk/disk5
with the correct info in file disk is partioned ok
i used
# insf -e -H 0/4/1/0.0.0.1.0
and got the device files

disk 2 0/4/1/0.0.0.1.0 sdisk CLAIMED DEVICE HP 5
/dev/dsk/c0t1d0 /dev/rdsk/c0t1d0
/dev/dsk/c0t1d0s1 /dev/rdsk/c0t1d0s1
/dev/dsk/c0t1d0s2 /dev/rdsk/c0t1d0s2
/dev/dsk/c0t1d0s3 /dev/rdsk/c0t1d0s3
but i mis the
/dev/dsk/disk5_p1
/dev/dsk/disk5_p2
/dev/dsk/disk5_p3

when I do a ioscan -m lun I only see the files for the old boot disk disk4 not disk5



Steven E. Protter
Exalted Contributor

Re: mirror boot disk 11.31

Shalom,

Apparently 11.31 runs insf -C disk without the sysadmin needing to.

Resources:
Disk mirroring script:

http://www.hpux.ws/?p=42

Mirroring an HP-UX system

http://www.hpux.ws/?p=21

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
KNielsen
Occasional Advisor

Re: mirror boot disk 11.31

Hi

I have no problem with partion of the disk and I get the 3 device files

/dev/dsk/c0t1d0s1 /dev/rdsk/c0t1d0s1
/dev/dsk/c0t1d0s2 /dev/rdsk/c0t1d0s2
/dev/dsk/c0t1d0s3 /dev/rdsk/c0t1d0s3

all that is Ok but I don't get the "persistant device files"
/dev/disk/disk5_p1 /dev/rdisk/disk5_p1
/dev/disk/disk5_p2 /dev/rdisk/disk5_p2 /dev/disk/disk5_p3 /dev/rdisk/disk5_p3

Regards Kjeld

Aneesh Mohan
Honored Contributor

Re: mirror boot disk 11.31

Please post

#ioscan -fnNC disk

Regards,
Aneesh
KNielsen
Occasional Advisor

Re: mirror boot disk 11.31

# ioscan -fnNC disk
Class I H/W Path Driver S/W State H/W Type Description
===========================================================================
disk 0 0/0/2/1.0x0.0x10 UsbScsiAdaptor CLAIMED LUN_PATH USB SCr
disk 4 64000/0xfa00/0x0 esdisk CLAIMED DEVICE HP 5
/dev/disk/disk4 /dev/rdisk/disk4
/dev/disk/disk4_p1 /dev/rdisk/disk4_p1
/dev/disk/disk4_p2 /dev/rdisk/disk4_p2
/dev/disk/disk4_p3 /dev/rdisk/disk4_p3
disk 5 64000/0xfa00/0x1 esdisk CLAIMED DEVICE HP 5
/dev/disk/disk5 /dev/rdisk/disk5
disk 7 64000/0xfa00/0x6 esdisk CLAIMED DEVICE HP t
/dev/disk/disk7 /dev/rdisk/disk7
disk 9 64000/0xfa00/0x7 esdisk CLAIMED DEVICE HP t
/dev/disk/disk9 /dev/rdisk/disk9
KNielsen
Occasional Advisor

Re: mirror boot disk 11.31

Hi all

Found solution my self ;-)

Used wrong parameters on insf command

with
#ioscan -N -C disk

I see the right hw path on my disk5
64000/0xfa00/0x1
I do
# insf -e -H 64000/0xfa00/0x1

and now the p1,p2 an p3 files are created

# insf -e -H 0/4/1/0.0x1.0x0 was wrong!

Tanks for your help anyway - Kjeld
KNielsen
Occasional Advisor

Re: mirror boot disk 11.31

Hi all

Found solution my self ;-)

Used wrong parameters on insf command

with
#ioscan -N -C disk

I see the right hw path on my disk5
64000/0xfa00/0x1
I do
# insf -e -H 64000/0xfa00/0x1

and now the p1,p2 an p3 files are created

# insf -e -H 0/4/1/0.0x1.0x0 was wrong!

Tanks for your help anyway - Kjeld