tutor:Cluster
From Dgiref
Contents |
Hard drive layout
| * pri | swap | none | 16GB |
| * pri | / | ext3 | 16GB |
| * ext (logical) | /local | xfs | rest |
Logical Volumes
http://ds9a.nl/lvm-howto/HOWTO//cvs/lvm-howto/lvm-howto.html
| For mkfs -t xfs /dev/VolGroup00/local command check:
rpm -qa |grep xfsprogs # install it: # for xen.x86_64 (for others check: <code>uname -a</code>) yum install kmod-xfs-xen.x86_64 xfsdump xfsprogs |
To create the VG:
vgdisplay -v pvcreate /dev/sda3 pvcreate /dev/sdb1 vgcreate sn /dev/sda3 /dev/sdb1 vgdisplay -v sn lvcreate -l 100%VG -n local sn vgdisplay -v sn mke2fs /dev/sn/local echo "/dev/sn/local /local ext3 defaults 1 1" >> /etc/fstab mount /dev/sn/local /local
Backup
There is different configuration for backup procedure organization. It can be the following:
- merge logs in the one server (e.g. file server)
- backup this server
- if necessary - backup all others servers in the rack.
Logging
Merge logs in one place
- Configure the server <syslog server>
- Log on to the server as a super user.
- Change the option in vi /etc/sysconfig/syslog as: SYSLOGD_OPTIONS="-m 0 -r"
- Restart the syslog service using the command /etc/rc.d/init.d/syslog restart.
- Forwarding syslog Messages from Linux device
- Log on to the Linux device (whose messages you want to forward to the <syslog server>) as a super user.
- Enter the command - vi /etc/syslog.conf to open the configuration file called syslog.conf.
- Enter *.* and press the Tab key and enter the name of the host machine where the server is running. For example: *.* @<syslog server>
- Restart the syslog service using the command /etc/rc.d/init.d/syslog restart.
- Forwarding syslog messages from routers
- To enable syslog monitoring in router and redirect the log message to the syslog server:
- Telnet to the router machine as telnet <router>.
- Type the command enable at the prompt to set to 'enable' mode.
- You will be prompted to enter the password. Enter the correct password.
- Now, type the command config at the prompt.
- Choose terminal configuration.
- After this, type logging <IP address of the host device where <syslog server> server is running> at the command prompt. For example, logging <192.168.5.120>. This is done to enable forwarding of messages to the <syslog server> server.