%3CLINGO-SUB%20id%3D%22lingo-sub-1579803%22%20slang%3D%22en-US%22%3ETutorial%3A%20Create%20SQL%20Cluster(FCI)%20on%20RHEL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1579803%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20style%3D%22font-weight%3A%20400%3B%22%3EIn%20the%20Windows%20world%2C%20SQL%20Server%20integrates%20into%20Windows%20Server%20Failover%20Cluster%20(WSFC)%20natively%2C%20and%20we%20have%20a%20dedicated%20installation%20for%20SQL%20Server%20Cluster.%20However%2C%20on%20Linux%2C%20you%20need%20to%20install%20standalone%20SQL%20Server%20instance%20in%20the%20nodes%20first%2C%20and%20then%20configure%20the%20instance%20as%20a%20SQL%20Server%20cluster%20instance.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3EI%20use%20SQL%20Server%202019%20with%20RHEL%208.x%20in%20this%20tutorial%2C%20but%20it%20is%20possible%20to%20use%20SQL%20Server%202017%20in%20RHEL%207.x%20or%20RHEL%208%20to%20configure%20FCI.%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3EHere%20is%20the%20step%20by%20step%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fyoutu.be%2FGYO8an116l0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EVideo%3C%2FA%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSTRONG%3ETopology%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_0-1597102650439.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211592iAEF3E20713AFD43F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_0-1597102650439.png%22%20alt%3D%22Liwei_0-1597102650439.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSTRONG%3E1.ISCSI%20target%20server%20configuration%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%20style%3D%22font-weight%3A%20400%3B%22%3EThe%20two%20highlighted%20disks%20will%20be%20the%20used%20as%20Shared%20Storage.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_1-1597102650482.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211593iE6913C219EB83DD6%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_1-1597102650482.png%22%20alt%3D%22Liwei_1-1597102650482.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3Esdc%20is%20for%20the%20database%20files%20in%20%2Fvar%2Fopt%2Fmssql%2Fdata%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3Esdd%20is%20for%20the%20user%20databases%20files.%20If%20all%20your%20databases%20are%20stored%20%2Fvar%2Fopt%2Fmssql%2Fdata%2C%20feel%20free%20to%26nbsp%3B%3CSTRONG%3Eignore%20all%20the%20steps%20link%20to%20device%20sdd.%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E2.Run%20fdisk%20to%20create%20partition.%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Efdisk%20%2Fdev%2Fsdc%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Efdisk%20%2Fdev%2Fsdd%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_2-1597102650493.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211594i7399010641F63377%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_2-1597102650493.png%22%20alt%3D%22Liwei_2-1597102650493.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3ERun%20lsblk%20again%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_3-1597102650483.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211595iD6546682BC28E788%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_3-1597102650483.png%22%20alt%3D%22Liwei_3-1597102650483.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E3.Install%20targetcli%20package.%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Eyum%20-y%20install%20targetcli%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E4.Run%20targetcli%20to%20create%20ISCSI%20target%20server.%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3EI%20created%20two%20ACLs%20entries%20for%20the%20node1%20and%20node2%3A%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3Eiqn.2020-08.com.contoso%3Anode1%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3Eiqn.2020-08.com.contoso%3Anode2%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3EI%E2%80%99m%20not%20going%20to%20dig%20into%20the%20targetcli%20command%2C%20please%20review%20this%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Faccess.redhat.com%2Fsolutions%2F1166663%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Earticle%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efor%20detail.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_4-1597102650494.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211596iF1503B8F485CA9EA%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_4-1597102650494.png%22%20alt%3D%22Liwei_4-1597102650494.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3EAnd%20I%20have%20following%20iscsi%20settings%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_5-1597102650497.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211597i20E6E86D9ADDAE2D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_5-1597102650497.png%22%20alt%3D%22Liwei_5-1597102650497.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E5.Run%20following%20bash%20command%20to%20expose%20tcp%20port%203260%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Efirewall-cmd%20--add-port%3D3260%2Ftcp%20--permanent%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Efirewall-cmd%20--reload%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_6-1597102650445.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211599iBAD38681693C3D21%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_6-1597102650445.png%22%20alt%3D%22Liwei_6-1597102650445.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%226%22%3E%0A%3CLI%20style%3D%22font-weight%3A%20400%3B%22%3EEnable%20and%20restart%20the%20target%20service.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esystemctl%20enable%20target.service%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esystemctl%20restart%20target.service%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSTRONG%3E2.ISCSI%20initiator%20configuration.%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3EChoose%20one%20of%20the%20servers%20that%20will%20participate%20in%20the%20FCI%20configuration.%20It%20does%20not%20matter%20which%20one.%20I%20use%20node1%20in%20this%20tutorial.%20Please%20note%2C%20All%20the%20steps%20in%20this%20section%20are%20performed%20in%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Enode1%3C%2FSTRONG%3E%2C%20unless%20stated%20otherwise.%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E1.Install%20iscsi-initiator-utils%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3Ein%20all%20nodes.%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20yum%20install%20iscsi-initiator-utils%20-y%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E2.Edit%20the%20%2Fetc%2Fiscsi%2Finitiatorname.iscsi%20%2C%20replace%20the%20existing%20value%20with%20following%20keywords%2C%20the%20one%20I%20used%20in%20step%204%20of%20section%5BISCSI%20target%20server%20configuration%5D%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3EInitiatorName%3Diqn.2020-08.com.contoso%3Anode1%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_7-1597102650445.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211598i2062A0E5D504F7A3%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_7-1597102650445.png%22%20alt%3D%22Liwei_7-1597102650445.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E3.Discover%20iSCSI%20disk%20of%20the%20target.%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Eiscsiadm%20-m%20discovery%20-t%20st%20-p%20%3CIP%20of%3D%22%22%20iscsi%3D%22%22%20target%3D%22%22%20server%3D%22%22%3E%3C%2FIP%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3EHere%20is%20the%20command%20in%20this%20tutorial.%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Eiscsiadm%20-m%20discovery%20-t%20st%20-p%2010.1.0.8%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_8-1597102650446.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211600iB18424C6858F6853%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_8-1597102650446.png%22%20alt%3D%22Liwei_8-1597102650446.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%225%22%3E%0A%3CLI%20style%3D%22font-weight%3A%20400%3B%22%3E(Optional%20step)After%20the%20discovery%20below%20database%20is%20updated.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Els%20-l%20%2Fvar%2Flib%2Fiscsi%2Fnodes%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_9-1597102650447.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211601i48FE612A946B6366%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_9-1597102650447.png%22%20alt%3D%22Liwei_9-1597102650447.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E6.Make%20the%20connection%20to%20iscsi%20target.%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Eiscsiadm%20--mode%20node%20--targetname%20iqn.2020-08.com.contoso%3Aservers%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E--login%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_10-1597102650447.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211603i3D1C6F6C67EB9D68%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_10-1597102650447.png%22%20alt%3D%22Liwei_10-1597102650447.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%227%22%3E%0A%3CLI%20style%3D%22font-weight%3A%20400%3B%22%3E(Optional%20step)After%20logging%20in%2C%20a%20session%20with%20the%20iSCSI%20target%20is%20established.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Eiscsiadm%20--mode%20node%20-P%201%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_11-1597102650448.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211602i4B58DF8CD257E1E3%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_11-1597102650448.png%22%20alt%3D%22Liwei_11-1597102650448.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%228%22%3E%0A%3CLI%20style%3D%22font-weight%3A%20400%3B%22%3E(Optional%20step)If%20you%20review%20the%20messages%20file%2C%20you%20will%20see%20following%20keywords%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20grep%20%22Attached%20SCSI%22%20%2Fvar%2Flog%2Fmessages%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3EAug%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E6%2001%3A38%3A21%20localhost%20kernel%3A%20sd%203%3A0%3A1%3A0%3A%20%5Bsdb%5D%20Attached%20SCSI%20disk%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3EAug%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E6%2001%3A38%3A21%20localhost%20kernel%3A%20sd%202%3A0%3A0%3A0%3A%20%5Bsda%5D%20Attached%20SCSI%20disk%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3EAug%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E6%2004%3A26%3A01%20localhost%20kernel%3A%20sd%206%3A0%3A0%3A0%3A%20%5B%3CSTRONG%3Esdc%3C%2FSTRONG%3E%5D%20Attached%20SCSI%20disk%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3EAug%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E6%2004%3A26%3A01%20localhost%20kernel%3A%20sd%206%3A0%3A0%3A1%3A%20%5B%3CSTRONG%3Esdd%3C%2FSTRONG%3E%5D%20Attached%20SCSI%20disk%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E9.Create%20physical%20volumes%20on%20the%20iSCSI%20disks.%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20pvcreate%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%2Fdev%2Fsdc%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20pvcreate%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%2Fdev%2Fsdd%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_12-1597102650448.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211604iA80E239B76CE60DE%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_12-1597102650448.png%22%20alt%3D%22Liwei_12-1597102650448.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E10.Create%20volume%20groups%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%E2%80%98FCIDataVG1%E2%80%99%20and%20%E2%80%98FCIDataVG2%E2%80%99%20on%20the%20iSCSI%20disk.%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20vgcreate%20FCIDataVG1%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%2Fdev%2Fsdc%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20vgcreate%20FCIDataVG2%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%2Fdev%2Fsdd%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_13-1597102650449.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211605i64F103CABB7640F5%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_13-1597102650449.png%22%20alt%3D%22Liwei_13-1597102650449.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%2211%22%3E%0A%3CLI%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3ECreate%20logical%20name%20for%20the%20two%20groups.%20Run%20following%20commands%20in%20node1.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20lvcreate%20-L599G%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E-n%20FCIDataLV1%20FCIDataVG1%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20lvcreate%20-L499G%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E-n%20FCIDataLV2%20FCIDataVG2%3C%2FEM%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_14-1597102650449.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211606i72538D5CB732B7CF%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_14-1597102650449.png%22%20alt%3D%22Liwei_14-1597102650449.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3ECheck%20the%20device%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_15-1597102650485.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211608i9B9BB2A3CD10E2CF%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_15-1597102650485.png%22%20alt%3D%22Liwei_15-1597102650485.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%2212%22%3E%0A%3CLI%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3EFormat%20the%20logical%20volume%20with%20a%20supported%20filesystem.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20mkfs.xfs%20%2Fdev%2FFCIDataVG1%2FFCIDataLV1%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20mkfs.xfs%20%2Fdev%2FFCIDataVG2%2FFCIDataLV2%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_16-1597102650486.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211609i902E25BD18FA814A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_16-1597102650486.png%22%20alt%3D%22Liwei_16-1597102650486.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E13.Repeat%20the%20step1~step6%20in%20rest%20of%20the%20nodes.%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3EPlease%20note%2C%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E1)Do%20not%20do%20step6%20in%20rest%20of%20node2%20before%20step12%20is%20completed%20in%20node1.%20Else%20you%20maybe%20not%20able%20to%20failover.%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E2)All%20the%20steps%20but%20step%202%20are%20exactly%20same.%20Here%20is%20the%20value%20for%20node2%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_17-1597102650451.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211607i7CDCDA8C08FE2605%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_17-1597102650451.png%22%20alt%3D%22Liwei_17-1597102650451.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E3)After%20the%20step6%20is%20executed%20in%20rest%20of%20the%20nodes%2C%20you%20will%20see%20the%20same%20devices%20as%20node1.%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3EHere%20is%20a%20screenshot%20of%20node2%20after%20step%206%20is%20executed.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_18-1597102650487.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211612i6FB43F0BE53196AC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_18-1597102650487.png%22%20alt%3D%22Liwei_18-1597102650487.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSTRONG%3E3.SQL%20Server%20configuration.%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3EPlease%20note%2C%20All%20the%20steps%20in%20section%20are%20performed%20in%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Enode1%3C%2FSTRONG%3E%2C%20unless%20stated%20otherwise.%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E1.Run%20following%20queries%20to%20create%20login%20used%20by%20pacemaker%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3ECREATE%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3ELOGIN%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%5Bsqlpackmaker%5D%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ewith%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3EPASSWORD%3D%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3EN'YourStrongP%40ssword1'%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3EALTER%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3ESERVER%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3EROLE%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%5Bsysadmin%5D%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3EADD%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3EMEMBER%20%5Bsqlpackmaker%5D%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E2.Drop%20the%20default%20server%20name%20and%20create%20a%20new%20server%20name.%20The%20new%20server%20name%20is%20SQL%20Virutal%20name.%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3Eexec%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Esp_dropserver%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Enode1%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3Ego%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3Eexec%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Esp_addserver%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E'sqlvirtualname1'%2C'local'%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%223%22%3E%0A%3CLI%20style%3D%22font-weight%3A%20400%3B%22%3ERestart%20SQL%20Server%20to%20take%20effect.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20systemctl%20stop%20mssql-server%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20systemctl%20restart%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3Emssql-server%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_19-1597102650452.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211610i1D21D8467FFC6725%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_19-1597102650452.png%22%20alt%3D%22Liwei_19-1597102650452.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E4.Run%20following%20queries%20to%20check%20change.%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3Eselect%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%40%40servername%2C%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3ESERVERPROPERTY('ComputernamephysicalNetBIOS')%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_20-1597102650452.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211611iEF2B4E218B323E17%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_20-1597102650452.png%22%20alt%3D%22Liwei_20-1597102650452.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E5.Stop%20SQL%20Server%20in%20all%20nodes(node1%2Cnode2%20).%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20systemctl%20stop%20mssql-server%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E6.Copy%20the%20%2Fvar%2Fopt%2Fmssql%2Fsecrets%2Fmachine-key%20of%20node1%20to%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Enode2.%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E7.Create%20temporary%20directories%20to%20store%20the%20SQL%20Server%20data%20and%20log%20files.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Emkdir%20%2Fvar%2Fopt%2Fmssql%2Ftempdir%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Emkdir%20%2Fvar%2Fopt%2Fmssql%2Ftempuserdata%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_21-1597102650453.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211613i16D98348F301D023%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_21-1597102650453.png%22%20alt%3D%22Liwei_21-1597102650453.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E8.Copy%20the%20SQL%20Server%20data%20and%20log%20files%20to%20the%20temporary%20directories.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Ecp%20%2Fvar%2Fopt%2Fmssql%2Fdata%2F*%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%2Fvar%2Fopt%2Fmssql%2Ftempdir%2F%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Ecp%20%2Fvar%2Fopt%2Fmssql%2Fuserdata%2F*%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%2Fvar%2Fopt%2Fmssql%2Ftempuserdata%2F%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_22-1597102650454.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211615i2D341B3D3BBB61DD%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_22-1597102650454.png%22%20alt%3D%22Liwei_22-1597102650454.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E9.Delete%20the%20files%20from%20the%20existing%20SQL%20Server%20data%20directory%20in%20node1.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Erm%20-f%20%2Fvar%2Fopt%2Fmssql%2Fdata%2F*%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Erm%20-f%20%2Fvar%2Fopt%2Fmssql%2Fuserdata%2F*%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_23-1597102650454.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211614i6FF24A64AD25F763%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_23-1597102650454.png%22%20alt%3D%22Liwei_23-1597102650454.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E10.Mount%20the%20iSCSI%20logical%20volume%20in%20the%20SQL%20Server%20data%20folder.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3Emount%20%2Fdev%2F%3CVOLUMEGROUPNAME%3E%2F%3CLOGICALVOLUMENAME%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%3CFOLDERNAME%3E%3C%2FFOLDERNAME%3E%3C%2FLOGICALVOLUMENAME%3E%3C%2FVOLUMEGROUPNAME%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3EHere%20are%20the%20commands%20in%20this%20tutorial.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Emount%20%2Fdev%2FFCIDataVG1%2FFCIDataLV1%20%2Fvar%2Fopt%2Fmssql%2Fdata%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Emount%20%2Fdev%2FFCIDataVG2%2FFCIDataLV2%20%2Fvar%2Fopt%2Fmssql%2Fuserdata%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_24-1597102650489.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211618iF996C9ED73D5C848%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_24-1597102650489.png%22%20alt%3D%22Liwei_24-1597102650489.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E11.Change%20the%20owner%20of%20the%20mount%20to%20mssql.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3Echown%20mssql%3Amssql%20%2Fvar%2Fopt%2Fmssql%2Fdata%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3Echown%20mssql%3Amssql%20%2Fvar%2Fopt%2Fmssql%2Fuserdata%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_25-1597102650455.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211616iD23F7F6765553637%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_25-1597102650455.png%22%20alt%3D%22Liwei_25-1597102650455.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E12.Change%20ownership%20of%20the%20group%20of%20the%20mount%20to%20mssql.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3Bchgrp%20mssql%20%2Fvar%2Fopt%2Fmssql%2Fdata%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3Bchgrp%20mssql%20%2Fvar%2Fopt%2Fmssql%2Fuserdata%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_26-1597102650456.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211617iAD7E1270F30A0993%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_26-1597102650456.png%22%20alt%3D%22Liwei_26-1597102650456.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E13.Copy%20the%20files%20from%20temp%20folders%20back%20to%26nbsp%3B%3C%2FSPAN%3E%2Fvar%2Fopt%2Fmssql%2Fdata%20a%3CSPAN%3End%26nbsp%3B%3CEM%3E%2Fvar%2Fopt%2Fmssql%2Fuserdata.%3C%2FEM%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Ecp%20%2Fvar%2Fopt%2Fmssql%2Ftempdir%2F*%20%2Fvar%2Fopt%2Fmssql%2Fdata%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Ecp%20%2Fvar%2Fopt%2Fmssql%2Ftempuserdata%2F*%20%2Fvar%2Fopt%2Fmssql%2Fuserdata%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_27-1597102650457.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211619i6000F8AB9ABC6F6A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_27-1597102650457.png%22%20alt%3D%22Liwei_27-1597102650457.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E14.Check%20the%20two%20temp%20folders%20and%20make%20sure%20the%20files%20are%20copied.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_28-1597102650458.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211621i567A41CEC0E1D206%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_28-1597102650458.png%22%20alt%3D%22Liwei_28-1597102650458.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3COL%20start%3D%2215%22%3E%0A%3CLI%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E%20Change%20ownership%20of%20files%20to%20mssql.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Echown%20mssql%3Amssql%20%2Fvar%2Fopt%2Fmssql%2Fdata%2F*%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Echown%20mssql%3Amssql%20%2Fvar%2Fopt%2Fmssql%2Fuserdata%2F*%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_29-1597102650459.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211620i3B2D89EE16FD64EA%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_29-1597102650459.png%22%20alt%3D%22Liwei_29-1597102650459.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E16.Configure%20auto%20mount%20to%20make%20the%20OS%20mount%20the%20devices%20automatically.%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E1)%20makeGet%20the%20UUID.%20Please%20downdown%20the%20UUID%20%2CTYPE%20and%20directory%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Eblkid%20%2Fdev%2FFCIDataVG1%2FFCIDataLV1%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Eblkid%20%2Fdev%2FFCIDataVG2%2FFCIDataLV2%3C%2FEM%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_30-1597102650460.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211623i135F55AB2C34D10A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_30-1597102650460.png%22%20alt%3D%22Liwei_30-1597102650460.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E2).Edit%20%2Fetc%2Ffstab%20to%20configure%20auto%20mount%20in%20node1%2Cnode2.%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3EHere%20is%20a%20screenshot%20in%20node1.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_31-1597102650496.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211624i432CDE8CCB6C55E5%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_31-1597102650496.png%22%20alt%3D%22Liwei_31-1597102650496.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3EPlease%20review%20this%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Faccess.redhat.com%2Fdocumentation%2Fen-us%2Fred_hat_enterprise_linux%2F8%2Fhtml%2Fmanaging_file_systems%2Fassembly_mounting-file-systems_managing-file-systems%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Earticle%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efor%20more%20detail%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSTRONG%3E4.Cluster%20configuration.%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E1.Edit%20%2Fetc%2Fhosts%20to%20speicfy%20the%20node%20and%20ips%20in%20node1%20and%20node1.%20Do%20the%20same%20thing%20in%20node1%20and%20node2%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_32-1597102650461.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211622i3D52FAB0565F6D7F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_32-1597102650461.png%22%20alt%3D%22Liwei_32-1597102650461.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E2.Create%20a%20file%20to%20store%20the%20SQL%20Server%20username%20and%20password%20for%20the%20Pacemaker%20login.%20Run%20the%20following%20command%20in%20node1%20and%20node2%20(The%20same%20login%20name%20and%20password%20specified%20in%20step%201%20of%20section%20%5BSQL%20Server%20configuration%5D%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20touch%20%2Fvar%2Fopt%2Fmssql%2Fsecrets%2Fpasswd%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20echo%20'sqlpackmaker'%20%26gt%3B%26gt%3B%20%2Fvar%2Fopt%2Fmssql%2Fsecrets%2Fpasswd%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20echo%20'YourStrongP%40ssword1'%20%26gt%3B%26gt%3B%20%2Fvar%2Fopt%2Fmssql%2Fsecrets%2Fpasswd%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20chown%20root%3Aroot%20%2Fvar%2Fopt%2Fmssql%2Fsecrets%2Fpasswd%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20chmod%20600%20%2Fvar%2Fopt%2Fmssql%2Fsecrets%2Fpasswd%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E3.On%20both%20cluster%20nodes%2C%20open%20the%20Pacemaker%20firewall%20ports.%20To%20open%20these%20ports%20with%26nbsp%3B%3C%2FSPAN%3Efirewalld%3CSPAN%3E%2C%20run%20the%20following%20command%20in%20node%201%20and%20node2%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20firewall-cmd%20--permanent%20--add-service%3Dhigh-availability%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20firewall-cmd%20--reload%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E4.Install%20Pacemaker%20packages%20in%20node%201%20and%20node2%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20yum%20install%20pacemaker%20pcs%20fence-agents-all%20resource-agents%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E5.Set%20the%20password%20for%20the%20default%20user%20that%20is%20created%20when%20installing%20Pacemaker%20and%20Corosync%20packages.%20Use%20the%20same%20password%20in%20node%201%20and%20node2%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20passwd%20hacluster%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E6.To%20allow%20nodes%20to%20rejoin%20the%20cluster%20after%20the%20reboot%2C%20enable%20and%20start%26nbsp%3Bpcsd%26nbsp%3Bservice%20and%20Pacemaker.%20Run%20the%20following%20command%20in%20node%201%20and%20node2%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20systemctl%20enable%20pcsd%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20systemctl%20start%20pcsd%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20systemctl%20enable%20pacemaker%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSPAN%3E7.Create%20the%20cluster.%20Run%20following%20command%20in%20node1.%20The%20password%20should%20be%20as%20same%20as%20the%20one%20in%20step%205.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20pcs%20host%20auth%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3Enode1%20node2%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20pcs%20cluster%20setup%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3Esqlcluster%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3Enode1%20node2%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20pcs%20cluster%20start%20--all%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20pcs%20cluster%20enable%20--all%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_33-1597102650462.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211626i161F3497BF3F1E77%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_33-1597102650462.png%22%20alt%3D%22Liwei_33-1597102650462.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E8.Disable%20the%20stonith-enabled%20for%20test%20purpose.%20Run%20following%20command%20in%20node1.%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20pcs%20property%20set%20stonith-enabled%3Dfalse%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E9.Install%20the%20FCI%20resource%20agent%20for%20SQL%20Server.%20Run%20the%20following%20commands%20in%20node1%20and%20node2%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20yum%20install%20mssql-server-ha%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E10.Create%20disk%20resource%20and%20this%20resource%20belongs%20to%20a%20resource%20group(RGfci%20in%20this%20demo).%20Run%20following%20command%20in%20node1%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20pcs%20resource%20create%20iSCSIDisk1%20Filesystem%20device%3D%22%2Fdev%2FFCIDataVG1%2FFCIDataLV1%22%20directory%3D%22%2Fvar%2Fopt%2Fmssql%2Fdata%22%20fstype%3D%22xfs%22%20--group%20fci%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CEM%3Esudo%20pcs%20resource%20create%20iSCSIDisk2%20Filesystem%20device%3D%22%2Fdev%2FFCIDataVG2%2FFCIDataLV2%22%20directory%3D%22%2Fvar%2Fopt%2Fmssql%2Fuserdata%22%20fstype%3D%22xfs%22%20--group%20fci%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_34-1597102650490.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211627iFF86953ACE2D835D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_34-1597102650490.png%22%20alt%3D%22Liwei_34-1597102650490.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_35-1597102650463.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211625iB968BBFF437558C4%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_35-1597102650463.png%22%20alt%3D%22Liwei_35-1597102650463.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E11.%20Create%20IP%20resource%20that%20will%20be%20used%20by%20FCI%2C%20and%20this%20resource%20belongs%20to%20the%20same%20resource%20group%20created%20in%20previous%20step.%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3Esudo%20pcs%20resource%20create%20vip2%20ocf%3Aheartbeat%3AIPaddr2%20ip%3D10.1.0.111%20nic%3Deth0%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3Ecidr_netmask%3D24%20--group%20fci%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_36-1597102650464.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211628iF36C22AB335C81B8%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_36-1597102650464.png%22%20alt%3D%22Liwei_36-1597102650464.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E12.Create%20FCI%20resource.%20The%20resource%20name%20should%20be%20exactly%20same%20to%20the%20SQL%20Virtual%20name%20created%20in%20step%202%20in%20section%20%5BSQL%20Server%20configuration%5D%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3Esudo%20pcs%20resource%20create%20sqlvirtualname1%20ocf%3Amssql%3Afci%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E--group%20fci%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_37-1597102650465.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211629iA033A3782298BFE5%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_37-1597102650465.png%22%20alt%3D%22Liwei_37-1597102650465.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3CSTRONG%3EFailover%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3E%3D%3D%3D%3C%2FP%3E%0A%3CP%20style%3D%22font-weight%3A%20400%3B%22%3Esudo%20pcs%20resource%20move%20sqlvirtualname1%20%3CNODENAME%3E%3C%2FNODENAME%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liwei_38-1597102743820.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211630i04375E5EC540B4C3%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Liwei_38-1597102743820.png%22%20alt%3D%22Liwei_38-1597102743820.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMore%3A%3CA%20href%3D%22https%3A%2F%2Fsqlserverbang.blogspot.com%2F2020%2F08%2Ftutorial-add-node-to-sql-cluster-on-rhel.html%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAdd%20a%20node%20to%20existing%20cluster%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1579803%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22download.png%22%20style%3D%22width%3A%20864px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211631i4A672ECC22153FB0%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22download.png%22%20alt%3D%22download.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1579803%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EHigh%20Availability%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ELinux%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Esql%202017%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESQL%202019%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

In the Windows world, SQL Server integrates into Windows Server Failover Cluster (WSFC) natively, and we have a dedicated installation for SQL Server Cluster. However, on Linux, you need to install standalone SQL Server instance in the nodes first, and then configure the instance as a SQL Server cluster instance.

 

 

I use SQL Server 2019 with RHEL 8.x in this tutorial, but it is possible to use SQL Server 2017 in RHEL 7.x or RHEL 8 to configure FCI.

 

Here is the step by step Video

 

Topology

Liwei_0-1597102650439.png

 

 

 

 

 

 

1.ISCSI target server configuration

 

  1. The two highlighted disks will be the used as Shared Storage.

 

Liwei_1-1597102650482.png

 

 

sdc is for the database files in /var/opt/mssql/data

sdd is for the user databases files. If all your databases are stored /var/opt/mssql/data, feel free to ignore all the steps link to device sdd.

 

2.Run fdisk to create partition.

fdisk /dev/sdc

fdisk /dev/sdd

Liwei_2-1597102650493.png

 

 

Run lsblk again

 

Liwei_3-1597102650483.png

 

 

3.Install targetcli package.

yum -y install targetcli

 

 

4.Run targetcli to create ISCSI target server.

I created two ACLs entries for the node1 and node2:

iqn.2020-08.com.contoso:node1

iqn.2020-08.com.contoso:node2

I’m not going to dig into the targetcli command, please review this article for detail.

Liwei_4-1597102650494.png

 

 

And I have following iscsi settings:

Liwei_5-1597102650497.png

 

5.Run following bash command to expose tcp port 3260

firewall-cmd --add-port=3260/tcp --permanent

firewall-cmd --reload

          

Liwei_6-1597102650445.png

 

 

  1. Enable and restart the target service.

systemctl enable target.service

systemctl restart target.service

 

2.ISCSI initiator configuration.

 

Choose one of the servers that will participate in the FCI configuration. It does not matter which one. I use node1 in this tutorial. Please note, All the steps in this section are performed in node1, unless stated otherwise.

 

1.Install iscsi-initiator-utils  in all nodes.

sudo yum install iscsi-initiator-utils -y

 

2.Edit the /etc/iscsi/initiatorname.iscsi , replace the existing value with following keywords, the one I used in step 4 of section[ISCSI target server configuration]

InitiatorName=iqn.2020-08.com.contoso:node1

Liwei_7-1597102650445.png

 

         

 

3.Discover iSCSI disk of the target.

iscsiadm -m discovery -t st -p <ip of iscsi target server>

Here is the command in this tutorial.

iscsiadm -m discovery -t st -p 10.1.0.8

         

Liwei_8-1597102650446.png

 

 

 

 

  1. (Optional step)After the discovery below database is updated.

ls -l /var/lib/iscsi/nodes

Liwei_9-1597102650447.png

 

 

6.Make the connection to iscsi target.

iscsiadm --mode node --targetname iqn.2020-08.com.contoso:servers  --login

Liwei_10-1597102650447.png

 

 

  1. (Optional step)After logging in, a session with the iSCSI target is established.

iscsiadm --mode node -P 1

Liwei_11-1597102650448.png

 

 

  1. (Optional step)If you review the messages file, you will see following keywords

sudo grep "Attached SCSI" /var/log/messages

Aug  6 01:38:21 localhost kernel: sd 3:0:1:0: [sdb] Attached SCSI disk

Aug  6 01:38:21 localhost kernel: sd 2:0:0:0: [sda] Attached SCSI disk

Aug  6 04:26:01 localhost kernel: sd 6:0:0:0: [sdc] Attached SCSI disk

Aug  6 04:26:01 localhost kernel: sd 6:0:0:1: [sdd] Attached SCSI disk

 

 

9.Create physical volumes on the iSCSI disks.

sudo pvcreate    /dev/sdc

sudo pvcreate   /dev/sdd

Liwei_12-1597102650448.png

 

10.Create volume groups  ‘FCIDataVG1’ and ‘FCIDataVG2’ on the iSCSI disk.

sudo vgcreate FCIDataVG1     /dev/sdc

sudo vgcreate FCIDataVG2     /dev/sdd

Liwei_13-1597102650449.png

 

 

  1.  Create logical name for the two groups. Run following commands in node1.

sudo lvcreate -L599G   -n FCIDataLV1 FCIDataVG1

sudo lvcreate -L499G   -n FCIDataLV2 FCIDataVG2 

Liwei_14-1597102650449.png

 

 

Check the device

Liwei_15-1597102650485.png

 

 

 

 

  1.  Format the logical volume with a supported filesystem.

sudo mkfs.xfs /dev/FCIDataVG1/FCIDataLV1

sudo mkfs.xfs /dev/FCIDataVG2/FCIDataLV2

 

Liwei_16-1597102650486.png

 

13.Repeat the step1~step6 in rest of the nodes.

Please note,

1)Do not do step6 in rest of node2 before step12 is completed in node1. Else you maybe not able to failover.

