lvs -av
dmsetup info -c dmsetup table dmsetup status
pvmove --abort
As title, It is a memo of my daily work, it won't be very detail but enough to retrieve what I have to.
lvs -av
dmsetup info -c dmsetup table dmsetup status
pvmove --abort
source s_sys {
udp(ip(0.0.0.0) port(514));
};
filter f_router { facility(local3); };
###ROUTER IP###
filter f_A { host("1.1.1.1"); };
filter f_B { host("2.2.2.2"); };
filter f_C { host("3.3.3.3"); };
###UNKNOWN ROUTER###
filter f_unknown { not ( filter(f_A)
or filter(f_B)
or filter(f_C) ); };
###LOG FILE LOCATIOM###
destination A { file("/var/www/netlog/A.log" perm(0644) sync(10) ); };
destination B { file("/var/www/netlog/B.log" perm(0644) sync(20) ); };
destination C { file("/var/www/netlog/C.log" perm(0644) sync(20) ); };
destination unknown { file("/var/www/netlog/unknown.log" perm(0644) sync(10) ); };
###LOG SETTING###
log { source(s_sys); filter(f_router); filter(f_A); destination(A); };
log { source(s_sys); filter(f_router); filter(f_B); destination(B); };
log { source(s_sys); filter(f_router); filter(f_C); destination(C); };
log { source(s_sys); filter(f_router); filter(f_unknown); destination(unknown); };
Alias /netlog /var/www/netlog
<Location /netlog>
Options Indexes Includes FollowSymLinks SymLinksifOwnerMatch MultiViews
Order deny,allow
Deny from all
Allow from 163.50
Allow from 172
Allow from 192
</Location>
/var/www/netlog/*.log {
daily
notifempty
missingok
copytruncate
postrotate
/sbin/service syslog-ng reload > /dev/null 2>/dev/null || true
endscript
compress
}
logging facility local3
logging <server ip>