Chapter 27 . Enterprise Architecture 689 (Free web servers) Note Setting
Saturday, October 27th, 2007Chapter 27 . Enterprise Architecture 689 Note Setting Up a DRBD Pair Before configuring DRBD, make sure it is installed using YaST. By default, the DRBD system is not installed. For more information on installing packages, refer to Chapter 1. To configure the partners, you need to create a single DRBD configuration that is used on both machines, /etc/drbd.conf. A DRBD configuration file needs to contain a resource definition that describes the DRBD devices. This definition will contain the host names of the partners, IP addresses, and the devices you want to keep synchronized. DRBD works on the block level, so you need to specify the partition, not the mount point, of the filesystem. When defining your hosts, one must be the primary, and another the secondary node (synchronizing from one to the other). With this in mind, the secondary node s device you are synchronizing to must be the same as or bigger than the primary s node. If you have multiple devices that you want to synchronize, you can specify multiple resource definitions in the same file. For example, if you want to synchronize /dev/sdb2 to 192.168.0.5 and synchronize /dev/sdb3 to 192.168.0.6, you can specify two separate resource definitions. When you define a host in the DRBD definition section, you must specify the node name as returned by the uname-n command. This is paramount to the operation of DRBD, and if it is incorrect, DRBD will complain at startup. Listing 27-1 is a sample DRBD configuration file for a partnership. Listing 27-1: Defining a Partnership in DRBD resource drbd0 { net { sync-max = 30M } protocol = C fsckcmd = /bin/true # DB Server on node1 { device = /dev/nb0 disk = /dev/sdb1 address = 192.168.0.2 port = 7788 Continued
If you are in need for cheap and reliable webhost to host your website, we recommend http web server services.