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.0Author: 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 NoteTutorial is based on Falko Timme article. Linux Distribution: 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. Network: In this tutorial I use three systems, a two storage nodes and a windows client:
2 Preparing The NodesWe have to make sure, that both nodes are up to date and have installed SSH and other software that we like or need. node1/node2 apt-get update apt-get install mc ssh We need to be sure, that both nodes should be able to resolve the other system's hostname: node1/node2 vi /etc/hosts 127.0.0.1 localhost 192.168.20.106 node1.example.com node1 192.168.20.107 node2.example.com node2
Checking All Settingsnode1 ping -c 1 node2 PING node2.example.com (192.168.20.107) 56(84) bytes of data. node2 ping -c 1 node1 PING node1.example.com (192.168.20.106) 56(84) bytes of data.
3 Setting Up The Data DisksOn both nodes we have exclusive disk, we need to set them up: node1/node2 fdisk /dev/sdb Command (m for help): <-- n Now run fdisk -l 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 node1/node2
mkfs.ext3 /dev/sdb1 ... Now run mount -a After that, you should find the share in the outputs of df -h /dev/sdb1 9,9G 151M 9,2G 2% /data mount /dev/sdb1 on /data type ext3 (rw)
|



Recent comments
11 hours 23 min ago
20 hours 50 min ago
21 hours 40 min ago
1 day 1 hour ago
1 day 5 hours ago
1 day 5 hours ago
1 day 8 hours ago
1 day 18 hours ago
1 day 23 hours ago
2 days 36 min ago