在 Debian Wheezy 上,ulimit -a给出:
open files (-n) 1024
Run Code Online (Sandbox Code Playgroud)
我将此添加到 /etc/security/limits.conf
* hard nofile 64000
Run Code Online (Sandbox Code Playgroud)
然后重新启动。
并且ulimit -a仍然提供了 1024 个最大打开文件数。任何人都可以对此有所了解吗?
在 Xen Server 6.1 上,为了备份我的 VM,我使用基于以下工具的脚本:
xe vm-list构建要备份的虚拟机列表xe vm-snapshot拍摄虚拟机快照xe template-param-set is-a-template=false ha-always-run=false将快照转换为虚拟机xe vm-export vm=uuid_of_this_new_vm filename=|ssh ..... "cat > /path/backup.xva"xe vm-uninstall我想使用 sshfs 在我的 Xen 主机上安装我的远程备份服务器。但 sshfs 在 Xen 发行版或默认存储库(XenServer 6.1.0 更新)中不可用。
我有几种在 Xen 主机上安装 sshfs 的可能性:
或者我找到了一种将远程 ssh 命令通过管道传输到的方法,xe vm-import就像我对导出所做的那样。我测试了很多东西但没有任何效果
您认为最好的解决方案是什么?