Most Popular

1500 questions
45
votes
9 answers

Is it safe to use consumer MLC SSDs in a server?

We (and by we I mean Jeff) are looking into the possibility of using Consumer MLC SSD disks in our backup data center. We want to try to keep costs down and usable space up - so the Intel X25-E's are pretty much out at about 700$ each and 64GB of…
Zypher
  • 36,995
  • 5
  • 52
  • 95
45
votes
7 answers

How to determine the "age" of a linux system since installation?

I thought that I could easily check the timestamp of particular files. Then I realized that it wouldn't be so easy when I saw timestamps like 1991.
lisak
  • 637
  • 2
  • 7
  • 19
45
votes
5 answers

Can you help me with my software licensing issue?

This is a Canonical Question about Licensing. Questions on licensing are off-topic on Server Fault. If your question has been closed as a duplicate of this question, then this is because we want to help you understand why licence questions are…
Ben Pilbrow
  • 11,995
  • 5
  • 35
  • 57
45
votes
7 answers

Is it safe to have SQL Server auto-shrink turned on?

There are many SQL Server options that can be enabled for databases, and one of the most misunderstood ones is auto-shrink. Is it safe? If not, why not?
Paul Randal
  • 7,184
  • 1
  • 35
  • 45
45
votes
6 answers

Forwarding ports to guests in libvirt / KVM

How can I forward ports on a server running libvirt/KVM to specified ports on VM's, when using NAT? For example, the host has a public IP of 1.2.3.4. I want to forward port 80 to 10.0.0.1 and port 22 to 10.0.0.2. I assume I need to add iptables…
steveh7
  • 453
  • 1
  • 5
  • 4
45
votes
6 answers

Force SSH to use a specific shell

Is there any way to force SSH to use a particular shell on the remote end, regardless of what the user's default shell is? I've tried solutions akin to: ssh host.domain.com /bin/bash -c 'complicated, multi-line command' but unfortunately the…
plinehan
  • 595
  • 1
  • 4
  • 6
45
votes
2 answers

How to list all CNAME records for a given domain?

I cannot list them using dig/nslookup/host.
Paweł Gościcki
  • 1,100
  • 1
  • 15
  • 18
45
votes
5 answers

How can I tell which config file Apache is using?

I'm trying to set up virtual hosts on Mac OS X. I've been modifying httpd.conf and restarting the server, but haven't had any luck in getting it to work. Furthermore, I notice that it's not serving files in the DocumentRoot mentioned in httpd.conf…
Claudiu
  • 1,157
  • 5
  • 18
  • 27
45
votes
22 answers

PowerShell? Do you use it? Can you show me some cool system administration things I can do with it?

I keep reading everywhere that PowerShell is the way of the future. When it was first released I did a whole bunch of virtual labs, but since then I still haven't used it in a production environment. I know the day will come when I'm dealing with…
45
votes
3 answers

How can I get CPU count and total RAM from the OS X command line?

How can I get CPU count and total RAM from the OS X command line?
yazz.com
  • 6,743
  • 14
  • 37
  • 38
45
votes
10 answers

PostgreSQL Replication

We constantly bat this around the office, and the question continues to come up. How do you deal with PostgreSQL replication? I'm not even necessarily talking about advanced clusters, just keeping it simple with Master-Slave, Master-MultiSlave, and…
f4nt
  • 859
  • 10
  • 9
45
votes
3 answers

What is the maximum number of files a file system can contain?

Given the current structure of a directory entry on a ext4 file system on Ubuntu, what is the maximum number of files a file system can contain? What is the general method of calculating the maximum number of files a file system can contain?
user32678
44
votes
10 answers

Does CPU power management affect server performance?

I was doing some simple hand benchmarking on our (live) database server during non-peak hours, and I noticed that queries returned somewhat erratic benchmark results. I had enabled the "Balanced" power saving plan on all our servers a while ago,…
Jeff Atwood
  • 12,994
  • 20
  • 74
  • 92
44
votes
6 answers

IIS Log Request Body / POST Data

Does anyone know how I could get IIS to log POST data or the entire HTTP request?
Jim
44
votes
23 answers

Finding the Public IP address in a shell script

I can find my IP address using ifconfig or hostname -i command. But how do I find my Public IP? (I have a static public IP but I want to find it out using unix command)
shantanuo
  • 3,459
  • 8
  • 47
  • 64