From: Paul Sladen (vserver_at_paul.sladen.org)
Date: Wed 06 Nov 2002 - 19:14:32 GMT
On Wed, 6 Nov 2002 rrolfe_at_genpac.com wrote:
> [root_at_vserver:test /]mknod /dev/hdv1 b 1 1
> mknod: `/dev/hdv1': Operation not permitted
You have to create it from the *host-server*, within the vserver's chroot
filesystem space--one of the capabilities that vservers drop is the ability
to create device-nodes.
host-server% cp -a /dev/sda42 /vservers/alpha/dev/hdv1
> So I created in the main server and placed it in the vserver's dev
> directory.. will that work?
Yes.
> ALSO to mention it in the /etc/mtab.. is that in the vserver? Or the
> main server?
You will have to mount it with `usrquota,grpquota' in the host-server.
[Re-]Mount it then copy the line from `host:/etc/mtab' into
`vserver:/etc/mtab' and change the mount-point (`/vservers/alpha/') to `/'.
You want a line (in `vserver:/etc/mtab') that looks like:
/dev/hdv1 / ext3 rw,usrquota,grpquota 0 0
HTH,
-Paul
-- Nottingham, GB