Tuesday, August 22, 2006

new video godmode - All my friends are gods

[download from the main page, and spread the news if you like it]

Read more at www.godmode.ro/news.htm...

Bug in apt (Ubuntu): “doesnt look like a cow”

[Have you moooed today , Or where do you want to moo today ]

Read more at launchpad.net/distros/u...

A Feast Of Friends - blog of the day .... Morrison

[No more money, no more fancy dressThis other kingdom seems by far the bestUntil its other jaw reveals incestAnd loose obedience to a vegetable law.]

Read more at www.metalhead.ro/index2...

iCoRy black T-SHIRT

[new t-shirt for me ... soon ]

Read more at icory.net/pictures/iCoR...

Monday, August 21, 2006

Rock moima

[ they want the gold we got the number , save moima]

Read more at fanfest.rosiamontana.ro...

Fan Fest 2006 - save rosiamontana.ro

[i want to go there to have an better voice against destruction (+1) They got the power we got the number ]

Read more at www.fanfest.ro/2k6/

Sunday, August 13, 2006

bush was very good for me :)
profitable for death

Monday, July 31, 2006

Breakbeat.ro - UK Business - ED Rush and MC Wrec at Peninsula

[yah i was there - crazyy . ED Rush and MC Wrec at Peninsula, ARIGATO Stage 27.07.06]

Read more at www.breakbeat.ro/tv.htm...

HOW-TO: Dreamweaver running on Ubuntu in 10 EASY Steps!

A step-by-step guide of how to install the latest version of Dreamweaver in Ubuntu! 10 easy steps... A great HOW-TO!

[We can now kill the windows boxes , a great leap foward , an way to fix bug no 1 https://launchpad.net/bugs/1 ]

read more | digg story

Sunday, July 30, 2006

Symphony OS - help an hero

[He is left whithout electricity , you can donate some oss electricity (check) or send him an crank - see the One Laptop for Child project :) ]

Read more at symphonyos.com/forum/vi...

Monday, July 24, 2006

Binaries of Apache 2.0.58 for Windows with mod_ssl

[very nice if you wan't to install the WAMP kit, I wonder why the apache people don't build the apache 2.x install kit with mod_ssl included ]

Read more at smithii.com/?q=node/vie...

TVR - WEBCAST remix rock forum

[luna-amara.ro in clubA - bucharest]

Read more at www.tvr.ro/webcast/inre...

Friday, July 21, 2006

Itanic 2 sinks deeper

[No Taiwan company was on stage at today's event, while large brands, led by HP, revealed their optimistic views about the future of the Itanium architecture. When asked to name some of its Taiwan customers ordering Itanium 2 processors, Intel was not able to name any. ]

Read more at digitimes.com/systems/a...

marius in the water :)

at the Uichend pool (hairy programmer/linux admin )

Sunday, July 16, 2006

Firefox 2 Beta 1 Goes Live Today

[Go foxie go ]

Read more at www.linuxelectrons.com/...

Friday, July 14, 2006

ATI Linux 11-Way Driver Comparison - and a new game vdrift

I spotted an new game on their page called vdrift , http://www.vdrift.net/
What is interesting for me is their usage of the autopackage installer http://autopackage.org/


The Phoronix "Redblog" has posted an 11-way fglrx driver comparison from the past eleven proprietary display releases.


read more | digg story

GNOME dock Video - something like in apple's osx

amazing stuff

This is a video of the Cairo Gnome Dock project.
More info http://www.gnome-dock.org/

read more | digg story

Thursday, July 13, 2006

HowTo: Windows (XP) on Ubuntu with VMWare Server

At last , i can propose to alll my windows coleagues to switch on win... ubuntu + vmsever

Are you too having problems with software that is only available on Windows and not on Linux? Are you still Dual Booting to solve this problem? After this HowTo you will never need to dual-boot again for your windows only software, like Adobe CS!

read more | digg story

mips is dead

[iteresting read about cores and ps3 ]

Read more at www.reed-electronics.co...

Tuesday, July 11, 2006

matix prank

[pretty cool ]

