"VMC Labs" Create your SQL Cluster on Qcloud (3)

Source: Internet
Author: User

In the previous article we introduced how to build a set of domain environments in Qcloud standardization and how to avoid some pits in the production process, today we present another role in this demo-how to deploy and design shared storage sg.

The following is the server information that is needed today (in this case, the external network traffic is mainly to facilitate the demo, but the production environment does not recommend the use of external network bandwidth):

Number

Server name

Production IP

Storage IP

Heartbeat IP

Foreign VIP

1

Q-dc01

192.168.108.188

No

No


2

Q-sg01

192.168.108.206

10.11.11.231

No


3

Q-sql01

192.168.108.254

10.11.11.

10.10.10.2


4

Q-sql02

192.168.108.114

10.11.11.

10.10.10.234

About SG, which is used as a SQL cluster shared storage, the storage function is divided into three pieces, one as an arbitration disk, a piece as a production data, a piece as a spare (no reserved space enabled), shared storage We use the WS2K12R2 comes with the Iscsci server, and then SQL01, The SQL02 is connected to this shared storage separately.

The following schemas are involved:

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" WpsC067.tmp "border= "0" alt= "wpsc067.tmp" src= "http://s3.51cto.com/wyfs02/M02/8A/B3/wKiom1g354LhcU2NAABGiAe4-ug087.jpg" width= "408" height= "447"/>

Okay, Get Started:

1, connect to the Q-SG01, click Install iSCSI Server, the next step to select iSCSI Server:

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" WpsC078.tmp "border= "0" alt= "wpsc078.tmp" src= "http://s3.51cto.com/wyfs02/M02/8A/AF/wKioL1g354Ox2GDhAACs7NNTuBs389.jpg" width= "558" height= "396"/>

2, other do not need to set up direct next installation:

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" WpsC079.tmp "border= "0" alt= "wpsc079.tmp" src= "http://s3.51cto.com/wyfs02/M00/8A/AF/wKioL1g354TwSeCCAACA2exSWMM379.jpg" width= "558" height= "397"/>

3. Installing MPIO:

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" WpsC08A.tmp "border= "0" alt= "wpsc08a.tmp" src= "http://s3.51cto.com/wyfs02/M00/8A/B3/wKiom1g354XwLXjjAACiUxETKMM707.jpg" width= "558" height= "392"/>

4. Then open Disk Management to see if the data disk of the I-series server is initialized successfully:

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" WpsC08B.tmp "border= "0" alt= "wpsc08b.tmp" src= "http://s3.51cto.com/wyfs02/M01/8A/B3/wKiom1g354bzQnyfAADOUsTOKO0088.jpg" width= "558" height= "372"/>

5. Partition the data disk (iSCSI in volume):

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" WpsC09B.tmp "border= "0" alt= "wpsc09b.tmp" src= "http://s3.51cto.com/wyfs02/M02/8A/B3/wKiom1g354fzZ6IpAAC89acKLv0697.jpg" width= "558" height= "370"/>

6. After the check is complete, select Server Manager on the iSCSI server:

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" WpsC09C.tmp "border= "0" alt= "wpsc09c.tmp" src= "http://s3.51cto.com/wyfs02/M00/8A/B4/wKiom1g354jifDoBAABXtsMt_1U183.jpg" width= "558" height= "367"/>

7. Click Create iSCSI Virtual Disk

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" WpsC0AD.tmp "border= "0" alt= "wpsc0ad.tmp" src= "http://s3.51cto.com/wyfs02/M01/8A/AF/wKioL1g354jBcIuAAACr40gztxY944.jpg" width= "558" height= "428"/>

8. Enter the first disk (used as an arbitration disk):

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" WpsC0BD.tmp "border= "0" alt= "wpsc0bd.tmp" src= "http://s3.51cto.com/wyfs02/M02/8A/B4/wKiom1g354mzZpGjAAB1h3kXU0c244.jpg" width= "558" height= "427"/>

9. Select the dynamic disk type (the quorum disk is not required for data performance):

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" WpsC0BE.tmp "border= "0" alt= "wpsc0be.tmp" src= "http://s3.51cto.com/wyfs02/M02/8A/AF/wKioL1g354rwVvAPAACzWwgfjLI399.jpg" width= "558" height= "418"/>

10. Enter the target name (i.e. the receiving end, the arbitration disk and the data disk can use the same iSCSI target):

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" WpsC0CF.tmp "border= "0" alt= "wpsc0cf.tmp" src= "http://s3.51cto.com/wyfs02/M00/8A/AF/wKioL1g354uihfBdAAB2FYDDiks449.jpg" width= "558" height= "423"/>

11. Enter the target name:

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" WpsC0D0.tmp "border= "0" alt= "wpsc0d0.tmp" src= "http://s3.51cto.com/wyfs02/M01/8A/AF/wKioL1g354yBg2PZAABnJ3xzhyY289.jpg" width= "558" height= "420"/>

