DRBDプレゼン用demo2

  • Webサーバの設定
[root@z151 mnt]# cd /mnt
[root@z151 mnt]# ll
合計 20
drwxr-xr-x 2 root root 4096  8月 31 01:37 cgi-bin
drwxr-xr-x 3 root root 4096  9月 21 11:31 error
drwxr-xr-x 2 root root 4096 10月 18 10:50 html
drwxr-xr-x 3 root root 4096  9月 21 11:31 icons
drwx------ 2 root root 4096 10月 28 17:30 lost+found
[root@z151 mnt]# rm -rf /var/www/html
[root@z151 mnt]# ln -s /mnt/html /var/www/html
[root@z151 mnt]# ll
合計 20
drwxr-xr-x 2 root root 4096  8月 31 01:37 cgi-bin
drwxr-xr-x 3 root root 4096  9月 21 11:31 error
drwxr-xr-x 2 root root 4096 10月 18 10:50 html
drwxr-xr-x 3 root root 4096  9月 21 11:31 icons
drwx------ 2 root root 4096 10月 28 17:30 lost+found
[root@z151 mnt]# ll /var/www/html
合計 4
lrwxrwxrwx 1 root root 9 11月  2 16:45 html -> /mnt/html
-rw-r--r-- 1 root root 5 11月  1 17:58 index.html
[root@z151 conf]# vi /etc/httpd/conf/httpd.conf
<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
</Location>

アンリンク

# unlink /mnt/html 
  1. http://192.168.11.180/http://192.168.11.182/ でWebページが表示されることを確認
  2. z151でリソース移動もしくはheartbeatを切る

@IT:体験! 新しくなったLinux-HA(3/3)