Directly contact our Support Team

Run filesystem check in GravityZone Virtual Appliance

In this article you will learn how to use fsck to check and repair Linux filesystems.  

The fsck operation can be used to check and repair Linux filesystems. You can use this operation if, for example, your GravityZone Virtual Appliance (VA) instance fails to boot, or it is stuck in an endless boot.

There are a couple of ways to run a filesystem check.

Run filesystem check in the GravityZone Virtual Appliance

You can run this operation when Recovery Mode is available in GravityZone Virtual Appliance.

Prerequisites

Virtual Machine console level access to the GravityZone virtual appliance (provided through your hypervisor management software).

Run filesystem check in GravityZone Virtual Appliance Recovery Mode
  1. Open your hypervisor management software.
  2. Start the GravityZone Virtual Appliance.
  3. Press any key to interrupt the boot sequence. During the boot sequence, the GRUB boot loader appears on your screen. 


     
  4. Use the arrow keys to select Advanced options for Bitdefender GNU/Linux and press Enter.
  5. In the following screen, select Bitdefender GNU/Linux, with version x.x.x-xxx-generic (recovery mode). GravityZone OS boots into Recovery Mode. 


     
  6. In the Recovery Menu, select fsck and press Enter. A confirmation dialog prompts you to validate your operation. 


     
  7. After the filesystem check is done, you can see the finished output. Press ENTER to get return to Recovery Mode.
  8. Select resume to continue the normal boot sequence.

 

Run offline filesystem check on the GravityZone Virtual Appliance
Prerequisites
  • Virtual Machine console level access to the GravityZone virtual appliance (provided through your hypervisor management software).
  • An Ubuntu 16.04 Live image (ISO). You can download it from here.
  • Mounted Ubuntu 16.04 Live image on the GravityZone Virtual Appliance located in your hypervisor management software.
Run offline filesystem check from a mounted Ubuntu 16.04 image
  1. Open your hypervisor management software.
  2. Shut down the GravityZone Virtual Appliance.
  3. Create a snapshot of the GravityZone VA.
  4. Mount the Ubuntu 16.04 Live image into the GravityZone VA.
  5. Boot the GravityZone VA from the Ubuntu image and select Try Ubuntu when prompted. Ubuntu boots up. 


     
  6. In Ubuntu desktop, click the search bar at the top of the screen and start typing terminal.


     
  7. Open Terminal and run the following commands: sudo su ls /dev/mapper
  8. Identify the system disk of the GravityZone VA. You can look for the following names: gzva-root, gzva-data, gz-data or gz-root.
  9. Run the following command to perform a filesystem check: fsck –f -y /dev/mapper/gzva-root In this example we used gzva-root, as seen in the screenshot below.



    If there are any errors during this operation, you will be prompted by confirmation dialogs. Select yes to all fsck questions.
  10. After the filesystem check is done, reboot the GravityZone VA without the Ubuntu image and check if the appliance boots up successfully.

  If the filesystem check is unable to fix the errors, we recommend you to restore your GravityZone Virtual Appliance from a database backup. For more information, refer to this KB article.


Rate this article:

Submit