HP-UX

bootdisk , ignite 관련 질문입니다.

 
권성준
비정기 기여자

bootdisk , ignite 관련 질문입니다.

1.부트디스크에 lif 영역중 hpux 부분이 지워졌습니다..

인스톨 cd 로 리커버리 시도를 하였습니다.

그래서 ram disk 로 부팅을 하였는데요..

hpux 부분을 복구할수 있는 명령이 무엇인지 알고싶습니다.



2.ignite tape 에서 특정파일만 복구를 하려고 합니다..

>mt -t /dev/rmt/0m fsf 1

>tar tvf /dev/rmt/0m /etc/fstab 하면

checksum error 납니다..

명령이 잘못된건지.. 아님.. 테입이 잘못된건지..

테입은 여러개를 돌렸는데도.. 같은 에러 입니다..



수고하세요..



1 응답 1
PS LEE
임시 조언자

bootdisk , ignite 관련 질문입니다.

1.부팅시 11.X 에서 bad LIF magic IPL 에러 나오는 경우 조치방법



1) install/recovery CD로 부팅.

On 700's: at boot admin prompt type: bo

On 800's: bo ;

then respond with "no" to interact with ISL



2) 선택



3) Would you like to start up networking at this time? NO



4) HP-UX CORE MEDIA RECOVERY MENU 가 나오면 :

s. Search for a file

b. Reboot

l. Load a file

r. Recover an unbootable HP-UX system

x. Exit to shell

c. Instructions on chrooting to a lvm /(root).





Select one of the above: r <-----



5) HP-UX Recovery MENU :

a. Rebuild the bootlif (ISL, HPUX, and the AUTO file) and install

all files required to boot and recover HP-UX on a target

root file system.

b. Do not rebuild the bootlif but install files required to boot

and recover HP-UX on the root file system.

c. Rebuild only the bootlif.

d. Replace only the kernel on the root file system.



m. Return to 'CORE Media Main Menu'.

x. Exit to the shell.



Use this menu to select the level of recovery desired.



Selection: c <-----



6) BOOTLIF PATH VERIFICATION MENU



his menu must be used to determine the path to the bootlif (ISL, HPUX and the AUTO file).

When the information is correct, select 'a'.



INFORMATION to verify:

Path to the bootlif is 10/0.6.0



Select one of the following:

a. The above information is correct.

b. WRONG!! The path to bootlif is incorrect.



m. Return to the 'HP-UX Recovery MENU.'

x. Exit to the shell.





Selection: a <-- If CORRECT

f the address is INCORRECT then select "b" and

follow the instructions to enter the correct

hardware path of the boot disk.



7) BOOT STRING VERIFICATION MENU



This menu must be used to verify the system's boot string.

When the information is correct, select 'a'.



INFORMATION to verify:

The system's boot string should be:

'hpux -lm (10/0.6.0)/stand/vmunix'



Select one of the following:

a. The above information is correct.

b. WRONG!! Prompt the user for the system's boot string.



m. Return to the 'HP-UX Recovery MENU.'

x. Exit to the shell.



NOTE: For an LVM '/'(ROOT) the '-lm' option MUST be specified

(example: 'hpux -lm (2.3.4)/stand/vmunix' )



Selection: a <-----



8) bootlif installing이 되는 과정



9) The RECOVERY COMPLETION MENU

Use this menu after the recovery process has installed all requested files on your system.



Select one of the following:

a. REBOOT the customer's system and continue with recovery.

b. Return to the Support Media's Main Menu.



Selection: a <-----



10) 시스템이 maintenance mod로 부팅이 될것이고 여기서 BDRA를 확인.



11) vgchange -a y /dev/vg00



12) lvlnboot -v /dev/vg00 (mirror boot disk인 경우 아래 참고)



Boot Definitions for Volume Group /dev/vg00:

Physical Volumes belonging in Root Volume Group:

/dev/dsk/c0t6d0 (10/0.6.0) -- Boot Disk <--- Primary boot disk

/dev/dsk/c0t5d0 (10/0.5.0) -- Boot Disk <--- Mirror boot disk