2)All the steps but step 2 are exactly same. Here is the value for node2

Liwei_17-1597102650451.png

 

 

3)After the step6 is executed in rest of the nodes, you will see the same devices as node1.

Here is a screenshot of node2 after step 6 is executed.

Liwei_18-1597102650487.png

 

 

 

3.SQL Server configuration.

Please note, All the steps in section are performed in node1, unless stated otherwise.

 

 

1.Run following queries to create login used by pacemaker

       CREATE LOGIN [sqlpackmaker] with PASSWORD= N'YourStrongP@ssword1'

ALTER SERVER ROLE [sysadmin] ADD MEMBER [sqlpackmaker]

 

2.Drop the default server name and create a new server name. The new server name is SQL Virutal name.

exec sp_dropserver node1

go

exec sp_addserver 'sqlvirtualname1','local'

 

  1. Restart SQL Server to take effect.

sudo systemctl stop mssql-server

sudo systemctl restart  mssql-server

Liwei_19-1597102650452.png

 

 

4.Run following queries to check change.

select @@servername, SERVERPROPERTY('ComputernamephysicalNetBIOS')

Liwei_20-1597102650452.png

 

 

5.Stop SQL Server in all nodes(node1,node2 ).

sudo systemctl stop mssql-server

 

6.Copy the /var/opt/mssql/secrets/machine-key of node1 to node2.

 

 

