[Vserver] simple disk quota -thoroughly confused

2005-10-11 Thread Chuck

I have never had to use quotas before so this is a totally new concept for me 
to get my brain around.

before i continue, i assume that quotas will work on reiserfs ? every system 
we have is reiser.


There are several documents about them for vservers but this one looks like it 
may be the most current?

http://linux-vserver.org/Standard+non-shared+quota

so... with the below quote from the page, i could arbitrarily choose a 
vserverx block device?

---
Use vrsetup to tell the kernel what block device you want to handle quota for:

vrsetup /dev/vroot/0 /dev/evms/vs

or

vrsetup /dev/vroot/0 /dev/lvm/vserver0
---

so in my case since we use udev. i could issue 
vrsetup /dev/vroot1 /dev/sda4  ? 

what would i replace lvm or evm with? i am using neither.. i simply created 
one huge volume on sda4 which all the guests use.



setting up a default mtab in /etc/vservers/guest/apps/init/mtab looks pretty 
straight forward,  and copying hdv1 looks easy enough..

so there are a few questions out of all this... arbitrarily choose a vserverx 
block device? what to use in place of evm or lvm above?  then the instruction 
below.. 

-
- inside the guest run:
quotacheck -maugv
-

umm.. there is no quotacheck program or script inside the guest that i can 
find... what package is it included in?


basically all i want to do is assign each guest a limited portion of disk 
space. not user sensitive, just guest sensitive. right now each of them sees 
625gb free.. which is ok for the guest network servers i manage, but when we 
move customer colo servers to this, when users see this much space they will 
go crazy with it. 

an alternative would be to create a fixed size (maybe 20g or 40g) file mounted 
via loopback creating a virtual disk for each of  the colos as their 
'drive'..maybe that would be better? then they could never corrupt anything 
to do with our main disks...



-- 

Chuck


___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Unexpected behaviour with bind mounts

2005-10-11 Thread Herbert Poetzl
On Tue, Oct 11, 2005 at 02:38:20PM +0100, Jim Wight wrote:
 On Mon, 2005-10-10 at 20:09 +0200, Herbert Poetzl wrote:
  On Mon, Oct 10, 2005 at 02:28:01PM +0100, Jim Wight wrote:
   Implicit unmounts are not happening in my case. If I start and stop the
   vserver a number of times I end up with a pile of multiple identical
   mounts (according to df), but as I mentioned in my original message
   there are no corresponding entries in /proc/mounts (as there are when I
   perform the same mounts manually). The other odd thing is that df shows
   different numbers compared with the manual mount case: it shows the
   numbers for the filesystem that the mount point is in, rather than for
   the mounted filesystem.
  
  hmm .. maybe you want to use the -n option to
  mount, so that mount does not write stuff to
  the mtab file?
 
 That has certainly got rid of the messages and odd-looking df output,
 but is it a case of 'out of sight, out of mind'? The mounts do work - so
 far - but is it normal to have to use -n? I don't think I've ever seen
 it mentioned in all the searching I've done trying to find out how to do
 things.

really depends on _what_ you do and _what_ you want ...

you should keep in mind that most tools (mount, df, ...)
look at /etc/mtab and not the /proc/mounts ...

the logic behind is simple: you want to keep /etc/mtab
and /proc/mounts in sync ...

this results in the following rules:

 - if you mount something on the host, you don't want -n
 - if you mount something for the guest, you definitely
   want -n for the host's mtab
 - if you mount something inside the guest, you don't
   want -n for the guest's mtab 

basically it's standard namespace behaviour, not even 
vserver related (i.e. you can observe the same with
plain namespaces and chroot ...

HTH,
Herbert

 Jim
 
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] simple disk quota -thoroughly confused

2005-10-11 Thread Georges Toth
 before i continue, i assume that quotas will work on reiserfs ? every
 system we have is reiser.

