Operating System - HP-UX
1825954 Members
2611 Online
109690 Solutions
New Discussion

Re: How I ignite for striped disks.

 
Panuwat
Advisor

How I ignite for striped disks.

I use HP-UX 11.23 itanium. I use striped 2 disks on vg00. But only the first disk can use to boot system.

The first disk => dev/dsk/c2t1d0
dev/dsk/c2t1d0s1
dev/dsk/c2t1d0s2
dev/dsk/c2t1d0s3
The second disk => dev/dsk/c2t0d0

I use "make_tape_recovery -Av" command but it return error.
=>
lssf: /dev/dsk/c2t0d0s2: No such file or directory
save_config: error - unknown disk type for /dev/dsk/c2t0d0s2, not SCSI or HPFL
idisk: Primary partition information not valid.
Run idisk with -r option to restore.
save_config: warning - EFI partition not found on root disk /dev/rdsk/c2t0d0, si
ze may change
awk: Cannot find or open file /var/tmp/swapinfo.tmp.
The source line number is 1.
awk: Cannot find or open file /var/tmp/swapinfo.tmp.
The source line number is 1.
save_config: error - cannot determine primary swap size
ERROR: /opt/ignite/bin/save_config failed

3 REPLIES 3
Ivajlo Yanakiev
Respected Contributor

Re: How I ignite for striped disks.

You must create EFI partition if you want ot boot from some disk.
use idisk to make this partition.
Also you must copy all content form one EFI ot other and make second disk bootable.

DO NOT USE Directly this command.
This is only example how you can do it.

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

Panuwat
Advisor

Re: How I ignite for striped disks.

Thank you Ivajlo Yanakiev.

But I don't know why I must create EFI partition of /dev/dsk/c2t0d0. Because alway I use the dev/dsk/c2t1d0s2 to boot the system.

I just only want to backup the system.
If I recreate partition fo /dev/dsk/c2t0d0 then my data will be lost.
Ivajlo Yanakiev
Respected Contributor

Re: How I ignite for striped disks.

Yes you are right .

1. You can not strip VG, you can strip only
LV
2. Ignite look for your 2 partition where your O/S must be.

If you strip your root volume using second disk and it device file c2t0d0 ?
You have problem :(

Pls give me output

#vgdisplay -v vg00
#lvdisplay -v lvol1