Bug#415645: vzsplit uses hardcoded "/vz" for space checking instead of "/var/lib/vz"

2007-04-13 Thread Kir Kolyshkin

Dusty Wilson wrote:

Thanks to both of you for working on this, I appreciate it greatly.


PS to the original reporter of Debian bug #415645 -- vzsplit was not
failing, it just printed a (false) warning.


Is the only problem with it a false warning and it is properly giving
the correct output, or are there more issues that I should wait for
before I rely on vzsplit?
It's just a false warning, plus some sane defaults for 
DISKSPACE/DISKINODES instead of computed values.


Thanks!
Dusty




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#415645: vzsplit uses hardcoded "/vz" for space checking instead of "/var/lib/vz"

2007-04-12 Thread Dusty Wilson

Thanks to both of you for working on this, I appreciate it greatly.


PS to the original reporter of Debian bug #415645 -- vzsplit was not
failing, it just printed a (false) warning.


Is the only problem with it a false warning and it is properly giving
the correct output, or are there more issues that I should wait for
before I rely on vzsplit?

Thanks!
Dusty


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#415645: vzsplit uses hardcoded "/vz" for space checking instead of "/var/lib/vz"

2007-04-12 Thread Ola Lundqvist
Hi

On Thu, Apr 12, 2007 at 07:06:37PM +0400, Kir Kolyshkin wrote:
> I guess in a week or two, not earlier.

Ok. It is quite fast. I'll wait until that version.

Regards,

// Ola

> Ola Lundqvist wrote:
> >Privet Kir
> >
> >Do you know when vzctl-3.0.17 is planned?
> >
> >Regards,
> >
> >// Ola
> >
> >On Thu, Apr 12, 2007 at 05:43:19PM +0400, Kir Kolyshkin wrote:
> >  
> >>Ola, all,
> >>
> >>Both problems in vzsplit are now (hopefully) fixed with this commit:
> >>http://git.openvz.org/?p=vzctl;a=commit;h=78a0518af5ce7ce8c13a3aa5f3d4247164d0bfab
> >>
> >>Fixed vzsplit will be available in vzctl-3.0.17
> >>
> >>PS to the original reporter of Debian bug #415645 -- vzsplit was not 
> >>failing, it just printed a (false) warning.
> >>
> >>Ola Lundqvist wrote:
> >>
> >>>Hi Kir
> >>>
> >>>On Fri, Mar 23, 2007 at 05:36:51PM +0300, Kir Kolyshkin wrote:
> >>> 
> >>>  
> That's quite easy -- the actual checking routine in vzsplit checks for 
> both free space and free inodes (and reports the same error when one of 
> space/inodes is limited). Now, reiserfs reports zero total inodes 
> (because it does not use inodes), and vzsplit stumbles on that.
> 
> I made a patch to fix that, I will test it and then it will hit the git.
>    
> 
> >>>Thanks a lot. Can you make a patch so that it uses the configuration 
> >>>variable
> >>>for /vz location as well?
> >>>
> >>>Regards,
> >>>
> >>>// Ola
> >>>
> >>> 
> >>>  
> Ola Lundqvist wrote:
>    
> 
> >Hi Kir
> >
> >Do you know the answer of this issue? I have modified vzsplit.c so that
> >it can check for /var/lib/vz as well as /vz, but it do not seem to 
> >help.
> >
> >Regards,
> >
> >// Ola
> >
> >On Thu, Mar 22, 2007 at 10:27:13AM -0700, Dusty Wilson wrote:
> >
> > 
> >  
> Maybe, but more likely the problem is that you actually have 20GB 
> free,
> and maybe it needs 20.2 or something.
>   
>    
> 
> >>>It's too bad it checks for total remaining space available.  That
> >>>partition already has a bunch of VPSes running on it.  It'd be nice 
> >>>if
> >>>it could somehow (magically?) check to see how much space is already
> >>>being used by existing VPSes and treat it as available space.  Or 
> >>>have
> >>>a flag to allow it to ignore testing for available space altogether.
> >>>
> >>> 
> >>>  
> >>Actually, if I have it only split for five VPSes, it still fails:
> >>
> >>---
> >>hera:~# vzsplit -n 5
> >>WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
> >>WARNING: /var/lib/vz partition do not have space required for 5 VPS
> >>---
> >>
> >>Or even just one:
> >>
> >>---
> >>hera:~# vzsplit -n 1
> >>WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
> >>WARNING: /var/lib/vz partition do not have space required for 1 VPS
> >>---
> >>
> >>And for fun, 100 VPSes:
> >>
> >>---
> >>hera:~# vzsplit -n 100
> >>WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
> >>WARNING: /var/lib/vz partition do not have space required for 100 VPS
> >>---
> >>
> >>Why does it need to be 20GB for a single VPS?
> >>
> >>I just cleared out some space now.  Here's what my partitions look 
> >>like now:
> >>
> >>---
> >>hera:~# df -h
> >>FilesystemSize  Used Avail Use% Mounted on
> >>/dev/sdc1 4.7G  1.3G  3.5G  27% /
> >>/dev/sdc3  28G  6.7G   22G  24% /var/lib/vz
> >>hera:~# df
> >>Filesystem   1K-blocks  Used Available Use% Mounted on
> >>/dev/sdc1  4883556   1305704   3577852  27% /
> >>/dev/sdc3 29309692   6930080  22379612  24% /var/lib/vz
> >>---
> >>
> >>Even though I've got 22GB available, it still claims I don't have 20GB
> >>available same like before:
> >>
> >>---
> >>hera:~# vzsplit -n 20
> >>WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
> >>WARNING: /var/lib/vz partition do not have space required for 20 VPS
> >>---
> >>
> >>In case it's useful, here's another strace:
> >>
> >>---
> >>hera:~# strace vzsplit -n 20
> >>execve("/usr/sbin/vzsplit", ["vzsplit", "-n", "20"], [/* 13 vars */]) 
> >>= 0
> >>uname({sys="Linux", node="hera", ...})  = 0
> >>brk(0)  = 0x804e000
> >>access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or 
> >>directory)
> >>mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> >>0) = 0xb7fc6000
> >>access("/etc/ld.so.preload", R_OK)  = -1 ENOENT (No such file or 
> >>directory)
> >>open("/usr/lib/vzctl/lib/tls/i686/cmov/libc.so.6", 

Bug#415645: vzsplit uses hardcoded "/vz" for space checking instead of "/var/lib/vz"

2007-04-12 Thread Kir Kolyshkin

I guess in a week or two, not earlier.

Ola Lundqvist wrote:

Privet Kir

Do you know when vzctl-3.0.17 is planned?

Regards,

// Ola

On Thu, Apr 12, 2007 at 05:43:19PM +0400, Kir Kolyshkin wrote:
  

Ola, all,

Both problems in vzsplit are now (hopefully) fixed with this commit:
http://git.openvz.org/?p=vzctl;a=commit;h=78a0518af5ce7ce8c13a3aa5f3d4247164d0bfab

Fixed vzsplit will be available in vzctl-3.0.17

PS to the original reporter of Debian bug #415645 -- vzsplit was not 
failing, it just printed a (false) warning.


Ola Lundqvist wrote:


Hi Kir

On Fri, Mar 23, 2007 at 05:36:51PM +0300, Kir Kolyshkin wrote:
 
  
That's quite easy -- the actual checking routine in vzsplit checks for 
both free space and free inodes (and reports the same error when one of 
space/inodes is limited). Now, reiserfs reports zero total inodes 
(because it does not use inodes), and vzsplit stumbles on that.


I made a patch to fix that, I will test it and then it will hit the git.
   

Thanks a lot. Can you make a patch so that it uses the configuration 
variable

for /vz location as well?

Regards,

// Ola

 
  

Ola Lundqvist wrote:
   


Hi Kir

Do you know the answer of this issue? I have modified vzsplit.c so that
it can check for /var/lib/vz as well as /vz, but it do not seem to help.

Regards,

// Ola

On Thu, Mar 22, 2007 at 10:27:13AM -0700, Dusty Wilson wrote:

 
  
Maybe, but more likely the problem is that you actually have 20GB 
free,

and maybe it needs 20.2 or something.
  
   


It's too bad it checks for total remaining space available.  That
partition already has a bunch of VPSes running on it.  It'd be nice if
it could somehow (magically?) check to see how much space is already
being used by existing VPSes and treat it as available space.  Or have
a flag to allow it to ignore testing for available space altogether.

 
  

Actually, if I have it only split for five VPSes, it still fails:

---
hera:~# vzsplit -n 5
WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
WARNING: /var/lib/vz partition do not have space required for 5 VPS
---

Or even just one:

---
hera:~# vzsplit -n 1
WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
WARNING: /var/lib/vz partition do not have space required for 1 VPS
---

And for fun, 100 VPSes:

---
hera:~# vzsplit -n 100
WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
WARNING: /var/lib/vz partition do not have space required for 100 VPS
---

Why does it need to be 20GB for a single VPS?

I just cleared out some space now.  Here's what my partitions look like 
now:


---
hera:~# df -h
FilesystemSize  Used Avail Use% Mounted on
/dev/sdc1 4.7G  1.3G  3.5G  27% /
/dev/sdc3  28G  6.7G   22G  24% /var/lib/vz
hera:~# df
Filesystem   1K-blocks  Used Available Use% Mounted on
/dev/sdc1  4883556   1305704   3577852  27% /
/dev/sdc3 29309692   6930080  22379612  24% /var/lib/vz
---

Even though I've got 22GB available, it still claims I don't have 20GB
available same like before:

---
hera:~# vzsplit -n 20
WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
WARNING: /var/lib/vz partition do not have space required for 20 VPS
---

In case it's useful, here's another strace:

---
hera:~# strace vzsplit -n 20
execve("/usr/sbin/vzsplit", ["vzsplit", "-n", "20"], [/* 13 vars */]) = 
0

uname({sys="Linux", node="hera", ...})  = 0
brk(0)  = 0x804e000
access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or 
directory)

mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7fc6000
access("/etc/ld.so.preload", R_OK)  = -1 ENOENT (No such file or 
directory)

open("/usr/lib/vzctl/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = -1
ENOENT (No such file or directory)
stat64("/usr/lib/vzctl/lib/tls/i686/cmov", 0xbfd99338) = -1 ENOENT (No
such file or directory)
open("/usr/lib/vzctl/lib/tls/i686/libc.so.6", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/vzctl/lib/tls/i686", 0xbfd99338) = -1 ENOENT (No such
file or directory)
open("/usr/lib/vzctl/lib/tls/cmov/libc.so.6", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/vzctl/lib/tls/cmov", 0xbfd99338) = -1 ENOENT (No such
file or directory)
open("/usr/lib/vzctl/lib/tls/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/vzctl/lib/tls", 0xbfd99338) = -1 ENOENT (No such file
or directory)
open("/usr/lib/vzctl/lib/i686/cmov/libc.so.6", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/vzctl/lib/i686/cmov", 0xbfd99338) = -1 ENOENT (No
such file or directory)
open("/usr/lib/vzctl/lib/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/vzctl/lib/i686", 0xbfd99338) = -1 ENOENT (No such
file or directory)
open("/usr/lib/vzctl/lib/cmov/libc.so.6", O_RDONL

Bug#415645: vzsplit uses hardcoded "/vz" for space checking instead of "/var/lib/vz"

2007-04-12 Thread Ola Lundqvist
Privet Kir

Do you know when vzctl-3.0.17 is planned?

Regards,

// Ola

On Thu, Apr 12, 2007 at 05:43:19PM +0400, Kir Kolyshkin wrote:
> Ola, all,
> 
> Both problems in vzsplit are now (hopefully) fixed with this commit:
> http://git.openvz.org/?p=vzctl;a=commit;h=78a0518af5ce7ce8c13a3aa5f3d4247164d0bfab
> 
> Fixed vzsplit will be available in vzctl-3.0.17
> 
> PS to the original reporter of Debian bug #415645 -- vzsplit was not 
> failing, it just printed a (false) warning.
> 
> Ola Lundqvist wrote:
> >Hi Kir
> >
> >On Fri, Mar 23, 2007 at 05:36:51PM +0300, Kir Kolyshkin wrote:
> >  
> >>That's quite easy -- the actual checking routine in vzsplit checks for 
> >>both free space and free inodes (and reports the same error when one of 
> >>space/inodes is limited). Now, reiserfs reports zero total inodes 
> >>(because it does not use inodes), and vzsplit stumbles on that.
> >>
> >>I made a patch to fix that, I will test it and then it will hit the git.
> >>
> >
> >Thanks a lot. Can you make a patch so that it uses the configuration 
> >variable
> >for /vz location as well?
> >
> >Regards,
> >
> >// Ola
> >
> >  
> >>Ola Lundqvist wrote:
> >>
> >>>Hi Kir
> >>>
> >>>Do you know the answer of this issue? I have modified vzsplit.c so that
> >>>it can check for /var/lib/vz as well as /vz, but it do not seem to help.
> >>>
> >>>Regards,
> >>>
> >>>// Ola
> >>>
> >>>On Thu, Mar 22, 2007 at 10:27:13AM -0700, Dusty Wilson wrote:
> >>> 
> >>>  
> >>Maybe, but more likely the problem is that you actually have 20GB 
> >>free,
> >>and maybe it needs 20.2 or something.
> >>   
> >>
> >It's too bad it checks for total remaining space available.  That
> >partition already has a bunch of VPSes running on it.  It'd be nice if
> >it could somehow (magically?) check to see how much space is already
> >being used by existing VPSes and treat it as available space.  Or have
> >a flag to allow it to ignore testing for available space altogether.
> > 
> >  
> Actually, if I have it only split for five VPSes, it still fails:
> 
> ---
> hera:~# vzsplit -n 5
> WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
> WARNING: /var/lib/vz partition do not have space required for 5 VPS
> ---
> 
> Or even just one:
> 
> ---
> hera:~# vzsplit -n 1
> WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
> WARNING: /var/lib/vz partition do not have space required for 1 VPS
> ---
> 
> And for fun, 100 VPSes:
> 
> ---
> hera:~# vzsplit -n 100
> WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
> WARNING: /var/lib/vz partition do not have space required for 100 VPS
> ---
> 
> Why does it need to be 20GB for a single VPS?
> 
> I just cleared out some space now.  Here's what my partitions look like 
> now:
> 
> ---
> hera:~# df -h
> FilesystemSize  Used Avail Use% Mounted on
> /dev/sdc1 4.7G  1.3G  3.5G  27% /
> /dev/sdc3  28G  6.7G   22G  24% /var/lib/vz
> hera:~# df
> Filesystem   1K-blocks  Used Available Use% Mounted on
> /dev/sdc1  4883556   1305704   3577852  27% /
> /dev/sdc3 29309692   6930080  22379612  24% /var/lib/vz
> ---
> 
> Even though I've got 22GB available, it still claims I don't have 20GB
> available same like before:
> 
> ---
> hera:~# vzsplit -n 20
> WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
> WARNING: /var/lib/vz partition do not have space required for 20 VPS
> ---
> 
> In case it's useful, here's another strace:
> 
> ---
> hera:~# strace vzsplit -n 20
> execve("/usr/sbin/vzsplit", ["vzsplit", "-n", "20"], [/* 13 vars */]) = 
> 0
> uname({sys="Linux", node="hera", ...})  = 0
> brk(0)  = 0x804e000
> access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or 
> directory)
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0xb7fc6000
> access("/etc/ld.so.preload", R_OK)  = -1 ENOENT (No such file or 
> directory)
> open("/usr/lib/vzctl/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = -1
> ENOENT (No such file or directory)
> stat64("/usr/lib/vzctl/lib/tls/i686/cmov", 0xbfd99338) = -1 ENOENT (No
> such file or directory)
> open("/usr/lib/vzctl/lib/tls/i686/libc.so.6", O_RDONLY) = -1 ENOENT
> (No such file or directory)
> stat64("/usr/lib/vzctl/lib/tls/i686", 0xbfd99338) = -1 ENOENT (No such
> file or directory)
> open("/usr/lib/vzctl/lib/tls/cmov/libc.so.6", O_RDONLY) = -1 ENOENT
> (No such file or directory)
> stat64("/usr/lib/vzctl/lib/tls/cmov", 0xbfd99338) = -1 ENOENT (No such
> file or directory)
> open("/usr/lib/vzctl/lib/tls/libc.s

Bug#415645: vzsplit uses hardcoded "/vz" for space checking instead of "/var/lib/vz"

2007-04-12 Thread Kir Kolyshkin

Ola, all,

Both problems in vzsplit are now (hopefully) fixed with this commit:
http://git.openvz.org/?p=vzctl;a=commit;h=78a0518af5ce7ce8c13a3aa5f3d4247164d0bfab

Fixed vzsplit will be available in vzctl-3.0.17

PS to the original reporter of Debian bug #415645 -- vzsplit was not 
failing, it just printed a (false) warning.


Ola Lundqvist wrote:

Hi Kir

On Fri, Mar 23, 2007 at 05:36:51PM +0300, Kir Kolyshkin wrote:
  
That's quite easy -- the actual checking routine in vzsplit checks for 
both free space and free inodes (and reports the same error when one of 
space/inodes is limited). Now, reiserfs reports zero total inodes 
(because it does not use inodes), and vzsplit stumbles on that.


I made a patch to fix that, I will test it and then it will hit the git.



Thanks a lot. Can you make a patch so that it uses the configuration variable
for /vz location as well?

Regards,

// Ola

  

Ola Lundqvist wrote:


Hi Kir

Do you know the answer of this issue? I have modified vzsplit.c so that
it can check for /var/lib/vz as well as /vz, but it do not seem to help.

Regards,

// Ola

On Thu, Mar 22, 2007 at 10:27:13AM -0700, Dusty Wilson wrote:
 
  

Maybe, but more likely the problem is that you actually have 20GB free,
and maybe it needs 20.2 or something.
   


It's too bad it checks for total remaining space available.  That
partition already has a bunch of VPSes running on it.  It'd be nice if
it could somehow (magically?) check to see how much space is already
being used by existing VPSes and treat it as available space.  Or have
a flag to allow it to ignore testing for available space altogether.
 
  

Actually, if I have it only split for five VPSes, it still fails:

---
hera:~# vzsplit -n 5
WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
WARNING: /var/lib/vz partition do not have space required for 5 VPS
---

Or even just one:

---
hera:~# vzsplit -n 1
WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
WARNING: /var/lib/vz partition do not have space required for 1 VPS
---

And for fun, 100 VPSes:

---
hera:~# vzsplit -n 100
WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
WARNING: /var/lib/vz partition do not have space required for 100 VPS
---

Why does it need to be 20GB for a single VPS?

I just cleared out some space now.  Here's what my partitions look like 
now:


---
hera:~# df -h
FilesystemSize  Used Avail Use% Mounted on
/dev/sdc1 4.7G  1.3G  3.5G  27% /
/dev/sdc3  28G  6.7G   22G  24% /var/lib/vz
hera:~# df
Filesystem   1K-blocks  Used Available Use% Mounted on
/dev/sdc1  4883556   1305704   3577852  27% /
/dev/sdc3 29309692   6930080  22379612  24% /var/lib/vz
---

Even though I've got 22GB available, it still claims I don't have 20GB
available same like before:

---
hera:~# vzsplit -n 20
WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
WARNING: /var/lib/vz partition do not have space required for 20 VPS
---

In case it's useful, here's another strace:

---
hera:~# strace vzsplit -n 20
execve("/usr/sbin/vzsplit", ["vzsplit", "-n", "20"], [/* 13 vars */]) = 0
uname({sys="Linux", node="hera", ...})  = 0
brk(0)  = 0x804e000
access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or 
directory)

mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7fc6000
access("/etc/ld.so.preload", R_OK)  = -1 ENOENT (No such file or 
directory)

open("/usr/lib/vzctl/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = -1
ENOENT (No such file or directory)
stat64("/usr/lib/vzctl/lib/tls/i686/cmov", 0xbfd99338) = -1 ENOENT (No
such file or directory)
open("/usr/lib/vzctl/lib/tls/i686/libc.so.6", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/vzctl/lib/tls/i686", 0xbfd99338) = -1 ENOENT (No such
file or directory)
open("/usr/lib/vzctl/lib/tls/cmov/libc.so.6", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/vzctl/lib/tls/cmov", 0xbfd99338) = -1 ENOENT (No such
file or directory)
open("/usr/lib/vzctl/lib/tls/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/vzctl/lib/tls", 0xbfd99338) = -1 ENOENT (No such file
or directory)
open("/usr/lib/vzctl/lib/i686/cmov/libc.so.6", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/vzctl/lib/i686/cmov", 0xbfd99338) = -1 ENOENT (No
such file or directory)
open("/usr/lib/vzctl/lib/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/vzctl/lib/i686", 0xbfd99338) = -1 ENOENT (No such
file or directory)
open("/usr/lib/vzctl/lib/cmov/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/vzctl/lib/cmov", 0xbfd99338) = -1 ENOENT (No such
file or directory)
open("/usr/lib/vzctl/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/lib/vzctl/lib", {st_mode=S_IFDIR|0755, st_size

Bug#415645: vzsplit uses hardcoded "/vz" for space checking instead of "/var/lib/vz"

2007-03-23 Thread Ola Lundqvist
Hi Kir

On Fri, Mar 23, 2007 at 05:36:51PM +0300, Kir Kolyshkin wrote:
> That's quite easy -- the actual checking routine in vzsplit checks for 
> both free space and free inodes (and reports the same error when one of 
> space/inodes is limited). Now, reiserfs reports zero total inodes 
> (because it does not use inodes), and vzsplit stumbles on that.
> 
> I made a patch to fix that, I will test it and then it will hit the git.

Thanks a lot. Can you make a patch so that it uses the configuration variable
for /vz location as well?

Regards,

// Ola

> Ola Lundqvist wrote:
> >Hi Kir
> >
> >Do you know the answer of this issue? I have modified vzsplit.c so that
> >it can check for /var/lib/vz as well as /vz, but it do not seem to help.
> >
> >Regards,
> >
> >// Ola
> >
> >On Thu, Mar 22, 2007 at 10:27:13AM -0700, Dusty Wilson wrote:
> >  
> Maybe, but more likely the problem is that you actually have 20GB free,
> and maybe it needs 20.2 or something.
> 
> >>>It's too bad it checks for total remaining space available.  That
> >>>partition already has a bunch of VPSes running on it.  It'd be nice if
> >>>it could somehow (magically?) check to see how much space is already
> >>>being used by existing VPSes and treat it as available space.  Or have
> >>>a flag to allow it to ignore testing for available space altogether.
> >>>  
> >>Actually, if I have it only split for five VPSes, it still fails:
> >>
> >>---
> >>hera:~# vzsplit -n 5
> >>WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
> >>WARNING: /var/lib/vz partition do not have space required for 5 VPS
> >>---
> >>
> >>Or even just one:
> >>
> >>---
> >>hera:~# vzsplit -n 1
> >>WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
> >>WARNING: /var/lib/vz partition do not have space required for 1 VPS
> >>---
> >>
> >>And for fun, 100 VPSes:
> >>
> >>---
> >>hera:~# vzsplit -n 100
> >>WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
> >>WARNING: /var/lib/vz partition do not have space required for 100 VPS
> >>---
> >>
> >>Why does it need to be 20GB for a single VPS?
> >>
> >>I just cleared out some space now.  Here's what my partitions look like 
> >>now:
> >>
> >>---
> >>hera:~# df -h
> >>FilesystemSize  Used Avail Use% Mounted on
> >>/dev/sdc1 4.7G  1.3G  3.5G  27% /
> >>/dev/sdc3  28G  6.7G   22G  24% /var/lib/vz
> >>hera:~# df
> >>Filesystem   1K-blocks  Used Available Use% Mounted on
> >>/dev/sdc1  4883556   1305704   3577852  27% /
> >>/dev/sdc3 29309692   6930080  22379612  24% /var/lib/vz
> >>---
> >>
> >>Even though I've got 22GB available, it still claims I don't have 20GB
> >>available same like before:
> >>
> >>---
> >>hera:~# vzsplit -n 20
> >>WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
> >>WARNING: /var/lib/vz partition do not have space required for 20 VPS
> >>---
> >>
> >>In case it's useful, here's another strace:
> >>
> >>---
> >>hera:~# strace vzsplit -n 20
> >>execve("/usr/sbin/vzsplit", ["vzsplit", "-n", "20"], [/* 13 vars */]) = 0
> >>uname({sys="Linux", node="hera", ...})  = 0
> >>brk(0)  = 0x804e000
> >>access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or 
> >>directory)
> >>mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> >>0) = 0xb7fc6000
> >>access("/etc/ld.so.preload", R_OK)  = -1 ENOENT (No such file or 
> >>directory)
> >>open("/usr/lib/vzctl/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = -1
> >>ENOENT (No such file or directory)
> >>stat64("/usr/lib/vzctl/lib/tls/i686/cmov", 0xbfd99338) = -1 ENOENT (No
> >>such file or directory)
> >>open("/usr/lib/vzctl/lib/tls/i686/libc.so.6", O_RDONLY) = -1 ENOENT
> >>(No such file or directory)
> >>stat64("/usr/lib/vzctl/lib/tls/i686", 0xbfd99338) = -1 ENOENT (No such
> >>file or directory)
> >>open("/usr/lib/vzctl/lib/tls/cmov/libc.so.6", O_RDONLY) = -1 ENOENT
> >>(No such file or directory)
> >>stat64("/usr/lib/vzctl/lib/tls/cmov", 0xbfd99338) = -1 ENOENT (No such
> >>file or directory)
> >>open("/usr/lib/vzctl/lib/tls/libc.so.6", O_RDONLY) = -1 ENOENT (No
> >>such file or directory)
> >>stat64("/usr/lib/vzctl/lib/tls", 0xbfd99338) = -1 ENOENT (No such file
> >>or directory)
> >>open("/usr/lib/vzctl/lib/i686/cmov/libc.so.6", O_RDONLY) = -1 ENOENT
> >>(No such file or directory)
> >>stat64("/usr/lib/vzctl/lib/i686/cmov", 0xbfd99338) = -1 ENOENT (No
> >>such file or directory)
> >>open("/usr/lib/vzctl/lib/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No
> >>such file or directory)
> >>stat64("/usr/lib/vzctl/lib/i686", 0xbfd99338) = -1 ENOENT (No such
> >>file or directory)
> >>open("/usr/lib/vzctl/lib/cmov/libc.so.6", O_RDONLY) = -1 ENOENT (No
> >>such file or directory)
> >>stat64("/usr/lib/vzctl/lib/cmov", 0xbfd99338) = -1 ENOENT (No such
> >>file or directory)
> >>open("/usr/lib/vzctl/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such
> >>file or directory)
> 

Bug#415645: vzsplit uses hardcoded "/vz" for space checking instead of "/var/lib/vz"

2007-03-23 Thread Kir Kolyshkin
That's quite easy -- the actual checking routine in vzsplit checks for 
both free space and free inodes (and reports the same error when one of 
space/inodes is limited). Now, reiserfs reports zero total inodes 
(because it does not use inodes), and vzsplit stumbles on that.


I made a patch to fix that, I will test it and then it will hit the git.

Ola Lundqvist wrote:

Hi Kir

Do you know the answer of this issue? I have modified vzsplit.c so that
it can check for /var/lib/vz as well as /vz, but it do not seem to help.

Regards,

// Ola

On Thu, Mar 22, 2007 at 10:27:13AM -0700, Dusty Wilson wrote:
  

Maybe, but more likely the problem is that you actually have 20GB free,
and maybe it needs 20.2 or something.


It's too bad it checks for total remaining space available.  That
partition already has a bunch of VPSes running on it.  It'd be nice if
it could somehow (magically?) check to see how much space is already
being used by existing VPSes and treat it as available space.  Or have
a flag to allow it to ignore testing for available space altogether.
  

Actually, if I have it only split for five VPSes, it still fails:

---
hera:~# vzsplit -n 5
WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
WARNING: /var/lib/vz partition do not have space required for 5 VPS
---

Or even just one:

---
hera:~# vzsplit -n 1
WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
WARNING: /var/lib/vz partition do not have space required for 1 VPS
---

And for fun, 100 VPSes:

---
hera:~# vzsplit -n 100
WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
WARNING: /var/lib/vz partition do not have space required for 100 VPS
---

Why does it need to be 20GB for a single VPS?

I just cleared out some space now.  Here's what my partitions look like now:

---
hera:~# df -h
FilesystemSize  Used Avail Use% Mounted on
/dev/sdc1 4.7G  1.3G  3.5G  27% /
/dev/sdc3  28G  6.7G   22G  24% /var/lib/vz
hera:~# df
Filesystem   1K-blocks  Used Available Use% Mounted on
/dev/sdc1  4883556   1305704   3577852  27% /
/dev/sdc3 29309692   6930080  22379612  24% /var/lib/vz
---

Even though I've got 22GB available, it still claims I don't have 20GB
available same like before:

---
hera:~# vzsplit -n 20
WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
WARNING: /var/lib/vz partition do not have space required for 20 VPS
---

In case it's useful, here's another strace:

---
hera:~# strace vzsplit -n 20
execve("/usr/sbin/vzsplit", ["vzsplit", "-n", "20"], [/* 13 vars */]) = 0
uname({sys="Linux", node="hera", ...})  = 0
brk(0)  = 0x804e000
access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or 
directory)

mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7fc6000
access("/etc/ld.so.preload", R_OK)  = -1 ENOENT (No such file or 
directory)

open("/usr/lib/vzctl/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = -1
ENOENT (No such file or directory)
stat64("/usr/lib/vzctl/lib/tls/i686/cmov", 0xbfd99338) = -1 ENOENT (No
such file or directory)
open("/usr/lib/vzctl/lib/tls/i686/libc.so.6", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/vzctl/lib/tls/i686", 0xbfd99338) = -1 ENOENT (No such
file or directory)
open("/usr/lib/vzctl/lib/tls/cmov/libc.so.6", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/vzctl/lib/tls/cmov", 0xbfd99338) = -1 ENOENT (No such
file or directory)
open("/usr/lib/vzctl/lib/tls/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/vzctl/lib/tls", 0xbfd99338) = -1 ENOENT (No such file
or directory)
open("/usr/lib/vzctl/lib/i686/cmov/libc.so.6", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/vzctl/lib/i686/cmov", 0xbfd99338) = -1 ENOENT (No
such file or directory)
open("/usr/lib/vzctl/lib/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/vzctl/lib/i686", 0xbfd99338) = -1 ENOENT (No such
file or directory)
open("/usr/lib/vzctl/lib/cmov/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/vzctl/lib/cmov", 0xbfd99338) = -1 ENOENT (No such
file or directory)
open("/usr/lib/vzctl/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/lib/vzctl/lib", {st_mode=S_IFDIR|0755, st_size=128, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY)  = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=13683, ...}) = 0
mmap2(NULL, 13683, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fc2000
close(3)= 0
access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or 
directory)

open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240O\1"..., 512) = 
512

fstat64(3, {st_mode=S_IFREG|0644, st_size=1241392, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7fc1000
mmap2(

Bug#415645: vzsplit uses hardcoded "/vz" for space checking instead of "/var/lib/vz"

2007-03-23 Thread Ola Lundqvist
Hi Dusty

I have forwarded this question to upstream now.

Regards,

// Ola

On Thu, Mar 22, 2007 at 10:27:13AM -0700, Dusty Wilson wrote:
> >> Maybe, but more likely the problem is that you actually have 20GB free,
> >> and maybe it needs 20.2 or something.
> >
> >It's too bad it checks for total remaining space available.  That
> >partition already has a bunch of VPSes running on it.  It'd be nice if
> >it could somehow (magically?) check to see how much space is already
> >being used by existing VPSes and treat it as available space.  Or have
> >a flag to allow it to ignore testing for available space altogether.
> 
> Actually, if I have it only split for five VPSes, it still fails:
> 
> ---
> hera:~# vzsplit -n 5
> WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
> WARNING: /var/lib/vz partition do not have space required for 5 VPS
> ---
> 
> Or even just one:
> 
> ---
> hera:~# vzsplit -n 1
> WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
> WARNING: /var/lib/vz partition do not have space required for 1 VPS
> ---
> 
> And for fun, 100 VPSes:
> 
> ---
> hera:~# vzsplit -n 100
> WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
> WARNING: /var/lib/vz partition do not have space required for 100 VPS
> ---
> 
> Why does it need to be 20GB for a single VPS?
> 
> I just cleared out some space now.  Here's what my partitions look like now:
> 
> ---
> hera:~# df -h
> FilesystemSize  Used Avail Use% Mounted on
> /dev/sdc1 4.7G  1.3G  3.5G  27% /
> /dev/sdc3  28G  6.7G   22G  24% /var/lib/vz
> hera:~# df
> Filesystem   1K-blocks  Used Available Use% Mounted on
> /dev/sdc1  4883556   1305704   3577852  27% /
> /dev/sdc3 29309692   6930080  22379612  24% /var/lib/vz
> ---
> 
> Even though I've got 22GB available, it still claims I don't have 20GB
> available same like before:
> 
> ---
> hera:~# vzsplit -n 20
> WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
> WARNING: /var/lib/vz partition do not have space required for 20 VPS
> ---
> 
> In case it's useful, here's another strace:
> 
> ---
> hera:~# strace vzsplit -n 20
> execve("/usr/sbin/vzsplit", ["vzsplit", "-n", "20"], [/* 13 vars */]) = 0
> uname({sys="Linux", node="hera", ...})  = 0
> brk(0)  = 0x804e000
> access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or 
> directory)
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0xb7fc6000
> access("/etc/ld.so.preload", R_OK)  = -1 ENOENT (No such file or 
> directory)
> open("/usr/lib/vzctl/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = -1
> ENOENT (No such file or directory)
> stat64("/usr/lib/vzctl/lib/tls/i686/cmov", 0xbfd99338) = -1 ENOENT (No
> such file or directory)
> open("/usr/lib/vzctl/lib/tls/i686/libc.so.6", O_RDONLY) = -1 ENOENT
> (No such file or directory)
> stat64("/usr/lib/vzctl/lib/tls/i686", 0xbfd99338) = -1 ENOENT (No such
> file or directory)
> open("/usr/lib/vzctl/lib/tls/cmov/libc.so.6", O_RDONLY) = -1 ENOENT
> (No such file or directory)
> stat64("/usr/lib/vzctl/lib/tls/cmov", 0xbfd99338) = -1 ENOENT (No such
> file or directory)
> open("/usr/lib/vzctl/lib/tls/libc.so.6", O_RDONLY) = -1 ENOENT (No
> such file or directory)
> stat64("/usr/lib/vzctl/lib/tls", 0xbfd99338) = -1 ENOENT (No such file
> or directory)
> open("/usr/lib/vzctl/lib/i686/cmov/libc.so.6", O_RDONLY) = -1 ENOENT
> (No such file or directory)
> stat64("/usr/lib/vzctl/lib/i686/cmov", 0xbfd99338) = -1 ENOENT (No
> such file or directory)
> open("/usr/lib/vzctl/lib/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No
> such file or directory)
> stat64("/usr/lib/vzctl/lib/i686", 0xbfd99338) = -1 ENOENT (No such
> file or directory)
> open("/usr/lib/vzctl/lib/cmov/libc.so.6", O_RDONLY) = -1 ENOENT (No
> such file or directory)
> stat64("/usr/lib/vzctl/lib/cmov", 0xbfd99338) = -1 ENOENT (No such
> file or directory)
> open("/usr/lib/vzctl/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such
> file or directory)
> stat64("/usr/lib/vzctl/lib", {st_mode=S_IFDIR|0755, st_size=128, ...}) = 0
> open("/etc/ld.so.cache", O_RDONLY)  = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=13683, ...}) = 0
> mmap2(NULL, 13683, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fc2000
> close(3)= 0
> access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or 
> directory)
> open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3
> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240O\1"..., 512) = 
> 512
> fstat64(3, {st_mode=S_IFREG|0644, st_size=1241392, ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0xb7fc1000
> mmap2(NULL, 1247388, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
> 3, 0) = 0xb7e9
> mmap2(0xb7fb7000, 28672, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x127) = 0xb7fb7000
> mmap2(0xb7fbe000, 10396, PROT_READ|PROT_WRITE,
> MAP_PRI

Bug#415645: vzsplit uses hardcoded "/vz" for space checking instead of "/var/lib/vz"

2007-03-23 Thread Ola Lundqvist
Hi Kir

Do you know the answer of this issue? I have modified vzsplit.c so that
it can check for /var/lib/vz as well as /vz, but it do not seem to help.

Regards,

// Ola

On Thu, Mar 22, 2007 at 10:27:13AM -0700, Dusty Wilson wrote:
> >> Maybe, but more likely the problem is that you actually have 20GB free,
> >> and maybe it needs 20.2 or something.
> >
> >It's too bad it checks for total remaining space available.  That
> >partition already has a bunch of VPSes running on it.  It'd be nice if
> >it could somehow (magically?) check to see how much space is already
> >being used by existing VPSes and treat it as available space.  Or have
> >a flag to allow it to ignore testing for available space altogether.
> 
> Actually, if I have it only split for five VPSes, it still fails:
> 
> ---
> hera:~# vzsplit -n 5
> WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
> WARNING: /var/lib/vz partition do not have space required for 5 VPS
> ---
> 
> Or even just one:
> 
> ---
> hera:~# vzsplit -n 1
> WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
> WARNING: /var/lib/vz partition do not have space required for 1 VPS
> ---
> 
> And for fun, 100 VPSes:
> 
> ---
> hera:~# vzsplit -n 100
> WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
> WARNING: /var/lib/vz partition do not have space required for 100 VPS
> ---
> 
> Why does it need to be 20GB for a single VPS?
> 
> I just cleared out some space now.  Here's what my partitions look like now:
> 
> ---
> hera:~# df -h
> FilesystemSize  Used Avail Use% Mounted on
> /dev/sdc1 4.7G  1.3G  3.5G  27% /
> /dev/sdc3  28G  6.7G   22G  24% /var/lib/vz
> hera:~# df
> Filesystem   1K-blocks  Used Available Use% Mounted on
> /dev/sdc1  4883556   1305704   3577852  27% /
> /dev/sdc3 29309692   6930080  22379612  24% /var/lib/vz
> ---
> 
> Even though I've got 22GB available, it still claims I don't have 20GB
> available same like before:
> 
> ---
> hera:~# vzsplit -n 20
> WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
> WARNING: /var/lib/vz partition do not have space required for 20 VPS
> ---
> 
> In case it's useful, here's another strace:
> 
> ---
> hera:~# strace vzsplit -n 20
> execve("/usr/sbin/vzsplit", ["vzsplit", "-n", "20"], [/* 13 vars */]) = 0
> uname({sys="Linux", node="hera", ...})  = 0
> brk(0)  = 0x804e000
> access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or 
> directory)
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0xb7fc6000
> access("/etc/ld.so.preload", R_OK)  = -1 ENOENT (No such file or 
> directory)
> open("/usr/lib/vzctl/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = -1
> ENOENT (No such file or directory)
> stat64("/usr/lib/vzctl/lib/tls/i686/cmov", 0xbfd99338) = -1 ENOENT (No
> such file or directory)
> open("/usr/lib/vzctl/lib/tls/i686/libc.so.6", O_RDONLY) = -1 ENOENT
> (No such file or directory)
> stat64("/usr/lib/vzctl/lib/tls/i686", 0xbfd99338) = -1 ENOENT (No such
> file or directory)
> open("/usr/lib/vzctl/lib/tls/cmov/libc.so.6", O_RDONLY) = -1 ENOENT
> (No such file or directory)
> stat64("/usr/lib/vzctl/lib/tls/cmov", 0xbfd99338) = -1 ENOENT (No such
> file or directory)
> open("/usr/lib/vzctl/lib/tls/libc.so.6", O_RDONLY) = -1 ENOENT (No
> such file or directory)
> stat64("/usr/lib/vzctl/lib/tls", 0xbfd99338) = -1 ENOENT (No such file
> or directory)
> open("/usr/lib/vzctl/lib/i686/cmov/libc.so.6", O_RDONLY) = -1 ENOENT
> (No such file or directory)
> stat64("/usr/lib/vzctl/lib/i686/cmov", 0xbfd99338) = -1 ENOENT (No
> such file or directory)
> open("/usr/lib/vzctl/lib/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No
> such file or directory)
> stat64("/usr/lib/vzctl/lib/i686", 0xbfd99338) = -1 ENOENT (No such
> file or directory)
> open("/usr/lib/vzctl/lib/cmov/libc.so.6", O_RDONLY) = -1 ENOENT (No
> such file or directory)
> stat64("/usr/lib/vzctl/lib/cmov", 0xbfd99338) = -1 ENOENT (No such
> file or directory)
> open("/usr/lib/vzctl/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such
> file or directory)
> stat64("/usr/lib/vzctl/lib", {st_mode=S_IFDIR|0755, st_size=128, ...}) = 0
> open("/etc/ld.so.cache", O_RDONLY)  = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=13683, ...}) = 0
> mmap2(NULL, 13683, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fc2000
> close(3)= 0
> access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or 
> directory)
> open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3
> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240O\1"..., 512) = 
> 512
> fstat64(3, {st_mode=S_IFREG|0644, st_size=1241392, ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0xb7fc1000
> mmap2(NULL, 1247388, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
> 3, 0) = 0xb7e9
> mmap2(0xb7fb7000, 28672, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|M

Bug#415645: vzsplit uses hardcoded "/vz" for space checking instead of "/var/lib/vz"

2007-03-22 Thread Dusty Wilson

> Maybe, but more likely the problem is that you actually have 20GB free,
> and maybe it needs 20.2 or something.

It's too bad it checks for total remaining space available.  That
partition already has a bunch of VPSes running on it.  It'd be nice if
it could somehow (magically?) check to see how much space is already
being used by existing VPSes and treat it as available space.  Or have
a flag to allow it to ignore testing for available space altogether.


Actually, if I have it only split for five VPSes, it still fails:

---
hera:~# vzsplit -n 5
WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
WARNING: /var/lib/vz partition do not have space required for 5 VPS
---

Or even just one:

---
hera:~# vzsplit -n 1
WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
WARNING: /var/lib/vz partition do not have space required for 1 VPS
---

And for fun, 100 VPSes:

---
hera:~# vzsplit -n 100
WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
WARNING: /var/lib/vz partition do not have space required for 100 VPS
---

Why does it need to be 20GB for a single VPS?

I just cleared out some space now.  Here's what my partitions look like now:

---
hera:~# df -h
FilesystemSize  Used Avail Use% Mounted on
/dev/sdc1 4.7G  1.3G  3.5G  27% /
/dev/sdc3  28G  6.7G   22G  24% /var/lib/vz
hera:~# df
Filesystem   1K-blocks  Used Available Use% Mounted on
/dev/sdc1  4883556   1305704   3577852  27% /
/dev/sdc3 29309692   6930080  22379612  24% /var/lib/vz
---

Even though I've got 22GB available, it still claims I don't have 20GB
available same like before:

---
hera:~# vzsplit -n 20
WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
WARNING: /var/lib/vz partition do not have space required for 20 VPS
---

In case it's useful, here's another strace:

---
hera:~# strace vzsplit -n 20
execve("/usr/sbin/vzsplit", ["vzsplit", "-n", "20"], [/* 13 vars */]) = 0
uname({sys="Linux", node="hera", ...})  = 0
brk(0)  = 0x804e000
access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or directory)
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7fc6000
access("/etc/ld.so.preload", R_OK)  = -1 ENOENT (No such file or directory)
open("/usr/lib/vzctl/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = -1
ENOENT (No such file or directory)
stat64("/usr/lib/vzctl/lib/tls/i686/cmov", 0xbfd99338) = -1 ENOENT (No
such file or directory)
open("/usr/lib/vzctl/lib/tls/i686/libc.so.6", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/vzctl/lib/tls/i686", 0xbfd99338) = -1 ENOENT (No such
file or directory)
open("/usr/lib/vzctl/lib/tls/cmov/libc.so.6", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/vzctl/lib/tls/cmov", 0xbfd99338) = -1 ENOENT (No such
file or directory)
open("/usr/lib/vzctl/lib/tls/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/vzctl/lib/tls", 0xbfd99338) = -1 ENOENT (No such file
or directory)
open("/usr/lib/vzctl/lib/i686/cmov/libc.so.6", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/vzctl/lib/i686/cmov", 0xbfd99338) = -1 ENOENT (No
such file or directory)
open("/usr/lib/vzctl/lib/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/vzctl/lib/i686", 0xbfd99338) = -1 ENOENT (No such
file or directory)
open("/usr/lib/vzctl/lib/cmov/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/vzctl/lib/cmov", 0xbfd99338) = -1 ENOENT (No such
file or directory)
open("/usr/lib/vzctl/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/lib/vzctl/lib", {st_mode=S_IFDIR|0755, st_size=128, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY)  = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=13683, ...}) = 0
mmap2(NULL, 13683, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fc2000
close(3)= 0
access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240O\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1241392, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7fc1000
mmap2(NULL, 1247388, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0xb7e9
mmap2(0xb7fb7000, 28672, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x127) = 0xb7fb7000
mmap2(0xb7fbe000, 10396, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7fbe000
close(3)= 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7e8f000
mprotect(0xb7fb7000, 20480, PROT_READ)  = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e8f6c0,
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
limit_in_pages:1, seg_not_present:0, useabl

Bug#415645: vzsplit uses hardcoded "/vz" for space checking instead of "/var/lib/vz"

2007-03-22 Thread Dusty Wilson

> statfs("/var/lib/vz", {f_type="REISERFS_SUPER_MAGIC", f_bsize=4096,
> f_blocks=7327423, f_bfree=5120910, f_bavail=5120910, f_files=0,
> f_ffree=0, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0
> write(2, "WARNING: Recommended minimal siz"..., 59WARNING: Recommended
> minimal sizeof /vz partition is 20Gb!
> ) = 59

Here it should really print "minimal size of /var/lib/vz partition is
20Gb!


It does now!

---
hera:~# vzsplit -n 20
WARNING: Recommended minimal sizeof /var/lib/vz partition is 20Gb!
WARNING: /var/lib/vz partition do not have space required for 20 VPS
---


> ---
> hera:/# stat /vz
> stat: cannot stat `/vz': No such file or directory
> hera:/# df -h
> FilesystemSize  Used Avail Use% Mounted on
> /dev/sdc1 4.7G  1.1G  3.7G  23% /
> /dev/sdc3  28G  8.5G   20G  31% /var/lib/vz
> ---
>
> By the way, "/" and "/var/lib/vz" are both ReiserFS, if that matters.

Maybe, but more likely the problem is that you actually have 20GB free,
and maybe it needs 20.2 or something.


It's too bad it checks for total remaining space available.  That
partition already has a bunch of VPSes running on it.  It'd be nice if
it could somehow (magically?) check to see how much space is already
being used by existing VPSes and treat it as available space.  Or have
a flag to allow it to ignore testing for available space altogether.

Thanks!
Dusty


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#415645: vzsplit uses hardcoded "/vz" for space checking instead of "/var/lib/vz"

2007-03-21 Thread Ola Lundqvist
Hi

Thanks a lot! This give me the information that it is actually the
/var/lib/vz partition that have the problem...

I have uploaded a new version that at least display the correct partition
that have the problem (3.0.11-15)

See below.

On Wed, Mar 21, 2007 at 04:10:06PM -0700, Dusty Wilson wrote:
> >Could you give me the output when you run the command with strace?
> 
> Absolutely!  Here it is below.
> 
> ---
> hera:/# strace vzsplit -n 20
> execve("/usr/sbin/vzsplit", ["vzsplit", "-n", "20"], [/* 13 vars */]) = 0
> uname({sys="Linux", node="hera", ...})  = 0
...
> close(3)= 0
> munmap(0xb7fab000, 4096)= 0
> statfs("/opt/vz", 0xbf9ada50)   = -1 ENOENT (No such file or 
> directory)
> statfs("/srv/vz", 0xbf9ada50)   = -1 ENOENT (No such file or 
> directory)
> statfs("/vz", 0xbf9ada50)   = -1 ENOENT (No such file or 
> directory)
> statfs("/var/lib/vz", {f_type="REISERFS_SUPER_MAGIC", f_bsize=4096,
> f_blocks=7327423, f_bfree=5120910, f_bavail=5120910, f_files=0,
> f_ffree=0, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0
> write(2, "WARNING: Recommended minimal siz"..., 59WARNING: Recommended
> minimal sizeof /vz partition is 20Gb!
> ) = 59

Here it should really print "minimal size of /var/lib/vz partition is
20Gb!

> write(2, "WARNING: /vz partition do not ha"..., 92WARNING: /vz
> partition do not have space required for 20 VPS
> The maximum allowed value is 0
> ) = 92
> 
> And just to be sure, the "/vz" symlink is gone:
> 
> ---
> hera:/# stat /vz
> stat: cannot stat `/vz': No such file or directory
> hera:/# df -h
> FilesystemSize  Used Avail Use% Mounted on
> /dev/sdc1 4.7G  1.1G  3.7G  23% /
> /dev/sdc3  28G  8.5G   20G  31% /var/lib/vz
> ---
> 
> By the way, "/" and "/var/lib/vz" are both ReiserFS, if that matters.

Maybe, but more likely the problem is that you actually have 20GB free,
and maybe it needs 20.2 or something.

Best regards,

// Ola

-- 
 - Ola Lundqvist ---
/  [EMAIL PROTECTED] Annebergsslingan 37  \
|  [EMAIL PROTECTED] 654 65 KARLSTAD  |
|  +46 (0)54-10 14 30  +46 (0)70-332 1551   |
|  http://opalsys.net/ UIN/icq: 4912500 |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#415645: vzsplit uses hardcoded "/vz" for space checking instead of "/var/lib/vz"

2007-03-21 Thread Dusty Wilson

Could you give me the output when you run the command with strace?


Absolutely!  Here it is below.

---
hera:/# strace vzsplit -n 20
execve("/usr/sbin/vzsplit", ["vzsplit", "-n", "20"], [/* 13 vars */]) = 0
uname({sys="Linux", node="hera", ...})  = 0
brk(0)  = 0x804e000
access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or directory)
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7fac000
access("/etc/ld.so.preload", R_OK)  = -1 ENOENT (No such file or directory)
open("/usr/lib/vzctl/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = -1
ENOENT (No such file or directory)
stat64("/usr/lib/vzctl/lib/tls/i686/cmov", 0xbf9ad758) = -1 ENOENT (No
such file or directory)
open("/usr/lib/vzctl/lib/tls/i686/libc.so.6", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/vzctl/lib/tls/i686", 0xbf9ad758) = -1 ENOENT (No such
file or directory)
open("/usr/lib/vzctl/lib/tls/cmov/libc.so.6", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/vzctl/lib/tls/cmov", 0xbf9ad758) = -1 ENOENT (No such
file or directory)
open("/usr/lib/vzctl/lib/tls/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/vzctl/lib/tls", 0xbf9ad758) = -1 ENOENT (No such file
or directory)
open("/usr/lib/vzctl/lib/i686/cmov/libc.so.6", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/vzctl/lib/i686/cmov", 0xbf9ad758) = -1 ENOENT (No
such file or directory)
open("/usr/lib/vzctl/lib/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/vzctl/lib/i686", 0xbf9ad758) = -1 ENOENT (No such
file or directory)
open("/usr/lib/vzctl/lib/cmov/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/vzctl/lib/cmov", 0xbf9ad758) = -1 ENOENT (No such
file or directory)
open("/usr/lib/vzctl/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/lib/vzctl/lib", {st_mode=S_IFDIR|0755, st_size=128, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY)  = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=13683, ...}) = 0
mmap2(NULL, 13683, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fa8000
close(3)= 0
access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240O\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1241392, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7fa7000
mmap2(NULL, 1247388, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0xb7e76000
mmap2(0xb7f9d000, 28672, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x127) = 0xb7f9d000
mmap2(0xb7fa4000, 10396, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7fa4000
close(3)= 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7e75000
mprotect(0xb7f9d000, 20480, PROT_READ)  = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e756c0,
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0xb7fa8000, 13683)   = 0
brk(0)  = 0x804e000
brk(0x806f000)  = 0x806f000
open("/proc/meminfo", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7fab000
read(3, "MemTotal:  1033504 kB\nMemFre"..., 1024) = 676
read(3, "", 1024)   = 0
close(3)= 0
munmap(0xb7fab000, 4096)= 0
open("/proc/sys/kernel/threads-max", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7fab000
read(3, "16383\n", 1024)= 6
close(3)= 0
munmap(0xb7fab000, 4096)= 0
statfs("/opt/vz", 0xbf9ada50)   = -1 ENOENT (No such file or directory)
statfs("/srv/vz", 0xbf9ada50)   = -1 ENOENT (No such file or directory)
statfs("/vz", 0xbf9ada50)   = -1 ENOENT (No such file or directory)
statfs("/var/lib/vz", {f_type="REISERFS_SUPER_MAGIC", f_bsize=4096,
f_blocks=7327423, f_bfree=5120910, f_bavail=5120910, f_files=0,
f_ffree=0, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0
write(2, "WARNING: Recommended minimal siz"..., 59WARNING: Recommended
minimal sizeof /vz partition is 20Gb!
) = 59
write(2, "WARNING: /vz partition do not ha"..., 92WARNING: /vz
partition do not have space required for 20 VPS
The maximum allowed value is 0
) = 92
write(2, "Default disc space values will b"..., 40Default disc space
values will be used

) = 40
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -

Bug#415645: vzsplit uses hardcoded "/vz" for space checking instead of "/var/lib/vz"

2007-03-21 Thread Ola Lundqvist
reopen 415645
thanks

Hi

On Wed, Mar 21, 2007 at 12:02:00PM -0700, Dusty Wilson wrote:
> >I have uploaded a fixed version into unstable now. It is not a perfect 
> >fix, but
> >it allows you to have the vz directory in /opt/vz, /srv/vz, /var/lib/vz 
> >and /vz.
> >
> >You have to remove your symlink in order to make it work though.
> [...]
> >vzctl_3.0.11-14 is the fixed version.
> 
> I've removed my symlink and upgraded to 3.0.11-14.  I get the same
> result as before, complaining about "/vz" not being large enough.  My
> partition is still at "/var/lib/vz".

Could you give me the output when you run the command with strace?

Regards,

// Ola

> Thanks Ola!
> 
> Dusty
> 

-- 
 --- Ola Lundqvist systemkonsult --- M Sc in IT Engineering 
/  [EMAIL PROTECTED]   Annebergsslingan 37\
|  [EMAIL PROTECTED]   654 65 KARLSTAD|
|  http://opalsys.net/   Mobile: +46 (0)70-332 1551 |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9  /
 ---


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#415645: vzsplit uses hardcoded "/vz" for space checking instead of "/var/lib/vz"

2007-03-21 Thread Dusty Wilson

I have uploaded a fixed version into unstable now. It is not a perfect fix, but
it allows you to have the vz directory in /opt/vz, /srv/vz, /var/lib/vz and /vz.

You have to remove your symlink in order to make it work though.

[...]

vzctl_3.0.11-14 is the fixed version.


I've removed my symlink and upgraded to 3.0.11-14.  I get the same
result as before, complaining about "/vz" not being large enough.  My
partition is still at "/var/lib/vz".

Thanks Ola!

Dusty


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#415645: vzsplit uses hardcoded "/vz" for space checking instead of "/var/lib/vz"

2007-03-20 Thread Ola Lundqvist
Hi

You had already created a bug report. Well then I have to merge mine later. :)

I have uploaded a fixed version into unstable now. It is not a perfect fix, but
it allows you to have the vz directory in /opt/vz, /srv/vz, /var/lib/vz and /vz.

You have to remove your symlink in order to make it work though.

vzctl_3.0.11-14 is the fixed version.

Regards,

// Ola

On Tue, Mar 20, 2007 at 04:16:19PM -0700, Dusty Wilson wrote:
> Package: vzctl
> Version: 3.0.11-13
> 
> The "vzsplit" program seems to use "/vz" instead of "/var/lib/vz" to
> determine available space for splitting and therefore gives inaccurate
> information.
> 
> On my system, "/vz" is a symlink to "/var/lib/vz".  "/var/lib/vz" is a
> separate partition.  Here are my mounts:
> 
> ---
> hera:~# df -h
> FilesystemSize  Used Avail Use% Mounted on
> /dev/sdc1 4.7G  1.1G  3.7G  23% /
> /dev/sdc3  28G  8.2G   20G  30% /var/lib/vz
> ---
> 
> Here is my "vzsplit" output:
> 
> ---
> hera:~# vzsplit -n 20
> WARNING: Recommended minimal sizeof /vz partition is 20Gb!
> WARNING: /vz partition do not have space required for 20 VPS
> The maximum allowed value is 0
> Default disc space values will be used
> 
> # Configuration file generated by vzsplit for 20 VPS
> # on HN with total amount of physical mem 1009 Mb
> # low memory 881 Mb, swap size 1906 Mb, Max treads 8000
> # Resourse commit level 0:
> # Free resource distribution. Any parameters may be increased
> # Primary parameters
> NUMPROC="400:400"
> AVNUMPROC="112:112"
> NUMTCPSOCK="400:400"
> NUMOTHERSOCK="400:400"
> VMGUARPAGES="155025:2147483647"
> 
> # Secondary parameters
> KMEMSIZE="9241559:10165714"
> TCPSNDBUF="1442119:3080519"
> TCPRCVBUF="1442119:3080519"
> OTHERSOCKBUF="721059:2359459"
> DGRAMRCVBUF="721059:721059"
> OOMGUARPAGES="155025:2147483647"
> PRIVVMPAGES="155025:170527"
> 
> # Auxiliary parameters
> LOCKEDPAGES="451:451"
> SHMPAGES="15502:15502"
> PHYSPAGES="0:2147483647"
> NUMFILE="3584:3584"
> NUMFLOCK="358:393"
> NUMPTY="40:40"
> NUMSIGINFO="1024:1024"
> DCACHESIZE="2004256:2064384"
> NUMIPTENT="100:100"
> DISKSPACE="204799:225280"
> DISKINODES="8:88000"
> CPUUNITS="4954"
> ---
> 
> As you can see, it can't figure out that I'm using the "/var/lib/vz"
> as a separate partition and it uses instead the default "diskspace"
> attribute of 200MB.
> 
> My "/etc/vz/vz.conf" uses "/var/lib/vz" for everything instead of
> "/vz".  Here's my "vz.conf" file:
> 
> ---
> hera:~# cat /etc/vz/vz.conf
> ## Global parameters
> VIRTUOZZO=yes
> LOCKDIR=/var/lib/vz/lock
> DUMPDIR=/var/lib/vz/dump
> VE0CPUUNITS=1000
> 
> ## Logging parameters
> LOGGING=yes
> LOGFILE=/var/log/vzctl.log
> LOG_LEVEL=0
> 
> ## Disk quota parameters
> DISK_QUOTA=yes
> VZFASTBOOT=no
> 
> # The name of the device whose ip address will be used as source ip for VE.
> # By default automatically assigned.
> #VE_ROUTE_SRC_DEV="eth0"
> 
> ## Template parameters
> TEMPLATE=/var/lib/vz/template
> 
> ## Defaults for VEs
> VE_ROOT=/var/lib/vz/root/$VEID
> VE_PRIVATE=/var/lib/vz/private/$VEID
> CONFIGFILE="vps.basic"
> DEF_OSTEMPLATE="debian-4.0-i386-generictemplate"
> 
> ## Load vzwdog module
> VZWDOG="no"
> 
> IPTABLES="ipt_REJECT ipt_LOG ipt_state ipt_tos ipt_limit ipt_multiport
> iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length
> iptable_nat ip_conntrack_ftp ip_nat_ftp"
> ---
> 
> 

-- 
 - Ola Lundqvist ---
/  [EMAIL PROTECTED] Annebergsslingan 37  \
|  [EMAIL PROTECTED] 654 65 KARLSTAD  |
|  +46 (0)54-10 14 30  +46 (0)70-332 1551   |
|  http://opalsys.net/ UIN/icq: 4912500 |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#415645: vzsplit uses hardcoded "/vz" for space checking instead of "/var/lib/vz"

2007-03-20 Thread Dusty Wilson

Package: vzctl
Version: 3.0.11-13

The "vzsplit" program seems to use "/vz" instead of "/var/lib/vz" to
determine available space for splitting and therefore gives inaccurate
information.

On my system, "/vz" is a symlink to "/var/lib/vz".  "/var/lib/vz" is a
separate partition.  Here are my mounts:

---
hera:~# df -h
FilesystemSize  Used Avail Use% Mounted on
/dev/sdc1 4.7G  1.1G  3.7G  23% /
/dev/sdc3  28G  8.2G   20G  30% /var/lib/vz
---

Here is my "vzsplit" output:

---
hera:~# vzsplit -n 20
WARNING: Recommended minimal sizeof /vz partition is 20Gb!
WARNING: /vz partition do not have space required for 20 VPS
The maximum allowed value is 0
Default disc space values will be used

# Configuration file generated by vzsplit for 20 VPS
# on HN with total amount of physical mem 1009 Mb
# low memory 881 Mb, swap size 1906 Mb, Max treads 8000
# Resourse commit level 0:
# Free resource distribution. Any parameters may be increased
# Primary parameters
NUMPROC="400:400"
AVNUMPROC="112:112"
NUMTCPSOCK="400:400"
NUMOTHERSOCK="400:400"
VMGUARPAGES="155025:2147483647"

# Secondary parameters
KMEMSIZE="9241559:10165714"
TCPSNDBUF="1442119:3080519"
TCPRCVBUF="1442119:3080519"
OTHERSOCKBUF="721059:2359459"
DGRAMRCVBUF="721059:721059"
OOMGUARPAGES="155025:2147483647"
PRIVVMPAGES="155025:170527"

# Auxiliary parameters
LOCKEDPAGES="451:451"
SHMPAGES="15502:15502"
PHYSPAGES="0:2147483647"
NUMFILE="3584:3584"
NUMFLOCK="358:393"
NUMPTY="40:40"
NUMSIGINFO="1024:1024"
DCACHESIZE="2004256:2064384"
NUMIPTENT="100:100"
DISKSPACE="204799:225280"
DISKINODES="8:88000"
CPUUNITS="4954"
---

As you can see, it can't figure out that I'm using the "/var/lib/vz"
as a separate partition and it uses instead the default "diskspace"
attribute of 200MB.

My "/etc/vz/vz.conf" uses "/var/lib/vz" for everything instead of
"/vz".  Here's my "vz.conf" file:

---
hera:~# cat /etc/vz/vz.conf
## Global parameters
VIRTUOZZO=yes
LOCKDIR=/var/lib/vz/lock
DUMPDIR=/var/lib/vz/dump
VE0CPUUNITS=1000

## Logging parameters
LOGGING=yes
LOGFILE=/var/log/vzctl.log
LOG_LEVEL=0

## Disk quota parameters
DISK_QUOTA=yes
VZFASTBOOT=no

# The name of the device whose ip address will be used as source ip for VE.
# By default automatically assigned.
#VE_ROUTE_SRC_DEV="eth0"

## Template parameters
TEMPLATE=/var/lib/vz/template

## Defaults for VEs
VE_ROOT=/var/lib/vz/root/$VEID
VE_PRIVATE=/var/lib/vz/private/$VEID
CONFIGFILE="vps.basic"
DEF_OSTEMPLATE="debian-4.0-i386-generictemplate"

## Load vzwdog module
VZWDOG="no"

IPTABLES="ipt_REJECT ipt_LOG ipt_state ipt_tos ipt_limit ipt_multiport
iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length
iptable_nat ip_conntrack_ftp ip_nat_ftp"
---


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]