Kir Kolyshkin | 1 Jun 2012 05:24
Favicon

Re: Re: disk use/empty files question

On 06/01/2012 01:41 AM, Keith Keller wrote:
> Hello all, thanks for the quick responses!
>
> On 2012-05-31, Kirill Kolyshkin<kolyshkin@...>  wrote:
>> Assuming you don't have DISK_QUOTA=no in global config (ie /etc/vz/vz.conf),
> That's correct.
>
>> the figures shown come from vzquota, and in order for vzquota to work correctly
>> when you want to copy something to container you have to have it mounted (ie
>> vzctl status 21 should show the word 'mounted' among others) and copy the
>> data to VE_ROOT (ie /vz/root/21) but not to VE_PRIVATE (/vz/private/21).
>>
>> If you have already done it wrong (I assume you did *), you have to recalculate
>> vzquota, the easiest way is to stop container, do vzquota drop 21 and
>> start container
>> again. This should fix your issue.
> You are indeed correct that I originally copied data to /vz/private/21.
> But when I attempted to drop the quota, it still reports 0 blocks used.
> I wonder if Massimiliano's comment is relevant?
>
> On 2012-05-31, Massimiliano
> <massimiliano.sciabica@...>  wrote:
>> Hi,
>> I had a similar issue when I first tried to improve performance of VPS
>> with high number of small files.
>> When a VPS reports 0% usage it is usually due to a not ext2 family
>> filesystem. What fs where you using?
> I am using XFS.  The FAQ mentions that disk quotas do not work with XFS,
> so perhaps that's why it isn't displaying quite right (see below).

(Continue reading)

Massimiliano | 1 Jun 2012 08:09

Re: Re: disk use/empty files question

Hi Keith,
I'm quite sure XFS is the "problem".
Kirill response is techincally perfect and his knowledge is far ahead of 
mine, I would have not even imagined that disk quota might be implied. 
But I suggest you to have a try with ext4 or ext3, the both work fine, 
even with any tuning option you may need.

On 31/05/2012 23:41, Keith Keller wrote:
> Hello all, thanks for the quick responses!
>
> On 2012-05-31, Kirill Kolyshkin<kolyshkin@...>  wrote:
>    
>> Assuming you don't have DISK_QUOTA=no in global config (ie /etc/vz/vz.conf),
>>      
> That's correct.
>
>    
>> the figures shown come from vzquota, and in order for vzquota to work correctly
>> when you want to copy something to container you have to have it mounted (ie
>> vzctl status 21 should show the word 'mounted' among others) and copy the
>> data to VE_ROOT (ie /vz/root/21) but not to VE_PRIVATE (/vz/private/21).
>>
>> If you have already done it wrong (I assume you did *), you have to recalculate
>> vzquota, the easiest way is to stop container, do vzquota drop 21 and
>> start container
>> again. This should fix your issue.
>>      
> You are indeed correct that I originally copied data to /vz/private/21.
> But when I attempted to drop the quota, it still reports 0 blocks used.
> I wonder if Massimiliano's comment is relevant?
(Continue reading)

Kirill Kolyshkin | 1 Jun 2012 08:45
Picon

Re: Re: disk use/empty files question


01.06.2012 10:13 пользователь "Massimiliano" <massimiliano.sciabica-vw5FnxKEUGHQT0dZR+AlfA@public.gmane.org> написал:
>
> Hi Keith,
> I'm quite sure XFS is the "problem".
> Kirill response is techincally perfect and his knowledge is far ahead of mine, I would have not even imagined that disk quota might be implied. But I suggest you to have a try with ext4 or ext3, the both work fine, even with any tuning option you may need.

Ext4 (since you will be able to use ploop)

