01. Create plan to move Server & then inform to owner until get the agreement.
Dear All,
Information Department System (Maintenance) Notice : planned
Description 狀況說明. | Move server guest to another host | |
System Name系統(線路)名稱 . | ||
Influence time 影響時間 . | 2021/11/13 12.30 (+7) | |
Expected recovery time 預計恢復時間 . | 2021/11/13 16:30 (+7) | |
Area of influence 影響地區 . | Indonesia Area (ID) | |
Scope of influence 影響範圍 . | ||
Contact / 聯絡資訊. | Aldi / Budi – 7274 | |
Note / 備註. | Server will be shutdown during operation |
Thank you
Regards
--
M.Aldibunggi
IT Infra PCI-Serang, PT. Nikomas Gemilang
印尼行政中心 Pusat Office, Serang.
☎ 120-7274
02. Sending Email Mandatory H-4 unless urgent.
03. Open the VM Center app. (5.206 & 5.12)
04.Open IP server by ssh and Login, Always used root account.
05. Tulis ps aux ; // untuk melihat db yang sedang berjalan.
06. If the server being moved is a database, then we must turn off the database service first.
SHUTDOWN DB SERVER
07. Write su - account; // untuk masuk ke account db yang kita gunakan contoh account
08. Write su - oracle ; // untuk masuk ke account db yang kita gunakan contoh oracle
09. Write su - drsamin ; // untuk masuk ke account db yang kita gunakan contoh drsadmin
10.Write export ORACLE_SID=DBname ;
// ini digunakan jika database lebih dari (1).
// ganti DBname dengan nama db yang ada (saat ps aux).
11. Write sqlplus /nolog; // untuk masuk ke db
12. Write connect /as sysdba //
13. Write shutdown immediate // untuk mematikan service db
14. Write exit // untuk keluar
SHUTDOWN SERVER
15. Login to Server (xxx.xxx.xxx.xxx)
16. Always used super user (root account) .
17. Write shutdown -h
18. Write shutdown -h now // jika terjadi masalah
19. Wait until server off.
20. After the guest server shutdown, open the vm vcenter application
21. Choose Convert machine
22. Enter the IP VM host source using the root account
23. Select the server to be moved
24. Enter the destination host IP (after next to finish)
25. Wait until Finish (100%)
26. Power on guest server on new Host
27. Make sure the Network connection is the same (eg Vlan 5, use Vlan 5 network
28. The method right click on the name servers, select settings
TURN ON SERVER
29. Turn On via VM .
30. Choose The Server
31. Right click
32. Choose Power On
33. (vi / cd) /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=172.19.5.201
NETMASK=255.255.255.0
GATEWAY=172.19.5.254
HWADDR=00:50:56:A5:4D:02
DNS1=172.19.5.1
DNS2=172.19.5.2
START DB SERVER
33. Write su - oracle; //
34. Write sqlplus /nolog; //
35. Write SQL > connect /as sysdba; //
36. Write startup //
37. Write exit //
38. Write lsnrctl start //
39. Write lsnrctl status // status check
40. Write //