VDSmanager FAQ

From ISPWiki

Jump to: navigation, search

This section provides troubleshooting information for users who are having trouble using and administering VDSmanager.


Internal error "bad VDS ID"

Defining the problem.

When creating a VPS running Centos, the «Internal error bad VDS ID <ID>» error is returned.

Solution. This error may occur, if there exists a directory, which name corresponds to the ID you are creating in в /vz/root/.

Why does traffic usage in ISPmanager and VDSmanager differ?

See: Calculating traffic in VDSmanager and Traffic in ISPmanager

How do I restore disk quota?

Such situation may occur if the mv command was used to transfer a VPS. In order to resolve the problem, follow the instructions below:

  • Run vdisk alloc /vs/disk2/ You will see something like this:
 quota file '/vs/disk2/quota.vds'
 alloc vid 188
  • Use the command below to specify the vid for the server's files:
 find /vs/disk2/ -exec vdisk set{}VID \;

What is the CPU limit?

This is the maximum number of seconds that is used by the central processing unit while executing various processes.

Calculating traffic in VDSmanager

This is total traffic usage (including both incoming and outgoing traffic) collected in VDSmanager. This figure will be used for counting traffic in the billing.

Statistics in VDSmanager is not collected

Locate the following line in the crontab -u root -l command output:

 1 3 * * *     /usr/local/ispmgr/sbin/vdsmoncalc

and make sure that the vdsmon process is up and running.
If not, run it with the following command:


Disk space usage

  1. To calculate the size of directories, go to VDSmanager -> Main-> Private files (VDS owner) -> Calculate the content of the directory.
  2. Enable Logs rotation.
  3. If the active log rotation does not work, and the log files continue enlarging, you need to change the hard links (they might have been damaged, as the user deleted the logs).

To do that, use a the domain user privileges to enter the "Logs" module and then exit. ISPmanager -> WWW domains (ISPmanager)-> Select a domain -> "Switch to User panel" -> "World Wide Web" -> WWW logs (User)
More information about logs rotation can be found here.

I have deleted the admin user in VDSmanager. What should I do?

Go to /usr/local/ispmgr/etc/vdsmgr.conf to change the hash in the User admin line into the hash of the password that you can locate in /etc/master.passwd

Transferring a VPS from one disk to another

This information applies to FreeBSD 6.

  1. Stop the VPS
  2. Create a directory for this VPS on the second disk
  3. Allocate a new vid (vdctl alloc /vs/disk2/ to this VPS
  4. Move the files using tar
  5. Change the path to the private disk in the VDSmanager configuration file into a new one.
  6. Restart VDSmanager (killall vdsmgr)
  7. Start the VPS
  8. Delete the directory on the first disk.

Use the following commands to transfer a VPS under FreeBSD 8:

vdisk alloc
vdisk quota 1000000 4096000
vdisk copypub /vs/pub/FreeBSD-8-minimal
vdisk copyvds /vs/disk/

In this case you transfer the VPS from /vs/disk/ to /vs/disk/ Follow the same procedure when transferring to another disk.

VPS is run and stopped simultaneously (XEN virtualization)

In the table you will see both the icon Image:p-on.png indicating that the VPS is active, and the icon Image:p-admindown.png indicating that the VPS was suspended by the administrator. This problem may be caused by the absence of the /etc/xen/auto directory that contains simlinks that are used to define whether a certain VPS was stopped or not.

See also How to restore disk quota?.

Calculating traffic in ISPmanager

WWW-traffic is counted by the mod_ispmgr module. Mail, ftp, etc., traffic is calculated according to the records in their logs. Nginx, MySQL, in case of replication or external usage, ssh and DNS are not counted at all.

Unable to create the 8th VPS under Xen 3

Run out of the loop devices; you need to enlarge their number by specifying correct debian-way into /etc/modprobe.d/xen

options loop max_loop=256

and reboot the server.

The pvtdisk directory not found

Specify PrivateDiskDir /xen/image into vdsmgr.conf

Understanding templates

A template is a .tgz archive with VPS file. When used, the ext3 partition will be created. All the files from the said archive will be unpacked there. If it is not.tgz, it is considered to be a VPS template binary file.

Was this helpful? Yes | No
Personal tools