Read more at intertwingly.net/slides...

Links zu freie Datenbanken: Von Oracle,Microsoft bis MySQL

[firebird small mention ]

Read more at www.scill.de/content/?p...

Firebird Conference 2006

[call for papers]

Read more at www.hk-software.net/fir...

Friday, July 07, 2006

[Phoronix] ASRock AM2NF4G-SATA2 Review

[I have read the asrock article and maybe i will upgrade my system to an AM2 one and skip the s939 transition completely]

Read more at www.phoronix.com/scan.p...

Firebird 2.0 RC3 (omega) is out. What's next ? Gold Final Release

Builds for Windows and Linux of the new Firebird 2.0 RC3 (probably the last RC) are out. Get yours now

read more | digg story

Race between Firefox and Firebird

Anyone wants to bet which project: Firefox or Firebird will be first for release version 2.0? Meanwhile Firebird Database 2.0 RC3 builds are available for download (including kits for x64 Linux).Unless there are any dramas, this build will become the gold final version. More details about this release are in full changelog notes

read more | digg story

Dhingana - FREE Indian Music

[yah and is all free, flash required :( ]

Read more at www.dhingaana.com/index...

Thursday, July 06, 2006

emotions

[how we make decisions]

Read more at headrush.typepad.com/ph...

Open Source community subversion as marketing ploy

Yes they try to be friendly with open source , and stab you in the back latter :)

The launch of Microsoft's Codeplex "shared source" site is merely the latest attempt to undermine and usurp the open source community via clever marketing.

read more | digg story

Nat-Semi asks laid-off workers to return iPods

