HP-UX
1753947 회원
7600 온라인
108811 솔루션
새 메시지

rx장비 미러 후 확인하는 방법...

 
한상우
기여자

rx장비 미러 후 확인하는 방법...

rx장비를 미러링한 후 lvol을 확인 한 결과 미러링 되있는것을 확인은 하였는데, 부팅시 제대로 물고오는지 확인하는 정확한 시퀀스를 알고싶습니다.

즉 부팅 후 efi쉘로 들어가서 두번째로 부팅할 디스크를 만드는 것이 있는 것으로 알고 있는데..언뜻 생각만 날 뿐 순차적인 순서를 몰라서요...efi에서 첫번째 디스크를 선택하지 않고 두번째 디스크를 선택해서 부팅되는지 테스트를 위함입니다.

그럼..수고요...

ps(hquiri@paran.com)
2 응답 2
김병수
본과생

rx장비 미러 후 확인하는 방법...

mirror설정하는 방법입니다.



EFI shell에서 작업하지 마시고, setboot 명령어로 alternate boot patch를 지정하시면 됩니다.



Mirror the Root-Disk on Itanium Systems





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

Assume that the primary disk is at c2t0d0 and secondary disk is at

c2t1d0.









1. Use vi to create a partition description file by doing the following:



# vi /tmp/partitionfile



For HPUX < 11.23 the 3 line entry should look like this:



2

EFI 100MB

HPUX 100%



For HPUX 11.23 or later the 4 lines should look like this:



3

EFI 500MB

HPUX 100%

HPSP 400MB



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



# idisk -wf /tmp/partitionfile /dev/rdsk/c2t1d0



3. Use insf to create the new device dfiles (c2t1d0s1 and c2t1d0s2)



# insf -e



4. pvcreate the new subpartition - make sure specify s2 !



# pvcreate -B /dev/rdsk/c2t1d0s2



5. Use mkboot to format and populate the newly created EFI partition:



# mkboot -e -l /dev/dsk/c2t1d0



6. Extend vg to include new disk sub-partition s2.



# vgextend /dev/vg00 /dev/dsk/c2t1d0s2



7. extend lvols to new sub-partition on the disk



# lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t1d0s2

.... lvextend -m 1 (additional LV)...



8. update lvol boot paths



# lvlnboot -r /dev/vg00/lvol3 /dev/vg00

# lvlnboot -b /dev/vg00/lvol1 /dev/vg00

# lvlnboot -s /dev/vg00/lvol2 /dev/vg00

# lvlnboot -d /dev/vg00/lvol2 /dev/vg00



9. Use efi_ls to confirm that the EFI partition is present and populated on the

new disk:



# efi_ls -d /dev/rdsk/c2t1d0s1



10. edit the AUTO file so we can boot when one disk is missing:



# efi_cp -d /dev/rdsk/c2t0d0s1 -u /EFI/HPUX/AUTO /tmp/AUTO



# vi /tmp/AUTO

modify "boot vmunix" to "boot vmunix -lq"



then put back the file 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



11. set the alternate EFI Bootpath to the mirrored disk



# setboot -a HW-path to the mirrored disk





12. Test booting from each drive.



그럼~~
고광태
중학생

rx장비 미러 후 확인하는 방법...

미러된 디스크로 테스트 하려면 ...



Create a new EFI boot option.



9. Reboot and select the EFI "Boot Option Maint menu" --> "Add a

boot Option", then select the correct disk. Select "EFI" -->

"HPUX" --> "HPUX.efi". Then name the entry to either

"HP-UX Primary boot" or "HP-UX alternate boot".





Selecting the mirror disk. Example,

(Pun1,Lun0) represents SCSI target 1, Lun 0 (cXt1d0):

(Pun2,Lun0) represents SCSI target 2, Lun 0 (cXt2d0):

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

EFI Boot Maintenance Manager ver 1.10



Add a Boot Option. Select a Volume



IA64_EFI [Acpi(HWP0002,100)/Pci(1|0)/

Scsi(Pun1,Lun0)/HD(Part1,SigB45A0000)

IA64_EFI [Acpi(HWP0002,100)/Pci(1|1)/

Scsi(Pun2,Lun0)/HD(Part1,Sig958B0000)



10. If required select "Change boot order" to manage the boot

order. For example, "HP-UX Primary boot" should be on the

top, followed by the "HP-UX alternate boot" boot option.





E) VERIFY YOUR WORK!!!



11. Manually boot the system using each boot option.



12. Run the following command after booting HP-UX.



# lvlnboot -v (to verify both disks are setup as bootable)

# vgdisplay -v vg00 (Each LV should be "SYNCd" and "Used PV =

2")