Friday, January 10, 2014

How to Enable Asynchronous I/O Disk HP-UX 11.11

To use async I/O with your Oracle, Sybase ... etc ...

a) From the SAM Kernel configuration menu, choose Drivers and set
the Pending State for asyncdisk to In.

b) From the Actions Menu rebuild the Kernel

c) At the Unix Prompt , execute the following statements as 'root'
# insf

you must have in your /dev

crw-rw-rw- 1 bin bin 101 0x000000 Jan 23 12:41 /dev/async
crw-rw-rw- 1 bin bin 101 0x000000 Jan 23 12:41 /dev/asyncdsk

if u don't have try:

#insf -e

...simple not??

Another way is doing manually... not dificult... supose you are doing it for oracle:

1. cd /stand/build

2. /usr/lbin/sysadm/system_prep -s system

3. vi /stand/build/system - add the following 2 lines: asyncdsk & asyncdsk_included

4. mk_kernel -s /stand/build/system

5. cp /stand/system /stand/system.prev

6. cp /stand/build/system /stand

7. kmupdate /stand/build/vmunix_test

8. cd /

9. shutdown -r -y now

10. after the system is reboot..

11. Use sam to change the value of the parameter max_async_port from 50 -> 1024 (static, you need reboot)

12. check that the driver is installed: lsdev | grep 101

101 -1 asyncdsk pseudo


13. mknod /dev/async c 101 0x000000

14. chown oracle:dba /dev/async (the special are created with crw-rw-rw- so you don't need perform that... it's your choice...)

15. chmod 660 /dev/async

16. vi /etc/privgroup - add 1 line:
dba MLOCK

17. run the command: setprivgrp -f /etc/privgroup

18. run the command: getprivgrp, and make sure that you can the following
output:

global prvileges: CHOWN
dba: MLOCK


19. make sure that the oracle team add the following parameter to the oracle
init files:

disk_asynch_io=true

Finaly you do rigth doing a little tests like...

*It's your driver reali loaded???
# kmadmin -k | grep async
asyncdsk_included
asyncdsk


*Are your privgroups directives correctly established a boot???

# grep /etc/privgroup /sbin/init.d/*
/sbin/init.d/set_prvgrp: if [ -f /etc/privgroup ]; then
/sbin/init.d/set_prvgrp: /usr/sbin/setprivgrp -f /etc/privgroup

No comments:

Post a Comment