Martes, Setyembre 3, 2013

Setting up DRBD for "mirroring" of static files

For this week, we were entitled to explore once again by ourselves in setting up, installing and configuring DRBD. The first step was to create a new partition, to do this I have look up in the internet that Gparted can do this task in ubuntu and I proceeded with doing it, I created a new partition using Gparted with 2.00Gb in size. 
Here is the screenshot of the creation of the said partition: 

**Note: Some prerequisites before configuring DRBD is to create two nodes, for the simulation of DRBD. 




For this, exercise what I picked as the file system was ext2, as said in the gparted tutorials indicated here: 
ext2 and ext3 filesystems are used for installing GNU/Linux and also for data. Since we will use DRBD to just "mirror" static files, I formatted it to the ext2 filesystem. 

The second step was Installing and Configuring DRBD :


Now that DRBD is installed, it need to be configured. 

To configure DRBD, the first step is to configure /etc/drbd.d/global_common.conf

This is an example of what the configuration file looks like, for this exercise, there is nothing to be configured here. 
The next step is to configure, /etc/drbd.d/<resource>.res For this example, we will use resource 0, so /etc/drbd.d/r0.res will be configured. 

this is the sample configuration for /etc/drbd.d/r0.res: 


this example, use two nodes: ics-user and useruser, static IP addresses are initially created and are stated above. 


Website screenshots: 
Login page: 
home page:





Walang komento:

Mag-post ng isang Komento