Show Table of Contents
4.17. storageconnection
storageconnection 资源允许您添加、编辑、删除存储连接。
表 4.43. 存储连接参数
| 名称 | 类型 | 描述 | 必需的 | 用户可创建 | 用户可更新 |
|---|---|---|---|---|---|
--address
|
字符串
|
存储域的主机名或 IP 地址。
|
是(只限于 NFS 和 iSCSI)
|
是
|
是
|
--correlation_id
|
字符串
|
存储连接的标签标识
|
否
|
否
|
是
|
--expect
|
'201-created'
|
在所期望的 HTTP 头返回前,请求以异步的方式进行处理。它对需要长时间来执行的任务非常有用,可以防止在任务完成前返回成功信号。
|
否
|
否
|
否
|
--iqn
|
字符串
|
存储设备的目标 IQN。
|
是(只适用于 iSCSI)
|
是
|
是
|
--mount_options
|
字符串
|
挂载 PosixFS 共享的选项。
|
否
|
是
|
是
|
--nfs_retrans
|
整数
|
NFS 客户端为了完成一个请求尝试重新传输的次数。
|
否
|
是
|
是
|
--nfs_timeo
|
整数
|
NFS 客户端为了完成一个请求可以等待的时间(以 0.1 秒为单位)。
|
否
|
是
|
是
|
--nfs_version
|
字符串
|
NFS 使用的版本。
|
否
|
是
|
是
|
--password
|
字符串
|
登录到 iSCSI 存储域目标的 CHAP 密码。
|
否
|
是
|
是
|
--path
|
字符串
|
存储域的文件挂载路径。已经被存储连接使用的路径无法被更新。
|
是(只适用于NFS、本地和 PosixFS)
|
是
|
是
|
--port
|
整数
|
iSCSI 存储域使用的 TCP 端口。
|
是(只适用于 iSCSI)
|
是
|
是
|
--storagedomain-identifier
|
字符串
|
作为磁盘的存储域。
|
否
|
否
|
否
|
--type
|
字符串
|
存储域类型。
|
是
|
是
|
否
|
--username
|
字符串
|
登录到 iSCSI 存储域目标的 CHAP 用户名。
|
否
|
是
|
是
|
--vfs_type
|
字符串
|
Linux 支持的 PosixFS 共享文件系统类型。
|
是(只适用于 PosixFS)
|
是
|
是
|
例 4.35. 创建一个新存储连接
[RHEVM shell (connected)]# add storageconnection --address storage.example.com --path /storage/nfs --type nfs

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.