::: SYSTEM :::/└ ::: HPUX :::

IA Server HPUX 11.23 미러 구성

호딩이 2007. 1. 10. 17:32

IA Server HPUX 11.23 미러 구성방법

1.       partition file을 만들기.(임의의 파일 이름 사용)

# vi /tmp/partition_file

             3

          EFI 500MB

          HPUX 100%

          HPSP 400MB

* 11.22에서는 partition 2, 11.23 partition 3(Service partition s3 추가됨)

    11.22의 경우: # vi /tmp/partition_file

             2

             EFI 100MB

             HPUX 100%

2.       Partition file을 이용하여 IPF disk를 위한 partition을 만든다.

# idisk -wf /tmp/partition_mirror  /dev/rdsk/c4t6d0

idisk version: 1.31

********************** WARNING ***********************

If you continue you may destroy all data on this disk.

Do you wish to continue(yes/no)? yes

3.       insf 이용하여 partition device file을 만들기

# insf -eC disk

insf: Installing special files for sdisk instance 0 address 0/0/0/3/0.6.0

insf: Installing special files for sdisk instance 1 address 1/0/0/3/0.6.0

insf: Installing special files for sdisk instance 2 address 1/0/0/3/1.2.0

            .

# ioscan fnkCdisk partition device file 생성 확인

Class     I  H/W Path       Driver S/W State   H/W Type     Description

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

disk      0  0/0/0/3/0.6.0  sdisk CLAIMED     DEVICE       HP 73.4GMAS3735NC

                          /dev/dsk/c0t6d0     /dev/rdsk/c0t6d0 

                          /dev/dsk/c0t6d0s1   /dev/rdsk/c0t6d0s1

                          /dev/dsk/c0t6d0s2   /dev/rdsk/c0t6d0s2

                          /dev/dsk/c0t6d0s3   /dev/rdsk/c0t6d0s3

disk      1  1/0/0/3/0.6.0  sdisk CLAIMED     DEVICE       HP 73.4GMAS3735NC

                          /dev/dsk/c4t6d0     /dev/rdsk/c4t6d0 

                          /dev/dsk/c4t6d0s1   /dev/rdsk/c4t6d0s1

/dev/dsk/c4t6d0s2   /dev/rdsk/c4t6d0s2

/dev/dsk/c4t6d0s3   /dev/rdsk/c4t6d0s3

disk      2  1/0/0/3/1.2.0  sdisk CLAIMED     DEVICE       HP      DVD-ROM 305

/dev/dsk/c5t2d0   /dev/rdsk/c5t2d0

4.       EFI partition의 초기화 (이미 valid EFI partition을 가지고 있으면 생략 가능)

# efi_fsinit d /dev/rdsk/c4t6d0s1

5.       Mirrored disk EFI partition mkboot를 이용하여 format 한다.

(-e: create IA64(EFI) boot disk,  -l: create device as on LVM physical volume)

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

6.       efi_ls이용하여 Mirrored disk EFI partition(s1)을 확인

# efi_ls -d /dev/rdsk/c4t6d0s1

FileName                             Last Modified             Size

EFI/                                   6/17/2004                  0

STARTUP.NSH                        6/17/2004                296

total space 103215616 bytes, free space 100111360 bytes

7.       lifls이용하여 HPUX partition(s2) 상태 확인

# lifls -l /dev/rdsk/c4t6d0s2

8.     AUTO filelq option 추가

# mkboot -a "boot vmunix -lq" /dev/rdsk/c4t6d0

      # mkboot -a "boot vmunix -lq" /dev/rdsk/c6t6d0

9.     AUTO file 확인

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

# cat /tmp/AUTO

10.   Service partition(s3) image copy 하기

# dd if=/dev/rdsk/c0t6d0s3 of=/dev/rdsk/c4t6d0s3 bs=1024k

11.   pvcreate 명령을 이용하여 sub partition(s2) Bootable PV 영역을 만든다.

# pvcreate -B /dev/rdsk/c4t6d0s2

Physical volume "/dev/rdsk/c4t6d0s2" has been successfully created.

12.   vgextend 명령을 이용하여 mirrored disk(s2) extend 한다.

# vgextend vg00 /dev/dsk/c4t6d0s2

vgextend: Warning: Max_PE_per_PV for the volume group (4328) too small for this

PV (4369).

        Using only 4328 PEs from this physical volume.

Volume group "vg00" has been successfully extended.

Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

13.   Mirrored disk lvol extend 한다.

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

# lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c4t6d0s2

# lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c4t6d0s2

# lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c4t6d0s2

…….

14.   lvlnboot을 이용하여 root, boot, swap, dump를 지정한다.

# lvlnboot -b /dev/vg00/lvol1

Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.con

f

# lvlnboot -r /dev/vg00/lvol3

Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.con

f

# lvlnboot -s /dev/vg00/lvol2

Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.con

f

# lvlnboot -d /dev/vg00/lvol2

Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

15.   lvlnboot으로 확인

# lvlnboot -v

Boot Definitions for Volume Group /dev/vg00:

Physical Volumes belonging in Root Volume Group:

       /dev/dsk/c0t6d0s2 (0/0/0/3/0.6.0) -- Boot Disk

       /dev/dsk/c4t6d0s2 (1/0/0/3/0.6.0) -- Boot Disk

Boot: lvol1     on:     /dev/dsk/c0t6d0s2

                       /dev/dsk/c4t6d0s2

Root: lvol3     on:     /dev/dsk/c0t6d0s2

                       /dev/dsk/c4t6d0s2

Swap: lvol2     on:     /dev/dsk/c0t6d0s2

                       /dev/dsk/c4t6d0s2

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

16.   EFI Menu Mirrored disk Alternate Boot Path HA path로 등록하기

# setboot -a 1/0/3/0/0.6.0

          # setboot -h 1/0/3/0/0.6.0

          # setboot으로 확인

           * 11.23의 경우 자동으로 EFI menu에 등록되며 11.22경우: EFI Menu에서 수동 등록 해야 한다.

17.   Mirrored disk를 이용하여 booting test하기

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

참고) Partition 정보를 삭제하고 다시 idisk를 수행하기 위해서는

            # pvcreate f /dev/rdsk/c4t6d0 수행