-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAction plan
137 lines (75 loc) · 4.09 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
####vg_name_change.sh >> rename vg from system to sles 11
####sle11to12 >> replace important configuration, set network, hostname, join server to BASF AD, reregister server to APX and HPSA.
Prerequsits:
Before replace system VMDK's.
This is very importamt for furder operation, because both server have the same system VG names ( system).
1.Change system volume group from system to suse11
./vg_name_change.sh system sles11
2.Check if the name is successful rename.
vgs
PS:If VG namas are diferent this action is not required.
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
3.Unjoined server from BASF domain.
lxinfra01:/home/unxtools/ADJOIN/ADJOIN_LOCAL/basfad_join2AD.sh -u servername
4.Unregister server form APX:
/opt/apxpccp/pccprel exec,DCM/DCM_DEREG_$(hostname).scp
/opt/apxpccc/pccCrel exec,DCM/DCM_DEREG_$(hostname).scp
5.Unregister server from HPSA.
/opt/opsware/agent/bin/agent_uninstall.sh --no_deactivate --force
After VMDK replasment:
All scripts and binary files are putted in /root/scripts/sles_migration/
1.Go to a direcrtory and axecute:
./sle11to12 old_vg new_vg hostname
2.Go to a suse-mgr01 in directory /infra/linux/SuSE-manager and join server
./register-to-SUSE-Manager.sh -r -s sles11to12
Inform colleagues from BASF to proceed with further action.
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.
6.Register server to suse-manager.
./register-to-SUSE-Manager.sh -r -s 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