Boot: lvol1 on: /dev/dsk/c0t6d0

Boot: lvol1 on: /dev/dsk/c0t5d0 <---------- Mirror boot disk

Root: lvol3 on: /dev/dsk/c0t6d0

Root: lvol3 on: /dev/dsk/c0t5d0 <---------- Mirror boot disk

Swap: lvol2 on: /dev/dsk/c0t6d0

Swap: lvol2 on: /dev/dsk/c0t5d0 <---------- Mirror boot disk

Dump: lvol2 on: /dev/dsk/c0t6d0, 0



After booting the system the BOOT, ROOT, SWAP,and DUMP volume information should be correct. If something is missing use the below commands to add.

For example:

BOOT: "lvlnboot -b /dev/vg00/lvol1"

When '/stand' is ONLY on a separate logical volume.

If your not sure check /etc/fstab for a seperate lvol for /stand.

Otherwise BOOT and ROOT are considered identical.

ROOT: "lvlnboot -r /dev/vg00/lvol3"

Or lvol1 if their is NOT a seperate lvol for /stand

SWAP: "lvlnboot -s /dev/vg00/lvol2"

DUMP: "lvlnboot -d /dev/vg00/lvol2"



13) 변경된부분은 다시 검증 : "lvlnboot -v /dev/vg00"



14) enter "lvlnboot -R /dev/vg00"



15) Then the boot string should be changed back:

"mkboot -a "hpux (;0)/stand/vmunix" /dev/rdsk/c0t6d0" <-- Primary disk

"mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c0t5d0" <-- Mirror disk



16)시스템 리부팅.



--------------------------------------------------------------



2.2번의 tape device file은 no rewind device 이어야 합니다.

즉, mt -t /dev/rmt/0mn fsf 1과 같이 사용하셔야 합니다.



참고로, Ignite-UX로 받은 백업 테잎의 부팅 가능 여부는 "copy_boot_tape" 명령어를 사용하여 아래와 같이 확인 가능합니다.

자세한 내용은 man 페이지를 참고하세요.



여기서는 /tmp/ignitetest라는 디렉토리에 최소 20Mb의 사용 가능한

공간이 있는 것으로 가정합니다.



# copy_boot_tape -u /dev/rmt/0mn -b -d /tmp/ignitetest

Rewinding tape /dev/rmt/0mn.

Extracting the boot area to /tmp/ignitetest/bootimage.

14242+1 records in

14242+1 records out

Boot file contents.

volume ISL10 data size 281239 directory size 3



파일 이름 유형 시작 크기 구현 만든 날짜

===============================================================

ISL -12800 16 240 0 00/07/26 08:45:17

AUTO -12289 256 1 0 00/07/26 08:45:18

INDEX BIN 264 1 0 00/07/26 08:45:18

CONFIG BIN 272 26 0 00/07/26 08:45:18

HPUX -12928 304 880 0 00/07/26 08:45:18

INSTALL -12290 1184 25354 0 00/07/26 08:45:25

INSTALLFS -12290 26544 31744 0 00/07/26 08:45:32

FWWKAR BIN 58288 1 0 00/07/26 08:45:32

INSTCMDS BIN 58296 10154 0 00/07/26 08:45:35

SYSCMDS BIN 68456 45435 0 00/07/26 08:45:45

SCRIPTS BIN 113896 41 0 00/07/26 08:45:45



Rewinding and ejecting /dev/rmt/0mn.



예제 테이프는 LIF 영역이 있고 부팅 가능해야 합니다.



만약, 이 영역에 문제가 있으면 다음과 비슷한 출력이 표시됩니다.



# copy_boot_tape -u /dev/rmt/0mn -b -d /tmp/ignitetest

Rewinding tape /dev/rmt/0mn.

Extracting the boot area to /tmp/ignitetest/bootimage.

0+2 records in

0+2 records out

Boot file contents.

lifls:Can't list /tmp/ignitetest//bootimage; not a LIF volume

ERROR:lif image corrupted.Tape heads may need cleaning.



참고가 되시길...