forked from grabadabar/new_project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAction plan
110 lines (63 loc) · 3.61 KB
/
Action plan
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
vg_name_change.sh >> rename vg from system to sles 11
sles12_sap_ora_conf.sh >> replace important configuration and check
1.Change system volume group from system to suse11
./vg_name_change.sh system sles11
2.Unregister server from suse-manager.
From suse-mgr01 execute ./register-to-SUSE-Manager.sh -e -s servername
./register-to-SUSE-Manager.sh -e -l sles11to12
delete server via suse-manager web interface
delete HPSA agent
/opt/opsware/agent/bin/agent_uninstall.sh --no_deactivate --force
3.Unjoined server from BASF domain.
lxinfra01:/home/unxtools/ADJOIN/ADJOIN_LOCAL/basfad_join2AD.sh -u servername
for s in $(cat /usr2/local/sles11o12); do ./basfad_join2AD.sh -u $s;done
group is infra-ITIS
4.Stop server detach root vmdk from first iscs controller, attach root disk with sles12 vmdk on the iscso0:0.
Attach sles11 vmdk on the last iscs controller and power on the server.
5.After the server power on log in via console and execute ./sles11to12.sh sles11.
The script will mount root file system(sles11) in /mnt directory and after that action will replace important configuration files.
Reckreate machine-id, register server to BASF AD, install HPSA agent and conect server to APX.
6.Register server to suse-manager.
./register-to-SUSE-Manager.sh -r -l sles11to12
7.SAP and Oracle colleagues will install new DB and application versions and check if application, databases running correct.
Scripts vg_name_change.sh, sles12_sap_ora_conf.sh, I test them on my lab but we can check if they work correct next week.
[?12/?18/?2018 3:19 PM] Kostadinov, Hristo:
systemctl status rpcbind
systemctl status ypbind
systemctl status vasd
systemctl status vasypd
systemctl status autofs
ei tva e reda na startirane
echo 'ypserver localhost' > /etc/yp.conf
echo 'basfad.basf.net' > /etc/defaultdomain
domainname $( cat /etc/defaultdomain )
How to hpsa agent work?
#remove HPSA agent script
/opt/opsware/agent/bin/agent_uninstall.sh --no_deactivate --force
rm -r /opt/opsware
$OPSPACKAGE --loglevel info --opsw_gw_addr_list 10.92.96.41:3001 -f --force_new_device
Scripts that will be needed to sles11 to sles 12 migration
vg_name_change.sh
basfad_join2AD.sh
$OPSPACKAGE - hpsa agent elf package
sles12_sap_ora_conf.sh
Directory where the scripts putted ~/sles_migration/ it a part from dimetrge home directory.
Hello Georgi,
here the deregister / register for APX
Deregister:
The deregister can be run on the suse-mgr01 (Works from every server)
Just replace <SERVER> with the server name.
/opt/apxpccp/pccprel exec,DCM/DCM_DEREG_$(hostname).scp
/opt/apxpccc/pccCrel exec,DCM/DCM_DEREG_$(hostname).scp
Мисля, че в този случай:
а) Прехвърляне на потребители на OS SLES11, които са остарели / вече не съществуват в SLES12 (напр. polkituser)
б) Прехвърляне на потребители на OS SLES11, които имат същото потребителско име като на SLES12, но са малко по-различни (напр. sshd, ntp)
while read line; do if ! grep "$line" /etc/shadow_sles11.default &> /dev/null; then echo $line; fi; done < /etc/shadow
while read line; do if ! grep "$line" /etc/shadow_sles11.default &> /dev/null; then echo $line; fi; done < /etc/shadow
Register:
copy /opt/apxpccp/recreate_pccp_pks.sh and /opt/apxpccc/recreate_pccc_pks.sh to the server
scp /opt/apxpccp/recreate_pccp_pks.sh <SERVER>:/opt/apxpccp/recreate_pccp_pks.sh
scp /opt/apxpccc/recreate_pccc_pks.sh <SERVER>:/opt/apxpccc/recreate_pccc_pks.sh
and run it on <SERVER>
/opt/apxpccc/recreate_pccc_pks.sh
/opt/apxpccp/recreate_pccp_pks.sh