check-disk

Verify the filesystem on some virtual disk.

This command validates and repairs the filesystem on a virtual disk, using the fsck command. The system the disk is on is set with the --host flag, and the disk to check be specified by real filename using --real or virtual device with --virt.

This can be useful if a system is failing to boot fully, and getting stuck in the "Ping failed" state. Often the cause is a un-clean shutdown that has left a virtual disk with an invalid filesystem. This API command can correct those kinds of errors (after the system is shut down).

Example usage

  cloudmin check-disk --host xencentos.home --virt /dev/sda3
  Checking virtual disk for /dev/hda1 ..
  fsck 1.40.8 (13-Mar-2008)
  e2fsck 1.40.8 (13-Mar-2008)
  /dev/loop9: clean, 11/517144 files, 64966/1040384 blocks
  .. no errors found

Command Line Help

Verify the filesystem on some virtual disk.

cloudmin check-disk --host hostname
                    --real device|file | --virt device | --lv name