关于 Oracle ZFS Storage Appliance
Oracle ZFS Storage Appliance 主要功能
Oracle ZFS Storage Appliance 数据服务
Oracle ZFS Storage Appliance 配置
浏览器用户界面 (Browser User Interface, BUI)
命令行界面 (Command Line Interface, CLI)
配置 Oracle ZFS Storage Appliance
最简单的脚本化机制是批处理设备 Shell 命令。例如,要在项目 "myproj" 和文件系统 "myfs" 中自动获取名为 "newsnap" 的快照,请在文件中使用下面的命令:
shares select myproj select myfs snapshots snapshot newsnap
然后 ssh 到设备,将标准输入重定向到该文件:
% ssh root@dory < myfile.txt
在许多 Shell 中,可以使用“Here 文件”简化此过程,在其中将输入(甚至是标记)发送到标准输入。如果改用 Here 文件,上例应使用以下内容:
% '''ssh root@dory << EOF shares select myproj select myfs snapshots snapshot newsnap EOF'''
此机制对于最简单的自动化类型已经足够了,如果在客户机上使用较高级别的 Shell 脚本语言将此机制封装在编程逻辑中,可能也足够了,但是总的来说,还有很多可以改善的地方。