Page 2 of 2 FirstFirst 12
Results 26 to 48 of 48
  1. #26
    Join Date
    Sep 2008
    Location
    NewYork
    Posts
    474
    Thanks Vcpanel, the resault

    Code:
    root@server [/vz/template/cache]# /sbin/sysctl -p
    net.ipv4.ip_forward = 1
    net.ipv4.conf.default.rp_filter = 1
    net.ipv4.conf.default.accept_source_route = 0
    kernel.sysrq = 1
    kernel.core_uses_pid = 1
    net.ipv4.tcp_syncookies = 1
    kernel.msgmnb = 65536
    kernel.msgmax = 65536
    kernel.shmmax = 4294967295
    kernel.shmall = 268435456
    fs.suid_dumpable = 0
    fs.suid_dumpable = 0
    net.ipv4.ip_forward = 1
    net.ipv6.conf.default.forwarding = 1
    net.ipv6.conf.all.forwarding = 1
    net.ipv4.conf.default.proxy_arp = 0
    net.ipv4.conf.all.rp_filter = 1
    kernel.sysrq = 1
    net.ipv4.conf.default.send_redirects = 1
    net.ipv4.conf.all.send_redirects = 0
    root@server [/vz/template/cache]#
    and the lsmod

    Code:
    root@server [/vz/template/cache]# /sbin/lsmod | grep -i quota
    vzdquota               43672  0 [permanent]
    vzdev                   7556  4 vzethdev,vznetdev,vzmon,vzdquota
    root@server [/vz/template/cache]#
    Thanks Chris so much for helping, as i hope everyone else to have a look in my post to learn from your topic,but in the end when i start the VM on

    It's won't giveing me erro, please have a look how i setup it this VPS and let me know what's the problem is...

    Now i added the VPS 111

    Code:
    root@server [/vz/template/cache]# /usr/sbin/vzctl create 111 --ostemplate centos-5-i386-hostinabox576 --config vps.basic
    Creating container private area (centos-5-i386-hostinabox576)
    vzquota : (error) Quota on syscall for id 111: File exists
    vzquota on failed [3]
    vzquota : (error) Quota is not running for id 111
    Performing postcreate actions
    Container private area was created
    root@server [/vz/template/cache]#
    Then i save the VPS 111 on boot

    Code:
    root@server [/vz/template/cache]# /usr/sbin/vzctl set 111 --onboot yes --save
    Saved parameters for CT 111
    root@server [/vz/template/cache]#
    Then i set the hostname for the new VPS

    Code:
    root@server [/vz/template/cache]# /usr/sbin/vzctl set 111 --hostname lab.vps.com --save
    Saved parameters for CT 111
    root@server [/vz/template/cache]# /usr/sbin/vzctl set 111 --ipadd 192.168.85.84 --save
    Saved parameters for CT 111
    root@server [/vz/template/cache]#
    note* i change the ip 192.168.85.84, it's just demo...

    after that i set the hostname for the VPS and make sure it's start in the boot, we set the sockets to 120 and assign them to the vm

    Code:
    /usr/sbin/vzctl set 111 --numothersock 120 --save
    /usr/sbin/vzctl set 111 --nameserver 192.168.85.85 --nameserver 192.168.85.83 --save
    now to start the VM, run

    Code:
    /usr/sbin/vzctl start 111
    *** here when i start the VM "111" it's give me

    Code:
    root@server [/vz/template/cache]# /usr/sbin/vzctl start 111
    Starting container ...
    vzquota : (error) Quota on syscall for id 111: File exists
    vzquota on failed [3]
    root@server [/vz/template/cache]#
    and here when i try to set the passwd it's give me this

    Code:
    root@server [/vz/template/cache]# /usr/sbin/vzctl exec 111 passwd
    Container is not running
    root@server [/vz/template/cache]#
    whats the problem ?

  2. #27
    Join Date
    Apr 2009
    Location
    inside wht
    Posts
    746
    Do the following

    vzctl set 111 41943040:41943040 --save
    rm -f /var/vzquota/quota.111
    vzctl start 111
    24x7 PROACTIVE SERVER MANAGEMENT | OUTSOURCED WEB HOSTING SUPPORT
    Sales : sales @ syslint.com | Call us : (+91)9447607799 | Are you looking for DevOps Admins ?

  3. #28
    Join Date
    Sep 2008
    Location
    NewYork
    Posts
    474
    is this ok ?

    Code:
    oot@server [/vz/template/cache]# /usr/sbin/vzctl set 111 41943040:41943040 --save
    non-option ARGV-elements: 41943040:41943040
    root@server [/vz/template/cache]#

  4. #29
    Join Date
    Oct 2004
    Location
    Ohio
    Posts
    1,668
    Quote Originally Posted by boxer View Post
    is this ok ?

    Code:
    oot@server [/vz/template/cache]# /usr/sbin/vzctl set 111 41943040:41943040 --save
    non-option ARGV-elements: 41943040:41943040
    root@server [/vz/template/cache]#
    If you are trying to set disk quota, you need to do it like vzctl set 101 --diskspace 41943040:41943040 --save

  5. #30
    Join Date
    Apr 2009
    Location
    inside wht
    Posts
    746
    Quote Originally Posted by Chris_M View Post
    If you are trying to set disk quota, you need to do it like vzctl set 101 --diskspace 41943040:41943040 --save
    Yes that is correct
    24x7 PROACTIVE SERVER MANAGEMENT | OUTSOURCED WEB HOSTING SUPPORT
    Sales : sales @ syslint.com | Call us : (+91)9447607799 | Are you looking for DevOps Admins ?

  6. #31
    Join Date
    Sep 2008
    Location
    NewYork
    Posts
    474
    Code:
    root@server [/vz/template/cache]# /usr/sbin/vzctl set 101 --diskspace 41943040:41943040 --save
    Saved parameters for CT 101
    root@server [/vz/template/cache]# rm -f /var/vzquota/quota.111
    root@server [/vz/template/cache]# /usr/sbin/vzctl start 111
    Starting container ...
    Initializing quota ...
    vzquota : (warning) block_soft_limit [1048676] < block_current_usage [1067048]
    vzquota : (warning) block_soft_limit [1048676] < block_current_usage [1067048]
    vzquota : (error) Quota on syscall for id 111: File exists
    vzquota on failed [3]
    root@server [/vz/template/cache]#

  7. #32
    Join Date
    Oct 2004
    Location
    Ohio
    Posts
    1,668
    try reinstalling the quota portion of vz.

    yum remove vzquota
    yum install vzquota

  8. #33
    Join Date
    Sep 2008
    Location
    NewYork
    Posts
    474
    Code:
    root@server [/vz/template/cache]# yum remove vzquota
    Loaded plugins: fastestmirror
    Setting up Remove Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package vzquota.i386 0:3.0.12-1 set to be erased
    --> Processing Dependency: vzquota >= 2.7.0-4 for package: vzctl
    --> Running transaction check
    ---> Package vzctl.i386 0:3.0.23-1 set to be erased
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ===============================================================================================================================================
     Package                           Arch                           Version                            Repository                           Size
    ===============================================================================================================================================
    Removing:
     vzquota                           i386                           3.0.12-1                           installed                           158 k
    Removing for dependencies:
     vzctl                             i386                           3.0.23-1                           installed                           404 k
    
    Transaction Summary
    ===============================================================================================================================================
    Install      0 Package(s)
    Update       0 Package(s)
    Remove       2 Package(s)
    
    Is this ok [y/N]: y
    Downloading Packages:
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Erasing        : vzctl                                             [1/2]
    warning: /etc/vz/vz.conf saved as /etc/vz/vz.conf.rpmsave
      Erasing        : vzquota                                           [2/2]
    
    Removed: vzquota.i386 0:3.0.12-1
    Dependency Removed: vzctl.i386 0:3.0.23-1
    Complete!
    root@server [/vz/template/cache]# yum install vzquota
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * addons: mirror.linux.duke.edu
     * extras: centos.aol.com
     * base: mirror.rackspace.com
     * openvz-kernel-rhel5: download.openvz.org
     * openvz-utils: download.openvz.org
     * updates: dist1.800hosting.com
    Excluding Packages in global exclude list
    Finished
    Setting up Install Process
    Parsing package install arguments
    Resolving Dependencies
    --> Running transaction check
    ---> Package vzquota.i386 0:3.0.12-1 set to be updated
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ===============================================================================================================================================
     Package                          Arch                          Version                            Repository                             Size
    ===============================================================================================================================================
    Installing:
     vzquota                          i386                          3.0.12-1                           openvz-utils                           82 k
    
    Transaction Summary
    ===============================================================================================================================================
    Install      1 Package(s)
    Update       0 Package(s)
    Remove       0 Package(s)
    
    Total download size: 82 k
    Is this ok [y/N]: y
    Downloading Packages:
    vzquota-3.0.12-1.i386.rpm                                                                                               |  82 kB     00:00
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Installing     : vzquota                                           [1/1]
    
    Installed: vzquota.i386 0:3.0.12-1
    Complete!
    root@server [/vz/template/cache]#
    after that

    Code:
    root@server [/vz/template/cache]# /usr/sbin/vzctl start 111
    bash: /usr/sbin/vzctl: No such file or directory
    root@server [/vz/template/cache]# /usr/sbin/vzctl start 111
    bash: /usr/sbin/vzctl: No such file or directory
    root@server [/vz/template/cache]# /usr/sbin/vzlist -a
    bash: /usr/sbin/vzlist: No such file or directory
    root@server [/vz/template/cache]#
    ??
    Last edited by boxer; 10-07-2009 at 02:01 PM.

  9. #34
    Join Date
    Oct 2004
    Location
    Ohio
    Posts
    1,668
    Quote Originally Posted by boxer View Post
    how to please ?
    yum remove vzquota
    yum install vzquota

  10. #35
    Join Date
    Sep 2008
    Location
    NewYork
    Posts
    474
    should i re-create the VPS "111" again ?

  11. #36
    Join Date
    Oct 2004
    Location
    Ohio
    Posts
    1,668
    See if it will let you set the diskspace now without throwing the error.

  12. #37
    Join Date
    Sep 2008
    Location
    NewYork
    Posts
    474
    Code:
    root@server [/vz/template/cache]# /usr/sbin/vzctl set 101 --diskspace 41943040:41943040 --save
    bash: /usr/sbin/vzctl: No such file or directory
    root@server [/vz/template/cache]#

  13. #38
    Join Date
    Oct 2004
    Location
    Ohio
    Posts
    1,668
    Try this,

    yum install vzctl vzquota

  14. #39
    Join Date
    Sep 2008
    Location
    NewYork
    Posts
    474
    works now,

    Code:
    root@server [/usr/sbin]# /usr/sbin/vzlist -a
          CTID      NPROC STATUS  IP_ADDR         HOSTNAME
            85          - stopped -               -
           101          - stopped -               -
           111          - stopped 192.168.85.84     lab.vps.com
    root@server [/usr/sbin]# /usr/sbin/vzctl start 111
    Starting container ...
    vzquota : (warning) block_soft_limit [1048676] < block_current_usage [1067048]
    vzquota : (error) Quota on syscall for id 111: File exists
    vzquota on failed [3]
    root@server [/usr/sbin]#
    same quota error ?

  15. #40
    Join Date
    Oct 2004
    Location
    Ohio
    Posts
    1,668
    what does vzquota show 111 tell you?

    This link might help as well,

    http://forum.openvz.org/index.php?t=...o=570&#msg_570
    Last edited by Chris_M; 10-07-2009 at 02:28 PM.

  16. #41
    Join Date
    Sep 2008
    Location
    NewYork
    Posts
    474
    Code:
    root@server [/usr/sbin]# df
    Filesystem           1K-blocks      Used Available Use% Mounted on
    /dev/sda5             10153988   4985396   4644476  52% /
    /dev/sda8             97510964   3361396  89116408   4% /home
    /dev/sda7              1032088     79528    *****2   9% /tmp
    /dev/sda3             15235072   5813708   8634984  41% /var
    /dev/sda2             20315844  12729716   6537488  67% /usr
    /dev/sda1               101089     43297     52573  46% /boot
    tmpfs                  1032460         0   1032460   0% /dev/shm
    /var/tmpMnt            1032088     79528    *****2   9% /tmp
    none                   1032460         0   1032460   0% /dev/shm
    root@server [/usr/sbin]#
    and

    Code:
    root@server [/usr/sbin]# free -m
                 total       used       free     shared    buffers     cached
    Mem:          2016       1940         76          0        109       1381
    -/+ buffers/cache:        448       1567
    Swap:         4094          0       4094
    root@server [/usr/sbin]#
    how should i count it, 1024 ?

  17. #42
    Join Date
    Sep 2008
    Location
    NewYork
    Posts
    474
    I disable the Disk space in /etc/sysconfig/vz to no, so after that i try to start ..

    Code:
    (2) disable per-vps quota by setting DISK_QUOTA=no in /etc/sysconfig/vz (/etc/conf.d/vz for Gentoo)
    and

    Code:
    root@server [/usr/sbin]# /usr/sbin/vzctl start 111
    Starting container ...
    Container is mounted
    Adding IP address(es): 192.168.85.84
    RTNETLINK answers: File exists
    vps-net_add ERROR: Unable to add route /sbin/ip route add 192.168.85.84 dev venet0
    Container start failed
    Stopping container ...
    Container was stopped
    Container is unmounted
    root@server [/usr/sbin]#
    it's look that i need to mount the vz in /vz ? is that would let it work ..

  18. #43
    Join Date
    Oct 2004
    Location
    Ohio
    Posts
    1,668
    At this point, from what I can see, it doesnt look like you have vz on its own partition. I am rather new to openvz myself, but I would suggesting getting a reinstall of the OS and make sure to have it setup as per the instructions in the openvz docs.

  19. #44
    Join Date
    Sep 2008
    Location
    NewYork
    Posts
    474
    okay could you make that in the server Chris? if you can i pm you my email or the server login.

  20. #45
    Join Date
    Oct 2004
    Location
    Ohio
    Posts
    1,668
    Quote Originally Posted by boxer View Post
    okay could you make that in the server Chris? if you can i pm you my email or the server login.
    Im sorry. There is no way I can reload the OS on your server. The host would have to do that. You should be able to tell them you are going to install openvz and that you need the partitions setup according to the openvz docs. From there I would just follow the howtoforge tutorial from the begining and you should be good to go.

  21. #46
    Join Date
    Sep 2008
    Location
    NewYork
    Posts
    474
    i didn't mean the reload, am mean to remove the old vz and install and mount a new one.

  22. #47
    Join Date
    Oct 2004
    Location
    Ohio
    Posts
    1,668
    Ahh, I dont really do contract work. I am sure that if you place an ad in the Employment offers section you can find someone to do it for a reasonable rate.

  23. #48
    Join Date
    Sep 2008
    Location
    NewYork
    Posts
    474
    no i have my support man, but i like to work with you becouse you trying to help me , but anyway i'll let u know what happen when i fix it.

    Thanks alot Chris and Zcpanel.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Installing openVZ on CentOS 5.2 64-bit
    By websplash in forum Systems Management Requests
    Replies: 2
    Last Post: 09-09-2008, 06:32 PM
  2. CentOS 5 - Problem Installing OpenVZ Kernel
    By EdwardTobia in forum Hosting Security and Technology
    Replies: 1
    Last Post: 06-22-2008, 11:19 AM
  3. Quota Problem in OpenVZ/HyperVM/CentOS
    By JohnSH in forum VPS Hosting
    Replies: 8
    Last Post: 06-10-2008, 04:27 PM
  4. Problem with installing HyperVM on CentOS (Problem w/ YUM?)
    By DennisM in forum Hosting Security and Technology
    Replies: 4
    Last Post: 11-05-2007, 09:05 PM
  5. problem with installing linux centos
    By goolex in forum Hosting Security and Technology
    Replies: 6
    Last Post: 02-13-2006, 07:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •