Yahoo! 360° News | Beta Feedback
Start your own Yahoo! 360° page

I am not afraid of tomorrow, for I have seen yesterday and I love today Reply

1 - 5 of 36 First | < Prev | Next > | Last

basil's blog .. Full Post View | List View

Hiyaoo..Thiz Basil ...just another human!

Xen Guest - Disk Extending

Adding Disk on Xen Guest :


To resize the disk space of a xen DomU that is using Logical Volume Manager(LVM) is very easy. Below is step by step on how to do the resizing process.

  1. Create a new image with the size that you require. Just give any meaningful name to the image. In this case I will use the name extended.img
    • # dd if=/dev/zero of=extended.img bs=1 count=1 seek=20G conv=notrunc
  2. Add the new image to the configuration file of your DomU. In this example, the name of the domU is xen0
    • # vi /etc/xen/xen0
    • Add these line to it
      • disk = [ 'tap:aio:/path/to/xen/xen0.img,xvda,w','file:/path/to/xen/extended.img,xvdb,w' ]
    • Save
  3. Start your domU
    • # xm create xen0
  4. Access your domU
    • # xm console xen0
  5. Once inside, check whether the new image is detected
    • # fdisk -lu
  6. After confirm that your new hard disk image is detected, it is time we have to work on the lvm
    • Create new physical volume (PV) using the new hard disk image
      • # pvcreate -v /dev/xvdb
    • Check that you have successfully added the PV
      • # pvdisplay
    • Extend your existing volume group (VG) to include the new PV
      • # vgextend -v VolGroup00 /dev/xvdb
    • Check that you have successfully add the PV into the VG
      • # vgdisplay
    • Extend your logical volume (LV)
      • # lvextend -L +20G -v /dev/VolGroup00/LogVol00
    • Check that the extension has been added
      • # lvdisplay
    • If all the steps are successfully done, you have to resize the / partition
      • # resize2fs /dev/mapper/VolGroup00-LogVol00
  7. You are done. Check your new hard disk space :)
    • # df -lh
Tags: xenguest, domu
Monday January 5, 2009 - 11:13pm (PST) Permanent Link | 0 Comments
PAE Kernel on Ubuntu 8
PAE Kernel on Ubuntu 8 magnify
PAE kernel installation on Ubuntu machine

$ sudo apt-get update
$ sudo sudo apt-get install linux-headers-server linux-image-server linux-server

$ sudo reboot

$ free -m


From Wiki:

http://en.wikipedia.org/wiki/Physical_Address_Extension

In computing, Physical Address Extension (PAE) refers to a feature of x86 and x86-64[1] of physical memory to be used in 32-bitoperating system support. PAE is provided by Intel Pentium ProCPUs (including all later Pentium-series processors except the 400 MHz bus versions of the Pentium M), as well as by some compatible processors such as the Athlon and later models from AMD. processors that allows more than 4 Gigabytes systems, given appropriate and above
Tags: pae, kernel, ubuntu
Tuesday December 30, 2008 - 12:55pm (PST) Permanent Link | 0 Comments
MySQL: 5.0.45-Debian_1ubuntu3
MySQL: 5.0.45-Debian_1ubuntu3 magnify
MySQL: 5.0.45-Debian_1ubuntu3



I have faced a strange issue on _1ubuntu3. The server was failing to listen on the allocated IP address eventhough it was listening on Localhost.

root@blackroot:~# telnet localhost 3306
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
H
5.0.45-Debian_1ubuntu3-logMJk]m1FO,9nB;@q;pA6*m^]
telnet> quit

[root@blackroot~]# telnet 192.168.5.10 3306
Trying 192.168.5.10...
telnet: connect to address 192.168.5.10: Connection refused
telnet: Unable to connect to remote host: Connection refused
[root@blackroot ~]#

After few minutes of investigation on system/network settings and firewall I had noticed a configuration on my.cnf which was blocking the connection to the IP address.

root@blackroot:/etc/mysql# grep bind-address my.cnf
bind-address = 127.0.0.1
root@blackroot:/etc/mysql#

Commented the line and restarted mysql. Bing... the machine started listening on IP address.
Yup..its a security feature but it killed my time.

root@blackroot:/etc/mysql# grep bind-address my.cnf
#bind-address = 127.0.0.1
root@blackroot:/etc/mysql#



Tags: ubuntu8.04, mysql5.0.45-debian_1ubuntu3, mysqlconnectionproblem
Friday September 26, 2008 - 02:53pm (PDT) Permanent Link | 0 Comments
Smokeping
Smokeping magnify
SMOKE PING



For Debian/Ubuntu system it is more than easy to configure a Smokeping
http://www.howtoforge.com/monitoring_network_latency_smokeping_debian_etch

Big thanks to the Opensource devels Tobi Oetiker and Niko Tyni for this awsome project. The tools associated with smokeping are fping and rrd tool.

Installation/Configuration on CentOS/Redhat Based machines:




rrdtool


yum install rrdtool
perl-CGI-SpeedyCGI


yum install perl-CGI-SpeedyCGI

If not available on the yum repository, manually push it by downloading the rpm.
http://dag.wieers.com/rpm/packages/perl-CGI-SpeedyCGI/
FPING


yum install fping
Smokeping


wget http://oss.oetiker.ch/smokeping/pub/smokeping-2.4.2.tar.gz
tar xvzf smokeping-2.4.2.tar.gz
mv smokeping-2.4.2 /usr/local/smokeping

chown -R root:root /usr/local/smokeping

(DON'T worry about the error "chown: cannot dereference `/usr/local/smokeping/qooxdoo/qooxdoolink': No such file or directory)

Copy and create new Configuration Files from the sample




cd /usr/local/smokeping/bin
for foo in *.dist; do cp $foo `basename $foo .dist`; done

cd /usr/local/smokeping/etc/
for foo in *.dist; do cp $foo `basename $foo .dist`; done

cd /usr/local/smokeping/htdocs
for foo in *.dist; do cp $foo `basename $foo .dist`; done

pico /usr/local/smokeping/bin/smokeping



Default New
#!/usr/sepp/bin/perl-5.8.4 -w #!/usr/bin/perl -w






or if a i386 system use
use libAdd a Link qw(/usr/pack/rrdtool-1.0.49-to/lib/perl); use lib qw(/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/auto/RRDs);
use lib qw(lib); use lib qw(/usr/local/smokeping/lib);




use Smokeping 2.000008;




Smokeping::main("etc/config.dist"); Smokeping::main("/usr/local/smokeping/etc/config");

pico /usr/local/smokeping/htdocs/smokeping.cgi



Default New
#!/usr/sepp/bin/speedy -w #!/usr/bin/speedy -w





use lib qw(/usr/pack/rrdtool-1.0.33-to/lib/perl); use lib qw(/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/RRDs);
or if a i386 system use
use lib qw(/usr/pack/rrdtool-1.0.49-to/lib/perl); use lib qw(/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/auto/RRDs);
use lib qw(/home/oetiker/data/projects/AADJ-smokeping/dist/lib); use lib qw(/usr/local/smokeping/lib);
use CGI::Carp qw(fatalsToBrowser);





use Smokeping 2.000008;





Smokeping::cgi("/home/oetiker/data/projects/AADJ-smokeping/dist/etc/config"); Smokeping::cgi("/usr/local/smokeping/etc/config");

cp /usr/local/smokeping/htdocs/smokeping.cgi /var/www/cgi-bin

pico /usr/local/smokeping/etc/config

etc/config



*** General ***
Default New
owner = Joe Random owner = Basil
contact = joe@some.place.xyz contact = basil@mindmatrix.in
mailhost = smtp.mailhost.abc mailhost =smtp.minmatrix
sendmail = /usr/lib/sendmail
imgcache = /home/oetiker/public_html/.simg imgcache = /var/www/html/smokeping/img
imgurl = ../.simg imgurl = http:///smokeping/img
datadir = /home/oetiker/data/projects/AADJ-smokeping/dist/var datadir = /usr/local/smokeping/var
piddir = /home/oetiker/data/projects/AADJ-smokeping/dist/var piddir = /usr/local/smokeping/var
cgiurl = http://people.ee.ethz.ch/~oetiker/smokeping/smokeping.cgi cgiurl = http:///cgi-bin/smokeping.cgi
smokemail = /home/oetiker/data/projects/AADJ-smokeping/dist/etc/smokemail.dist smokemail = /usr/local/smokeping/etc/smokemail
tmail = /home/oetiker/data/projects/AADJ-smokeping/dist/etc/tmail.dist tmail = /usr/local/smokeping/etc/tmail




syslogfacility = local0

*** Alerts ***

to = to = me@your.place
from = smokealert@ from = smokealert@your.smoke.server

*** Presentation ***

template = /home/oetiker/data/projects/AADJ-smokeping/dist/etc/basepage.html.dist template = /usr/local/smokeping/etc/basepage.html

*** Probes ***

binary = /usr/sepp/bin/fping binary = /usr/sbin/fping

*** Targets ***

+ World
menu = World Connectivity
title= World Connectivity




++ INTERNET
menu = INTERNET
title = INTERNET




+++ GOOGLE
menu = GOOGLE
title = GOOGLE.COM
host = www.google.com


Add The Img and PID directory and Change the Permission:




mkdir -p /var/www/html/smokeping/img
chown -R apache:apache /var/www/html/smokeping/img
mkdir /usr/local/smokeping/var
/usr/local/smokeping/bin/smokeping &

Add to rc.local to enable it in Startup.




Tags: smokeping, monitoring, latency, linux
Friday September 19, 2008 - 02:15pm (PDT) Permanent Link | 0 Comments
Entry for September 14, 2008
Yeah...spoiled one more summer weekend.
Here in my current location half of the year will be winter with snow and all lazy people like me always under blanket or trying some new drinks..
But some people used to do different stuffs in summer time (except me ;) ). Here I will be pocking around my old T60 and roaming around the internet. Hardly I used to see Sun nowadays....
I don't know whether I am a making a virtual universe in my small room.

Hmm...something good happened today early morning. A spark started from a speech from vivekananda in Youtube. Now trying hear more and more about him.. I am feeling something magical from his words..Its not only inspirational...but it will make you think ..think and think..

Let me think guys..will blog more soon!!

Sunday September 14, 2008 - 03:19pm (PDT) Permanent Link | 0 Comments

Add basil's blog .. to your personalized My Yahoo! page:

Add to My Yahoo!RSS About My Yahoo! & RSS
1 - 5 of 36 First | < Prev | Next > | Last