Migrating Oblik to another host
Installing a new server:
Configure the interface: - system-config-network-tui - installed VSFTPD for file access. - It was blocked by iptables. There was no user access. - [root@goldsrv ~]# setsebool -P ftp_home_dir on Please check back if ftp_home_dir values ??have changed: [root@goldsrv ~]# getsebool -a | grep ftp
- Added to the file: /etc/sysconfig/i18n LANG="en_US" SYSFONT="cp866-8x16" - Transfer the /usr/dlc, /usr/java, and /usr/pro directories from the old server.
- Stopped all databases on the old server through the admin panel. Archived them using tar. Transferred and extracted them on the new server. Creating users and groups:
groupadd -g 200 progress
useradd -u 200 -g progress -d /usr/dlc/home -s /bin/sh -c "Progress user" progress
useradd -u 201 -o -g progress -d /usr/pro/admin/home -s /bin/sh -c "Progress Admin user" admin
useradd -u 202 -g progress -d /usr/pro/home -s /bin/sh -c dbadmin dbadmin
chown -R progress:progress /usr/dlc /usr/pro
Setting passwords:
- Logged in as Admin. Got: /usr/pro/admin/home/bin/p_serv_back: line 8: /bin/proserve: No such file or diry /usr/pro/admin/home/bin/runpro: line 3: EXPORT: command not found /usr/pro/admin/home/bin/runpro: line 4: /bin/mpro: No such file or directory
Conclusion: proceeded to check realpath.
- Installed RealPath. The problem was not resolved.
- Remembered the profile. Added the Progress lines. The problem was resolved.
- Logging in as Admin, I see: SYSTEM ERROR: Can't attach shared memory with segment_id: 3440645 for ¦ ¦ ./db/back_up ¦ ¦ There is no server for database ./db/back_up. (1423)
- Remembered Service. Added it.
- Realized the service did not start. Found scripts in /etc/Init.D and created 2.
- Started: /usr/pro/admin/bin/servers start
[root@v12 bin]# /usr/pro/admin/bin/servers start Start admin DB server OpenEdge Release 10.2A0109 as of Tue Jun 9 14:12:29 EDT 2009 14:58:01 BROKER ** The database ./db/back_up is in use in multi-user mode. (276) 14:58:01 BROKER ** This process terminated with exit code 2. (8619) OpenEdge Release 10.2A0109 as of Tue Jun 9 14:12:29 EDT 2009
- Deleted the lk file from the Admin database. The server started!!!
- Logged in as admin—it immediately kicks me out.
Noticed messages when starting the admin panel: chown: changing ownership of `db/back_up.lg': Operation not permitted chmod: changing permissions of `db/back_up.lg': Operation not permitted