How do I run an FSCK for a VM from the hypervisor?
All OnApp versions
LVM datastore only
*****Please note, we recommend running a FSCK directly from Recovery Mode rather then from a Hypervisor where possible*****
To run the fsck from the hypervisor you will need to get the disk identifier from one of the VM startup logs. On the log page you will see a command like:
Running: lvchange -a y /dev/onapp-qbazdnlx03904g/rmy61ommv5f49j
The first lvchange command like this listed in the log contains the primary disk:
identifier = rmy61ommv5f49j
After ensuring the VM is turned off and is not running on any hypervisor you can then log into the hypervisor the VM was running on and run the following command:
fsck -y /dev/onapp-qbazdnlx03904g/rmy61ommv5f49j
This will run the FSCK from the hypervisor and answer 'yes' to any questions. Once it is complete all going well the VM should start up normally pending there aren't any un-recoverable disk errors.
The length of time a FSCK takes will depend on the size of disk, amount in use, state of the filesystem and disk access speeds.