Redhat cluster suite

19 9 0
Redhat cluster suite

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

UnixLinuxVN – Bài thực hành linux LPIC02 1 REDHAT CLUSTER SUITE INSTALL 1 THIẾT LẬP CẤU HÌNH IP a) ĐẶT ĐỊA CHỈ IP CHO SERVER (thực hiện trên cả 2 node với IP tương ứng) Trên Node1 Data IP vim etcsys.dsf sdfsdfsdfsdfsdfsdafsdafsdafsdfafdsfsdfsdfsdfsdafsdfsdfsdfsdfsdfsdfsdfsdf

UnixLinuxVN – Bài thực hành linux LPIC02 REDHAT CLUSTER SUITE INSTALL THIẾT LẬP CẤU HÌNH IP a) ĐẶT ĐỊA CHỈ IP CHO SERVER (thực node với IP tương ứng) Trên Node1: Data IP vim /etc/sysconfig/network-scripts/ifcfg-eth0 Sửa thêm nội dung sau: BOOTPROTO="static" NM_CONTROLLED="no" ONBOOT="yes" IPADDR=192.168.9.201 NETMASK=255.255.255.0 Internal IP vim /etc/sysconfig/network-scripts/ifcfg-eth1 Sửa thêm nội dung sau BOOTPROTO="static" NM_CONTROLLED="no" ONBOOT="yes" IPADDR=10.0.0.1 NETMASK=255.255.255.0 Trên Node2 Data IP vim /etc/sysconfig/network-scripts/ifcfg-eth0 Sửa thêm nội dung sau: BOOTPROTO="static" UnixLinuxVN – Bài thực hành linux LPIC02 NM_CONTROLLED="no" ONBOOT="yes" IPADDR=192.168.9.202 NETMASK=255.255.255.0 Internal IP vim /etc/sysconfig/network-scripts/ifcfg-eth1 Sửa thêm nội dung sau BOOTPROTO="static" NM_CONTROLLED="no" ONBOOT="yes" IPADDR=10.0.0.2 NETMASK=255.255.255.0 b) CẤU HÌNH HOSTFILE VÀ DỊCH VỤ MẠNG Cả Node Sửa hostfile /etc/hosts theo nội dung sau: 192.168.9.201 node1 192.168.9.202 node2 10.0.0.1 node1-priv 10.0.0.2 node2-priv Disable NetworkManager service NetworkManager stop chkconfig NetworkManager off Chạy lại dịch vụ Network service network restart Disable selinux UnixLinuxVN – Bài thực hành linux LPIC02 vi /etc/sysconfig/selinux SELINUX=disabled Disable iptables service iptables stop chkconfig iptables off c) CẤU HÌNH REPO Trên nodes vi /etc/yum.repos.d/rhel-source.repo [Media-source] name=media baseurl=file:///mnt/ enabled=1 gpgcheck=0 [Media-source2] name=media2 baseurl=file:///mnt/HighAvailability enabled=1 gpgcheck=0 [Media-source3] name=media3 baseurl=file:///mnt/LoadBalancer enabled=1 UnixLinuxVN – Bài thực hành linux LPIC02 gpgcheck=0 [Media-source5] name=media5 baseurl=file:///mnt/ResilientStorage enabled=1 gpgcheck=0 [Media-source6] name=media6 baseurl=file:///mnt/ScalableFileSystem enabled=1 gpgcheck=0 [Media-source7] name=media7 baseurl=file:///mnt/Server enabled=1 gpgcheck=0 mount /dev/cdrom /mnt yum clean all d) REBOOT LẠI NODEs CÀI ĐẶT REDHAT CLUSTER SUITE a) CÀI ĐẶT GÓI REDHAT CLUSTER SUITE Trên Nodes mount /dev/cdrom /mnt UnixLinuxVN – Bài thực hành linux LPIC02 yum install rgmanager lvm2-cluster gfs2-utils b) BẬT DỊCH VỤ RICCI Trên Nodes service ricci start chkconfig ricci on passwd ricci [abc@123] CÀI ĐẶT CÔNG CỤ QUẢN TRỊ REDHAT CLUSTER SUITE Có thể cài đặt cơng cụ quản trị nodes cluster, cài đặt riêng máy chủ khác (recommend) Cài đặt tool cấu hình node1 yum install luci service luci start chkconfig luci on Truy cập cấu hình luci https://IP:8084 CẤU HÌNH REDHAT CLUSTER SUITE a) Truy cập cấu hình luci https://IP:8084 b) Đăng nhập user root password root UnixLinuxVN – Bài thực hành linux LPIC02 Sau đăng nhập thành công ta giao diện c) Chọn Manage Clusters > Create UnixLinuxVN – Bài thực hành linux LPIC02 Tạo thơng tin hình Password node pass ricci [abc@123] d) Chọn Create Cluster sau kết tương tự sau: UnixLinuxVN – Bài thực hành linux LPIC02 UnixLinuxVN – Bài thực hành linux LPIC02 e) Chọn Failover domains > Add Đặt thơng tin hình chọn create UnixLinuxVN – Bài thực hành linux LPIC02 f) Chọn Resources > Add 10 UnixLinuxVN – Bài thực hành linux LPIC02 Chọn loại Resource IP Address Tạo Resource IP address hình 11 UnixLinuxVN – Bài thực hành linux LPIC02 Tạo thêm Resource Scripts hình cho dịch vụ web Chọn Add > Resource type scripts 12 UnixLinuxVN – Bài thực hành linux LPIC02 Đặt thơng số hình 13 UnixLinuxVN – Bài thực hành linux LPIC02 g) Tạo Service Group cách chọn Service Groups > Add 14 UnixLinuxVN – Bài thực hành linux LPIC02 Đặt thông số bên chọn Add Resource để đưa IP resource scripts tạo lúc trước vào 15 UnixLinuxVN – Bài thực hành linux LPIC02 Add resource 192.168.9.203 Add resource web_server 16 UnixLinuxVN – Bài thực hành linux LPIC02 h) Chọn Submit kiểm tra lại kết 17 UnixLinuxVN – Bài thực hành linux LPIC02 i) Chọn lại Service Groups để xem kết 18 UnixLinuxVN – Bài thực hành linux LPIC02 19 ... LẠI NODEs CÀI ĐẶT REDHAT CLUSTER SUITE a) CÀI ĐẶT GÓI REDHAT CLUSTER SUITE Trên Nodes mount /dev/cdrom /mnt UnixLinuxVN – Bài thực hành linux LPIC02 yum install rgmanager lvm2 -cluster gfs2-utils... chkconfig ricci on passwd ricci [abc@123] CÀI ĐẶT CÔNG CỤ QUẢN TRỊ REDHAT CLUSTER SUITE Có thể cài đặt công cụ quản trị nodes cluster, cài đặt riêng máy chủ khác (recommend) Cài đặt tool cấu hình... luci service luci start chkconfig luci on Truy cập cấu hình luci https://IP:8084 CẤU HÌNH REDHAT CLUSTER SUITE a) Truy cập cấu hình luci https://IP:8084 b) Đăng nhập user root password root UnixLinuxVN

Ngày đăng: 14/12/2022, 10:35

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan