Openvz

vzquota on failed [3]

“vzquota on failed [3]”

vzquota : (error) Quota on syscall for id 8001: No such file or directory
vzquota on failed [3]

Getting above error in openvz vps ?

This is due to disk quota being on in config file.

Did this post help you ? if yes do visit us for your hosting needs

 

 

Login to main hardware node

open below config file associated with VPS  whre my  VPSID is 8001

vi /etc/sysconfig/vz-scripts/8001.conf

Add below line in config file

DISK_QUOTA=no

Now restart vps and all should work as charm
Comments Off more...

Fuse and /dev/loop in openvz

On a hardware node check if you have fuse module

# modprobe fuse

#lsmod | grep fuse

vzctl set 101 –devices c:10:229:rw –save
vzctl exec 101 mknod /dev/fuse c 10 229
To set /de/loop use below command

# modprobe loop   on hardware node

vzctl set 201 –devices b:7:0:rw –save
vzctl exec 201 mknod /dev/loop0 b 7 0

To make sure entries remain after vps reboot add the below in config file in  /etc/vz/conf/101.conf

DEVICES=”c:10:229:rw ”
DEVICES=”b:7:0:rw ”

now reboot vps and all is done :)

Comments Off more...

Adding NFS support for Openvz VPS

First check if you have nfs  module loaded using the below command,

lsmod | grep nfs

if not present  use

modprobe nfs

Now enable nfs for the vps.
vzctl set 110  --features "nfs:on" --save

Now login to VPS uing

vzctl enter 110
Run the below commands,

yum -y install nfs-utils nfs-utils-lib
chkconfig --levels 345 portmap on
/etc/init.d/portmap start

NFS is not enable for your vps.

Comments Off more...

vzrst module is not loaded on the destination node

-bash-3.2# vzmigrate –online 173.236.xxx.xx  2260
OPT:- -online

OPT:173.236.xxx.xxx

Starting online migration of CT 2260 to 173.236.xxx.xx

Error:  vzrst module is not loaded on the destination node
Error:  Can’t continue online migration

If you get the above error  the module vzrst module is missing in destination node.

You can check for it using below command

[root@server1 .ssh]# lsmod | grep vz
vzethdev               47520  0
vzdquota               78712  42 [permanent]
vznetdev               57616  84
vzmon                  83992  44 vzethdev,vznetdev
ipv6                  463292  457 vzmon
vzdev                  36872  8 vzethdev,vzdquota,vznetdev,vzmon

Since it is not present you can load it using below command,

[root@server1 .ssh]# modprobe  vzrst
[root@server1 .ssh]# modprobe  vzcpt

Now check again the module must be loaded

[root@server1 .ssh]# lsmod | grep vz
vzcpt                 150584  0
vzrst                 173608  0
vzethdev               47520  0
vzdquota               78712  42 [permanent]
ip_nat                 53520  2 vzrst,iptable_nat
ip_conntrack          101396  36 vzcpt,vzrst,xt_state,iptable_nat,ip_nat
vznetdev               57616  84
vzmon                  83992  46 vzcpt,vzrst,vzethdev,vznetdev
ipv6                  463292  440 vzcpt,vzrst,vzmon
vzdev                  36872  8 vzethdev,vzdquota,vznetdev,vzmon

Now you can continue with your migration ahead :)

Comments Off more...

How to migrate Live VPS in Openvz

The commmand use to Migrate in Openvz via command line is

vzmigrate   – - online   <Destination node IP address>   – -  VEID (Source Server)

Comments Off more...

Change VEID in Openvz servers

Well if you are trying to migrate live VPS and  if source and destination servers have same VEID it may well throw and error like

Error:  CT #101 already exists on destination node

The solution for this to change the VEID on source servers.

Suppose you want to turn VEID on source from 101 to 102,

Below are the steps you need to follow,

vzctl stop 101

mv /vz/root/101  /vz/root/102

mv /vz/private/101 /vz/private/102#
mv /var/vzquota/quota.101/var/vzquota/quota.102

mv /etc/sysconfig/vz-scripts/101.conf /etc/sysconfig/vz-scripts/102.conf
vzctl start 102

Also check /etc/sysconfig/vz-scripts/5678.conf to see if VE_ROOT or VZ_PRIVATE are set to 101

Well thats it and you are on new node.

Remember to change IP address using

vzctl set 102 –ipdel 192.168.1.1  –save   To delete IP address

vzctl set 5678 –ipdel 192.168.1.2  –save   To add IP  address

Comments Off more...

Disk space exceeded:openvz

There are 2 possibilities in this.

Either you have exceeded disk space or second reach max limit of inodes.

You can check first case using command df -h if you see free spae is available then its a clear case of Inodes exceeding.

df -i  will show this.

You need to increase the inode limit from hardware node using command

vzctl set 123 –diskinodes $(( 200000*3 )):$(( 220000*3 )) –save

You are done now.

Comments Off more...

Hillock's Wiki

Unlimited Hosting Solutions
  • Categories

  • Twitter Updates

    • Calendar

      February 2012
      M T W T F S S
      « Aug    
       12345
      6789101112
      13141516171819
      20212223242526
      272829  
    • SMS Text Message

      Phone number

      Carrier

      *Standard text messaging rates may apply from your carrier*
    • © 2011 Hillock Hosting. All rights reserved
      Jarrah theme by Templates Next | Powered by WordPress