>
>
> On 31/05/2012 23:41, Keith Keller wrote:
>>
>> Hello all, thanks for the quick responses!
>>
>> On 2012-05-31, Kirill Kolyshkin<kolyshkin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>  wrote:
>>  
>>>
>>> Assuming you don't have DISK_QUOTA=no in global config (ie /etc/vz/vz.conf),
>>>    
>>
>> That's correct.
>>
>>  
>>>
>>> the figures shown come from vzquota, and in order for vzquota to work correctly
>>> when you want to copy something to container you have to have it mounted (ie
>>> vzctl status 21 should show the word 'mounted' among others) and copy the
>>> data to VE_ROOT (ie /vz/root/21) but not to VE_PRIVATE (/vz/private/21).
>>>
>>> If you have already done it wrong (I assume you did *), you have to recalculate
>>> vzquota, the easiest way is to stop container, do vzquota drop 21 and
>>> start container
>>> again. This should fix your issue.
>>>    
>>
>> You are indeed correct that I originally copied data to /vz/private/21.
>> But when I attempted to drop the quota, it still reports 0 blocks used.
>> I wonder if Massimiliano's comment is relevant?
>>
>> On 2012-05-31, Massimiliano
>> <massimiliano.sciabica-vw5FnxKEUGHQT0dZR+AlfA@public.gmane.org>  wrote:
>>  
>>>
>>> Hi,
>>> I had a similar issue when I first tried to improve performance of VPS
>>> with high number of small files.
>>> When a VPS reports 0% usage it is usually due to a not ext2 family
>>> filesystem. What fs where you using?
>>>    
>>
>> I am using XFS.  The FAQ mentions that disk quotas do not work with XFS,
>> so perhaps that's why it isn't displaying quite right (see below).
>>
>>  
>>>
>>> I believe this is because of file system crash and the fsck (or journal replay)
>>> which truncated your files. In other words, this is not directly
>>> related to what you have described above.
>>>    
>>
>> Perhaps--on boot, I didn't notice any unusual messages from fsck, though
>> I admit I wasn't paying an enormous amount of attention, and the logs
>> don't have anything interesting to report either.  Does OpenVZ do a lot
>> of caching of disk writes from within a container?  (It's obviously too
>> late now to see what xfs_repair thinks of the filesystem, but FWIW it
>> didn't find anything unusual.)
>>
>>  
>>>
>>> Speaking of kernel crashes, it's nice to have some console logger installed,
>>> such as netconsole so whenever you have an oops you can report the bug.
>>> See http://wiki.openvz.org/Remote_console_setup
>>>    
>>
>> Yes, I just set this up after the first crash--silly oversight not to
>> have done it right away.  :)
>>
>>  
>>>>
>>>> # Disk quota parameters (in form of softlimit:hardlimit)
>>>> DISKSPACE="1000G:2000G"
>>>>      
>>>
>>> It looks like you have set disk quota values to more than your really
>>> have. Since this doesn't make sense
>>> my question is -- did you meant to disable disk space limit entirely?
>>> If yes, you can just have
>>> DISK_QUOTA=no in this config.
>>>    
>>
>> Well, I am not entirely sure what I want, to be honest.  If it's true
>> that having VE_ROOT and VE_PRIVATE on an XFS filesystem means disk
>> quotas don't work right, then perhaps I should either use ext3 (or
>> ext4?) on that filesystem, or disable disk quotas for all containers.
>>
>> As an experiment on the latter, I set DISK_QUOTA=no in vz.conf, and now
>> I get:
>>
>> # vzctl exec 21 df -h
>> Filesystem            Size  Used Avail Use% Mounted on
>> /dev/simfs            1.0T  332G  693G  33% /
>> none                   16G  4.0K   16G   1% /dev
>>
>> But it would be convenient to have disk quotas.  Is there a preference
>> for ext3 or ext4 for the host filesystem?
>>
>> --keith
>>
>>
>>  
>
> _______________________________________________
> Users mailing list
> Users-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org
> https://openvz.org/mailman/listinfo/users

_______________________________________________
Users mailing list
Users@...
https://openvz.org/mailman/listinfo/users
Maykel Franco | 4 Jun 2012 16:12

Problem install openvz in fedora 17

Hi!! I like openvz, it's incredible the performance and it's fast.

I try install the openvz in fedora 17, but I get this error:

