Recovery boot of a DBaaS Instance after a root filesystem filecorruption

Share Post:

Log into console

  1. Navigate to Oracle base database service
  2. locate the relevant Instance.
  3. Select Console Connection
  4. Create Console Connetion-generate keys.
  5. Copy the SSH String.

Open cloud Shell

  1. Create the private key within cloud shell.
  2. Paste the SSH String and Connect.
  3. Reboot the dbaas Instance
  4. From Cloud Shell you will see the server booting.
  5. When the robot Starts you will see a boot manager menu. Highlight The Top boot option and press e
  6. In edit mode, use the down arrow key to scroll down through the entries until you reach the line that starts with the following value, depending on the version of Linux:

For instances running Oracle Autonomous Linux 8.x, Oracle Autonomous Linux 7.x, Oracle Linux 8.x, and Oracle Linux 7.x, scroll down until you reach the line that starts with linuxefi.

For instances running Oracle Linux Cloud Developer 8.x, scroll down until you reach the line that starts with linux.

 

  1. At the end of the line add the following: init=/bin/bash
  2. reboot the instance by using the keyboard Shortcut CTRL+X wait for the Instance to boot into Bash
  3. Enter /usr/sbin/load_policy -i
  4. Enter the following: /bin/mount -o remount, rw /
  5. Make changes to the configuration files as needed…
  6. To complete the recovery enter exec /usr/lib/systemd/systemd

Conclusion

Bringing a DBaaS instance back from root filesystem corruption is straightforward once you know the steps. Console access, single-user mode, and a few basic file edits are usually all that’s needed to get the system running again without resorting to a full rebuild. It’s not something you’ll need often, but when your instance locks you out and standard access fails, this method offers a simple, reliable way to get control back without overcomplicating the recovery process.

Contact us today to arrange an assessment or email:

Picture of Jason Beattie

Jason Beattie

Senior Architect and Cloud Operations Manager

Get in touch

Contact us today to learn more about what Vertice can do for you.

Cookies & Privacy

Vertice collects and stores your information to better customise your site experience and to optimise our website. However, your consent is required. Privacy Policy