Re: [Users] fs capacity difference

2010-04-23 Thread Richard Ray

On Thu, 22 Apr 2010, Gregor at HostGIS wrote:


Richard Ray wrote:

 That is good to know but I did not do that
 The container is a vzdump restore


Oh, okay. Dunno about that one then.



 How do I get the quota back in sync


Shut down the VE.
Rename or delete its quota file in /var/vzquota
Start it up. The quota will be recalculated as it starts.

Restarting to fix quotas is kind of unpleasant, but it's the method I know. 
Perhaps someone can suggest a way of recalculating the quota file without 
restarting?





That worked, thanks
Is there not a more elegant way to resync the quota

Richard
___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


Re: [Users] fs capacity difference

2010-04-22 Thread Gregor at HostGIS

Richard Ray wrote:

That is good to know but I did not do that
The container is a vzdump restore


Oh, okay. Dunno about that one then.



How do I get the quota back in sync


Shut down the VE.
Rename or delete its quota file in /var/vzquota
Start it up. The quota will be recalculated as it starts.

Restarting to fix quotas is kind of unpleasant, but it's the method I 
know. Perhaps someone can suggest a way of recalculating the quota file 
without restarting?


--
HostGIS, Open Source solutions for the global GIS community
Greg Allensworth - SysAdmin, Programmer, GIS Person, Security
   Network+   Server+   A+   Security+   Linux+
   PHP   PostgreSQL   MySQL   DHTML/JavaScript/AJAX

"No one cares if you can back up — only if you can recover."

___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


Re: [Users] fs capacity difference

2010-04-22 Thread Richard Ray

On Thu, 22 Apr 2010, Gregor at HostGIS wrote:


 Why is the fs 37% filled on the hardware node and 75% filled on the
 container


Your quota files are out of date. A very common cause of this, would be 
copying files directly into /vz/private/3251 from the HN. Copying directly 
into a VE's directory will bypass the quota calculation.


For copying files from the HN into a VE, I use SFTP or similar. Seems silly 
to SFTP to what's basically localhost, but it does avoid hosing your quotas.





That is good to know but I did not do that
The container is a vzdump restore
The container dump that I used does not show a difference between it and
the hardware node
How do I get the quota back in sync

Richard
___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


Re: [Users] fs capacity difference

2010-04-22 Thread Gregor at HostGIS
Why is the fs 37% filled on the hardware node and 75% filled on the 
container


Your quota files are out of date. A very common cause of this, would be 
copying files directly into /vz/private/3251 from the HN. Copying 
directly into a VE's directory will bypass the quota calculation.


For copying files from the HN into a VE, I use SFTP or similar. Seems 
silly to SFTP to what's basically localhost, but it does avoid hosing 
your quotas.


--
HostGIS, Open Source solutions for the global GIS community
Greg Allensworth - SysAdmin, Programmer, GIS Person, Security
   Network+   Server+   A+   Security+   Linux+
   PHP   PostgreSQL   MySQL   DHTML/JavaScript/AJAX

"No one cares if you can back up — only if you can recover."

___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


Re: [Users] fs capacity difference

2010-04-22 Thread SD :: Ventas

Because if you see how much is your AVAILABLE space on each container

hardware node has 2.2GB free and the container has 524mb free

the size of the HD vary on both containers.

Ing. Alejandro M.
---
Hospedaje Web y Servidores Dedicados
http://www.dedicados.com.mx
---
ven...@dedicados.com.mx
---


El 22/04/2010 04:06 p.m., Richard Ray escribió:

I know I am going to feel stupid for asking this but
Hardware node and container are Centos 5.4
Kernel is ovzkernel-2.6.18-164.15.1.el5.028stab068.9
On the hardware node
[r...@d3 ~]# df -h
FilesystemSize  Used Avail Use% Mounted on
/dev/mapper/vg00-lvol00
  3.9G  1.6G  2.2G  43% /
/dev/md0   99M   42M   52M  45% /boot
tmpfs1013M 0 1013M   0% /dev/shm
/dev/mapper/vg00-lvol01
  2.0G  744M  1.3G  37% /vz/private/3251

Inside the container
[r...@d3srv ~]# df -h
FilesystemSize  Used Avail Use% Mounted on
/dev/simfs2.0G  1.5G  524M  75% /
none 1013M  4.0K 1013M   1% /dev

Why is the fs 37% filled on the hardware node and 75% filled on the 
container


Richard
___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


[Users] fs capacity difference

2010-04-22 Thread Richard Ray

I know I am going to feel stupid for asking this but
Hardware node and container are Centos 5.4
Kernel is ovzkernel-2.6.18-164.15.1.el5.028stab068.9
On the hardware node
[r...@d3 ~]# df -h
FilesystemSize  Used Avail Use% Mounted on
/dev/mapper/vg00-lvol00
  3.9G  1.6G  2.2G  43% /
/dev/md0   99M   42M   52M  45% /boot
tmpfs1013M 0 1013M   0% /dev/shm
/dev/mapper/vg00-lvol01
  2.0G  744M  1.3G  37% /vz/private/3251

Inside the container
[r...@d3srv ~]# df -h
FilesystemSize  Used Avail Use% Mounted on
/dev/simfs2.0G  1.5G  524M  75% /
none 1013M  4.0K 1013M   1% /dev

Why is the fs 37% filled on the hardware node and 75% filled on the 
container


Richard
___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users