|
Size: 6992
Comment:
|
Size: 6992
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 110: | Line 110: |
| == upgrade vCenter == {{{ Command> com.vmware.software-packages staged --url http://xxx/ Command> com.vmware.software-packages install --staged }}} |
|
| Line 165: | Line 171: |
== upgrade vCenter == {{{ Command> com.vmware.software-packages staged --url http://xxx/ Command> com.vmware.software-packages install --staged }}} |
Oracle
使用脚本创建本地或远程 Oracle 数据库 CREATE SMALLFILE TABLESPACE "VPX" DATAFILE '/data/vcdb/vpx01.dbf' SIZE 1G AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED LOGGING EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;
配置 Oracle 数据库用户
CREATE USER "VSAN" PROFILE "DEFAULT" IDENTIFIED BY "oracle" DEFAULT TABLESPACE "VPX" ACCOUNT UNLOCK; grant connect to VSAN; grant resource to VSAN; grant create view to VSAN; grant create sequence to VSAN; grant create table to VSAN; grant create materialized view to VSAN; grant execute on dbms_lock to VSAN; grant execute on dbms_job to VSAN; grant select on dba_lock to VSAN; grant select on dba_tablespaces to VSAN; grant select on dba_temp_files to VSAN; grant select on dba_data_files to VSAN; grant select on v_$session to VSAN; grant unlimited tablespace to VSAN; alter user "VSAN" quota unlimited on "VPX";
- 在成功安装了具有 Oracle 数据库的 vCenter Server 之后,您可以撤销下列特权。
revoke select on dba_tablespaces from VSAN; revoke select on dba_temp_files from VSAN; revoke select on dba_data_files from VSAN;
运行以下 SQL 命令向 vCenter Server 数据库用户授予其他权限
grant select on v_$system_event to VSAN; grant select on v_$sysmetric_history to VSAN; grant select on v_$sysstat to VSAN; grant select on dba_data_files to VSAN; grant select on v_$loghist to VSAN; vCenter 数据库监控已启用。
@/home/oracle/dbschema/VCDB_oracle.sql @/home/oracle/dbschema/VCDB_views_oracle.sql @/home/oracle/dbschema/insert_stats_proc_oracle.sql @/home/oracle/dbschema/load_stats_proc_oracle.sql @/home/oracle/dbschema/purge_stat2_proc_oracle.sql @/home/oracle/dbschema/purge_stat3_proc_oracle.sql @/home/oracle/dbschema/purge_usage_stats_proc_oracle.sql @/home/oracle/dbschema/stats_rollup1_proc_oracle.sql @/home/oracle/dbschema/stats_rollup2_proc_oracle.sql @/home/oracle/dbschema/stats_rollup3_proc_oracle.sql @/home/oracle/dbschema/cleanup_events_oracle.sql @/home/oracle/dbschema/delete_stats_proc_oracle.sql @/home/oracle/dbschema/load_usage_stats_proc_oracle.sql @/home/oracle/dbschema/TopN_DB_oracle.sql @/home/oracle/dbschema/calc_topn1_proc_oracle.sql @/home/oracle/dbschema/calc_topn2_proc_oracle.sql @/home/oracle/dbschema/calc_topn3_proc_oracle.sql @/home/oracle/dbschema/calc_topn4_proc_oracle.sql @/home/oracle/dbschema/clear_topn1_proc_oracle.sql @/home/oracle/dbschema/clear_topn2_proc_oracle.sql @/home/oracle/dbschema/clear_topn3_proc_oracle.sql @/home/oracle/dbschema/clear_topn4_proc_oracle.sql @/home/oracle/dbschema/rule_topn1_proc_oracle.sql @/home/oracle/dbschema/rule_topn2_proc_oracle.sql @/home/oracle/dbschema/rule_topn3_proc_oracle.sql @/home/oracle/dbschema/rule_topn4_proc_oracle.sql @/home/oracle/dbschema/process_license_snapshot_oracle.sql @/home/oracle/dbschema/l_purge_stat2_proc_oracle.sql @/home/oracle/dbschema/l_purge_stat3_proc_oracle.sql @/home/oracle/dbschema/l_stats_rollup1_proc_oracle.sql @/home/oracle/dbschema/l_stats_rollup2_proc_oracle.sql @/home/oracle/dbschema/l_stats_rollup3_proc_oracle.sql @/home/oracle/dbschema/job_dbm_performance_data_oracle.sql @/home/oracle/dbschema/process_performance_data_oracle.sql @/home/oracle/dbschema/job_schedule1_oracle.sql @/home/oracle/dbschema/job_schedule2_oracle.sql @/home/oracle/dbschema/job_schedule3_oracle.sql @/home/oracle/dbschema/job_cleanup_events_oracle.sql @/home/oracle/dbschema/job_topn_past_day_oracle.sql @/home/oracle/dbschema/job_topn_past_week_oracle.sql @/home/oracle/dbschema/job_topn_past_month_oracle.sql @/home/oracle/dbschema/job_topn_past_year_oracle.sql
drop vpx
SQL> drop user vpxadmin cascade; User dropped. SQL> DROP TABLESPACE vpx INCLUDING CONTENTS AND DATAFILES; Tablespace dropped.
upgrade vCenter
Command> com.vmware.software-packages staged --url http://xxx/ Command> com.vmware.software-packages install --staged
How to Upgrade from VCSA 5.5 to 6.0
- Do a backup or create a snapshot of your existing VCSA.
- Verify that the clocks of all machines on the vSphere network are synced.
- Verify that the ESXi host on which you deploy the vCenter Server Appliance is not in lockdown or maintenance mode.
FQDN issue
vCenterServer FQDN vcsa55.lab.local does not match DNS servers “localhost.localdom,localhost” and ip addresses “10.10.7.151” from VC certificate
Examine the VC certificate and make sure it is valid and point to vCenterServer FQDN.- To resolve this issue, toggle the certificate settings on the source vCenter Server Appliance to regenerate new certificates with the appropriate hostname and IP address.
Log in to the source vCenter Server Appliance Web interface at https://Source_vCenter_Server_Appliance_FQDN:5480/.
- Click the Admin tab.
- Regenerate certificates:
- vCenter Server 5.1: Select Toggle certificate setting so that the Certificate regeneration enabled displays Yes. vCenter Server 5.5: Select Yes under Certificate regeneration enabled.
- Click Submit.
- Reboot the vCenter Server Appliance.
- After the vCenter Server Appliance reboots, confirm that the Certificate regeneration enabled option is set to disabled.
https://communities.vmware.com/thread/528020?start=0&tstart=0
vCenter Server Downgrade options
http://www.vladan.fr/esxi-6-0-downgrade-options-lab-time/
Troubleshooting
Error naming or renaming a VM file
vmodl.fault.SystemError:
--> Result:
--> (vmodl.fault.SystemError) {
--> faultCause = (vmodl.MethodFault) null,
--> reason = "Error naming or renaming a VM file.",
--> msg = ""
--> }
--> Args:
-->
2016-09-12T01:30:09.059Z info vpxd[7F4E7A6B7700] [Originator@6876 sub=vpxLro opID=CA18011C-00000115-8d] [VpxLRO] -- FINISH task-4554
2016-09-12T01:30:09.059Z info vpxd[7F4E7A6B7700] [Originator@6876 sub=Default opID=CA18011C-00000115-8d] [VpxLRO] -- ERROR task-4554 -- vm-48 -- vim.VirtualMachine.reloca
te: vmodl.fault.SystemError:
Collecting diagnostic information for VMware vCenter Server 4.x, 5.x and 6.0 (1011641)
Collecting diagnostic information from vCenter 6.0 Server Appliance or external Platform Service Controller using a web browser Open a web browser and navigate to https://vCenter_server_FQDN:443/appliance/support-bundle When prompted enter the root credentials and click Enter. The download will begin automatically as vm-support.tgz.
