MAC环境下使用Paralles Desktop实现DRBD

MAC环境下使用Paralles Desktop实现DRBD

环境介绍
  • MacOS Sierra 10.12.2
  • Paralles Desktop 10.1.1
  • CentOS-6.6-x86_64

操作步骤

  1. 配置服务器
    安装好两台服务器后,修改/etc/sysconfig/network中的HOSTNANME分别为node1node2
    修改两台服务器的/etc/hosts文件,将两台服务器的IP地址配置进去,示例环境如下:

    127.0.0.1 localhost node1 localhost4 localhost4.localdomain4
    ::1 localhost6 localhost6.localdomain6
    10.211.55.26 node1
    10.211.55.29 node2

  2. 挂载磁盘(node1和node2均做类似配置)
    在Paralles Desktop的虚拟机配置上挂载一块新的磁盘:这里写图片描述

    进入虚拟机后输入fdisk -l可以看见该磁盘:

    Disk /dev/sdb: 10.7 GB, 10737418240 bytes
    107 heads, 17 sectors/track, 11529 cylinders
    Units = cylinders of 1819 * 512 = 931328 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0xbebf5dec

    使用fdisk -cu /dev/sdb对磁盘分区,以下为示例:

    Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
    Building a new DOS disklabel with disk identifier 0x2a0f1472.
    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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值