258 reputation
15
bio website
location Ireland
age
visits member for 3 years, 8 months
seen Aug 24 at 13:52

Jul
12
comment What do these disk errors in syslog mean?
Even if you have no RAID, you should be monitoring SMART data for all your disks.
Jul
12
comment What do these disk errors in syslog mean?
Right - the SMART data may also tell you how many sectors were reallocated already.
Jun
10
comment Suspected brute force attack
Start by disabling all the remotely-accessible services you don't need right now. You can always re-enable them in the future if you need them.
May
27
comment How do I delete everything in the /tmp/ folder?
This is a bad idea, because it's a security hole. Someone could have created a file with a ; in its name, for example.
May
27
comment Reverse DNS doesn't work - NXDOMAIN
+1. Good additional info!
May
26
comment How should I setup email log notifications on Debian server
First you should tweak /etc/syslog.conf (or /etc/rsyslog.conf, whatever) to put debug (and probably also info and perhaps notice) messages only into a file which logwatch won't read.
May
26
comment What is the best practice for mounting storage drives
These days people often put that stuff below /srv/.
May
14
comment can't update ubuntu, unreachable repositories
Use the host command to do name lookups of the hostname (not URL!) specifying the nameserver's IP address as the second argument of the host command (e.g. time host archive.ubuntu.com 8.8.8.8). Figure out how the time this takes depends on which IP address you specified for the nameserver. If your gateway is the only DNS server which is slow to complete a successful lookup, it's very likely that one of the DNS servers configured there (in BIND's named.conf file) is incorrect or unreachable (double check with host again).
Mar
22
comment Getting at fsid under Linux? Or an alternate way of identifying filesystems?
st_dev customarily uniquely identifies a device but is not required to do so. For example some POSIX-like implementations set st_dev=-1 for all NFS filesystems. To be certain you need to use the combination of st_dev and the st_ino value of the top directory in the filesystem. And that is just what mountpoint is doing. Also bear in mind that these techniques do not work for AFS.
Mar
22
comment What is the best way to help stop DOS attacks
When blocking by IP address, bear in mind that the attacker may know you will do this, and in fact the purpose of the attack is to deny your service to the other people who need to use the same proxy.
Mar
22
comment Having my server ping google.com prevents it from freezing a few hours after logging out
What happens if you leave a process running, pinging another host periodically? That will keep the networking stack ticking over without leaving a network connection open. The idea here is to narrow things down by changing only some of the variables. Also, you could just try asking the hosting folks to move your disks to some entirely different hardware instance to see if the problem follows the hardware or follows the OS install.
Mar
5
comment automount stops working due to hanging mount.nfs processes that leave /etc/mtab~ lock file
In that case I would fall back on generic troubleshooting; for example running the system call tracer on automountd to find out why it appears to be stuck.
Mar
4
comment news portal caching system
After reading this I'm still not sure what specifically you need an answer to. Perhaps you could elaborate, including some options you are considering.
Mar
3
comment automount stops working due to hanging mount.nfs processes that leave /etc/mtab~ lock file
The number suffixes are almost certainly PIDs. So you know the PID of the stuck mountd, probably. Try running a system call tracer on them to find out what's up with them.
Feb
28
comment Using `find` to delete
If you take this approach, watch out for the race condition. That is, the possibility that the contents of the filesystem changes in between the two commands. Also the fact that in the first command line, the -depth option is not in effect, while it is in the second (becasue it is implicity tuend on by -delete).