Operating System - HP-UX
1832267 Members
6141 Online
110041 Solutions
New Discussion

mirror root volume on Itanium

 
SOLVED
Go to solution
Jimmy Tom_2
Frequent Advisor

mirror root volume on Itanium

anyone has a cook book instructions on mirroing disk on the Itanium for HP-UX 11.22? Is differnt than the PA-Risc system. It uses something call idisk.
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: mirror root volume on Itanium

I am taking a risk here but it should not be any different

lvextend -m 1 /dev/vg01/lvol /dev/dsk/c#t#d#

pick a real 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
Steven E. Protter
Exalted Contributor

Re: mirror root volume on Itanium

Never having used an Itanium system, I would add that the /dev/dsk stuff might be different, depending on how the OS does SCSI.

I'm pretty confident about the lvextend command.

Sorry for the two parter.

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
Jimmy Tom_2
Frequent Advisor

Re: mirror root volume on Itanium

I need to mirror the root disk. I am reading the man page, and it indicates that I need to creat two partitions; EFI and HP-UX. But I am unsure on how to populate the EFI partitions.
Ray Carlson
Frequent Advisor
Solution

Re: mirror root volume on Itanium

You might try the following:
Set up mirroring as follows:
0/1/1/0.0.0 /dev/rdsk/c2t0d0 ATLAS10K3_36_SCA
0/1/1/0.1.0 /dev/rdsk/c2t1d0 ATLAS10K3_36_SCA real boot disk
1. Use vi to create a partition description file by doing the following:

vi /tmp/partitionfile

The 3 line entry should look like this:
2
EFI 100MB
HPUX 100%

2. Use ididsk to setup the disk partitioning using the file created above:

idisk -wf /tmp/partitionfile /dev/rdsk/c2t0d0

3. Use insf to create the new device dfiles (c2t0d0s1 and c2t0d0s2)

insf -e

Follow normal LVM procedures; but skip the two mkboot commands which
normally copy files down to the LIF area (LIF area replaced by EFI).

Configured mirroring of the system disk with the following commands:
ioscan -nfH 0/1/1/0.0.0
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 36.4GATLAS10K3_36_SC
A
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
/dev/dsk/c2t0d0s1 /dev/rdsk/c2t0d0s1
/dev/dsk/c2t0d0s2 /dev/rdsk/c2t0d0s2
diskinfo /dev/rdsk/c2t0d0
SCSI describe of /dev/rdsk/c2t0d0:
vendor: HP 36.4G
product id: ATLAS10K3_36_SCA
type: direct access
size: 35566480 Kbytes
bytes per sector: 512
Either use
pvcreate -B -t ATLAS10K3_36_SCA /dev/rdsk/c2t0d0s2
or if the disk has been used previously use
pvcreate -B -f -t ATLAS10K3_36_SCA /dev/rdsk/c2t0d0s2
4. Use mkboot to format and populate the newly created EFI partition:
mkboot -e -l /dev/rdsk/c2t0d0
vgextend /dev/vg00 /dev/dsk/c2t0d0s2
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t0d0s2
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c2t0d0s2
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c2t0d0s2
lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c2t0d0s2
lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c2t0d0s2
lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c2t0d0s2
lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c2t0d0s2
lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c2t0d0s2
lvextend -m 1 /dev/vg00/lvol9 /dev/dsk/c2t0d0s2
lvlnboot -v
lvlnboot -r /dev/vg00/lvol3
lvlnboot -s /dev/vg00/lvol2
lvlnboot -d /dev/vg00/lvol2
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v
setboot -a 0/1/1/0.0.0

efi_cp -d /dev/rdsk/c2t1d0s1 -u /EFI/HPUX/AUTO /tmp/AUTO
edit /tmp/AUTO changing
boot vmunix
to
boot vmunix -lq
then put the file back on both EFI partitions with
efi_cp -d /dev/rdsk/c2t1d0s1 /tmp/AUTO /EFI/HPUX/AUTO
efi_cp -d /dev/rdsk/c2t0d0s1 /tmp/AUTO /EFI/HPUX/AUTO

Change you addresses and disks as needed, but this should give you a good start.
Ray