Setting Up A Standalone Storage Server With GlusterFS And Samba On Debian Squeeze
Submitted by shofer (Contact Author) (Forums) on Tue, 2013-01-29 17:20. :: Debian | Linux | Samba | Storage
Setting Up A Standalone Storage Server With GlusterFS And Samba On Debian SqueezeVersion 1.0
Author: Piotr Opara < piotr [dot] opara [at] gmail [dot] com >
Last edited 14/20/2012
This tutorial shows how to set up a standalone storage server on Debian 6.0, using GlusterFS and SAMBA, and custom scripts and settings to make life easier ;)
I do not issue any guarantee that this will work for you!
I do not issue any guarantee that you will understand my poor english ;)
1 Preliminary Note
Tutorial is based on Falko Timme article.
Im using the Debian 6.0 (Squeeze) distribution. The installation of the Debian is very simple, so Im not going to explain it. Just remember that you'll need to have a disk or partition exclusive to data.
In this tutorial I use three systems, a two storage nodes and a windows client:
2 Preparing The Nodes
We have to make sure, that both nodes are up to date and have installed SSH and other software that we like or need.
apt-get install mc ssh
We need to be sure, that both nodes should be able to resolve the other system's hostname:
127.0.0.1 localhost 192.168.20.106 node1.example.com node1 192.168.20.107 node2.example.com node2
Checking All Settings
ping -c 1 node2
PING node2.example.com (192.168.20.107) 56(84) bytes of data.
ping -c 1 node1
PING node1.example.com (192.168.20.106) 56(84) bytes of data.
3 Setting Up The Data Disks
On both nodes we have exclusive disk, we need to set them up:
Command (m for help): <-- n
and you should find /dev/sdb1 in the output on both nodes:Device Boot Start End Blocks Id System
/dev/sdb1 1 1305 10482381 83 Linux
Now we create a filesystem on /dev/sdb1, and mount the /dev/sdb1 to /data directory
After that, you should find the share in the outputs of
/dev/sdb1 9,9G 151M 9,2G 2% /data
/dev/sdb1 on /data type ext3 (rw)