[root <at> maykel yum.repos.d]# yum install vzkernel.x86_64
Complementos cargados:langpacks, presto, refresh-packagekit
Resolving dependencies:
--> Eject test transaction:
---> Paquete vzkernel.x86_64 0:2.6.32-042stab055.12 may installed
--> Process dependencies: /sbin/mkinitrd para el paquete: 
vzkernel-2.6.32-042stab055.12.x86_64
--> Process dependencies: /sbin/mkinitrd para el paquete: 
vzkernel-2.6.32-042stab055.12.x86_64
--> Process dependencies: systemd-44-12.fc17.x86_64 choca con kernel < 
2.6.35.2-9.fc14
--> Process dependencies finished
Error: systemd conflicts with vzkernel-2.6.32-042stab055.12.x86_64
Error: Package: vzkernel-2.6.32-042stab055.12.x86_64 (openvz-kernel-rhel6)
            Need: /sbin/mkinitrd
Maybe try the command --skip-broken for solved the problem
Maybe try eject the commandr: rpm- Va --nofiles --nodigest

Sorry for my english, but the distribution is spanish.

I try this:

yum --skip-broken install vzkernel.x86_64

And...I get the same error...

Can I install the openvz in fedora 17?

Thanks in advanced.
Scott Dowdle | 4 Jun 2012 17:00
Favicon

Re: Problem install openvz in fedora 17

Greetings,

----- Original Message -----
> Hi!! I like openvz, it's incredible the performance and it's fast.
> 
> I try install the openvz in fedora 17, but I get this error:

I'm a Fedora fan myself... on the desktop... but not on servers... because Fedora simply is not supported
long enough - 13 months.  The properties of Fedora make it a bad choice for servers unless of course you have a
requirement for a bleeding edge setup (like for development or something).

I don't think that Fedora 17 can currently be run as a container either but that is likely to change in the not
too distant future.

That isn't a solution but it solves the problem without requiring a solution. :)

TYL,
--

-- 
Scott Dowdle
704 Church Street
Belgrade, MT 59714
(406)388-0827 [home]
(406)994-3931 [work]
Maykel Franco | 5 Jun 2012 10:13

Re: Problem install openvz in fedora 17

http://www.howtoforge.com/installing-and-using-openvz-on-fedora-15

.....mmmmm


El 04/06/12 17:00, Scott Dowdle escribió:
I'm a Fedora fan myself... on the desktop... but not on servers... because Fedora simply is not supported long enough - 13 months. The properties of Fedora make it a bad choice for servers unless of course you have a requirement for a bleeding edge setup (like for development or something). I don't think that Fedora 17 can currently be run as a container either but that is likely to change in the not too distant future. That isn't a solution but it solves the problem without requiring a solution.

_______________________________________________
Users mailing list
Users@...
https://openvz.org/mailman/listinfo/users
LightDot | 5 Jun 2012 10:51
Picon

Re: Problem install openvz in fedora 17

So..? Fedora 15 and Fedora 17 are two completely different beasts.

On Tue, Jun 5, 2012 at 10:13 AM, Maykel Franco <maykel@...> wrote:
> http://www.howtoforge.com/installing-and-using-openvz-on-fedora-15
>
> .....mmmmm
>
>
> El 04/06/12 17:00, Scott Dowdle escribió:
>
> I'm a Fedora fan myself... on the desktop... but not on servers... because
> Fedora simply is not supported long enough - 13 months.  The properties of
> Fedora make it a bad choice for servers unless of course you have a
> requirement for a bleeding edge setup (like for development or something).
>
> I don't think that Fedora 17 can currently be run as a container either but
> that is likely to change in the not too distant future.
>
> That isn't a solution but it solves the problem without requiring a
> solution.
>
>
>
> _______________________________________________
> Users mailing list
> Users@...
> https://openvz.org/mailman/listinfo/users
>
Maykel Franco | 5 Jun 2012 11:11

Re: Problem install openvz in fedora 17

