gpt4 book ai didi

linux - 使用 Chef 在特定路径中重新安装驱动器

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:01:17 25 4
gpt4 key购买 nike

我正在尝试将驱动器从一个路径重新安装到另一个路径中。我正在尝试使用 Chef Opscode 来做到这一点。该驱动器是 m1.medium 类型附带的临时驱动器。

我在运行 chef-client 时收到此错误堆栈跟踪:

  Chef::Log.info("About to re-mount dev/xvdb in /testpath ")
# Mount additional volumes for data, configure them via LVM
mount "/testpath" do
device "/dev/xvdb"
# I am using Chef 10 and following the documentation on the mount resource
action [ :remount, :enable ]
end

并且我看到了以下日志:

[2013-11-06T01:46:08+00:00] ERROR: Running exception handlers
[2013-11-06T01:46:09+00:00] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
[2013-11-06T01:46:09+00:00] ERROR: Exception handlers complete
[2013-11-06T01:46:09+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2013-11-06T01:46:09+00:00] FATAL: Chef::Exceptions::UnsupportedAction: mount[/testpath] (my_cookbook::_my_recipe line 42) had an error: Chef::Exceptions::UnsupportedAction: #<Chef::Provider::Mount::Mount:0x000000046ad980> does not support :remount

最佳答案

日志消息的相关部分

Chef::Exceptions::UnsupportedAction: #<Chef::Provider::Mount::Mount:0x000000046ad980> does not support :remount

您的设备不支持挂载操作。

关于linux - 使用 Chef 在特定路径中重新安装驱动器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19802788/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com