* Itanium서버에서 root disk 미러 하기(HP-UX)
- primary disk: c20t0d0
- new mirror disk : c21t2d0
1. disk partition 설정 (idisk command사용)
# vi /tmp/partitionfile 을 아래와 같이 만든다.
3
EFI 500MB
HPUX 100%
HPSP 400MB
# idisk -w -p -f /tmp/partitionfile /dev/rdsk/c21t2d0
2. 새로운 partition을 위하여 새로운 device파일 생성
# insf -e -Cdisk
3. EFI partition에 FAT 파일시스템을 초기화하기 위해 efi_fsinit 실행.
# efi_fsinit -d /dev/rdsk/c21t2d0s1
-> write an EFI file system header on a device file
(Before any other EFI commands can be run, efi_fsinit must be run to initialize
the file system on a device file.)
4. EFI partition을 format한후 확인.
# mkboot -e -l /dev/rdsk/c21t2d0
-> copy EFI utilities from /usr/lib/efi to the EFI partition on the disk
# efi_ls -d /dev/rdsk/c21t2d0s1
-> EFI 확인 (List a root directory of device file c2t8d0s1
, which contains an EFI file system)
# lifls -l /dev/rdsk/c21t2d0s2
-> LIF 확인 (list contents of a LIF directory in long format)
5. EFI partition에 있는 AUTO 파일 내용을 확인
# efi_cp -d /dev/rdsk/c21t2d0s1 -u /EFI/HPUX/AUTO /tmp/x
# cat /tmp/x
# mkboot -a "boot vmunix -lq" /dev/rdsk/c21t2d0
# mkboot -a "boot vmunix -lq" /dev/rdsk/c20t0d0
6. HP service partition복사(HPUX 11.23 only)
# dd if=/dev/rdsk/c20t0d0s3 of=/dev/rdsk/c21t2d0s3 bs=1024k
7. File system을 mirror함.
a) LVM을 사용할 경우
# pvcreate -f -B /dev/rdsk/c21t2d0s2
# vgextend vg00 /dev/dsk/c21t2d0s2
# for i in lvol1 lvol2 lvol3 (lvol수만큼)
> do lvextend -m 1 /dev/vg00/$i /dev/dsk/c2t8d0s2
> done
또는
# for i in $(vgdisplay -v vg00 | grep "LV Name" | awk '{ print $3 }')
> do lvextend -m 1 $i /dev/dsk/c21t2d0s2
> done
# lvlnboot -v
(# lvlnboot -r /dev/vg00/lvol3)
(# lvlnboot -b /dev/vg00/lvol1)
(# lvlnboot -s /dev/vg00/lvol2)
(# lvlnboot -d /dev/vg00/lvol2)
b) VxVM을 사용할 경우
# vxdctl enable
# vxdisk list
# /etc/vx/bin/vxrootmir -v c21t2d0s2
# vxprint -g rootdg
8. 미러된 disk를 alternate bootpath로 구성.
# setboot -a <alt hw_path>
# setboot -h <ha alt hw_path>
9. 미러된 disk로 booting이 되는지 확인한다.
댓글 없음:
댓글 쓰기