Browsing articles tagged with "ubuntu10.04 - Admins Goodies"
Jan 18, 2013
tom

Errno::ENOSPC: No space left on device in Ruby on Rails

Iam hosting a Ruby on Rails Application on a Linode with 96 GB storage. All the images of my application are stored on amazon and they are fetched from amazon. Thus my linode should have a minimum of 80 GB storage free. But when the log files of the application exceed 200 Mb I get the error: Errno::ENOSPC: No space left on device and my website goes down. I enabled log rotation for my application [...]

Continue Reading »
Oct 7, 2012
tom

Separation of memory oriented process and CPU oriented process

I am develops guy working for an e-commerce company I am running my e-commerce application built using ruby on rails spree commerce. I am presently running 2 medium instances in the production. One is a high memory instance which has 3.8 RAM and single Core CPU and another one is high CPU instance which has Dual Core CPU. Basically AWS calls it has m1.medium and c1.medium instance respectively. My question is it possible to separate [...]

Continue Reading »
Oct 2, 2012
tom

A specific user is unable to log in to vsftpd

I am setting up a new user let his name be ftpguy. He has access to only one directory /var/www/xxx. I have already chowned the directory so that he has write and read privileges. The user is also unable to login via ssh as I have disabled that by changing his shell to /sbin/nologin. Also, in vsftpd config, I have enabled the chroot_local_user. Now whenever I log in from ftp, i get an auth error. [...]

Continue Reading »
Sep 17, 2012
tom

Ubuntu, program currently not installed

I have Ubuntu 10.04.4. I downloaded and installed scala (.tgz archive), unpacked into /opt, set rights for read and execute in bin for all users. Also updated PATH in /etc/environment When I run program just with scala command, though name is autocompleted it is not run: root@ubuntu:/home/user# scala The program ‘scala’ is currently not installed. You can install it by typing: apt-get install scala But if I use full path to executable it works. Executables [...]

Continue Reading »
Aug 27, 2012
tom

Where to find the terminal logs in Mysql

I connect to mysql client using the command mysql -uroot -p And I execute queries there. If I press the up arrow, i could see the history of almost all the queries there. Where will this query log be stored. I found a log file under /var/log/mysql/mysql.log and I indeed see some logging happening there. But it has queries from other users as well. However, I only need queries executed by the specific user (root [...]

Continue Reading »
Aug 21, 2012
tom

Linux I/O bottleneck with data-movers

I have a 24 core machine with 94.6GiB RAM running Ubuntu server 10.04. The box is experiencing high %iowait, unlike another server we have (4 cores) running the same types and amounts of processes. Both machines are connected to a VNX Raid fileserver, the 24-core machine via 4 FC cards, and the other via 2 gigabit ethernet cards. The 4-core machine currently outperforms the 24-core machine, has higher CPU usage and lower %iowait. In 9 [...]

Continue Reading »
Jun 30, 2012
tom

Configuring vlans on Cisco SG200 series switch with Ubuntu server

I created a vlan on Ubuntu with vconfig tool with 21 as id and eth1 as the host port. I connected eth1 to one of the ports on the swtich (GE23) as all ports trunk by default. In the webgui I created a vlan named test with the id 21 and I made GE2 are port as an access port. In port to vlan mapping I selected vlan 21 and added it port GE2 by [...]

Continue Reading »
Jun 15, 2012
tom

SNMP Extend not working

I’ve got a server running Postgresql 9.1 replication. I wrote a script which prints out the current replication lag (master inserts a unix timestamp every 60s, and the slave compares it to the current timestamp). I’ve added extend replag /usr/local/bin/check_lag_quietly.sh to snmpd.conf, and restarted the snmpd service, but when I snmpwalk the host, either from localhost, or from another machine on the network, I can see all of the other OIDs, but not this one. [...]

Continue Reading »
Jun 10, 2012
tom

How do I enable swap file on my server?

I’ve followed this but when I run:- #swapon /swapfile1 I get::- swapon: /swapfile1: swapon failed: Operation not permitted The system is extremely slow with 1GB of RAM trying to run GUI + applications + FreeNX server. Any help is highly appreciated. Asked by wajed Swapfiles are only supported on some openvz setups, and disabled on purpose by some admins so you cant use up much more resources than you’ve been alocated. You probably need to [...]

Continue Reading »
Jun 7, 2012
tom

Haproxy mysql failover load balancing

I have setup mysql master-master replication and now I am trying to load balance mysql servers with Haproxy. Load balancer: 192.168.1.5 mysql1: 192.168.1.7 mysql2: 192.168.1.8 The below haproxy configuration is working fine and it’s rotating nodes like roundrobin. # this config needs haproxy-1.1.28 or haproxy-1.2.1global log 127.0.0.1 local0 log 127.0.0.1 local1 notice #log loghost local0 info maxconn 4096 #chroot /usr/share/haproxy chroot /etc/haproxy user haproxy group haproxy pidfile /var/run/haproxy.pid daemon #debug #quietdefaults log global #mode http [...]

Continue Reading »
Pages:1234567...29»