|
Size: 3899
Comment:
|
Size: 6919
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 97: | Line 97: |
== drop vpx == {{{ SQL> drop user vpxadmin cascade; User dropped. SQL> DROP TABLESPACE vpx INCLUDING CONTENTS AND DATAFILES; Tablespace dropped. }}} == How to Upgrade from VCSA 5.5 to 6.0 == https://pubs.vmware.com/vsphere-60/index.jsp?topic=%2Fcom.vmware.vsphere.upgrade.doc%2FGUID-5FCA78EC-8637-43A4-8B28-24624E4D5EBA.html I. Do a backup or create a snapshot of your existing VCSA. I. Verify that the clocks of all machines on the vSphere network are synced. I. 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. 1. Log in to the source vCenter Server Appliance Web interface at https://Source_vCenter_Server_Appliance_FQDN:5480/. 2. Click the Admin tab. 3. 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. 4. Click Submit. 5. Reboot the vCenter Server Appliance. 6. After the vCenter Server Appliance reboots, confirm that the Certificate regeneration enabled option is set to disabled. https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2110772 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. }}} |
使用脚本创建本地或远程 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 "VPXADMIN" PROFILE "DEFAULT" IDENTIFIED BY "oracle" DEFAULT TABLESPACE "VPX" ACCOUNT UNLOCK; grant connect to VPXADMIN; grant resource to VPXADMIN; grant create view to VPXADMIN; grant create sequence to VPXADMIN; grant create table to VPXADMIN; grant create materialized view to VPXADMIN; grant execute on dbms_lock to VPXADMIN; grant execute on dbms_job to VPXADMIN; grant select on dba_lock to VPXADMIN; grant select on dba_tablespaces to VPXADMIN; grant select on dba_temp_files to VPXADMIN; grant select on dba_data_files to VPXADMIN; grant select on v_$session to VPXADMIN; grant unlimited tablespace to VPXADMIN; alter user "VPXADMIN" quota unlimited on "VPX";
- 在成功安装了具有 Oracle 数据库的 vCenter Server 之后,您可以撤销下列特权。
revoke select on dba_tablespaces from VPXADMIN; revoke select on dba_temp_files from VPXADMIN; revoke select on dba_data_files from VPXADMIN;
运行以下 SQL 命令向 vCenter Server 数据库用户授予其他权限
grant select on v_$system_event to VPXADMIN; grant select on v_$sysmetric_history to VPXADMIN; grant select on v_$sysstat to VPXADMIN; grant select on dba_data_files to VPXADMIN; grant select on v_$loghist to VPXADMIN; 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.
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.
