Archive for February, 2010

logrotate configured by mere mortals

Sunday, February 28th, 2010

This will provide a way to implement log file rotations by a non-privileged users using the standard Linux logrotate infrastructure. For our test case, we set up a log file that looks similar to a “normal” log file we may want to periodically roll over. howards@howards:~$ i=1 howards@howards:~$ while ; do echo $(date)... »

Posted in Linux | 1 Comment »

memset example

Thursday, February 11th, 2010

This is just a quick note so I don’t forget. On linux, you can run what is below to actually *allocate* memory. If you don’t run a memset, the memory will not show as being used in the OS. int main() { int i = 1; while(i++ < 10) { ... »

Posted in Linux | 1 Comment »

VIP migrations

Thursday, February 11th, 2010

We start with a two node cluster with all components up. linux2:oracle:tst10g2:/home/oracle>./crsstat.ksh HA Resource                                   Target     State ———–                                   ——     —– ora.linux1.ASM1.asm                           ONLINE     ONLINE on linux1 ora.linux1.LISTENER_LINUX1.lsnr               ONLINE     ONLINE on linux1 ora.linux1.gsd                                ONLINE     ONLINE on linux1 ora.linux1.ons                                ONLINE     ONLINE on linux1 ora.linux1.vip                                ONLINE     ONLINE on linux1 ora.linux2.ASM2.asm                           ONLINE     ONLINE on linux2 ora.linux2.LISTENER_LINUX2.lsnr               ONLINE     ONLINE on linux2 ora.linux2.gsd                                ONLINE     ONLINE on linux2 ora.linux2.ons                                ONLINE     ONLINE on linux2 ora.linux2.vip                               ... »

Posted in Oracle, RAC | No Comments »

Switch to our mobile site