shell> systemctl stop glassfishd
shell> systemctl stop mysqld
shell> systemctl stop slapd Ensure that all services have been stopped using the following commands: shell> nfn 8181 shell> nfn 3306 If mysqld and glassfishd are still active, list the process ID's and force kill the processes: shell> pf mysqld shell> pf str shell> pf glassfishd shell> kill -9 (pid from the above command)
shell> mkdir /usr/local/backups
shell> cp /etc/hosts /usr/local/backups
shell> cp /etc/sysconfig/network-scripts/ifcfg-* /usr/local/backups
shell> cp -r /etc/firewalld/zones/public.xml /usr/local/backups
shell> firewall-cmd --list-all >> /usr/local/backups/firewallrules
shell> cp /etc/bashrc /usr/local/backups
shell> cat /etc/bashrc
shell> cp /etc/sakarc /usr/local/backups
shell> cp /etc/ssh/ssh_config /etc/ssh/sshd_config /usr/local/backups
shell> cp /etc/init.d/glassfishd /etc/init.d/mysqld /usr/local/backups
If using opendj, make a backup of opendjd.
shell> cp -r /etc/init.d/opendjd /usr/local/backupsIf using openldap, make a backup of slapd.
shell> cp -r /etc/systemd/system/multi-user.target.wants/slapd.service /usr/local/backups
shell> cp /etc/my.cnf /usr/local/backups
shell> slapcat -n 0 -l /usr/local/strongauth/dbdumps/config.ldif
shell> slapcat -n 2 -l /usr/local/strongauth/dbdumps/databackup.ldif shell> chown -R strongauth. /usr/local/strongauth/dbdumps/config.ldif shell> chown -R strongauth. /usr/local/strongauth/dbdumps/databackup.ldif NOTE 1: If there is a warning message on CentOS which states: 65ca5a28 hdb_db_open: warning - no DB_CONFIG file found in directory /var/lib/ldap Execute the following step: shell> cp /usr/share/openldap-servers/DB_CONFIG.example /var/lib/ldap/DB_CONFIG shell> chown ldap:ldap /var/lib/ldap/*
shell> cd /usr/local/
shell> zip -r backups/strongauth.zip strongauth
shell> cd /usr/local/software
shell> zip -r /usr/local/backups/saka.zip saka
NOTE: Since the ISO is configured with the kickstart file, the kickstart file will install OS with all the necessary configurations (disk partitions, necessary packages, root account with default password - Abcd1234!). Since the ISO will have the kickstart installation option as first choice, it should be selected automatically. If it doesn't, then you will need to select an option 'Kickstart Install Rocky Linux 9.3' when booting from USB to automatically install Rocky Linux OS.