OpenVZ Forum


Home » International » Russian » Предел для размера диска в VPS?
Re: Предел для размера диска в VPS? [message #10881 is a reply to message #10872] Tue, 06 March 2007 10:41 Go to previous messageGo to previous message
weldpua2008 is currently offline  weldpua2008
Messages: 58
Registered: July 2006
Member
Итак попорядку
f# vzctl set 777 --diskspace 200G:200G --save
Saved parameters for VPS 777
dc:/etc/vz/conf# vzctl exec 777 df -h
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 30G 8.7G 9.2G 49% /
tmpfs 247M 0 247M 0% /dev/shm

# vzquota drop 777
dc:/etc/vz/conf# vzquota drop 777
vzquota : (error) Can't open quota file for id 777, maybe you need to reinitialize quota: No such file or directory
dc:/etc/vz/conf# vzquota start 777
Unknown command: 'start'

vzquota commands are:
init Initialize quota data for given quotaid
on Turn on quota accounting for given quotaid
off Turn off quota accounting for given quotaid
drop Delete quota limits from file
setlimit Set quota limits for given quotaid
setlimit2 Set L2 quota limits for given quotaid and QUGID
reload2 Reload L2 quota limits from quota file for given quotaid
stat Show usage and quota limits for given quotaid
show Show usage and quota limits from quota file


# vzctl start 777
Starting VPS ...
Initializing quota ...
VPS is mounted
Adding IP address(es): 10.11.25.2
Setting CPU limit: 25
Setting CPU units: 1000
Setting devices
Set hostname: mail
Setting quota ugidlimit: 1000
VPS start in progress...

# cat 777.conf
KMEMSIZE="2536020:2536020"
LOCKEDPAGES="32:32"
PRIVVMPAGES="49152:9006020"
SHMPAGES="8192:8192"
NUMPROC="65:65"
PHYSPAGES="0:2147483647"
VMGUARPAGES="6144:2147483647"
OOMGUARPAGES="6144:2147483647"
NUMTCPSOCK="80:80"
NUMFLOCK="100:110"
NUMPTY="16:16"
NUMSIGINFO="256:256"
TCPSNDBUF="319488:524288"
TCPRCVBUF="319488:524288"
OTHERSOCKBUF="132096:336896"
DGRAMRCVBUF="132096:132096"
NUMOTHERSOCK="80:80"
NUMFILE="2048:2048"
DCACHESIZE="1048576:1097728"
NUMIPTENT="128:128"
AVNUMPROC="40:40"
CPUUNITS="1000"
ONBOOT="no"
ORIGIN_SAMPLE="vps.basic"
DISKSPACE="209715200:209715200"
DISKINODES="200000:1440000"
QUOTATIME="0"
OSTEMPLATE=debian-3.1
IP_ADDRESS="10.11.25.2"
IPTABLES="iptable_filter iptable_mangle ipt_limit ipt_REJECT ipt_length iptable_nat ipt_REDIRECT "
CPULIMIT="25"
HOSTNAME="mail"
QUOTAUGIDLIMIT="1000"
CAPABILITY="CHOWN:on DAC_READ_SEARCH:on SETGID:on SETUID:on NET_BIND_SERVICE:on NET_ADMIN:on SYS_CHROOT:on SYS_NICE:on "
ATIME="0"

DEVICES="b:3:0:rw "
DEVNODES="hdb:rw "
SPACE="209715200:209715200"

#vzctl set 777 --diskinodes 200000000:2000000000 --save
# vzctl exec 777 df -h
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 30G 8.7G 9.2G 49% /
tmpfs 247M 0 247M 0% /dev/shm

Даже и не знаю что еще надо поменять

Вске это на Debian etch 4.0 не помню какой там срез
Внутри ВПСки на Debian sarge 3.1 {r4 и r5} по идеи...
Я пробывал на 2-х системах:
Где:
# df -h
Файловая система Разм Исп Дост Исп% смонтирована на
/dev/sda2 229G 208G 9,2G 96% /
tmpfs 247M 0 247M 0% /dev/shm
/dev/hdb1 226G 214G 277M 100% /var/ftp/pub/sda1
tmpfs 247M 56K 247M 1% /dev
# fdisk -l

Disk /dev/hdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 30401 244196001 83 Linux

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 122 979933+ 82 Linux swap / Solaris
/dev/sda2 * 123 30401 243216067+ 83 Linux

и 80Гб винт
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Квоты внутри VPS
Next Topic: Как выставить правильно параметры
Goto Forum:
  


Current Time: Sun Sep 07 14:08:57 GMT 2025

Total time taken to generate the page: 0.08477 seconds