Virtualizor Windows VPS Failed to upgrade Storage
Last updated
Last updated
Sometimes Virtualizor will fail to upgrade Windows VPS storage disks and require a manual CHKDSK to be run. Follow the steps below to run the CHKDSK and complete the upgrade manually.
Login as administrator user and open CMD.
Run chkdsk /f
and reply with y
when asked to complete check on reboot.
Reboot the VPS via Windows Start menu and NOT the Virtualizor/WHMCS panel
Wait for Chkdsk to complete, it can be monitored via KVM.
After booting into Windows, perform another reboot from the start menu (2 reboots, 1 for running chkdsk and another for good measure). Then shutdown the VPS from within Windows.
SSH into the hypervisor node the VPS is hosted on
Pull open the task logs via Virtualizor admin panel and look for the failed "Resizing VPS" task, scroll down to find the failed command with an red exit code of "1".
If you cannot find the task log or it was beyond the log retention period, you can use the command examples below, but to get the VPS disk path you need to get the VID
from the Virtualizor Admin panel and use the ls comand to get the path. For example this is the command you would use to find the path of the VPS VID "v1974": ls /dev/mapper/vg1-vsv1974*
. Then the command should output the path.
Click the copy icon next to the command above the failed command and paste into the SSH console. It should look something like /sbin/kpartx -avs /dev/vg1/vsv1974-dAsGfWTamcHgG3yA-kvfXx5OFC9Ft15d5
Click the copy icon on the failed command and paste that command into the SSH console. It should look something like ntfsresize -P --force /dev/mapper/vg1-vsv1974--dAsGfWTamcHgG3yA--kvfXx5OFC9Ft15d5p1 2>&1
Use up arrow key to recall the /sbin/kpartx -avs ...
command and change the -avs
to -d
then run the modified command. It should look something like /sbin/kpartx -d /dev/vg1/vsv1974-dAsGfWTamcHgG3yA-kvfXx5OFC9Ft15d5
Start the VPS via the Virtualizor/WHMCS panel and ensure disk size was updated both in Windows Explorer, Disk Management and the Virtualizor panel.