[Pour laid-off workers have to return theri "own" gifted ipods, the sad thing is they helped to build the Ipods - does it mean that apple isn't doing to well ?]

Read more at www.eetimes.com/news/la...

Monday, July 03, 2006

Stick to coffee and Alcohol , Yes and vorbis format is better than mp3 ! Posted by Picasa

4x4 reference board based on the SiS761SX northbridge

[This means there will be 4x4 cheap amd systems , sis targets the low end of the market]

Read more at digitimes.com/photogall...

Saturday, July 01, 2006

Apple Sthink Different

[Yah is time to boycott apple ]

Read more at rejon.org/?p=369

Firebird: Free alternative to MS Access, mySQL, SQL Server!

[ED: time to vote firebird article on digg ]
A great and open-source fully features database, which can be used in place of say, SQL server as a full fledged database, supporting sub-queries, triggers, stored procedures etc., and even like Access for deploying with a Windows application, for free and with a small foot print of just one or two dlls! Forked from Borland's Interbase.

read more | digg story

Friday, June 30, 2006

How to Disable Socket Pooling in IIS5

[And install Apache2.2 server on port 80 on one or many ips that you free this way]

Read more at support.microsoft.com/k...

mac osx port of the lazarus (delphi like) IDE

[mac osx shot of the lazarus IDE ]

Read more at www.lazarus.freepascal....

How to Run the Cell Broadband Engine SDK Simulator on Ubuntu

[Ed: at last!, i don't run fedora , my main machines are debian or ubuntu based , pearpc seems to be broken and doesn't boot any of the debian/ubuntu PPC images, so i have to try the CELL emulator ]


Get an early peak at the Cell Processor and how it works, by running the simulator on Ubuntu. Officially the sim is meant to run on Fedora, but this opens up the experience for Debian-based people.

read more | digg story

Pascal is an Dead language. Let's drop it.

[Object Pascal still has it's places , i wish someone did something like PHP for the web with OO-pascal syntax]

Read more at thread.gmane.org/gmane....

Thursday, June 29, 2006

learn japanise or ...

  Posted by Picasa
microsoft warning : please look under your wheels

  Posted by Picasa
born stupid t-shirt idea
  Posted by Picasa
pirated music sounds better

 Posted by Picasa

HP d325 and ubuntu

[my b0rkstati0n - died with bad caps syndrome so i had to move my drives into an hp d325 unit , all great except the nic :3Com 3C920B-EMB , i looked in the drivers area ls /lib/modules/2.6.15-20-k7/kernel/drivers/net/ and there was no such thing ,added an old realtek nic then i searched over the net so here is the solution modprobe 3c59x (yah that is the name of the driver )

Read more at h10010.www1.hp.com/wwpc...

Tuesday, June 27, 2006

How Apple and Microsoft are advancing desktop Linux

[thank you apple , thank you microsoft]

Read more at www.desktoplinux.com/ne...

IBPhoenix is pleased to introduce you a Firebird Mandriva VMware machine

This virtual machine is made with : Mandriva Corporate Server 4 beta 3 , Firebird 2 RC2 Classic Server , Python and PHP5 drivers , Flamerobin and IbWebadmin (Two administration tools)


read more | digg story

Monday, June 26, 2006

Fabiwan Kenobi's - extensions

[i have read arund the nvu forums : eleanora wrote :"I [read] Daniel Glazman and his team is working on a new Composer, an NVU2 but it will take its time.In the meantime I recommend the [extensions] of kaze. They are a great improvement to NVU and I hope kaze doesn't stop working on them. He is doing a great job."]

Read more at fabiwan.kenobi.free.fr/

Blog Network Watch: Interview with Heather Snodgrass of [decentcontent]

[Someone is using NVU web editor ]

Read more at www.blognetworkwatch.co...

IBM and Georgia Tech break silicon speed record

[hello ibm could you make an xvid or an ogg movie , thank you - yes for penguins ]

Read more at www-03.ibm.com/technolo...

podcast - Ubuntu

[i didn't knew there is an ubuntu podcast , time to listen]

Read more at wiki.ubuntu.com/podcast

Friday, June 23, 2006

Schneier on Security: Greek Wiretapping Scandal

[Today in Geece , tomorrow in Romania ...or the blue eyes boyes listen already to our cells ]

Read more at www.schneier.com/blog/a...

Battle Map against monopoly

[battle against evil empire ...the problem is bill gates is gone ]

Read more at robert.accettura.com/ar...

unix - time to study

[time to study loonix .... relax]

Read more at xs102.xs.to/xs102/06255...

Wednesday, June 21, 2006

Tim Bray to Ditch Apple Platform, Go Linux

"But you know what? I think that if the GNU/Linux/Solaris community can sustain its current level of energy and progress, and if Apple maintains its dysfunctional communications culture, there are going to be better choices just not for me, but for a lot of other people too."

read more | digg story

Tuesday, June 20, 2006

catchpa for phpbb2

good catchpa for phpbb2 (seems that one that comes with phpbb2 is weak)

http://www.kessels.com/captcha/

Wednesday, June 14, 2006

installing shorwall firewall on debian stable server
(with no Local Private net , is just an hosting server with one eth0 connection to the net)

apt-get install shorewall

# vi /etc/default/shorewall

Now simply change

startup = 0

to

startup = 1

save, and exit.
vi /etc/shorewall/zones

#ZONE DISPLAY COMMENTS
net Net Internet


vi /etc/shorewall/interfaces
net eth0 detect routefilter,norfc1918,logmartians,nosmurfs,tcpflags,blacklist


vi /etc/shorewall/policy
fw net ACCEPT
net all DROP info
# The FOLLOWING POLICY MUST BE LAST
all all REJECT info

vi /etc/shorwall/rules
ACCEPT net fw icmp 8
ACCEPT fw net icmp
ACCEPT net fw tcp ssh www

recheck the configuration files
cat
/etc/shorwall/rules
cat
/etc/shorewall/policy
cat /etc/shorewall/interfaces

shorewall check

then try to login with ssh from outside
then scan yourself with nmap scanner (from an outside site)
nmap -v -Ss 192.x.x.x




::::

SCSharp - Trac

[starcraft rewritten in mono/c#]

Read more at scsharp.org/wiki

Tuesday, June 13, 2006

sauerbraten new release (ubuntu dapper howt)

wget http://puzzle.dl.sourceforge.net/sourceforge/sauerbraten/sauerbraten_2006_06_11_sp_edition_linux.tar.gz
sudo apt-get install libsdl-image1.2 libsdl-mixer1.2

tar zxvf sauerbraten_2006_06_11_sp_edition_linux.tar.gz
cd sauerbraten
/sauerbraten_unix

Monday, June 12, 2006

DVDs/ubuntu/6.06/release - now you can download

[Here is the dvd release of dapper]

Read more at mirror.mcs.anl.gov/pub/...

Switching Back to Desktop Linux - from apple

[Yet another switcher to linux - from apple's osx]

Read more at www.linuxdevcenter.com/...

Friday, June 09, 2006

rack-soft.com called me (they have spotted on the myjob.ro)
they need some c++/linux programmers

Thursday, June 08, 2006

Writing Perl Modules for CPAN

[free book for perl programmers]

Read more at apress.com/free/

Wednesday, June 07, 2006

Dedibuntu - dedicated ubuntu server @30 euro

[what is interesting is they give you an full debian/ubuntu os on one 2Ghz epia based server , not bad in my opinion]

Read more at www.dedibox.fr/index.ph...

Seth's Blog: How to get traffic for your blog

[some tips for bloggers ]

Read more at sethgodin.typepad.com/s...

Lazarus ide ported to GTK2

[Here is the blog post and screen shot]

Read more at permalink.gmane.org/gma...

Tuesday, June 06, 2006

Bye, Apple [dive into mark]

[comment of the day “Ubuntu is the ancient African word for ‘I’m sick of compiling Gentoo.’” ]

Read more at diveintomark.org/archiv...

Monday, June 05, 2006

quad opteron ? - at Layeredtech hoster

[quad opteron at an good price vs some xeon servers (at thousands of dollars)

Here it is: an quad opteron (2X dual core opteron = 4 X processors) that can be used as starting point for an production server * 4 x AMD Opteron w/1MB L2 cache (2x Dual core Opteron 265) * 2 x 250GB IDE Hard Drive * 4096MB ECC DDR RAM (add 75$ for extra 2GB) * Bandwidth: 1000GB ]

Read more at layer0.layeredtech.com/...

Why You Shall NEVER Blog

[top reasons why you shall never blog]

Read more at www.cabochon.com/%7Este...

· Prodigy - "Voodoo People (Pendulum Remix)"

[i like the new re-mix and video ]

You can watch it with vlcplayer

Saturday, June 03, 2006

PHP: feof - and infinite loop

you can avoid the infinite loop and filling the error logs by an simple if statement in php Here is the example

$handle = fopen("http://xml.weather.yahoo.com/forecastrss?p=AYXX0008&u=f", "r");

$xml = "";

if ($handle) {

while (!feof($handle))

{

$xml .= fread($handle, 128);

}

fclose($handle);

}

Read more at ro.php.net/manual/en/fu...

Friday, June 02, 2006

future amd roadmap

[very interesting things , i like an 4x4 workstation thank you - that means 4 core based workstation ]

Read more at www.endorion.com/2006_A...

Why Linux is better - site of the day

[what can i add - i know all the answers , do you ?]

Read more at www.whylinuxisbetter.ne...

Tuesday, May 30, 2006

open source Eclipse and Eclipse plugins -soc

[watch this summer:mono in eclipse ide , microsoft look out ]

Read more at eclipse-wiki.info/Googl...

Monday, May 29, 2006

Breaking the law

with silence

Read more at plasticbugs.com/?page_i...

Now anyone can play the blues and only a rudimentary sense of rhythm is required.


http://www.desktopblues.lichtlabor.ch/

SourceForge.net: Darwin kernel now proprietary?

[I like their response to apple, Maybe i should install darwin on my quemu machine one day , for testing firebird/flamerobin]

Read more at sourceforge.net/forum/f...

Saturday, May 27, 2006

Thank Poland - they forgot you again

Thank you, poland!

Read more at thankpoland.info/

Thursday, May 25, 2006

StartCom Free SSL Certification Authority - Home

[ED: time to install it on reea.net server :Mozilla officially approved the StartCom Certification Authority and is scheduled to be included at the next release of Firefox and Thunderbird.]

Read more at cert.startcom.org/?lang...

Linux Driver Developer kit cd released

[Linux Driver Developer kit cd released , nice that there is now included a book on the cd :Linux Device Drivers 3rd edition]

Read more at www.kroah.com/log/2006/...

Wednesday, May 24, 2006

Linux robots elicit human responses

[storry of the day ?]

Read more at www.linuxdevices.com/ne...

Tuesday, May 23, 2006

Guerrillas concert - pictures

[Me at the guerrillas concert:Guerrillas Fight!]

Read more at withfullforce.ovihost.c...

perl6 howto in ubuntu dapper

I will present an small howto compile and install perl6 and parrotvm on an ubuntu dapper

machine. I followed this howto with small corrections when the build/install went astray

http://dresden-pm.org/cgi-bin/twiki/view/PM/PugsFirstBloodEnglish
Check out the current parrot source tree

svn co https://svn.perl.org/parrot/trunk parrot

cd parrot


Try to run configure script to see what is missing

perl Configure.pl --prefix=/opt/parrot



In my case it died at some step

step auto::gcc died during execution: Linker failed (see test.ldo) at lib/Parrot/Configure/Step.pm line 365
Parrot::Configure::Step::cc_build() called at config/auto/gcc.pm line 36

auto::gcc::runstep('auto::gcc=HASH(0x83a1018)',
'Parrot::Configure=HASH(0x826970c)') called at lib/Parrot/Configure.pm
line 239
eval {...} called at lib/Parrot/Configure.pm line 235
Parrot::Configure::runsteps('Parrot::Configure=HASH(0x826970c)') called at Configure.pl line 443


It was an fuzzy error so i read that i need the Haskel compiler ,Let's try it

sudo apt-get install ghc6


Then I looked in the test.ldo content

view test.ldo


There is light now in my head aha no c++ file so i created the symlink

sudo ln -s /usr/bin/g++ /usr/bin/c++


I rerun the configure script

perl Configure.pl --prefix=/opt/parrot


All was ok so i installed the parrotVM

sudo make install

It's time now for perl6 compiler (aka pugs)

svn co http://svn.perl.org/perl6/pugs/trunk pugs


cd pugs


You need some devel libraries and some environment variables

sudo apt-get install zlib1g-dev libperl-dev


export PUGS_EMBED="perl5 parrot"


export PARROT_PATH=${HOME}/path/to/src/parrot/


perl Makefile.PL


time make


this can be used as cpu burn benchmark
real 64m59.178s
user 31m25.294s
sys 0m54.823s

sudo make install


pugs -e '"What say you?".say;'



ps: there is now an list for perl6.users
I tried to write the goodbye world example this way but didn't worked yet

pugs -e ' "What".say."You";'
***
unexpected "\""
expecting ".", subroutine name, array subscript, hash subscript or code subscript
at -e line 1, column 13


TinyCAD - project of the day

[FaCe asked me about one small program to draw circuit diagrams , well gEDA is only for linux so ... i pointed him to this one]

Read more at tinycad.sourceforge.net...

» GUY GOMA FOR PRESIDENT

[I agree he should replace bush ;)]

Read more at pieceoplastic.com/index...

Monday, May 22, 2006

Finland won the Eurovision 2006

I was screaming with alex on each contrywho voted with "The finland"

FSCK the pop musicand FSCK "capshunarii" who voted with bad music

Yah big surprise Romanians from Spain , France,Portugal,GB voted with ...that lame romanian singer (I thought it was an vampire or something dead - it was so white and pale)

If you wan't to know why the metal reprensents the Finland think of few rock , heavy metal/melodic bands:nightwish , HIM, Apocalyptica http://musicmoz.org/Regional/Europe/Finland/Bands_and_Artists/

And the eurovision wanted to ban the rock from contest - That was the revenge of the Heavy Metal . They won , they were different

Read more at roxulici.blogspot.com/2...

Saturday, May 20, 2006

Apache 1.3.36 released

[time to patch our hosting servers ;) ]

Read more at www.apache.org/dist/htt...

Thursday, May 18, 2006

Intel OS X kernel no longer open

[Did i told you that apple is irellevant ? yah propietarry crapp]

Read more at arstechnica.com/news.ar...

» And then there's Mactel | Paul Murphy | ZDNet.com

[why apple sux again ]

Read more at blogs.zdnet.com/Murphy/...

Tim Sweeney: the man, the mystery, the legend. - nV News Forums

[old news : p4 architecture sucks ;) , the other interesting thing is about gpus - they look more and more like an rendering farm with many risc like cpus for shading ...etc]

Read more at www.nvnews.net/vbulleti...

The iXBT.com / Digit-Life.com Procedure for Testing Processor Performance, Version 2.0RC (2006)

[cpu benchmarks done right ,not like on tom's pabsters "hardware"]

Read more at www.digit-life.com/arti...

Wednesday, May 17, 2006

GettingNutchRunningWithUbuntu - Nutch Wiki

[start your own search engine nutch]

Read more at wiki.apache.org/nutch/G...

Linux tree

[Here is the linux chart of distros]

Read more at photos1.blogger.com/blo...

Java is free speech

[great now i can install it on my dapper drake

sudo apt-get -t dapper install sun-java5-jdk...The following extra packages will be installed: sun-java5-bin sun-java5-demo sun-java5-jre unixodbcSuggested packages: sun-java5-doc sun-java5-source sun-java5-plugin ia32-sun-java5-plugin sun-java5-fonts libmyodbc odbc-postgresql libct1Recommended packages: gsfonts-x11The following NEW packages will be installed sun-java5-bin sun-java5-demo sun-java5-jdk sun-java5-jre unixodbc...

]

Read more at blogs.sun.com/roller/pa...

Tuesday, May 16, 2006

The Silent Penguin: Google Notebook - noted

[I will test tomorrow the web2 notebook ]

Read more at www.silentpenguin.com/a...

Thursday, May 11, 2006

Rotten Effort At Mircosoft

[From Kill the Beast Dept : if other tactics don't work try to intimidate them ]

Read more at www.computerworld.com/a...

Wednesday, May 10, 2006

TFMail secure replacement for formmail - I needed a good replacement for formmail and found nms-scripts
nms FormMail is a drop-in replacement for Matt Wright's FormMail scrip
is recomended on the Matt Wright's scripts page as an secure and better written FormMail script


But what i will test today is something new TFMail (improved Form Mail) With that script page/encoding for text message can use UTF-8 for form fields and there are more options in the configuration area.
http://nms-cgi.sourceforge.net/tfmail.tar.gz


tar -zxvf tfmail.tar.gz

cd tfmail

vi .htaccess
Order Deny,Allow
Deny from all

copy the file TFmail.pl into your cgi-bin
directory.


cp TFmail.pl ../


vi default.trc
complete the recipient field with your email address


cd ../

change the LIBDIR, CONFIG_ROOT
In my case was '/example/cgi-bin/tfmail'

MAILPROG '/usr/sbin/sendmail -oi -t'

chown apache.apache TFmail.pl (in case you run it with suexec under apache or nobody user)

create an html form like for the formmail script (without recipient field)

contact.html
< action="http://www.example.com/cgi-bin/TFmail.pl" method="POST" name="test">

< type="text" name="contact" size="40">

Test the contact script www.example.com/contact.html

Monday, May 08, 2006

UTF-8 and formail script

Seems that the page/encoding for text message that is send to recipient is not using UTF-8
So you see the accented chars replaced with strange chars
My first recommended solution is to use the
nms FormMail is a drop-in replacement for Matt Wright's FormMail scrip
http://nms-cgi.sourceforge.net/scripts.shtml

ps: is recomended on the Matt Wright's scripts page as an secure and better written FormMail script

http://www.scriptarchive.com/nms.html

Friday, May 05, 2006

AMD/Microsoft's PIC snubs Linux

[When plaing monopoly with Microsoft I guess is easy to forget the penguins, I think the AMD's customer/client in this case is Microsoft and the bios - (that appendix of the x86 evolution) is closed source , guess what :they don't care about other os-es]

Read more at linuxdevices.com/news/N...

checking for intelligent life...

[LoooooL very nice joke]

Read more at www.linuxforen.de/forum...

Thursday, May 04, 2006

flash player 8.5 linux (ubuntu dapper drake)

1.install wine
sudo apt-get install wine
2. install msttcorefonts (optional)

sudo apt-get install msttcorefonts

3. Download firfox version for windows (yes you heard it well - Thank you macromedia)
wget
http://ftp-mozilla.netscape.com/pub/mozilla.org/firefox/releases/1.5.0.3/win32/en-US/Firefox%20Setup%201.5.0.3.exe

run the setup
~$wine Firefox\ Setup\ 1.5.0.3.exe

4.Download the macromedia flash 8.5 setup
wget http://fpdownload.macromedia.com/get/flashplayer/current/fp8-5_beta/install_flash_player_8-5_beta.exe

Start the setup with wine
~$wine install_flash_player_8-5_beta.exe

point the plugins directory to c:\Program Files\Mozilla Firefox\plugins

5.wine .wine/drive_c/Program\ Files/Mozilla\ Firefox/firefox.exe

write about:plugins in the Url bar

flash player 8 on linux via wine

[yah flash sux on linux , doesn't work on 64bit machines, there is no version 8.x for ubuntu ...die macromedia die ...]

Read more at 0xdf.com/?p=49

Tuesday, May 02, 2006

Add a new disk to a lvm2 partition (in ubuntu)

In my case i add partition /dev/hdc2 to lvm2 group
sudo su
pvscan
PV /dev/hda6 VG Ubuntu lvm2 [20.81 GB / 0 free]
PV /dev/hdc1 VG Ubuntu lvm2 [9.77 GB / 0 free]
Total: 2 [30.58 GB] / in use: 2 [30.58 GB] / in no VG: 0 [0 ]

fdisk /dev/hdc


Command (m for help): p

Disk /dev/hdc: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 * 1 1275 10241406 8e Linux LVM
/dev/hdc2 1276 4998 29904997+ 83 Linux

Command (m for help): t
Partition number (1-4): 2
Hex code (type L to list codes): 82
Changed system type of partition 2 to 82 (Linux swap / Solaris)

Command (m for help): t
Partition number (1-4): 2
Hex code (type L to list codes): 8e
Changed system type of partition 2 to 8e (Linux LVM)

Command (m for help): p

Disk /dev/hdc: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 * 1 1275 10241406 8e Linux LVM
/dev/hdc2 1276 4998 29904997+ 8e Linux LVM

pvcreate /dev/hdc2
Physical volume "/dev/hdc2" successfully created

pvscan
PV /dev/hda6 VG Ubuntu lvm2 [20.81 GB / 0 free]
PV /dev/hdc1 VG Ubuntu lvm2 [9.77 GB / 0 free]
PV /dev/hdc2 lvm2 [28.52 GB]
Total: 3 [59.10 GB] / in use: 2 [30.58 GB] / in no VG: 1 [28.52 GB]


vgextend Ubuntu /dev/hdc2
Volume group "Ubuntu" successfully extended


pvscan
PV /dev/hda6 VG Ubuntu lvm2 [20.81 GB / 0 free]
PV /dev/hdc1 VG Ubuntu lvm2 [9.77 GB / 0 free]
PV /dev/hdc2 VG Ubuntu lvm2 [28.52 GB / 28.52 GB free]
Total: 3 [59.09 GB] / in use: 3 [59.09 GB] / in no VG: 0 [0 ]

root@borkstation32:/home/ubuntu# lvextend -L+28G /dev/Ubuntu/root
Extending logical volume root to 57.70 GB
Logical volume root successfully resized

lvextend -L+528M /dev/Ubuntu/root
Extending logical volume root to 58.21 GB
Logical volume root successfully resized

e2fsck -f /dev/Ubuntu/root
resize2fs /dev/Ubuntu/root

You can check the new size with mount /dev/Ubuntu/root /mnt and then df
and reboot :)
All was don with an live cd (my root partition is on the lvm so i had to take it offline)