微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

在 WSL 上为 Ceph

如何解决在 WSL 上为 Ceph

我正在尝试在我的 Ubuntu WSL 版本上运行的(微型)K8s 上运行 Ceph。

未创建 OSD pod,因为没有可用的受支持设备(请参阅下面的日志)。

Ceph 配置为 UseAllDevices,您可以看到它在上面的日志中搜索

Ceph 理想情况下想要一个我在 Windows 主机上创建的未格式化分区,但我不确定如何将它挂载到 /dev/sd{c} 或尝试在 WSL 本身内创建一个新分区?

我不知道该怎么做,也不知道这是否是正确的方法

提前致谢。

2021-03-01 17:09:17.090302 W | inventory: skipping device "loop0". unsupported diskType loop
2021-03-01 17:09:17.112037 W | inventory: skipping device "loop1". unsupported diskType loop
2021-03-01 17:09:17.150605 W | inventory: skipping device "loop2". unsupported diskType loop
2021-03-01 17:09:17.173562 W | inventory: skipping device "loop3". unsupported diskType loop
2021-03-01 17:09:17.185464 W | inventory: skipping device "loop4". unsupported diskType loop
2021-03-01 17:09:17.209067 W | inventory: skipping device "loop5". unsupported diskType loop
2021-03-01 17:09:17.224485 W | inventory: skipping device "loop6". unsupported diskType loop
2021-03-01 17:09:17.246726 W | inventory: skipping device "loop7". unsupported diskType loop
2021-03-01 17:09:17.257490 W | inventory: skipping device "loop8". unsupported diskType loop
2021-03-01 17:09:17.272513 W | inventory: skipping device "loop9". unsupported diskType loop
2021-03-01 17:09:17.292126 W | inventory: skipping device "loop10". unsupported diskType loop
2021-03-01 17:09:17.301785 W | inventory: skipping device "loop11". unsupported diskType loop
2021-03-01 17:09:17.323591 W | inventory: skipping device "loop12". unsupported diskType loop
2021-03-01 17:09:17.327819 W | inventory: skipping device "loop13". diskType is empty
2021-03-01 17:09:20.140453 I | cephosd: skipping device "ram0": ["Insufficient space (<5GB)"].
2021-03-01 17:09:21.762693 I | cephosd: skipping device "ram1": ["Insufficient space (<5GB)"].
2021-03-01 17:09:23.759026 I | cephosd: skipping device "ram2": ["Insufficient space (<5GB)"].
2021-03-01 17:09:25.396302 I | cephosd: skipping device "ram3": ["Insufficient space (<5GB)"].
2021-03-01 17:09:26.512274 I | cephosd: skipping device "ram4": ["Insufficient space (<5GB)"].
2021-03-01 17:09:27.664515 I | cephosd: skipping device "ram5": ["Insufficient space (<5GB)"].
2021-03-01 17:09:28.854953 I | cephosd: skipping device "ram6": ["Insufficient space (<5GB)"].
2021-03-01 17:09:30.080786 I | cephosd: skipping device "ram7": ["Insufficient space (<5GB)"].
2021-03-01 17:09:31.407741 I | cephosd: skipping device "ram8": ["Insufficient space (<5GB)"].
2021-03-01 17:09:32.646524 I | cephosd: skipping device "ram9": ["Insufficient space (<5GB)"].
2021-03-01 17:09:33.856632 I | cephosd: skipping device "ram10": ["Insufficient space (<5GB)"].
2021-03-01 17:09:35.568848 I | cephosd: skipping device "ram11": ["Insufficient space (<5GB)"].
2021-03-01 17:09:36.766882 I | cephosd: skipping device "ram12": ["Insufficient space (<5GB)"].
2021-03-01 17:09:37.800115 I | cephosd: skipping device "ram13": ["Insufficient space (<5GB)"].
2021-03-01 17:09:38.895007 I | cephosd: skipping device "ram14": ["Insufficient space (<5GB)"].
2021-03-01 17:09:40.013397 I | cephosd: skipping device "ram15": ["Insufficient space (<5GB)"].
2021-03-01 17:09:40.013498 I | cephosd: skipping device "sda" because it contains a filesystem "ext4"
2021-03-01 17:09:40.013513 I | cephosd: skipping device "sdb" because it contains a filesystem "ext4"
2021-03-01 17:09:41.237145 W | cephosd: skipping OSD configuration as no devices matched the storage settings for this node

原文:https://superuser.com/questions/1630022/create-a-new-dev-sdb-c-d-on-wsl-for-ceph

解决方法

我花了几天时间才整理好,但要使这项工作正常进行,您需要:

  • 获取 Windows 10 的开发者预览版,以便您拥有 WSL 的 --mount 选项
  • 在您的 Windows 主机上创建 VHDX。您可以通过磁盘管理器执行此操作,并在操作菜单下创建动态 VHDX。
  • 安装 VHDX,瞧,1/dev/sd{x}1 将被创建。在我的用例中,这允许 Ceph 使用该磁盘创建 OSD。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。