Archive for January, 2011

Data Center Management InThe Cloud

Tuesday, January 18th, 2011

Data center automation is a hulking $14 billion segment of the enterprise IT industry dominated by hulking giants like IBM, HP (through its $1.6 billion Opsware acquisition), BMC (through its $800 million BladeLogic acquisition in 2008), and VMWare. Companies often have thousands of servers, both physical and virtual, that need to be managed, and on top of that they are trying to keep track of virtual machines on Amazon’s EC2 or Rackspace. A new enterprise startup called ScaleXtreme is tooling up to attack IT systems management from the cloud.

It is backed by Accel Partners, which took its entire $2.5 million series A round last August, and its two co-founders have some serious enterprise startup chops. CTO Balaji Srinivasa was the principal product architect for BladeLogic before it was sold to BMC. CEO Nand Mulchandani founded and sold several enterprise startups in the past (Oblix to Oracle, Determina to VMWare), and was also the CEO of OpenDNS and an EIR at Accel.

Full story

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Install rsync and lsyncd

Monday, January 17th, 2011

Next up is to install rsync and lsyncd.  First, rsync is simple, and could already be installed (you don’t need to run it as a server, just the client), make sure you have it with:

apt-get install rsync

Next is lsyncd.  There is no official Debian package yet, but it’s simple to build from source and install.  First off, if you don’t have build essentials you’ll need them, as well as libxml2-dev to build the lsyncd source.  Installing those is as simple as:

apt-get install libxml2-dev build-essential

Now we’ll get the lsyncd code (you can check for a newer version at http://lsyncd.googlecode.com) and build that:

wget http://lsyncd.googlecode.com/files/lsyncd-1.26.tar.gz
tar -zxf lsyncd-1.26.tar.gz
cd lsyncd-1.26
./configure
make; make install

This install does not install the configuration file, so we’ll do that manually now:

cp lsyncd.conf.xml /etc/
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Install OpenSSH server

Monday, January 17th, 2011

First you’ll need to install OpenSSH Server on the remote system:
apt-get install openssh-server
Configure SSH for Passwordless Logins

You’ll need to configure passwordless logins between the two hosts you want to use, this is how rsync will pass the files back and forth. I’ve previously written a HOWTO on this topic, so we’ll crib from there.

First, generate a key:

ssh-keygen -t rsa

UPDATE: actually, it’s easier to do it this way

ssh-keygen -N ” -f ~/.ssh/id_dsa

(Enter)

You shouldn’t have a key stored there yet, but if you do it will prompt you now; make sure you overwrite it.

Enter passphrase (empty for no passphrase):

(Enter)

Enter same passphrase again:

(Enter)

We’re not using passphrases so logins can be automated, this should only be done for scripts or applications that need this functionality, it’s not for logging into servers lazily, and it should not be done as root!

Now, replace REMOTE_SERVER with the hostname or IP that you’re going to call when you SSH to it, and copy the key over to the server:

cat ~/.ssh/id_rsa.pub | ssh REMOTE_SERVER ‘cat – >> ~/.ssh/authorized_keys2’

UPDATE: now you can use ssh-copy-id for this instead (hat tip briealeida)

ssh-copy-id REMOTE_SERVER

Set the permissions to a sane level:

ssh REMOTE_SERVER ‘chmod 700 .ssh’

Lastly, give it a go to see if it worked:

ssh REMOTE_SERVER

You should be dropped to a prompt on the remote server. If not you may need to redo your .ssh directory, so on both servers:

`mv ~/.ssh ~/.ssh-old`

and goto 10

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Call us at 801.384.0032