본문 바로가기
HP-UX

[HP-UX] Kernel rebuild Procedure

by 레이루이 2008. 4. 30.
반응형

■ kernel을 rebuild 하는 경우에는 새로운 peripheral을 추가하는 경우, kernel tunable parameter를 변경하는 경우,

swap /dump/root의 configuration이 변경되는 경우 등

■ kernel을 rebuild 하기전에 system을 single user로 shutdown 시키고 file system을 mount한 후 작업

# shutdown

. . .

# mount -a

# cd /stand/build

# /usr/lbin/sysadm/system_prep -s system

# vi system

원하는 내용으로 수정

# /usr/sbin/mk_kernel -s system

# mv /stand/system /stand/system.prev

# mv /stand/vmunix /stand/vmunix.prev

# cp /stand/build/system /stand/system

# cp /stand/build/vmunix_test /stand/vmunix

# cd /

# sync; sync

# umount -a

# reboot -r

■ 새로 만든 kernel로 booting이 되지않는 경우 /stand/vmunix.prev로 booting

ISL> hpux boot (;0)/stand/vmunix.prev

반응형