Thursday, January 10, 2008

VZ Add More Diskspace

To view the current diskspace status, you can enter command
vzquota stat 123 (where 123 is the vz id number)

To increase the diskspace by the current space with factor of 2, command is
vzctl set 123 --diskspace $(( 1048576*2 )):$(( 1153434*2 )) --save

To increase the diskspace by the amount, command is
vzctl set 123 --diskspace $(( 1548576 )):$(( 1753434 )) --save

To increase the diskspace by the inode with factor of 3, command is
vzctl set 123 --diskinodes $(( 200000*3 )):$(( 220000*3 )) --save

No comments: