Post contrassegnati da tag 'ubuntu'

Come creare un Cluster MySQL con Ubuntu

mysql cluster
Premetto che per creare un cluster “vero” con una ridondanza “vera” sono necessarie 3 macchine.

a) Nodo dati 1 — es.: IP 192.168.100.101
b) Nodo dati 2 — es.: IP 192.168.100.102
c) Nodo di Management dei 2 nodi — es.: IP 192.168.100.103

Installiamo MySQL su entrambi i nodi dati con il comando:

# sudo apt-get install mysql-server

Durante il setup vi verrà chiesto di inserire la password di root del database. (Importante non perderla)

Passiamo ora ad installare e configurare il Nodo di Management.

Creiamo il seguente file /etc/mysql/ndb_mgmd.cnf con:

# sudo nano /etc/mysql/ndb_mgmd.cnf

e inserite al suo interno le seguenti lines:

[NDBD DEFAULT]
NoOfReplicas=2
DataMemory=80M # How much memory to allocate for data storage
IndexMemory=18M # How much memory to allocate for index storage
# For DataMemory and IndexMemory, we have used the
# default values. Since the “world” database takes up
# only about 500KB, this should be more than enough for
# this example Cluster setup.
[MYSQLD DEFAULT]
[NDB_MGMD DEFAULT]
[TCP DEFAULT]
# Section for the cluster management node
[NDB_MGMD]
# IP address of the management node (this system)
HostName=192.168.100.103

# Section for the storage nodes
[NDBD]
# IP address of the first storage node
HostName=192.168.100.101
DataDir=/var/lib/mysql-cluster
BackupDataDir=/var/lib/mysql-cluster/backup
DataMemory=512M
[NDBD]
# IP address of the second storage node
HostName=192.168.100.102
DataDir=/var/lib/mysql-cluster
BackupDataDir=/var/lib/mysql-cluster/backup
DataMemory=512M

# one [MYSQLD] per storage node
[MYSQLD]
[MYSQLD]

Passiamo ora a configurare i Nodi dati 1 e 2, quindi la seguente operazione va seguita su entrambi i nodi.

# sudo mkdir /var/lib/mysql-cluster/backup
# sudo chown -R mysql:mysql /var/lib/mysql-cluster

Modifichiamo il file di configurazione di MySQL

#sudo nano /etc/mysql/my.cnf

Inserite sotto la voce [mysqld] le seguenti lines:

[mysqld]
ndbcluster
# IP address del nodo di management
ndb-connectstring=192.168.100.103

cercate la voce [MYSQL_CLUSTER] dovrebbe essere preceduta da un # che lo commenta, rimuovete il # per avere 2 lines come segue:

[MYSQL_CLUSTER]
ndb-connectstring=192.168.100.103 # IP address del nodo di management

Perfetto, vi ricordo che la procedura appena spiegata va eseguita su entrambi i nodi.

Ora passiamo di nuovo al Nodo di management ed eseguite il seguente comando:

# sudo /etc/init.d/mysql-ndb-mgm restart
# sudo /etc/init.d/mysql restart

digitate:

# ndb_mgm

e date il comando:

#show

dovreste vedere qualcosa di questo tipo:
ndb_mgm> show;
Connected to Management Server at: localhost:1186
Cluster Configuration
———————
[ndbd(NDB)] 2 node(s)
id=2 (not connected, accepting connect from 192.168.1.6)
id=3 (not connected, accepting connect from 192.168.1.7)

[ndb_mgmd(MGM)] 1 node(s)
id=1 @192.168.1.5 (Version: 5.0.51)

[mysqld(API)] 2 node(s)
id=4 (not connected, accepting connect from any host)
id=5 (not connected, accepting connect from any host)

Significa che il Nodo manager non è ancora in grado di collegarsi ai nodi.

Tornate ai nodi e date su entrambi:

# sudo /etc/init.d/mysql restart
# sudo /etc/init.d/mysql-ndb restart

Bene, ora ritornate sul Nodo di management e ridate il comando “show” , il risultato dovrebbe essere il seguente:

ndb_mgm> show;
Cluster Configuration
———————
[ndbd(NDB)] 2 node(s)
id=2 @192.168.1.6 (Version: 5.0.51, Nodegroup: 0, Master)
id=3 @192.168.1.7 (Version: 5.0.51, Nodegroup: 0)
[ndb_mgmd(MGM)] 1 node(s)
id=1 @192.168.1.5 (Version: 5.0.51)
[mysqld(API)] 2 node(s)
id=4 @192.168.1.7 (Version: 5.0.51)
id=5 @192.168.1.6 (Version: 5.0.51)

Perfetto il CLUSTER è OK e funzionante.

