source/installguide/locale/zh_CN/LC_MESSAGES/storage_setup.mo (21 lines of code) (raw):

��2�<<c=#���@�7�_ �t * �E �@ $�  f C� � � � -� �& �� �V�,�;� ' :EM+Q}0��� � � # .L0_i������ ��������|�=�0=9�w%��!|�l�U�9� / < J+T{�����nZ�0� $ 5 M Z a (e � '� � � � � � ! !<!)M!Ow!q�!c9"��" "#,#2#**Limiting NFS export.** In order to avoid data loss, it is highly recommended that you limit the NFS export to a particular subnet by specifying a subnet mask (e.g.,”192.168.1.0/24”). By allowing access from only within the expected cluster, you avoid having non-pool member mount the storage and inadvertently delete all its data. The limit you place must include the management network(s) and the storage network(s). If the two are the same network then one CIDR is sufficient. If you have a separate storage network you must provide separate CIDRs for both or one CIDR that is broad enough to span both.**Limiting NFS export.** It is highly recommended that you limit the NFS export to a particular subnet by specifying a subnet mask (e.g.,”192.168.1.0/24”). By allowing access from only within the expected cluster, you avoid having non-pool member mount the storage. The limit you place must include the management network(s) and the storage network(s). If the two are the same network then one CIDR is sufficient. If you have a separate storage network you must provide separate CIDR’s for both or one CIDR that is broad enough to span both.**Removing the async flag.** The async flag improves performance by allowing the NFS server to respond before writes are committed to the disk. Remove the async flag in your mission critical production deployment.Add the disk to /etc/fstab to make sure it gets mounted on boot.Adjust the above command to suit your deployment needs.After /export directory is created, run the following command to configure it as an NFS export.After the system is installed, create a directory called /export. This can each be a directory in the root partition itself or a mount point for a large disk volume.An NFS share called /export is now set up.CloudStack is designed to work with a wide variety of commodity and enterprise-grade storage. Local disk may be used as well, if supported by the selected hypervisor. Storage type support for guest virtual disks differs based on hypervisor selection.CloudStack is designed to work with any scalable secondary storage system. The only requirement is the secondary storage system supports the NFS protocol.Discover the SCSI disk. For example:Discover the iSCSI target.Edit the /etc/sysconfig/iptables file and add the following lines at the beginning of the INPUT chain.Edit the /etc/sysconfig/nfs file and uncomment the following lines.Example ConfigurationsFiber ChannelFor example:Format the disk as ext3 and mount the volume.If the root volume is more than 2 TB in size, create a smaller boot volume to install RHEL/CentOS. A root volume of 20 GB should be sufficient.If you have more than 16TB of storage on one host, create multiple EXT3 file systems and multiple NFS exports. Individual EXT3 file systems cannot exceed 16TB.In a small-scale setup, a single NFS server can function as both primary and secondary storage. The NFS server just needs to export two separate shares, one for primary storage and the other for secondary storage.In this section we go through a few examples of how to set up storage to work properly on a few types of NFS and iSCSI storage systems.Install iscsiadm.Install the RHEL/CentOS distribution on the storage server.KVMLinux NFS on Local Disks and DASLinux NFS on iSCSILocal DiskLog in.NFSNow you can set up /export as an NFS share.Reboot the server.Run the following command to enable NFS service.Secondary StorageSmall-Scale SetupStorage SetupStorage TypeSupportedSupported via Clustered FilesystemsSupported via Pre-existing SRSupported via VMFSThe following is an example with separate CIDRs:The use of the Cluster Logical Volume Manager (CLVM) for KVM is not officially supported with CloudStack.This section describes how to configure an NFS export on a standard Linux installation. The exact commands might vary depending on the operating system version.Use the following steps to set up a Linux NFS server export on an iSCSI volume. These steps apply to RHEL/CentOS 5 distributions.When copying and pasting a command, be sure the command has pasted as a single line before executing. Some document viewers may introduce unwanted line breaks in copied text.XenServeriSCSIvSphereProject-Id-Version: Apache CloudStack Installation RTD Report-Msgid-Bugs-To: POT-Creation-Date: 2014-06-30 11:42+0200 PO-Revision-Date: 2014-06-30 10:25+0000 Last-Translator: FULL NAME <EMAIL@ADDRESS> Language-Team: Chinese (China) (http://www.transifex.com/projects/p/apache-cloudstack-installation-rtd/language/zh_CN/) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Language: zh_CN Plural-Forms: nplurals=1; plural=0; **限制NFS输出.** 强烈建议通过特定的子网和掩码限制NFS访问权限(例如”192.168.1.0/24”), 只允许规定的集群才能访问, 避免非集群成员访问并非故意的情况下删除所有数据。 且管理网络和存储网络必须能够访问;如果2个网络相同,那么一个CIDR就足够了。 如果你是单独的存储网络那么必须提供独立的CIDR或者一个足够大的CIDR可以包含它们2个。**限制NFS输出.** 强烈建议通过指定子网掩码来限制NFS访问权限,(例如“192.168.1.0/24”)。只允许规定的集群才能访问, 避免非集群成员访问。 且管理网络和存储网络必须能够访问;如果2个网络相同,那么一个CIDR就足够了。 如果你是单独的存储网络那么必须提供独立的CIDR或者一个足够大的CIDR可以包含它们2个。**移除async异步标记.** 标志允许NFS服务器在提交并写入磁盘操作前就先返回相应,来提高性能。请在关键生产部署中移除异步标志。添加磁盘到/etc/fstab并确保在启动时能被挂载。根据你的部署需求,调整如上参数。/export目录创建后,运行如下命令配置NFS输出。系统安装好以后,创建一个名为 /export的目录。可以在根分区下创建,或者挂载一个较大的磁盘卷。NFS共享目录/export已经被创建CloudStack被设计为可以支持广泛的商业级和企业级存储设备。如果所选的hypervisor支持,也可以使用本地存储。 所支持的虚拟磁盘类型取决于不同的hypervisor。CloudStack被设计为支持多种可扩展的辅助存储系统。唯一的要求就是辅助存储系统支持NFS协议。发现SCSI磁盘,例如:发现ISCSI target。编辑/etc/sysconfig/iptables,添加如下行的记录到INPUT链的开始部分。编辑/etc/sysconfig/nfs,并取消如下行的注释。配置实例Fiber Channel例如:格式化磁盘为ext3类型并挂载卷。如果根卷的大小超过2TB,创建一个小点的启动卷用于安装RHEL/CentOS,根分区保留20GB就足够了。如果你在一台主机上有超过16TB的存储空间, 则创建多个EXT3文件系统和多个NFS输出,单个EXT3文件系统不能超过16TB。 在小规模设置中,一个NFS服务器可以同时作为主存储和辅助存储。只需要NFS服务器有两个独立的共享目录,一个用于主存储,另一个用于辅助存储。在本节中我们将通过几个实例说明,如何设置存储并使NFS和iSCSI存储系统正常工作。安装iscsiadm。在存储服务器上安装RHEL/CentOS 发行版KVM基于本地硬盘和DAS的NFS服务基于iSCSI的NFS服务本地磁盘登录NFS现在你可以建立/export共享目录重启服务运行下面的命令启动NFS服务。辅助存储小规模设置存储设置存储类型支持通过集群文件系统支持通过Pre-existing SR支持通过VMFS支持下面是一个分隔的CIDRs的示例:针对KVM使用集群逻辑卷管理器(CLVM),不受CloudStack官方支持。本节描述如何在一个标准的Linux系统中配置NFS输出。具体的命令取决于操作系统版本。使用以下步骤创建基于iSCSI卷的NFS服务。这些步骤适用于RHEL/CentOS 5发行版。当复制和粘贴命令时,请确保没有多余的换行符,因为一些文档查看器可能会在复制时加上换行符。XenServeriSCSIvSphere