Oracle Virtual Desktop Infrastructure Oracle VDI Core 重新配置 April 2011
Copyright 2011, Oracle and/or its affiliates. All rights reserved. This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited. The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing. If this software or related documentation is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, the following notice is applicable: U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, the use, duplication, disclosure, modification, and adaptation shall be subject to the restrictions and license terms set forth in the applicable Government contract, and, to the extent applicable by the terms of the Government contract, the additional rights set forth in FAR 5227-19, Commercial Computer Software License (December 2007). Oracle USA, Inc., 500 Oracle Parkway, Redwood City, CA 94065. This software is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications which may create a risk of personal injury. If you use this software in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure the safe use of this software. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software in dangerous applications. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark licensed through X/Open Company, Ltd. This software and documentation may provide access to or information on content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services.
VDI Core 重新配置 ( 所有主题 ) English 目录 如何重新配置 ( 演示到 HA MySQL Cluster) 如何重新配置 ( 演示到单一主机 ) 如何重新配置 ( 单主机到 HA MySQL 群集 ) 如何重新配置 ( 单主机到 HA 远程 MySQL) VDI Core 重新配置 ( 所有主题 ) 如何重新配置 ( 演示到 HA MySQL Cluster) 从演示数据库备份数据 a. 在演示 ( 或评估 ) 主机上, 运行以下命令 # /opt/sunwvda/mysql/bin/ndb_mgm b. 在 ndb_mgm 提示下, 运行以下命令 START BACKUP c. 检查是否已在位置 /var/opt/sunwvda/mysql-cluster 处创建目录 "BACKUP/BACKUP-1" 取消配置演示主机 3. 在主要主机和至少两台辅助主机上安装并配置 Oracle VDI Core 按照如何安装和配置 Oracle VDI Core (MySQL Cluster) 页面上的说明操作 3
4. 恢复一台辅助主机上的数据 a. b. 将备份保存在辅助主机中的位置 /var/opt/sunwvda/mysql-cluster/backup/backup-1 处 在同一个辅助主机上运行以下命令 # /opt/sunwvda/mysql/bin/ndb_restore -b <backup #> -n <nodeid #> -r -- backup_path=<path> 如何重新配置 ( 演示到单一主机 ) 从演示数据库备份数据 # /opt/sunwvda/mysql/bin/mysqldump --defaults-file=/etc/opt/sunwvda/my.cnf --port=3306 -u root --opt vda > /demosetup.sql 取消 Oracle VDI Core 的配置 3. 安装远程数据库 创建特权数据库管理员, 并将 Oracle VDI Core 配置为单一主机 有关详细信息, 请参阅如何安装和配置单一 Oracle VDI Core 主机页面 4. 在单一主机上恢复数据 # /usr/local/mysql/bin/mysql vda < demosetup.sql 您必须使用数据库名称 'vda'( 如在以上命令中所看到 ), 否则迁移将失败 这是因为在演示配置期间, 数据库的默认名称是 'vda' 如何重新配置 ( 单主机到 HA MySQL 群集 ) 4
备份单主机数据库中的数据 转到 usr/local/mysql/bin/ 目录并运行 mysqldump # cd usr/local/mysql/bin/ #./mysqldump --user=root -u root --opt vda gzip > /dumptestsql.gz 取消配置单主机 3. 在主要主机和至少两台辅助主机上安装并配置 Oracle VDI Core 按照如何安装和配置 Oracle VDI Core (MySQL Cluster) 页面上的说明操作 4. 恢复一台辅助主机上的数据 a. 运行以下命令 # /opt/sunwvda/mysql/bin/mysql --defaults-file=/etc/opt/sunwvda/my.cnf --port=3306 -u root vda < /dumptestsql 如何重新配置 ( 单主机到 HA 远程 MySQL) 以下过程假定现有配置为单主机, 并且已在一台主机上安装了 Oracle VDI 虚拟机管理程序 (hypervisor) 远程 MySQL 数据库和 Oracle VDI Core 还假定在重新配置期间远程数据库会保留在现有主机上 5
开始之前 在此重新配置过程中不要求必须备份数据, 但强烈建议您进行备份 有关如何备份远程数据库的详细信息, 请参阅 to Back Up and Restore Data 取消配置单主机 在一台主要主机和至少两台辅助主机上安装并配置 Oracle VDI Core 有关详细信息, 请参阅如何安装和配置 Oracle VDI Core( 远程 MySQL) 页面 6