Situation - You need to check the primary disk with fsck but can't do so while the disk is in use.
Solution - The server will need to be started in recovery mode. This allows the disk to be mounted to a temporary virtual server. In this way the disk isn't in use.
Preparation - You will need downtime for the server. The check will take time depending on the size of the disk and number of fixes required. A recent backup of the server is highly suggested. Access to the customer portal will also be needed.
- Log into the customer portal and go to the virtual server.
- If you haven't already. Now is a good time to create a backup ->.
- Click on Shut down Virtual Machine for the server. This takes anywhere from 3 to 10 minutes.
- Once the server has stopped, click on Startup on Recovery in the same Action menu box. Its icon will be blue when the server is shutdown.
- Click OK in the pop-up window that appears.
- Connect to the virtual server via a SSH client. Use the server's IP address as the host and these credentials:
- Once logged in you need to mount the primary disk to this temporary virtual server. The primary disk is:
- Check that the disk is available:
- Now perform the actual check of the disk.
fsck -yf /dev/sdb1
- Once the check has finished you can log out of the server.
- Now you can restart the server via the customer portal console. Click on the Startup Virtual Machine.
- Log into the server normally and check for any new errors or if the previous problems have been fixed.