I have created this small DTrace script to monitor the file access on a ZFS file system (it does not work on other File Systems). It uses one single argument, the file you are going to monitor. It will print the DATE access, the process using the file, the operation over the file (Read/Write/Delete), the USER, and the PID.
It will work everytime some process do something over the monitored file. It monitors writes, reads and the delete of the file. It will even work if the file is accessed through a soft link.
I created this script because one of our customers detected a rare behaviour over the /var/adm/messages file and they wanted to monitor this file access somehow.
More info at:
http://blogs.corenetworks.es/2010/03/zfs-file-access-monitor-dtrace-script/
viernes, 12 de marzo de 2010
jueves, 27 de agosto de 2009
conntrack DTrace script: connections by process, user and port on Solaris/Opensolaris
I’ve created conntrack DTrace script for Solaris and Opensolaris to monitor all outgoing TCP and UDP connections by process, user and port.
It has some filtering capabilities allowing to filter traffic by port, process or user.
More info at: http://blogs.corenetworks.es/2009/08/conntrack-dtrace-script-connections-by-process-user-and-port-on-solaris-opensolaris/
/Sergio
It has some filtering capabilities allowing to filter traffic by port, process or user.
More info at: http://blogs.corenetworks.es/2009/08/conntrack-dtrace-script-connections-by-process-user-and-port-on-solaris-opensolaris/
/Sergio
sábado, 15 de agosto de 2009
Howto migrate from UFS to ZFS in a Sun Cluster 3.2 environment
In this howto we’ll review the migration process for the root (/) file system from UFS to ZFS with the difficulty of working in a possibly production cluster environment.
http://blogs.corenetworks.es/2009/08/howto-migrate-ufs-to-zfs-in-a-sun-cluster-3-2-environment/
/sergio
http://blogs.corenetworks.es/2009/08/howto-migrate-ufs-to-zfs-in-a-sun-cluster-3-2-environment/
/sergio
martes, 11 de agosto de 2009
Get TCP network statistics and KPIs in Opensolaris and Solaris 10: tcpKPI.d
I’ve created this DTrace script to get network KPIs (Key Performance Indicators):
http://blogs.corenetworks.es/2009/08/get-tcp-statistics-and-kpis-in-opensolaris-and-solaris-10-tcpkpi-d/
/Sergio
http://blogs.corenetworks.es/2009/08/get-tcp-statistics-and-kpis-in-opensolaris-and-solaris-10-tcpkpi-d/
/Sergio
Sun Cluster Disaster Recovery two-node cluster with Root on ZFS. Node cloning.
In this howto, we are going to recover a two node cluster using ZFS cloning techniques.
The scenario is:
* Two-node cluster with Sun Cluster 3.2u2
* Solaris 10 5/09
* One node is death (completely broken).
* One node is alive, still running in the cluster.
[...]
See more at:
http://blogs.corenetworks.es/2009/08/sun-cluster-disaster-recovery-two-node-cluster-with-root-on-zfs-node-cloning/
The scenario is:
* Two-node cluster with Sun Cluster 3.2u2
* Solaris 10 5/09
* One node is death (completely broken).
* One node is alive, still running in the cluster.
[...]
See more at:
http://blogs.corenetworks.es/2009/08/sun-cluster-disaster-recovery-two-node-cluster-with-root-on-zfs-node-cloning/
lunes, 10 de agosto de 2009
martes, 4 de agosto de 2009
Good blog about Opensolaris, Solaris and Java.
I've setup a wordpress webblog at http://blogs.corenetworks.es
All my posts will be in there.
Now: solaris0.blogspot.com --> http://blogs.corenetworks.es
All my posts will be in there.
Now: solaris0.blogspot.com --> http://blogs.corenetworks.es
Suscribirse a:
Entradas (Atom)