Hello, world ! Welcome to the weblog of Kristof Willen. This is the place where I publish some weird and interesting links I encountered during my dwellings in cyberspace. Apart from that, you can find some useful/useless information about myself.
Hello, world ! Welcome to the weblog of Kristof Willen. This is the place where I publish some weird and interesting links I encountered during my dwellings in cyberspace. Apart from that, you can find some useful/useless information about myself.
We all know that you can modify online certain attributes on AIX devices, like queue_depth on disks for example :
# chdev -l hdisk15 -a queue_depth=16
However, some attributes changes need a reboot as the device property is in use at that time. You can modify the property by specifying that it will be modified at boot time, with the 'chdev -P' option. This can lead to quite some confusion : imagine a junior sysadmin changing the property, but forgetting the reboot. The 'lsattr' command will report the modified value, but not if it is effectively in use.
We can obtain the currently used value by interrogating the AIX kernel with the kernel debugger, quite a handy feature.
The following command shows the current value of cmd_num_elems on the virtual fiber adapter :
echo vfcs fcs0 | kdb | grep num_cmd_elems
The following command lists the current values of the queue_depth parameter on hdisk15 :
# echo scsidisk hdisk3 |kdb |grep queue ushort queue_depth = 0x8;
All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest (c) 2001-2018 by me.