Important files of Active Directory.
Active Directory Database is stored in %systemroot%\NTDS\
the DB file is ntds.dit
The files in this directory, and what they do;
1:ntds.dit : this is the main database file for active directory.
2:edb.log : When a transaction is performed to AD database, it will be stored to this file, and then after it will be sent to the Database
3:res1.log : Used as a reserved free space, in case of disk low space, default size is 10MB.
4:res2.log : Same of the above.
5:edb.chk : Records transactions committed to the AD database. During shutdown, "shutdown statement" is written to this file, if it is not found during system startup the AD database checks the edb.log for updated information.
Ntdsutil: tool that can verify database integrity
.
Monday, July 26, 2010
Tuesday, June 29, 2010
Linux - Tools to view disk activity
Here are some tools to find out what process is "eating" your resources:
.
- iotop
- vmstat
- lsof
- atop
- strace -e trace=open "aplication"
.
Friday, June 25, 2010
HAproxy - LoadBalancer - Simple config
I'm testing HAproxy, here is my first simple configuration:
- 1 haproxy server -> Serving 2 backend webservers
Config file: haproxy.cfg
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
#log loghost local0 info
maxconn 4096
#nbproc 2
#chroot /usr/share/haproxy
user haproxy
group haproxy
daemon
#debug
#quiet
defaults
log global
mode http
option httplog
option dontlognull
retries 3
option redispatch
maxconn 2000
contimeout 5000
clitimeout 50000
srvtimeout 50000
listen webfarm 0.0.0.0:80
cookie SERVERID insert indirect nocache
balance roundrobin
server moss1 10.30.1.61:80 cookie check inter 2000 rise 2 fall 5
server moss2 10.30.1.62:80 cookie check inter 2000 rise 2 fall 5
listen admin_stats 0.0.0.0:81
mode http
stats uri /my_stats
stats realm Global\ statistics
stats auth username:password
#errorloc 502 http://192.168.114.58/error502.html
#errorfile 503 /etc/haproxy/errors/503.http
errorfile 400 /etc/haproxy/errors/400.http
errorfile 403 /etc/haproxy/errors/403.http
errorfile 408 /etc/haproxy/errors/408.http
errorfile 500 /etc/haproxy/errors/500.http
errorfile 502 /etc/haproxy/errors/502.http
errorfile 503 /etc/haproxy/errors/503.http
errorfile 504 /etc/haproxy/errors/504.http
To access haproxy stats:
http://webfarm:81/my_stats
It's working nice, i have to continue tests and try more configuration settings.
.
- 1 haproxy server -> Serving 2 backend webservers
Request ---> haproxy:80 ---refered as "webfarm"
|
/ \
moss1 moss2Config file: haproxy.cfg
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
#log loghost local0 info
maxconn 4096
#nbproc 2
#chroot /usr/share/haproxy
user haproxy
group haproxy
daemon
#debug
#quiet
defaults
log global
mode http
option httplog
option dontlognull
retries 3
option redispatch
maxconn 2000
contimeout 5000
clitimeout 50000
srvtimeout 50000
listen webfarm 0.0.0.0:80
cookie SERVERID insert indirect nocache
balance roundrobin
server moss1 10.30.1.61:80 cookie check inter 2000 rise 2 fall 5
server moss2 10.30.1.62:80 cookie check inter 2000 rise 2 fall 5
listen admin_stats 0.0.0.0:81
mode http
stats uri /my_stats
stats realm Global\ statistics
stats auth username:password
#errorloc 502 http://192.168.114.58/error502.html
#errorfile 503 /etc/haproxy/errors/503.http
errorfile 400 /etc/haproxy/errors/400.http
errorfile 403 /etc/haproxy/errors/403.http
errorfile 408 /etc/haproxy/errors/408.http
errorfile 500 /etc/haproxy/errors/500.http
errorfile 502 /etc/haproxy/errors/502.http
errorfile 503 /etc/haproxy/errors/503.http
errorfile 504 /etc/haproxy/errors/504.http
To access haproxy stats:
http://webfarm:81/my_stats
It's working nice, i have to continue tests and try more configuration settings.
.
Labels:
haproxy,
Linux,
Linux Debian,
Linux Tips,
loadbalance,
reverse-proxy
Wednesday, June 2, 2010
Ubuntu 10.04 - tips - boot in graphic mode
I'm trying Ubuntu (finaly...i wasn't a big fan...but it's growing :)
I installed Lucid Lynx, desktop version, but i'm using it as my second workstation, so i wanted to "tweak it" a little bit.
To boot in text mode, i did some search and found that Ubuntu desktop is configured to work in graphic mode in almost every runlevel
So we can config grub to boot in text mode:
edit /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
add "text"
to the options.
And i also stopped some services:
/etc/rc2.d/
# mv S70bluetooth K70bluetooth
I must confess that the package management of debian based systems is the best (in my humble opinion)
I'm very impressed with "apt-get" ;)
.
Subscribe to:
Posts (Atom)