Rigrazio il fantastico Blog di Bieg per le informazioni necessarie per questa guida.
Di base mi sono limitato a tradurla per chi ha difficoltà con l’inglese.

Fonte: Bieg Blog

Come Installare Chrome in Ubuntu 9.10

Google non ha ancora rilasciato la versione Linux e OSX del suo browser Chrome, ma è tuttavia possibile installare il suo fratello open source Chromium.

Eccome come procedere:

a) Aggiungete i seguenti repository al file /etc/apt/sources.list

deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main

b) Aggiungiamo la chiave GPG

sudo apt-key adv –recv-keys –keyserver keyserver.ubuntu.com 0xfbef0d696de1c72ba5a835fe5a9bf3bb4e5e17b5

c) Aggiorniamo i repository e installiamo il browser

sudo apt-get update
sudo apt-get install chromium-browser

Buon Divertimento

Ubuntu 9.10 è qui (Update)

ubuntu 9.10
Info e Download

Le prima impressione non è positivissima. Tuttavia credo che i futuri updates sistemeranno tutto.

A mio avviso la 9.10 ha fatto alcuni passi indietro rispetto alla 9.04 e alcuni passi avanti.

Pro:
Boot molto più rapido
Network Manager decisamente migliorato
Perfetta integrazione con Ubuntu One
Il nuovo Evolution ha risolto tutti i problemi con MS Exchange
Google Earth crash fixed

Contro:
Xrandr non funziona molto bene (mi manca Xorg)
GRUB 2 Beta spesso crea alcuni problemi
Crash di Evince troppo frequenti
Crash vari

Minitube, un nuovo modo di usare YouTube

minitube
Minitube è un client nativo YouTube.
Con esso si possono vedere i video di YouTube in un modo nuovo: si digita una parola chiave, Minitube ti dà un flusso video.
Minitube non richiede il Flash Player.

Minitube non è un clone YouTube ,l’interfaccia web originale, si sforza di creare un sistema simile a un Televisione.

More info e Download

Ubuntu 9.10 Beta X lento con schede grafiche Intel

Ecco come risolvere i problemi di lentezza di Ubuntu 9.10 Beta con schede grafiche GMA family.

Sintomi: Lentezza nello spostamento delle finestre, scroll scattoso, strani artefatti a video, no compiz.

Here, my work around for the issue has been to set the following in /etc/initramfs-tools/modules:

# List of modules that you want to include in your initramfs.
#
# Syntax: module_name [args ...]
#
# You must run update-initramfs(8) to effect this change.
#
# Examples:
#
# raid1
# sd_mod
intel_agp
i915 modeset=1

Once this has been configured, you need to run:

sudo dpkg-reconfigure linux-image-2.6.31-10-generic

BUG#430694

Ubutnu Pocket Guide PDF gratuito

upg

DOWNLOAD

Ubuntu Arista Transcoder

arista
Arista è un transcoder per Ubuntu davvero ben fatto, per installarlo su Ubuntu 9.04, è sufficente inserire nel sources.list i repository di launchpad.

deb http://ppa.launchpad.net/danielgtaylor/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/danielgtaylor/ppa/ubuntu jaunty main


sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0x7388a94b1123738be0e95597eec51c92a1b03d01

sudo aptitude update

sudo aptitude install arista

Buon divertimento.

Ubuntu 9.04 è arrivato!

ubuntu9.04
Ottima recensione qui –> http://www.tuxjournal.net/?p=7185

Attivare il WiFi per eeepc 900

Per attivare il WiFi con Ubuntu 8.10, basta editare i due files seguenti:

sudo gedit /etc/modprobe.d/blacklist

aggiungendo la riga

blacklist ath_pci

poi

sudo gedit /etc/modules

aggiungendo la riga

ath5k

Riavviate e il WiFi tornerà a funzicare!

Partito il countdown per Ubuntu 9.04

Ubuntu: For Desktops, Servers, Netbooks and in the cloud

Non sto nella pelle! :-)


Coobox Blog Stats

  • 517,433 hits

Utenti connessi attualmente

website stats

Cerca in Coobox Blog

Calendario Articoli

maggio: 2013
L M M G V S D
« lug    
 12345
6789101112
13141516171819
20212223242526
2728293031  

Twitter

!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");

LinkedIn profile

Facebook profile

Technorati profile

Add to Technorati Favorites

Blogtoplist profile

Votami su Diggita.it

MyBlogLog profile

Join My Community at MyBloglog!
Il Bloggatore
directory blog
Blogitalia
Sfondi Desktop

Coobox Flickr Photos

Altre foto

Licenza Coobox Blog

Questo blog è pubblicato sotto una Licenza Creative Commons.


Iscriviti

Ricevi al tuo indirizzo email tutti i nuovi post del sito.