Managing Serviceguard Extension for SAP Version B.05.10, December 2012

mkdir /usr/sap/<SID>.new
cd /usr/sap/<SID>
bdf . # Remember the filesystem column.
# It will be referred to as <dev_path> later.
find . -depth -print|cpio -pd/usr/sap/<SID>.new
cd /
umount /usr/sap/<SID>
rmdir /usr/sap/<SID>
mv /usr/sap/<SID>.new/usr/sap/<SID>
chmod 751 /usr/sap/<SID>
chown <SID>adm:sapsys/usr/sap/<SID>
cd/usr/sap/<SID>/DVEBMGS<INSTNR>
rm -r * # be careful with this
cd ..
mount <dev_path>/usr/sap/<SID>/DVEBMGS<INSTNR>
cd DVEBMGS<INSTNR>
# remove everything that is different from DVEBMGS<INSTNR>,
ls
# Example: rm -r SYS
# rm -r D00
cd DVEBMGS<INSTNR>
find . -depth -print|cpio -pd/usr/sap/<SID>/DVEBMGS<INSTNR>
rm -r * # be careful with this
cd ..
rmdir DVEBMGS<INSTNR>
2. Mark all shared volume groups as members of the cluster. This only works if the cluster services
are already available.
Example:
cd /
# umount all logical volumes of the volume group
vgchange -a n <vg_name>
vgchange -c y <vg_name>
vgchange -a e <vg_name>
# remount the logical volumes
3. The device minor numbers must be different from the numbers gathered on the other hosts.
Verify this by comparing numbers listed in Table 15 (page 59) to the numbers listed in the
tables contained in chapter 2.
Create map files with the vgexport command and distribute them to all nodes in the cluster
for all shared volume groups.
Installation Step: IS030
Comment out the references to any file system that is classified as a shared directory in chapter 2
from the
/etc/fstab.
MaxDB Database Step: SD040
Make sure you have mounted a sharable logical volume on
/sapdb/<DBSID>/wrk
as discussed
in section “MaxDB Storage Considerations” in chapter 2
.
NOTE: This step can be skipped for MaxDB instances starting with versions 7.6.
Change the path of the runtime directory of the SAPDB and move the files to the new logical volume
accordingly.
cd /sapdb/data/wrk/<DBSID>
find . -depth -print | cpio -pd/sapdb/<DBSID>/wrk
cd ..
rm -r /sapdb/data/wrk/<DBSID>
dbmcli -d <DBSID> -u control,control
...> param_directget RUNDIRECTORY
OK
RUNDIRECTORY /sapdb/data/wrk/<DBSID>
60 Step-by-Step Cluster Conversion