7.Create temporary directories to store the SQL Server data and log files.

mkdir /var/opt/mssql/tempdir

mkdir /var/opt/mssql/tempuserdata

Liwei_21-1597102650453.png

 

 

8.Copy the SQL Server data and log files to the temporary directories.

cp /var/opt/mssql/data/*               /var/opt/mssql/tempdir/

cp /var/opt/mssql/userdata/*      /var/opt/mssql/tempuserdata/

 

 

Liwei_22-1597102650454.png

 

 

9.Delete the files from the existing SQL Server data directory in node1.

rm -f /var/opt/mssql/data/*

rm -f /var/opt/mssql/userdata/*

 

Liwei_23-1597102650454.png

 

10.Mount the iSCSI logical volume in the SQL Server data folder.

mount /dev/<VolumeGroupName>/<LogicalVolumeName>   <FolderName>

 

Here are the commands in this tutorial.

mount /dev/FCIDataVG1/FCIDataLV1 /var/opt/mssql/data

mount /dev/FCIDataVG2/FCIDataLV2 /var/opt/mssql/userdata

Liwei_24-1597102650489.png

 

 

 

11.Change the owner of the mount to mssql.

chown mssql:mssql /var/opt/mssql/data

chown mssql:mssql /var/opt/mssql/userdata

 

Liwei_25-1597102650455.png

 

12.Change ownership of the group of the mount to mssql.

           chgrp mssql /var/opt/mssql/data

           chgrp mssql /var/opt/mssql/userdata

Liwei_26-1597102650456.png

 

13.Copy the files from temp folders back to /var/opt/mssql/data and /var/opt/mssql/userdata.

cp /var/opt/mssql/tempdir/* /var/opt/mssql/data

cp /var/opt/mssql/tempuserdata/* /var/opt/mssql/userdata

Liwei_27-1597102650457.png

 

 

14.Check the two temp folders and make sure the files are copied.

Liwei_28-1597102650458.png

 

 

  1. Change ownership of files to mssql.

chown mssql:mssql /var/opt/mssql/data/*

chown mssql:mssql /var/opt/mssql/userdata/*

Liwei_29-1597102650459.png

 

 

16.Configure auto mount to make the OS mount the devices automatically.

1) makeGet the UUID. Please downdown the UUID ,TYPE and directory

blkid /dev/FCIDataVG1/FCIDataLV1

blkid /dev/FCIDataVG2/FCIDataLV2 

Liwei_30-1597102650460.png

 

 

2).Edit /etc/fstab to configure auto mount in node1,node2.

Here is a screenshot in node1.

Liwei_31-1597102650496.png

 

Please review this article for more detail

 

 

4.Cluster configuration.

 

1.Edit /etc/hosts to speicfy the node and ips in node1 and node1. Do the same thing in node1 and node2

Liwei_32-1597102650461.png

 

2.Create a file to store the SQL Server username and password for the Pacemaker login. Run the following command in node1 and node2 (The same login name and password specified in step 1 of section [SQL Server configuration]

 

sudo touch /var/opt/mssql/secrets/passwd

sudo echo 'sqlpackmaker' >> /var/opt/mssql/secrets/passwd

sudo echo 'YourStrongP@ssword1' >> /var/opt/mssql/secrets/passwd

sudo chown root:root /var/opt/mssql/secrets/passwd

sudo chmod 600 /var/opt/mssql/secrets/passwd

 

 

3.On both cluster nodes, open the Pacemaker firewall ports. To open these ports with firewalld, run the following command in node 1 and node2

sudo firewall-cmd --permanent --add-service=high-availability

sudo firewall-cmd --reload

 

4.Install Pacemaker packages in node 1 and node2

sudo yum install pacemaker pcs fence-agents-all resource-agents

 

5.Set the password for the default user that is created when installing Pacemaker and Corosync packages. Use the same password in node 1 and node2

sudo passwd hacluster

 

6.To allow nodes to rejoin the cluster after the reboot, enable and start pcsd service and Pacemaker. Run the following command in node 1 and node2

sudo systemctl enable pcsd

sudo systemctl start pcsd

sudo systemctl enable pacemaker

 

7.Create the cluster. Run following command in node1. The password should be as same as the one in step 5.

sudo pcs host auth  node1 node2 

sudo pcs cluster setup  sqlcluster  node1 node2

sudo pcs cluster start --all

sudo pcs cluster enable --all

Liwei_33-1597102650462.png

 

8.Disable the stonith-enabled for test purpose. Run following command in node1.

sudo pcs property set stonith-enabled=false

 

9.Install the FCI resource agent for SQL Server. Run the following commands in node1 and node2

sudo yum install mssql-server-ha

 

10.Create disk resource and this resource belongs to a resource group(RGfci in this demo). Run following command in node1

sudo pcs resource create iSCSIDisk1 Filesystem device="/dev/FCIDataVG1/FCIDataLV1" directory="/var/opt/mssql/data" fstype="xfs" --group fci

sudo pcs resource create iSCSIDisk2 Filesystem device="/dev/FCIDataVG2/FCIDataLV2" directory="/var/opt/mssql/userdata" fstype="xfs" --group fci

 

Liwei_34-1597102650490.png

 

 

Liwei_35-1597102650463.png

 

 

11. Create IP resource that will be used by FCI, and this resource belongs to the same resource group created in previous step.

sudo pcs resource create vip2 ocf:heartbeat:IPaddr2 ip=10.1.0.111 nic=eth0  cidr_netmask=24 --group fci

Liwei_36-1597102650464.png

 

 

12.Create FCI resource. The resource name should be exactly same to the SQL Virtual name created in step 2 in section [SQL Server configuration]

sudo pcs resource create sqlvirtualname1 ocf:mssql:fci   --group fci

Liwei_37-1597102650465.png

 

 

 

 

 

Failover

===

sudo pcs resource move sqlvirtualname1 <NodeName>

 

Liwei_38-1597102743820.png

 

More:Add a node to existing cluster