IIRC is does


 There are several documents about them for vservers but this one looks like
 it may be the most current?
 http://linux-vserver.org/Standard+non-shared+quota

That's the most recent one, yes.


 so in my case since we use udev. i could issue
 vrsetup /dev/vroot1 /dev/sda4  ?

yes


 what would i replace lvm or evm with? i am using neither.. i simply created
 one huge volume on sda4 which all the guests use.

Then that doc is not for you
Think about using lvm, it makes life so much easier :-)


 so there are a few questions out of all this... arbitrarily choose a
 vserverx block device? what to use in place of evm or lvm above?  then the
 instruction below..

The doc is only for the case where you have a seperate partition or lv for 
every guest


 -
 - inside the guest run:
 quotacheck -maugv
 -
 umm.. there is no quotacheck program or script inside the guest that i can
 find... what package is it included in?

quota pkg


 an alternative would be to create a fixed size (maybe 20g or 40g) file
 mounted via loopback creating a virtual disk for each of  the colos as
 their 'drive'..maybe that would be better? then they could never corrupt
 anything to do with our main disks...

Why don't you use lvm ?
Better and faster than loopback

-- 

regards,
Georges Toth
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] x with nvidia module in vserver?

2005-10-11 Thread Ola Lundqvist
Hello

On Tue, Oct 04, 2005 at 02:08:23PM +0200, Torsten Becker wrote:
 Hello List,
 
 I try to run a complete workstation in a vserver including a x-server.
 This is no problem since I do not try to use the hardware acceleration 
 with the nvidia kernel module.
 I have set several capabilities for the vserver:
 
 CAP_CHOWN
 CAP_DAC_READ_SEARCH
 CAP_FOWNER
 CAP_FSETID
 CAP_KILL
 CAP_SETGID
 CAP_SETUID
 CAP_SETPCAP
 CAP_NET_BIND_SERVICE
 CAP_NET_BROADCAST
 CAP_NET_RAW
 CAP_SYS_MODULE
 CAP_SYS_RAWIO
 CAP_SYS_CHROOT
 CAP_SYS_PTRACE
 CAP_SYS_PACCT
 CAP_MKNOD
 CAP_LEASE
 
 I copied the device files from the host to the vserver. If I use the 
 nv driver for xfree all is well. But if I try to use nvidia xfree fails
 with the error unable to load kernel module. This is clear for me.
 Then I tried to figure out which device is used with the nv driver. I 
 tried to copa the device file /dev/nvidia0-4 from the host to 
 /dev/video0-4 in the vserver.
 But the 3d-accel does not function...
 
 Does anyone have a hint for me, how I can manage this? Or is it impossible?
 I use this configuration to deploy the workstations to a pool of pc's. 
 Therefor the security between host and vserver is not first goal.

What I did when I set up such a system (about 1.5 years ago) on a 2.4 kernel
I did just like you did. What I also did was to load the kernel module on the
host system (not in the vserver). It worked like a charm. However it was some
time ago and on 2.4 kernel.

Regards,

// Ola

 Greets, Torsten
 
 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
 

-- 
 - Ola Lundqvist ---
/  [EMAIL PROTECTED] Annebergsslingan 37  \
|  [EMAIL PROTECTED] 654 65 KARLSTAD  |
|  +46 (0)54-10 14 30  +46 (0)70-332 1551   |
|  http://www.opal.dhs.org UIN/icq: 4912500 |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] simple disk quota -thoroughly confused

2005-10-11 Thread Chuck
On Tuesday 11 October 2005 01:03 pm, Georges Toth wrote:
  before i continue, i assume that quotas will work on reiserfs ? every
  system we have is reiser.
 
 IIRC is does
 
 
  There are several documents about them for vservers but this one looks 
like
  it may be the most current?
  http://linux-vserver.org/Standard+non-shared+quota
 
 That's the most recent one, yes.
 
 
  so in my case since we use udev. i could issue
  vrsetup /dev/vroot1 /dev/sda4  ?
 
 yes
 
 
  what would i replace lvm or evm with? i am using neither.. i simply 
