CentOS 6.4 Heartbeat+mysql+nfs实现高可用的mysql集群
一、Heartbeat網絡架構
二、準備工作
1、操作系統
CentOS?6.4?X86-64?最小化安裝 由于用源碼編譯安裝heartbeat一直沒有通過,所以沒辦法只能采用yum安裝。 heartbeat?v3這里需要強調的就是博文中: #?表示是在node1、node2上都要執行的命令 而 [root@node1?~]#?表示僅在node1節點上執行的命令 [root@node2?~]#?表示僅在node2節點上執行的命令 [root@node3?~]#?表示僅在node3節點上執行的命令新遇到的問題,本來這邊博文準備把Heartbeat的資源管理器由haresources換成crm,但是在配置crm的時候,總是不成功,如果朋友有crm成功的案例,希望能指導指導。謝謝2、地址規劃
3、主機名解析
4、雙機互信
[root@node1?~]#?ssh-keygen?-t?rsa?-f?~/.ssh/id_rsa?-P?'' Generating?public/private?rsa?key?pair. Created?directory?'/root/.ssh'. Your?identification?has?been?saved?in?/root/.ssh/id_rsa. Your?public?key?has?been?saved?in?/root/.ssh/id_rsa.pub. The?key?fingerprint?is: ce:f3:d7:63:10:9b:d2:86:f8:8a:5a:ee:41:d8:d2:01?root@node1.test.com The?key's?randomart?p_w_picpath?is: +--[?RSA?2048]----+ |????E????????????| |?????.???????????| |??????.??????????| |?????+?.????.????| |????o?+?S.?o?+???| |?????o?o.?o?*????| |??????o?+.?o?o???| |?????o?o?o.?.?+??| |????.o+?....?.?.?| +-----------------+ [root@node1?~]#?ssh-copy-id?-i?.ssh/id_rsa.pub?root@node2.test.com The?authenticity?of?host?'node2.test.com?(192.168.0.102)'?can't?be?established. RSA?key?fingerprint?is?46:b9:7c:11:db:75:93:ad:f1:26:f0:a7:4d:00:40:20. Are?you?sure?you?want?to?continue?connecting?(yes/no)??yes Warning:?Permanently?added?'node2.test.com,192.168.0.102'?(RSA)?to?the?list?of?known?hosts. root@node2.test.com's?password:? Now?try?logging?into?the?machine,?with?"ssh?'root@node2.test.com'",?and?check?in:.ssh/authorized_keysto?make?sure?we?haven't?added?extra?keys?that?you?weren't?expecting.[root@node2?~]#?ssh-keygen?-t?rsa?-f?~/.ssh/id_rsa?-P?'' Generating?public/private?rsa?key?pair. Your?identification?has?been?saved?in?/root/.ssh/id_rsa. Your?public?key?has?been?saved?in?/root/.ssh/id_rsa.pub. The?key?fingerprint?is: c4:e3:71:f8:82:09:f0:42:9c:e7:20:db:db:ce:dc:0b?root@node2.test.com The?key's?randomart?p_w_picpath?is: +--[?RSA?2048]----+ |?.o.?????????????| |..+o.??.?.???????| |?+.+o???*?.??????| |.?....?=?=???????| |???o??o?S?.??????| |??.?.????.???????| |???+E.???????????| |????+..??????????| |??????..?????????| +-----------------+ [root@node2?~]#?ssh-copy-id?-i?.ssh/id_rsa.pub?root@node1.test.com The?authenticity?of?host?'node1.test.com?(192.168.0.101)'?can't?be?established. RSA?key?fingerprint?is?46:b9:7c:11:db:75:93:ad:f1:26:f0:a7:4d:00:40:20. Are?you?sure?you?want?to?continue?connecting?(yes/no)??yes Warning:?Permanently?added?'node1.test.com,192.168.0.101'?(RSA)?to?the?list?of?known?hosts. root@node1.test.com's?password:? Now?try?logging?into?the?machine,?with?"ssh?'root@node1.test.com'",?and?check?in:.ssh/authorized_keysto?make?sure?we?haven't?added?extra?keys?that?you?weren't?expecting.5、時間同步
6、關閉防火墻
#?getenforce Disabled #?/etc/init.d/iptables?status iptables:未運行防火墻。三、安裝heartbeat包
1、安裝epel源
#?wget?http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm? #?wget?http://rpms.famillecollet.com/enterprise/remi-release-6.rpm? #?rpm?-Uvh?remi-release-6*.rpm?epel-release-6*.rpm2、修改epel源的配置文件
#?sed?-i?'s/#baseurl/baseurl/g'?/etc/yum.repos.d/epel.repo? #?sed?-i?'s/mirrorlist/#mirrorlist/'?/etc/yum.repos.d/epel.repo3、安裝heartbeat包
#?yum?install?heartbeat?heartbeat-libs4、查看heartbeat所依賴的包
四、配置Heartbeat服務
1、heartbeat配置文件的介紹
heartbeat3個配置文件authkeys #節點之間認證的秘鑰key文件,權限為600ha.cf #heartbeat服務核心配置文件haresources #集群資源管理器(haresource?|?crm)2、拷貝heartbeat初始配置文件
[root@node1?~]#?cp?/usr/share/doc/heartbeat-3.0.4/{ha.cf,authkeys,haresources}?/etc/ha.d/3、編輯authkeys文件
[root@node1?~]#?dd?if=/dev/random?bs=512?count=1?|?openssl?md5 #生成密鑰隨機數 記錄了0+1?的讀入 記錄了0+1?的寫出 72字節(72?B)已復制,4.8467e-05?秒,1.5?MB/秒 (stdin)=?acf7401e6b20d4cec482ba1160eb8efe [root@node1?~]#?vim?/etc/ha.d/authkeys #注釋:末尾添加以下兩行 auth?1 1?md5?acf7401e6b20d4cec482ba1160eb8efe [root@node1?~]#?chmod?600?/etc/ha.d/authkeys4、編輯ha.cf主配置文件
[root@node1?ha.d]#?grep?-v?'^#'?ha.cf?|sed?'/^$/d' 注釋:主要修改兩處,其它的都可以默認 logfacility local0 mcast?eth1?225.100.100.100?694?1?0 #修改心跳信息的傳播方式|組播 auto_failback?on node?node1.test.com #配置集群中的節點數 node?node2.test.com #配置集群中的節點數5、編輯haresources配置文件
[root@node1?ha.d]#?grep?-v?'^#'?/etc/ha.d/haresources? node1.test.com??IPaddr::192.168.1.223?Filesystem::192.168.1.198:/mydata::/mydata::nfs?mysqld6、拷貝配置文件到node2節點
[root@node1?~]#?scp?/etc/ha.d/{ha.cf,haresources,authkeys}?root@node2.test.com:/etc/ha.d/五、創建lvm邏輯卷
1、node3主機增加一塊10G的新硬盤
2、node3節點硬盤分區,標記為lvm卷
[root@node3?~]#?fdisk?/dev/sdb Device?contains?neither?a?valid?DOS?partition?table,?nor?Sun,?SGI?or?OSF?disklabel Building?a?new?DOS?disklabel?with?disk?identifier?0xc42dce64. Changes?will?remain?in?memory?only,?until?you?decide?to?write?them. After?that,?of?course,?the?previous?content?won't?be?recoverable.Warning:?invalid?flag?0x0000?of?partition?table?4?will?be?corrected?by?w(rite)WARNING:?DOS-compatible?mode?is?deprecated.?It's?strongly?recommended?toswitch?off?the?mode?(command?'c')?and?change?display?units?tosectors?(command?'u').Command?(m?for?help):?n Command?actione???extendedp???primary?partition?(1-4) p Partition?number?(1-4):?1 First?cylinder?(1-1305,?default?1):?1 Last?cylinder,?+cylinders?or?+size{K,M,G}?(1-1305,?default?1305):? Using?default?value?1305Command?(m?for?help):?pDisk?/dev/sdb:?10.7?GB,?10737418240?bytes 255?heads,?63?sectors/track,?1305?cylinders Units?=?cylinders?of?16065?*?512?=?8225280?bytes Sector?size?(logical/physical):?512?bytes?/?512?bytes I/O?size?(minimum/optimal):?512?bytes?/?512?bytes Disk?identifier:?0xc42dce64Device?Boot??????Start?????????End??????Blocks???Id??System /dev/sdb1???????????????1????????1305????10482381???83??LinuxCommand?(m?for?help):?t Selected?partition?1 Hex?code?(type?L?to?list?codes):?8e Changed?system?type?of?partition?1?to?8e?(Linux?LVM)Command?(m?for?help):?pDisk?/dev/sdb:?10.7?GB,?10737418240?bytes 255?heads,?63?sectors/track,?1305?cylinders Units?=?cylinders?of?16065?*?512?=?8225280?bytes Sector?size?(logical/physical):?512?bytes?/?512?bytes I/O?size?(minimum/optimal):?512?bytes?/?512?bytes Disk?identifier:?0xc42dce64Device?Boot??????Start?????????End??????Blocks???Id??System /dev/sdb1???????????????1????????1305????10482381???8e??Linux?LVMCommand?(m?for?help):?w The?partition?table?has?been?altered!Calling?ioctl()?to?re-read?partition?table. Syncing?disks.3、創建lvm邏輯卷
[root@node3?~]#?yum?-y?install?lvm2 [root@node3?~]#?pvcreate?/dev/sdb1Physical?volume?"/dev/sdb1"?successfully?created [root@node3?~]#?vgcreate?myvg?/dev/sdb1Volume?group?"myvg"?successfully?created [root@node3?~]#?lvcreate?-L?9G?-n?mydata?myvgLogical?volume?"mydata"?created [root@node3?~]#?lvs?|grep?mydatamydata??myvg?????-wi-a-----??9.00g4、格式化lvm邏輯卷
[root@node3?~]#?mkfs.ext4?/dev/myvg/mydata? mke2fs?1.41.12?(17-May-2010) 文件系統標簽= 操作系統:Linux 塊大小=4096?(log=2) 分塊大小=4096?(log=2) Stride=0?blocks,?Stripe?width=0?blocks 589824?inodes,?2359296?blocks 117964?blocks?(5.00%)?reserved?for?the?super?user 第一個數據塊=0 Maximum?filesystem?blocks=2415919104 72?block?groups 32768?blocks?per?group,?32768?fragments?per?group 8192?inodes?per?group Superblock?backups?stored?on?blocks:?32768,?98304,?163840,?229376,?294912,?819200,?884736,?1605632正在寫入inode表:?完成???????????????????????????? Creating?journal?(32768?blocks):?完成 Writing?superblocks?and?filesystem?accounting?information:?完成This?filesystem?will?be?automatically?checked?every?23?mounts?or 180?days,?whichever?comes?first.??Use?tune2fs?-c?or?-i?to?override.六、安裝配置NFS
1、安裝nfs服務
[root@node3?~]#?yum?-y?install?nfs-utils?rpcbind2、配置nfs共享存儲目錄
[root@node3?~]#?mkdir?/mydata [root@node3?~]#?echo?"/mydata?????192.168.1.0/24(rw,all_squash,anonuid=3306,anongid=3306)"?>?/etc/exports3、查看nfs的共享目錄
[root@node3?~]#?showmount?-e?192.168.1.198 clnt_create:?RPC:?Port?mapper?failure?-?Unable?to?receive:?errno?111?(Connection?refused) [root@node3?~]#?service?nfs?start? 啟動?NFS?服務:????????????????????????????????????????????[確定] 啟動?NFS?mountd:??????????????????????????????????????????[失敗] 啟動?NFS?守護進程:rpc.nfsd:?writing?fd?to?kernel?failed:?errno?111?(Connection?refused) rpc.nfsd:?unable?to?set?any?sockets?for?nfsd[失敗] [root@node3?~]#?service?rpcbind?start 正在啟動?rpcbind:?????????????????????????????????????????[確定] [root@node3?~]#?service?nfs?start? 啟動?NFS?服務:????????????????????????????????????????????[確定] 啟動?NFS?mountd:??????????????????????????????????????????[確定] 啟動?NFS?守護進程:????????????????????????????????????????[確定] 正在啟動?RPC?idmapd:??????????????????????????????????????[確定] [root@node3?~]#?showmount?-e?192.168.1.198 Export?list?for?192.168.1.198: /mydata?192.168.1.0/244、本地掛載lvm邏輯卷
[root@node3?~]#?mount?/dev/myvg/mydata?/mydata/ [root@node3?~]#?ll?/mydata/ 總用量?16 drwx------?2?root?root?16384?12月?31?09:02?lost+found如果以上都沒有問題的話,接下來我們就為安裝配置mysql做準備!!!
七、安裝配置MySQL
1、node3節點上創建用戶
[root@node3?~]#?useradd?-g?mysql?-u?3306?-s?/sbin/nologin?-M?mysql [root@node3?~]#?id?mysql uid=3306(mysql)?gid=3306(mysql)?組=3306(mysql)2、賦予掛載的lvm邏輯卷的宿主和組為mysql
[root@node3?~]#?chown?-R?mysql.mysql?/mydata/ [root@node3?~]#?ll?-d?/mydata/ drwxr-xr-x?3?mysql?mysql?4096?12月?31?09:02?/mydata/到了這里NFS的配置基本就差不多了。接下來我們在node1節點上安裝配置mysql服務
node1:
1、創建用戶 [root@node1?~]#?groupadd?-g?3306?mysql [root@node1?~]#?useradd?-g?mysql?-u?3306?-s?/sbin/nologin?-M?mysql [root@node1?~]#?id?mysql uid=3306(mysql)?gid=3306(mysql)?組=3306(mysql)2、解壓MySQL安裝包 [root@node1?~]#?tar?xf?mysql-5.6.12-linux-glibc2.5-x86_64.tar.gz?-C?/usr/local/ [root@node1?~]#?ln?-sv?/usr/local/mysql-5.6.12-linux-glibc2.5-x86_64?/usr/local/mysql "/usr/local/mysql"?->?"/usr/local/mysql-5.6.12-linux-glibc2.5-x86_64"3、賦予MySQL安裝包權限 [root@node1?~]#?chown?-R?root.mysql?/usr/local/mysql/ [root@node1?~]#?ll?/usr/local/mysql/ 總用量?76 drwxr-xr-x??2?root?mysql??4096?12月?31?09:15?bin -rw-r--r--??1?root?mysql?17987?6月??20?2013?COPYING drwxr-xr-x??3?root?mysql??4096?12月?31?09:16?data drwxr-xr-x??2?root?mysql??4096?12月?31?09:16?docs drwxr-xr-x??3?root?mysql??4096?12月?31?09:16?include -rw-r--r--??1?root?mysql??7469?6月??20?2013?INSTALL-BINARY drwxr-xr-x??3?root?mysql??4096?12月?31?09:16?lib drwxr-xr-x??4?root?mysql??4096?12月?31?09:15?man drwxr-xr-x?10?root?mysql??4096?12月?31?09:16?mysql-test -rw-r--r--??1?root?mysql??2496?6月??20?2013?README drwxr-xr-x??2?root?mysql??4096?12月?31?09:16?scripts drwxr-xr-x?28?root?mysql??4096?12月?31?09:15?share drwxr-xr-x??4?root?mysql??4096?12月?31?09:16?sql-bench drwxr-xr-x??3?root?mysql??4096?12月?31?09:16?support-files4、掛載NFS的共享目錄并創建MySQL數據存放目錄 [root@node1?~]#?mkdir?/mydata [root@node1?~]#?mount?-t?nfs4?192.168.1.198:/mydata?/mydata [root@node1?~]#?ll?/mydata/ 總用量?16 drwx------?2?mysql?mysql?16384?12月?31?09:02?lost+found [root@node1?~]#?mkdir?/mydata/data [root@node1?~]#?ll?/mydata/ 總用量?20 drwxr-xr-x?2?mysql?mysql??4096?12月?31?09:24?data drwx------?2?mysql?mysql?16384?12月?31?09:02?lost+found5、初始化數據庫 [root@node1?~]#?yum?-y?install?libaio [root@node1?~]#?/usr/local/mysql/scripts/mysql_install_db?--user=mysql?--datadir=/mydata/data/?--basedir=/usr/local/mysql/6、拷貝配置文件、服務啟動腳本文件 [root@node1?~]#?cp?/usr/local/mysql/support-files/my-default.cnf?/etc/my.cnf? cp:是否覆蓋"/etc/my.cnf"??yes [root@node1?~]#?cp?/usr/local/mysql/support-files/mysql.server?/etc/init.d/mysqld7、修改MySQL配置文件 [root@node1?~]#?vim?/etc/my.cnf? datadir?=?/mydata/data innodb_file_per_table?=?18、啟動服務并登陸測試 [root@node1?~]#?service?mysqld?start Starting?MySQL..?SUCCESS! [root@node1?~]#?/usr/local/mysql/bin/mysql?-e?"show?databases;" +--------------------+ |?Database???????????| +--------------------+ |?information_schema?| |?mysql??????????????| |?performance_schema?| |?test???????????????| +--------------------+9、拷貝MySQL配置文件、啟動服務腳本文件到node2節點上 [root@node1?~]#?scp?/etc/init.d/mysqld?/etc/init.d/mysqld [root@node1?~]#?scp?/etc/init.d/mysqld?node2:/etc/init.d/mysqld10、停止MySQL服務 [root@node1?~]#?service?mysqld?stop Shutting?down?MySQL..?SUCCESS!node2:
1、創建用戶 [root@node2?~]#?groupadd?-g?3306?mysql [root@node2?~]#?useradd?-g?mysql?-u?3306?-s?/sbin/nologin?-M?mysql [root@node2?~]#?id?mysql uid=3306(mysql)?gid=3306(mysql)?組=3306(mysql)2、解壓MySQL安裝包 [root@node2?~]#?tar?xf?mysql-5.6.12-linux-glibc2.5-x86_64.tar.gz?-C?/usr/local/ [root@node2?~]#?ln?-sv?/usr/local/mysql-5.6.12-linux-glibc2.5-x86_64?/usr/local/mysql "/usr/local/mysql"?->?"/usr/local/mysql-5.6.12-linux-glibc2.5-x86_64"3、賦予MySQL安裝包權限 [root@node2?~]#?chown?-R?root.mysql?/usr/local/mysql/ [root@node2?~]#?ll?/usr/local/mysql/ 總用量?76 drwxr-xr-x??2?root?mysql??4096?12月?31?09:15?bin -rw-r--r--??1?root?mysql?17987?6月??20?2013?COPYING drwxr-xr-x??3?root?mysql??4096?12月?31?09:16?data drwxr-xr-x??2?root?mysql??4096?12月?31?09:16?docs drwxr-xr-x??3?root?mysql??4096?12月?31?09:16?include -rw-r--r--??1?root?mysql??7469?6月??20?2013?INSTALL-BINARY drwxr-xr-x??3?root?mysql??4096?12月?31?09:16?lib drwxr-xr-x??4?root?mysql??4096?12月?31?09:15?man drwxr-xr-x?10?root?mysql??4096?12月?31?09:16?mysql-test -rw-r--r--??1?root?mysql??2496?6月??20?2013?README drwxr-xr-x??2?root?mysql??4096?12月?31?09:16?scripts drwxr-xr-x?28?root?mysql??4096?12月?31?09:15?share drwxr-xr-x??4?root?mysql??4096?12月?31?09:16?sql-bench drwxr-xr-x??3?root?mysql??4096?12月?31?09:16?support-files4、掛載NFS的共享目錄 [root@node2?~]#?mkdir?/mydata [root@node2?~]#?mount?-t?nfs4?192.168.1.198:/mydata?/mydata [root@node2?~]#?ll?/mydata/ 總用量?20 drwxr-xr-x?5?mysql?mysql??4096?12月?31?09:28?data drwx------?2?mysql?mysql?16384?12月?31?09:02?lost+found5、啟動MySQL服務 [root@node2?~]#?service?mysqld?start Starting?MySQL.?ERROR!?The?server?quit?without?updating?PID?file?(/mydata/data/node2.test.com.pid).6、查看日志 [root@node2?data]#?tail?-f?node2.test.com.err? 141231?09:39:10?mysqld_safe?Starting?mysqld?daemon?with?databases?from?/mydata/data /usr/local/mysql/bin/mysqld:?error?while?loading?shared?libraries:?libaio.so.1:?cannot?open?shared?object?file:?No?such?file?or?directory 141231?09:39:10?mysqld_safe?mysqld?from?pid?file?/mydata/data/node2.test.com.pid?ended哦!原來是沒有安裝libaio包 [root@node2?~]#?yum?-y?install?libaio再次啟動MySQL服務 [root@node2?~]#?service?mysqld?start Starting?MySQL..?SUCCESS!八、啟動Heartbeat服務
1、在node1和node2上啟動hearbeat服務
2、查看vip、共享掛載、MySQL服務
[root@node1?~]#?ip?addr 1:?lo:?<LOOPBACK,UP,LOWER_UP>?mtu?16436?qdisc?noqueue?state?UNKNOWN?link/loopback?00:00:00:00:00:00?brd?00:00:00:00:00:00inet?127.0.0.1/8?scope?host?loinet6?::1/128?scope?host?valid_lft?forever?preferred_lft?forever 2:?eth1:?<BROADCAST,MULTICAST,UP,LOWER_UP>?mtu?1500?qdisc?pfifo_fast?state?UP?qlen?1000link/ether?00:0c:29:c7:14:97?brd?ff:ff:ff:ff:ff:ffinet?192.168.1.196/24?brd?255.255.255.255?scope?global?eth1inet?192.168.1.223/24?brd?255.255.255.255?scope?global?secondary?eth1inet6?fe80::20c:29ff:fec7:1497/64?scope?link?valid_lft?forever?preferred_lft?forever [root@node1?~]#?df?-h 文件系統 ??????容量??已用??可用?已用%%?掛載點 /dev/mapper/VolGroup-lv_root16G??2.7G???12G??19%?/ tmpfs?????????????????495M?????0??495M???0%?/dev/shm /dev/sda1?????????????485M???32M??428M???7%?/boot 192.168.1.198:/mydata8.9G??259M??8.2G???4%?/mydata [root@node1?~]#?service?mysqld?statusSUCCESS!?MySQL?running?(3650)3、賦予授權用戶權限
因為涉及到MySQL的高可用,那么客戶端肯定要遠程登錄MySQL,所以首先賦予遠程登錄的權限。
九、測試MySQL服務的高可用
1、測試前的準備工作
注釋:卸載node1和node2節點的掛載共享目錄、停止MySQL服務并開機不自啟動
node1:
[root@node1?~]#?df 文件系統 ?????????1K-塊??????已用??????可用?已用%?掛載點 /dev/mapper/VolGroup-lv_root16134560???2786364??12528588??19%?/ tmpfs???????????????????506272?????????0????506272???0%?/dev/shm /dev/sda1???????????????495844?????32418????437826???7%?/boot [root@node1?~]#?chkconfig?mysqld?off [root@node1?~]#?chkconfig?--list?mysqld mysqld????????? 0:關閉 1:關閉 2:關閉 3:關閉 4:關閉 5:關閉 6:關閉 [root@node1?~]#?service?mysqld?statusERROR!?MySQL?is?not?runningnode2:
2、啟動node1和node2節點的hearbeat服務并查看相關信息
3、客戶端連接測試
首先:當vip在node1上的時候,登錄測試
其次:停止node1上的heartbeat服務,或者直接關機,客戶端登錄驗證
[root@node1?~]#?init?0node2
這個模擬測試的意思就是:
無論你在node1節點上是關閉hearbeat服務還是直接關閉主機電源都不影響客戶端正常的使用數據庫系統;
反過來也就是說:
無論你在node2節點上是關閉hearbeat服務還是直接關閉電源也都不會影響客戶端正常的使用數據庫系統。
不足之處,雖然通過Hearbeat對MySQl服務做了高可用,無論是對node1節點進行操作還是對node2節點進行操作,都不會影響數據庫系統的使用,但是如果node3節點出現了故障,那么我們的數據庫系統就無法使用了。所以,我就想起了之前在網上看了一篇技術性文章MFS,似乎是NFS的升級版,可以解決NFS的單點故障,這也很大程度上的彌補了架構的不足,我也會在后續章節中介紹MFS的使用。
這里有一點十分重要,也就是這一點困擾了我很長一段時間:
NFS有四個版本 V1版本是sun公司內部使用的,V2是第一個公開使用的版本,V3是目前主流的版本也是RedHat 5.x自帶的默認版本,但是在RedHat 6.x上NFS的版本卻變成了V4版本,V4版本在前版本的基礎上做了很大的補充,如果你還是用V3的方式去掛載NFS共享目錄,那么你就會走到一個誤區,導致后續的實驗無法進行,至于NFS V4的介紹可以參考鏈接的相關資料
http://www.cyberciti.biz/faq/centos-fedora-rhel-nfs-v4-configuration/
如有不足之處,希望朋友指出。謝謝
轉載于:https://blog.51cto.com/467754239/1597624
總結
以上是生活随笔為你收集整理的CentOS 6.4 Heartbeat+mysql+nfs实现高可用的mysql集群的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Linux内核: 分析coredump文
- 下一篇: mysql修改存储位置及开启远程