12. Add the access end machine to two SQL nodes:

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" WpsC0E1.tmp "border= "0" alt= "wpsc0e1.tmp" src= "http://s3.51cto.com/wyfs02/M02/8A/B4/wKiom1g3543zShpbAACB1wDOMao582.jpg" width= "558" height= "419"/>

13, do demo demo, without the use of CHAP authentication:

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" WpsC0E2.tmp "border= "0" alt= "wpsc0e2.tmp" src= "http://s3.51cto.com/wyfs02/M00/8A/B4/wKiom1g3546yfp0yAACLJPO1qGM423.jpg" width= "558" height= "425"/>

14, confirm the error after creating:

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" WpsC0F2.tmp "border= "0" alt= "wpsc0f2.tmp" src= "http://s3.51cto.com/wyfs02/M00/8A/B4/wKiom1g3546BwxuzAACUwlzPM_Y225.jpg" width= "558" height= "422"/>

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" WpsC0F3.tmp "border= "0" alt= "wpsc0f3.tmp" src= "http://s3.51cto.com/wyfs02/M00/8A/AF/wKioL1g354-Q1DO6AACJBnBCcoc750.jpg" width= "558" height= "415"/>

15. Create a second disk in the same way:

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" WpsC104.tmp "border= "0" alt= "wpsc104.tmp" src= "http://s3.51cto.com/wyfs02/M01/8A/B4/wKiom1g355Dyo_bnAABsgrLHglg920.jpg" width= "558" height= "421"/>

PS: Note Choosing a fixed size that requires high performance as a sqlcluster cluster storage

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" WpsC105.tmp "border= "0" alt= "wpsc105.tmp" src= "http://s3.51cto.com/wyfs02/M02/8A/B4/wKiom1g355HTqvREAAC4v3VDHRg157.jpg" width= "558" height= "418"/>

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" WpsC115.tmp "border= "0" alt= "wpsc115.tmp" src= "http://s3.51cto.com/wyfs02/M01/8A/B0/wKioL1g355KxOYq5AAB298CcdJw359.jpg" width= "558" height= "422"/>

16, create the completion:

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" WpsC116.tmp "border= "0" alt= "wpsc116.tmp" src= "http://s3.51cto.com/wyfs02/M00/8A/B0/wKioL1g355PA776rAABqCJ-z40w593.jpg" width= "558" height= "287"/>

17. Next, log in to SQL01, SQL02 machine, connect iSCSI (using iSCSI Initiator):

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" WpsC127.tmp "border= "0" alt= "wpsc127.tmp" src= "http://s3.51cto.com/wyfs02/M01/8A/B0/wKioL1g355SiFjSxAADAlcrgORg430.jpg" width= "381" height= "484"/>

18. Switch to "discover" and delete the discovered IP:

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" WpsC138.tmp "border= "0" alt= "wpsc138.tmp" src= "http://s3.51cto.com/wyfs02/M02/8A/B0/wKioL1g355WDuR6OAAC5aD2iz2I698.jpg" width= "354" height= "484"/>

19. Click "Discover Portal" again, enter the destination address, then click Advanced to specify IP connection:

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" WpsC139.tmp "border= "0" alt= "wpsc139.tmp" src= "http://s3.51cto.com/wyfs02/M00/8A/B4/wKiom1g355XB4zRJAABrBQAltRk029.jpg" width= "396" height= "223"/>

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" WpsC149.tmp "border= "0" alt= "wpsc149.tmp" src= "http://s3.51cto.com/wyfs02/M01/8A/B4/wKiom1g355ajXRu-AAC97jT04q8685.jpg" width= "421" height= "467"/>

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" WpsC14A.tmp "border= "0" alt= "wpsc14a.tmp" src= "http://s3.51cto.com/wyfs02/M00/8A/B4/wKiom1g355eQ-6zLAAC_8oytmDg954.jpg" width= "363" height= "484"/>

20. Use the same method to connect the SQL02 to the iSCSI disk, and then confirm that there is an iSCSI-attached disk in Disk Management:

650) this.width=650; "Style=" background-image:none;padding-left:0px;padding-right:0px;border-top-width:0px; border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" wpsc15b.tmp "border=" 0 "alt=" wpsC15B.tmp " Src= "Http://s3.51cto.com/wyfs02/M02/8A/B4/wKiom1g355ijIBw7AACPp1n24c0073.jpg" width= "558" height= "327"/>

21, then restart the two nodes to complete the storage preparation

650) this.width=650; "Style=" background-image:none;padding-left:0px;padding-right:0px;float:none; Border-top-width:0px;border-bottom-width:0px;margin-left:auto;border-left-width:0px;margin-right:auto; padding-top:0px; "title=" Logo_thumb "border=" 0 "alt=" logo_thumb "src=" http://s3.51cto.com/wyfs02/M00/8A/B4/ Wkiom1g355mi1zyuaaeqmfweoom362.png "width=" 534 "height=" 351 "/>

This article from "Vmcloud" blog, reproduced please contact the author!

"VMC Labs" Create your SQL Cluster on Qcloud (3)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.