以下例子来自官方网站,适用于不同的创建DAG的场景

The following example creates a DAG named DAG1, which is configured to use the witness server FILESRV1 and the local directory C:\DAG1. DAG1 is also configured to use DHCP for the DAG's IP addresses.

New-DatabaseAvailabilityGroup -Name DAG1 -WitnessServer FILESRV1 -WitnessDirectory C:\DAG1

The next example creates a DAG named DAG2. For the DAG's witness server, the system automatically selects an Exchange 2016 server with Client Access services that is in the local Active Directory site. DAG2 is assigned a single static IP address because in this example all DAG members have the MAPI network on the same subnet.

New-DatabaseAvailabilityGroup -Name DAG2 -DatabaseAvailabilityGroupIPAddresses 10.0.0.8

This example creates the DAG DAG3. DAG3 is configured to use the witness server MBX2 and the local directory C:\DAG3. DAG3 is assigned multiple static IP addresses because its DAG members are on different subnets on the MAPI network.

New-DatabaseAvailabilityGroup -Name DAG3 -WitnessServer MBX2 -WitnessDirectory C:\DAG3 -DatabaseAvailabilityGroupIPAddresses 10.0.0.8,192.168.0.8

This example creates the DAG DAG4 that's configured to use DHCP. In addition, the witness server will be automatically selected by the system, and the default witness directory will be created.

New-DatabaseAvailabilityGroup -Name DAG4

This example creates the DAG DAG5 that will not have an administrative access point (valid for Windows Server 2012 R2 DAGs only). In addition, MBX4 will be used as the witness server for the DAG, and the default witness directory will be created.

New-DatabaseAvailabilityGroup -Name DAG5 -DatabaseAvailabilityGroupIPAddresses ([System.Net.IPAddress]::None) -WitnessServer MBX4

查询DAG组是否创建成功

Get-DatabaseAvailabilityGroup <DAGName> | Format-List

获取更多IT资讯,您也可以关注下方的微信公众号:

曾垂鑫的网络课堂,曾垂鑫大讲堂 - 51CTO学院

http://edu.51cto.com/lecturer/639838.html

Exchange Server 2016管理系列课件46.DAG管理之Powershell创建DAG相关推荐

  1. Exchange Server 2016管理系列课件03.管理邮箱配额限制

    备注:本文是Exchange Server 2016管理系列的配套课件,更加详细的讲解请参考视频课程,文章结尾有视频课程主页的链接. 如果不在用户级别做配额限制,那默认将遵从数据库级别的配额设置. 用 ...

  2. Exchange Server 2016 独立部署/共存部署 (四)—— 配置DAG(上)

    https://blog.51cto.com/horse87/1749480 Exchange Server 2016 独立部署/共存部署 (四)-- 配置DAG(上) horse87关注0人评论16 ...

  3. Exchange Server 2016 独立部署/共存部署 (七)—— DAG功能测试

    Exchange Server 2016 独立部署/共存部署 (七)-- DAG功能测试 https://blog.51cto.com/horse87/1752162 搭建好了DAG,又建好了DAG复 ...

  4. Exchange Server 2016 独立部署/共存部署 (五)—— 配置DAG(下)

    Exchange Server 2016 独立部署/共存部署 (五)-- 配置DAG(下) https://blog.51cto.com/horse87/1749819 上一篇我们创建完了DAG的服务 ...

  5. Exchange Server 2016 部署

    MicrosoftExchange Server 2016 为 Exchange Server(提供电子邮件.日程安排和用于自定义协作与消息传送服务应用程序的工具的消息传送平台)引入了一组新技术.功能 ...

  6. Exchange Server 2016 独立部署/共存部署 (六)—— 创建数据库副本

    Exchange Server 2016 独立部署/共存部署 (六)-- 创建数据库副本 https://blog.51cto.com/horse87/1751814 上篇文章讲完了如何创建Excha ...

  7. Exchange Server 2016 独立部署/共存部署 (一)—— 前期准备

    Exchange Server 2016 独立部署/共存部署 (一)-- 前期准备 https://blog.51cto.com/horse87/1748800 今天很高兴终于开始写关于Exchang ...

  8. Exchange Server 2016 之三:邮箱角色部署

    部署前,先说说整个邮件环境中暂时会用到的机器 计算机名 IP地址 角色 Contoso-DC01 172.168.1.31 主域控 Contoso-Mail01 172.168.1.32 邮件服务器 ...

  9. exchange2016邮件服务器配置,Exchange Server 2016客户端访问配置

    当我们部署完 Exchange Server 2016 之后,则需要配置 HTTPS 的客户端访问服务,例如:OWA (Outlook on the web).ActiveSync.Exchange ...

最新文章

  1. [五] JavaIO之InputStream OutputStream简介 方法列表说明
  2. MyBatis 与 Hibernate
  3. PyTorch基础-softmax函数mnist数据集识别-03
  4. 函数式编程的兴衰与当前之崛起
  5. 跨域/非跨域接口专题
  6. gx works2 存储器空间或桌面堆栈不足_2020福清市gx螺旋输送机价格厂家发货-衡泰...
  7. oracle外部表迁移,海量数据迁移之外部表并行抽取
  8. 【论文解读】EMNLP2019-多粒度自注意力机制
  9. BMFONT制作位图字体并在CocosCreator中使用
  10. 冒泡排序(Java)(完整代码)
  11. 2016款MACBOOK PRO触控条版 安装WIN10初体验 及 无奈退货记
  12. QLabel 添加下划线 删除线
  13. hp 800 g4 twr linux,【拆机】HP EliteDesk 800 G4 TWR—探究塔式机箱的秘密
  14. 服务网格——后 Kubernetes 时代的微服务(前言)
  15. 两例司法实践撕开了一个口子,区块链应用落地会加速吗?
  16. 【信息技术】【2018】利用单摄像机系统进行航向估计的车辆跟踪
  17. 组装台式电脑如何重装系统图文教程
  18. Cent OS借助YUM快速安装MySQL
  19. 三度进击IPO,诚达药业为何如此执着?
  20. LeetCode 264. 丑数 II--动态规划

热门文章

  1. 常用的寄存器( bss段的作用)
  2. IO流练习题 实现图片的加密解密操作
  3. 面试题06. 从尾到头打印链表
  4. 182. 查找重复的电子邮箱
  5. openjudge 二叉树 2756
  6. C/C++中从文件末尾反向读取N行文件记录(末尾读取文件)
  7. Ubuntu搭建安装svn
  8. 4. OD-去除烦人的nag窗口(去除提醒用户购买正版的警告窗口)
  9. ArcGIS Engine开发之旅08--和查询相关的对象和接口
  10. 数据结构基础(16) --树与二叉树