created
  one huge volume on sda4 which all the guests use.
 
 Then that doc is not for you
 Think about using lvm, it makes life so much easier :-)

hmm. ok... will research lvm but i doubt i will be able to use it at this 
time. too many guests are committed to this partition and ready to go live 
tomorrow. i suppose maybe i could just move them off to the main system drive 
which has enough room to support what is installed, go live with them there, 
then one night late, move them all back..  

thing is with lvm if each guest gets its own logical volume, then why use 
quotas since that volume can be partitioned as it will anyway no? i may be 
talking out my xxx here since i have not even read about lvm yet. never 
bothered with it.. think ill read up on it a bit before i say or ask anything 
more so i dont look like a total stooge :D


 
 
  so there are a few questions out of all this... arbitrarily choose a
  vserverx block device? what to use in place of evm or lvm above?  then the
  instruction below..
 
 The doc is only for the case where you have a seperate partition or lv for 
 every guest
 
 
  -
  - inside the guest run:
  quotacheck -maugv
  -
  umm.. there is no quotacheck program or script inside the guest that i can
  find... what package is it included in?
 
 quota pkg
 
 
  an alternative would be to create a fixed size (maybe 20g or 40g) file
  mounted via loopback creating a virtual disk for each of  the colos as
  their 'drive'..maybe that would be better? then they could never corrupt
  anything to do with our main disks...
 
 Why don't you use lvm ?
 Better and faster than loopback
 
 -- 
 
 regards,
 Georges Toth
 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
 

-- 

Chuck

...and the hordes of M$*ft users descended upon me in their anger,
and asked 'Why do you not get the viruses or the BlueScreensOfDeath
or insecure system troubles and slowness or pay through the nose 
for an OS as *we* do?!!', and I answered...'I use Linux'. 
The Book of John, chapter 1, page 1, and end of book


___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] simple disk quota -thoroughly confused

2005-10-11 Thread Georges Toth
 thing is with lvm if each guest gets its own logical volume, then why use
 quotas since that volume can be partitioned as it will anyway no?

exactly! :-)
no need to do some fancy magiclwm does it for you :-)
btw, LV's are resizeable...
per user quota may be easily implemented if you want/need to, with lvm.
on a shared partition this is currently not possible AFAIK


 i may be 
 talking out my xxx here since i have not even read about lvm yet. never
 bothered with it.. think ill read up on it a bit before i say or ask
 anything more so i dont look like a total stooge :D

Check this:
http://www.gentoo.org/doc/en/lvm2.xml

-- 

regards,
Georges Toth
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] simple disk quota -thoroughly confused

2005-10-11 Thread Chuck
On Tuesday 11 October 2005 04:50 pm, Georges Toth wrote:
  thing is with lvm if each guest gets its own logical volume, then why use
  quotas since that volume can be partitioned as it will anyway no?
 
 exactly! :-)
 no need to do some fancy magiclwm does it for you :-)
 btw, LV's are resizeable...
 per user quota may be easily implemented if you want/need to, with lvm.
 on a shared partition this is currently not possible AFAIK
 
 
  i may be 
  talking out my xxx here since i have not even read about lvm yet. never
  bothered with it.. think ill read up on it a bit before i say or ask
  anything more so i dont look like a total stooge :D
 
 Check this:
 http://www.gentoo.org/doc/en/lvm2.xml

Thanks!

 
 -- 
 
 regards,
 Georges Toth
 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
 

-- 

Chuck

...and the hordes of M$*ft users descended upon me in their anger,
and asked 'Why do you not get the viruses or the BlueScreensOfDeath
or insecure system troubles and slowness or pay through the nose 
for an OS as *we* do?!!', and I answered...'I use Linux'. 
The Book of John, chapter 1, page 1, and end of book


___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver