We moved this page to our Documentation Portal. You can find the latest updates here. |
Question
How can I use the recovery console to FSCK my VM?
Environment
All OnApp Versions
Linux Virtual Machines
Answer
To use the recovery console, select the virtual machine you wish to boot into the recovery mode and hit the reboot in recovery option in the VM's overview.
When the virtual machine boots to recovery, you will be able to access it with the following credentials:
User: root
Pass: <initial root password> or 'recovery'
Once you are logged in, you will notice a few changes to the system. To get a list of the disks for your virtual machine, you can use fdisk:
[ root@onapp ~]# fdisk -l
Disk /dev/sda: 280 MB, 280252416 bytes
255 heads, 63 sectors/track, 34 cylinders
Units = cylinders of 16065 512 = 8225280 bytes
Disk /dev/sda doesn't contain a valid partition table
Disk /dev/sdb1: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 512 = 8225280 bytes
Disk /dev/sdb1 doesn't contain a valid partition table
If you need to run a FSCK on the disk, you can run a forced FSCK with the following (see 'man fsck' for additional options):
[ root@onapp ~]# fsck -yf /dev/sdb1