In 3 months, probably openvz install in fedora. If install in fedora 15, 
in the futuro install on fedora 17.

Thanks.

El 05/06/12 10:51, LightDot escribió:
> So..? Fedora 15 and Fedora 17 are two completely different beasts.
>
> On Tue, Jun 5, 2012 at 10:13 AM, Maykel Franco<maykel@...>  wrote:
>> http://www.howtoforge.com/installing-and-using-openvz-on-fedora-15
>>
>> .....mmmmm
>>
>>
>> El 04/06/12 17:00, Scott Dowdle escribió:
>>
>> I'm a Fedora fan myself... on the desktop... but not on servers... because
>> Fedora simply is not supported long enough - 13 months.  The properties of
>> Fedora make it a bad choice for servers unless of course you have a
>> requirement for a bleeding edge setup (like for development or something).
>>
>> I don't think that Fedora 17 can currently be run as a container either but
>> that is likely to change in the not too distant future.
>>
>> That isn't a solution but it solves the problem without requiring a
>> solution.
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users@...
>> https://openvz.org/mailman/listinfo/users
>>
> _______________________________________________
> Users mailing list
> Users@...
> https://openvz.org/mailman/listinfo/users
LightDot | 5 Jun 2012 17:04
Picon

Re: Problem install openvz in fedora 17

Fedora 15 support ends in three weeks, on 26th. I wouldn't use it for
anything meaningful any more.

What are your assumptions about three months based on? Don't get me
wrong, I'd like you to be right, because openvz support for Fedora 17
hosts would simplify some of the devel work we do on our workstations.
I just don't see it coming.

Regards

On Tue, Jun 5, 2012 at 11:11 AM, Maykel Franco <maykel@...> wrote:
> In 3 months, probably openvz install in fedora. If install in fedora 15, in
> the futuro install on fedora 17.
>
> Thanks.
>
> El 05/06/12 10:51, LightDot escribió:
>
>> So..? Fedora 15 and Fedora 17 are two completely different beasts.
>>
>> On Tue, Jun 5, 2012 at 10:13 AM, Maykel Franco<maykel@...>
>>  wrote:
>>>
>>> http://www.howtoforge.com/installing-and-using-openvz-on-fedora-15
>>>
>>> .....mmmmm
>>>
>>>
>>> El 04/06/12 17:00, Scott Dowdle escribió:
>>>
>>> I'm a Fedora fan myself... on the desktop... but not on servers...
>>> because
>>> Fedora simply is not supported long enough - 13 months.  The properties
>>> of
>>> Fedora make it a bad choice for servers unless of course you have a
>>> requirement for a bleeding edge setup (like for development or
>>> something).
>>>
>>> I don't think that Fedora 17 can currently be run as a container either
>>> but
>>> that is likely to change in the not too distant future.
>>>
>>> That isn't a solution but it solves the problem without requiring a
>>> solution.
>>>
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users@...
>>> https://openvz.org/mailman/listinfo/users
>>>
>> _______________________________________________
>> Users mailing list
>> Users@...
>> https://openvz.org/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users@...
> https://openvz.org/mailman/listinfo/users
Keith Keller | 5 Jun 2012 20:31
Picon
Picon

Re: disk use/empty files question

On 2012-06-01, Kir Kolyshkin <kir@...> wrote:
> Ext4 of course.

Sounds great, I am working with it now.

> And then I recommend to try using ploop layout not simfs one.
> http://wiki.openvz.org/Ploop/Getting_started

So, I found in this article:

http://wiki.openvz.org/Ploop

that ploop is still new.  Is that still true?  I'm already new to
OpenVZ, and am not quite ready to also take on a new feature that's
still somewhat experimental.  (Perhaps on a different server that I'll
be staging soon, which will not be as much of a production machine.)

It looks like the "empty files" issue may not be an OpenVZ issue, as I
found empty files after a crash in which I was not running any
containers (though it was still the OpenVZ kernel).  But right now I'm
guessing hardware, so will pursue that first.

--keith

--

-- 
kkeller@...

Gmane