[Vserver] dhcpd service within a vserver and the newstyle config

2005-09-16 Thread Karsten Horsmann
Hello.

On my servers i used the Vserver-Patch 2.0 and i like it. So i took
the patch vs2.1.0-pre7 on my laptop with 2.6.13.1 Kernel.

Works find with Debian/Sarge and the Debian util-vserver from Sid.

Now i ve two problems. I want to use an dhcpd within the vserver
guest and i want diffrent networkdevice for the vps.

Question #1 Whats the right setup for an dhcpd inside a vps?

the dhcpd (or dnsmasq, provides dhcp/dns)
I need some capabilities. 

cat /etc/vservers/mobil/bcapabilities
CAP_NET_RAW
CAP_NET_BROADCAST

Okay, that works fine and i can start the dnsmasq (dhcp-Service).

The old Config Style use this Entries:
IPROOT=192.168.0.210
IPROOTBCAST=192.168.0.255 
IPROOTBCAST=255.255.255.255 

I try this 

cat /etc/vservers/mobil/interfaces/0/devath0
cat /etc/vservers/mobil/interfaces/0/ip 192.168.100.210
cat /etc/vservers/mobil/interfaces/0/prefix 24
cat /etc/vservers/mobil/interfaces/0/name   mo0

cat /etc/vservers/mobil/interfaces/1/devath0
cat /etc/vservers/mobil/interfaces/1/ip 192.168.100.255
cat /etc/vservers/mobil/interfaces/1/prefix 24
cat /etc/vservers/mobil/interfaces/1/name   mo1

cat /etc/vservers/mobil/interfaces/2/devath0
cat /etc/vservers/mobil/interfaces/2/ip 255.255.255.255
cat /etc/vservers/mobil/interfaces/2/prefix 32
cat /etc/vservers/mobil/interfaces/2/name   mo2

Maybe the ip/netmask setup is the Problem?

Question #2 How can i switch between 2 nics?

This mobile Vserver guest shouldt provide some services
on my ath0 (wireless network) or on my eth0 (wired) device.

The Host should have network access too.

Whats the right solution for this?

Put the VPS on an dummy0 and add this to an bridge with the
connected device? Or something else?


Thanks for any hints :-).


-- 
MfG
Karsten Horsmann


pgpom1DL08tJS.pgp
Description: PGP signature
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] I think I goofed [solved]

2005-09-16 Thread Chuck
On Thursday 15 September 2005 11:44 pm, Chuck wrote:

The error below has been fixed. 

I make my clones using

cp -la template/* new-guest 

to create links. Then I remove etc root home and var from the guest and copy 
real files into it from the template rather than have links in those.

The problem was that I accidently ran 

setattr --iunlink 

on a clone etc directory instead of removing the directoy to copy real files 
in place. This changed the template /etc which caused the error. Normally I 
would not have even found it since I would not run a template, but on this 
test bed the template is being used.

To cure the problem I ran setattr --~iunlink on the template /etc directory 
and files.

> 
> i just copied my template into 3 other vservers using hard link cloning 
along 
> with copying real files into the etc and var. they run ok however I now get 
> an error on start I never got before. I hope I didn't goof using the setattr 
> command. error listed next
> 
>  davin etc # /etc/init.d/vservers start
>   * Starting all vservers ...
>  chroot-shopen("/etc/mtab"): Permission denied
>  secure-mount: open(): Permission denied
>  Failed to update mtab-file
>  secure-mount: open(): Permission denied
>  Failed to update mtab-file
>  secure-mount: open(): Permission denied
>  Failed to update mtab-file
> 
> i just tried setting the attrs mount option on my host / to see if that 
cures 
> it. didn't have this until I made the 3 other vservers.
> 
> finished reboot and that didn't cure anything :(
> 
> I will say this though in converting my 3 vservers into hard linked 
clones 
> all 4 servers including the template now take up 1/3 the amount of space 
they 
> did before this :)
> 
> 
> -- 
> 
> 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
> 

-- 

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] dhcpd service within a vserver and the newstyle config

2005-09-16 Thread Herbert Poetzl
On Fri, Sep 16, 2005 at 11:00:26AM +0200, Karsten Horsmann wrote:
> Hello.
> 
> On my servers i used the Vserver-Patch 2.0 and i like it. So i took
> the patch vs2.1.0-pre7 on my laptop with 2.6.13.1 Kernel.
> 
> Works find with Debian/Sarge and the Debian util-vserver from Sid.
> 
> Now i ve two problems. I want to use an dhcpd within the vserver
> guest and i want diffrent networkdevice for the vps.
> 
> Question #1 Whats the right setup for an dhcpd inside a vps?
> 
> the dhcpd (or dnsmasq, provides dhcp/dns)
> I need some capabilities. 
> 
> cat /etc/vservers/mobil/bcapabilities
> CAP_NET_RAW
> CAP_NET_BROADCAST

> Okay, that works fine and i can start the dnsmasq (dhcp-Service).
> 
> The old Config Style use this Entries:
> IPROOT=192.168.0.210
> IPROOTBCAST=192.168.0.255 
> IPROOTBCAST=255.255.255.255 
> 
> I try this 
> 
> cat /etc/vservers/mobil/interfaces/0/dev  ath0
> cat /etc/vservers/mobil/interfaces/0/ip   192.168.100.210
> cat /etc/vservers/mobil/interfaces/0/prefix 24
> cat /etc/vservers/mobil/interfaces/0/name mo0
> 
> cat /etc/vservers/mobil/interfaces/1/devath0
> cat /etc/vservers/mobil/interfaces/1/ip 192.168.100.255
> cat /etc/vservers/mobil/interfaces/1/prefix 24
> cat /etc/vservers/mobil/interfaces/1/name   mo1
> 
> cat /etc/vservers/mobil/interfaces/2/devath0
> cat /etc/vservers/mobil/interfaces/2/ip 255.255.255.255
> cat /etc/vservers/mobil/interfaces/2/prefix 32
> cat /etc/vservers/mobil/interfaces/2/name   mo2

haven't tried this, but I'd specify the broadcasts
as 'existing' IPs and not as new 'assigned' IPs

so you probably want to make them:

 1/nodev   1/ip=192.168.100.255   1/prefix=24
 2/nodev   2/ip=255.255.255.255   1/prefix=32

> Maybe the ip/netmask setup is the Problem?

for me, the question is: what is the problem? :)


> Question #2 How can i switch between 2 nics?
> 
> This mobile Vserver guest shouldt provide some services
> on my ath0 (wireless network) or on my eth0 (wired) device.
> 
> The Host should have network access too.
> 
> Whats the right solution for this?
> 
> Put the VPS on an dummy0 and add this to an bridge with the
> connected device? Or something else?

depends on the networks you use ...

if you have for example 192.168.100.x on ath0
and 192.168.200.x on eth0, then you probably
want a setup for the following:

mo0=ath0:192.168.100.210/24 
mo1=eth0:192.168.200.210/24
192.168.100.255/24
192.168.200.255/24
255.255.255.255/32

> Thanks for any hints :-).

HTH,
Herbert

> -- 
> MfG
> Karsten Horsmann



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

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


Re: [Vserver] I think I goofed [solved]

2005-09-16 Thread Herbert Poetzl
On Fri, Sep 16, 2005 at 10:37:12AM -0400, Chuck wrote:
> On Thursday 15 September 2005 11:44 pm, Chuck wrote:
> 
> The error below has been fixed. 
> 
> I make my clones using
> 
> cp -la template/* new-guest 
> 
> to create links. Then I remove etc root home and var from the guest
> and copy real files into it from the template rather than have links
> in those.
> 
> The problem was that I accidently ran 
> 
> setattr --iunlink 
> 
> on a clone etc directory instead of removing the directoy to copy
> real files in place. This changed the template /etc which caused the
> error. Normally I would not have even found it since I would not run a
> template, but on this test bed the template is being used.
> 
> To cure the problem I ran setattr --~iunlink on the template /etc
> directory and files.

note: the --iunlink sets the 'immutable' flag as well as
the 'immutable unlink' flag, basically making those files
immutable against changes, which not even the CoW link
breaking will break, as they are not hardlinked anymore

the --~iunlink removes both flags and makes them normal
files again ...

thanks for the followup!

best,
Herbert

> > i just copied my template into 3 other vservers using hard link 
> > cloning along with copying real files into the etc and var. they
> > run ok however I now get an error on start I never got before. I
> > hope I didn't goof using the setattr
> > command. error listed next
> > 
> >  davin etc # /etc/init.d/vservers start
> >   * Starting all vservers ...
> >  chroot-shopen("/etc/mtab"): Permission denied
> >  secure-mount: open(): Permission denied
> >  Failed to update mtab-file
> >  secure-mount: open(): Permission denied
> >  Failed to update mtab-file
> >  secure-mount: open(): Permission denied
> >  Failed to update mtab-file
> > 
> > i just tried setting the attrs mount option on my host / to see if
> > ithat cures t. didn't have this until I made the 3 other vservers.
> >
> > finished reboot and that didn't cure anything :(
> >
> > I will say this though in converting my 3 vservers into hard
> > linked clones all 4 servers including the template now take up 1/3
> > the amount of space they did before this :)
> > 
> > 
> > -- 
> > 
> > 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
> > 
> 
> -- 
> 
> 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
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] I think I goofed [solved]

2005-09-16 Thread Chuck
On Friday 16 September 2005 10:52 am, Herbert Poetzl wrote:

> note: the --iunlink sets the 'immutable' flag as well as
> the 'immutable unlink' flag, basically making those files
> immutable against changes, which not even the CoW link
> breaking will break, as they are not hardlinked anymore
> 
> the --~iunlink removes both flags and makes them normal
> files again ...

ok now i am totally confused. i thought running --iunlink made the links 
breakable/copyable under the 2.1 setups?

so then if --iunlink creates permanent links to files that cannot be touched, 
what do i run to take advantage of the 2.1 CoW ?


> 
> thanks for the followup!
> 
> best,
> Herbert
> 
> > > i just copied my template into 3 other vservers using hard link 
> > > cloning along with copying real files into the etc and var. they
> > > run ok however I now get an error on start I never got before. I
> > > hope I didn't goof using the setattr
> > > command. error listed next
> > > 
> > >  davin etc # /etc/init.d/vservers start
> > >   * Starting all vservers ...
> > >  chroot-shopen("/etc/mtab"): Permission denied
> > >  secure-mount: open(): Permission denied
> > >  Failed to update mtab-file
> > >  secure-mount: open(): Permission denied
> > >  Failed to update mtab-file
> > >  secure-mount: open(): Permission denied
> > >  Failed to update mtab-file
> > > 
> > > i just tried setting the attrs mount option on my host / to see if
> > > ithat cures t. didn't have this until I made the 3 other vservers.
> > >
> > > finished reboot and that didn't cure anything :(
> > >
> > > I will say this though in converting my 3 vservers into hard
> > > linked clones all 4 servers including the template now take up 1/3
> > > the amount of space they did before this :)
> > > 
> > > 
> > > -- 
> > > 
> > > 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
> > > 
> > 
> > -- 
> > 
> > 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
> 

-- 

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] I think I goofed [solved]

2005-09-16 Thread Herbert Poetzl
On Fri, Sep 16, 2005 at 10:56:49AM -0400, Chuck wrote:
> On Friday 16 September 2005 10:52 am, Herbert Poetzl wrote:
> 
> > note: the --iunlink sets the 'immutable' flag as well as
> > the 'immutable unlink' flag, basically making those files
> > immutable against changes, which not even the CoW link
> > breaking will break, as they are not hardlinked anymore
> > 
> > the --~iunlink removes both flags and makes them normal
> > files again ...
> 
> ok now i am totally confused. i thought running --iunlink made the
> links breakable/copyable under the 2.1 setups?

yes, it does ...

> so then if --iunlink creates permanent links to files that cannot be
> touched, what do i run to take advantage of the 2.1 CoW ?

not _links_ that is the important detail here ...

touch /tmp/x
setattr --iunlink /tmp/x

and you get an immutable file, you can remove, 
but not alter ...

touch /tmp/a
ln /tmp/a /tmp/b
setattr --iunlink /tmp/a

and you have two files (a,b) which are unified
(i.e. a hardlink to the same inode) which will
be CoW breakable on devel versions (2.1.x)

hope that clarifies,
Herbert

> > thanks for the followup!
> > 
> > best,
> > Herbert
> > 
> > > > i just copied my template into 3 other vservers using hard link 
> > > > cloning along with copying real files into the etc and var. they
> > > > run ok however I now get an error on start I never got before. I
> > > > hope I didn't goof using the setattr
> > > > command. error listed next
> > > > 
> > > >  davin etc # /etc/init.d/vservers start
> > > >   * Starting all vservers ...
> > > >  chroot-shopen("/etc/mtab"): Permission denied
> > > >  secure-mount: open(): Permission denied
> > > >  Failed to update mtab-file
> > > >  secure-mount: open(): Permission denied
> > > >  Failed to update mtab-file
> > > >  secure-mount: open(): Permission denied
> > > >  Failed to update mtab-file
> > > > 
> > > > i just tried setting the attrs mount option on my host / to see if
> > > > ithat cures t. didn't have this until I made the 3 other vservers.
> > > >
> > > > finished reboot and that didn't cure anything :(
> > > >
> > > > I will say this though in converting my 3 vservers into hard
> > > > linked clones all 4 servers including the template now take up 1/3
> > > > the amount of space they did before this :)
> > > > 
> > > > 
> > > > -- 
> > > > 
> > > > 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
> > > > 
> > > 
> > > -- 
> > > 
> > > 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
> > 
> 
> -- 
> 
> 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
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] I think I goofed [solved]

2005-09-16 Thread Chuck
On Friday 16 September 2005 11:08 am, Herbert Poetzl wrote:
> On Fri, Sep 16, 2005 at 10:56:49AM -0400, Chuck wrote:
> > On Friday 16 September 2005 10:52 am, Herbert Poetzl wrote:
> > 
> > > note: the --iunlink sets the 'immutable' flag as well as
> > > the 'immutable unlink' flag, basically making those files
> > > immutable against changes, which not even the CoW link
> > > breaking will break, as they are not hardlinked anymore
> > > 
> > > the --~iunlink removes both flags and makes them normal
> > > files again ...
> > 
> > ok now i am totally confused. i thought running --iunlink made the
> > links breakable/copyable under the 2.1 setups?
> 
> yes, it does ...
> 
> > so then if --iunlink creates permanent links to files that cannot be
> > touched, what do i run to take advantage of the 2.1 CoW ?
> 
> not _links_ that is the important detail here ...
> 
> touch /tmp/x
> setattr --iunlink /tmp/x
> 
> and you get an immutable file, you can remove, 
> but not alter ...
> 
> touch /tmp/a
> ln /tmp/a /tmp/b
> setattr --iunlink /tmp/a
> 
> and you have two files (a,b) which are unified
> (i.e. a hardlink to the same inode) which will
> be CoW breakable on devel versions (2.1.x)
> 

oh my. i think i did it all wrong then. if i was supposed to run the setattr 
cmd on the files themselves.. i ran it on the links in the clones.. according 
to above i should have run it on the template files.


> hope that clarifies,
> Herbert
> 
> > > thanks for the followup!
> > > 
> > > best,
> > > Herbert
> > > 
> > > > > i just copied my template into 3 other vservers using hard link 
> > > > > cloning along with copying real files into the etc and var. they
> > > > > run ok however I now get an error on start I never got before. I
> > > > > hope I didn't goof using the setattr
> > > > > command. error listed next
> > > > > 
> > > > >  davin etc # /etc/init.d/vservers start
> > > > >   * Starting all vservers ...
> > > > >  chroot-shopen("/etc/mtab"): Permission denied
> > > > >  secure-mount: open(): Permission denied
> > > > >  Failed to update mtab-file
> > > > >  secure-mount: open(): Permission denied
> > > > >  Failed to update mtab-file
> > > > >  secure-mount: open(): Permission denied
> > > > >  Failed to update mtab-file
> > > > > 
> > > > > i just tried setting the attrs mount option on my host / to see if
> > > > > ithat cures t. didn't have this until I made the 3 other vservers.
> > > > >
> > > > > finished reboot and that didn't cure anything :(
> > > > >
> > > > > I will say this though in converting my 3 vservers into hard
> > > > > linked clones all 4 servers including the template now take up 1/3
> > > > > the amount of space they did before this :)
> > > > > 
> > > > > 
> > > > > -- 
> > > > > 
> > > > > 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
> > > > > 
> > > > 
> > > > -- 
> > > > 
> > > > 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
> > > 
> > 
> > -- 
> > 
> > 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
> 

-- 

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.

Re: [Vserver] I think I goofed [solved]

2005-09-16 Thread Herbert Poetzl
On Fri, Sep 16, 2005 at 11:12:24AM -0400, Chuck wrote:
> On Friday 16 September 2005 11:08 am, Herbert Poetzl wrote:
> > On Fri, Sep 16, 2005 at 10:56:49AM -0400, Chuck wrote:
> > > On Friday 16 September 2005 10:52 am, Herbert Poetzl wrote:
> > > 
> > > > note: the --iunlink sets the 'immutable' flag as well as
> > > > the 'immutable unlink' flag, basically making those files
> > > > immutable against changes, which not even the CoW link
> > > > breaking will break, as they are not hardlinked anymore
> > > > 
> > > > the --~iunlink removes both flags and makes them normal
> > > > files again ...
> > > 
> > > ok now i am totally confused. i thought running --iunlink made the
> > > links breakable/copyable under the 2.1 setups?
> > 
> > yes, it does ...
> > 
> > > so then if --iunlink creates permanent links to files that cannot
> > > be touched, what do i run to take advantage of the 2.1 CoW ?
> > 
> > not _links_ that is the important detail here ...
> > 
> > touch /tmp/x
> > setattr --iunlink /tmp/x
> > 
> > and you get an immutable file, you can remove, 
> > but not alter ...
> > 
> > touch /tmp/a
> > ln /tmp/a /tmp/b
> > setattr --iunlink /tmp/a
> > 
> > and you have two files (a,b) which are unified
> > (i.e. a hardlink to the same inode) which will
> > be CoW breakable on devel versions (2.1.x)
> > 
> 
> oh my. i think i did it all wrong then. if i was supposed to run the
> setattr cmd on the files themselves.. i ran it on the links in the
> clones.. according to above i should have run it on the template
> files.

both 'file' and 'link' are identical and indistinguishable
(this is a property of hard links) so the choice is yours
(i.e. both will have the flags set afterwards :)

HTH,
Herbert

> > hope that clarifies,
> > Herbert
> > 
> > > > thanks for the followup!
> > > > 
> > > > best,
> > > > Herbert
> > > > 
> > > > > > i just copied my template into 3 other vservers using hard link 
> > > > > > cloning along with copying real files into the etc and var. they
> > > > > > run ok however I now get an error on start I never got before. I
> > > > > > hope I didn't goof using the setattr
> > > > > > command. error listed next
> > > > > > 
> > > > > >  davin etc # /etc/init.d/vservers start
> > > > > >   * Starting all vservers ...
> > > > > >  chroot-shopen("/etc/mtab"): Permission denied
> > > > > >  secure-mount: open(): Permission denied
> > > > > >  Failed to update mtab-file
> > > > > >  secure-mount: open(): Permission denied
> > > > > >  Failed to update mtab-file
> > > > > >  secure-mount: open(): Permission denied
> > > > > >  Failed to update mtab-file
> > > > > > 
> > > > > > i just tried setting the attrs mount option on my host / to see if
> > > > > > ithat cures t. didn't have this until I made the 3 other vservers.
> > > > > >
> > > > > > finished reboot and that didn't cure anything :(
> > > > > >
> > > > > > I will say this though in converting my 3 vservers into hard
> > > > > > linked clones all 4 servers including the template now take up 1/3
> > > > > > the amount of space they did before this :)
> > > > > > 
> > > > > > 
> > > > > > -- 
> > > > > > 
> > > > > > 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
> > > > > > 
> > > > > 
> > > > > -- 
> > > > > 
> > > > > 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
> > > > 
> > > 
> > > -- 
> > > 
> > > 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

Re: [Vserver] I think I goofed [solved]

2005-09-16 Thread Chuck
On Friday 16 September 2005 11:16 am, Herbert Poetzl wrote:
> On Fri, Sep 16, 2005 at 11:12:24AM -0400, Chuck wrote:
> > On Friday 16 September 2005 11:08 am, Herbert Poetzl wrote:
> > > On Fri, Sep 16, 2005 at 10:56:49AM -0400, Chuck wrote:
> > > > On Friday 16 September 2005 10:52 am, Herbert Poetzl wrote:
> > > > 
> > > > > note: the --iunlink sets the 'immutable' flag as well as
> > > > > the 'immutable unlink' flag, basically making those files
> > > > > immutable against changes, which not even the CoW link
> > > > > breaking will break, as they are not hardlinked anymore
> > > > > 
> > > > > the --~iunlink removes both flags and makes them normal
> > > > > files again ...
> > > > 
> > > > ok now i am totally confused. i thought running --iunlink made the
> > > > links breakable/copyable under the 2.1 setups?
> > > 
> > > yes, it does ...
> > > 
> > > > so then if --iunlink creates permanent links to files that cannot
> > > > be touched, what do i run to take advantage of the 2.1 CoW ?
> > > 
> > > not _links_ that is the important detail here ...
> > > 
> > > touch /tmp/x
> > > setattr --iunlink /tmp/x
> > > 
> > > and you get an immutable file, you can remove, 
> > > but not alter ...
> > > 
> > > touch /tmp/a
> > > ln /tmp/a /tmp/b
> > > setattr --iunlink /tmp/a
> > > 
> > > and you have two files (a,b) which are unified
> > > (i.e. a hardlink to the same inode) which will
> > > be CoW breakable on devel versions (2.1.x)
> > > 
> > 
> > oh my. i think i did it all wrong then. if i was supposed to run the
> > setattr cmd on the files themselves.. i ran it on the links in the
> > clones.. according to above i should have run it on the template
> > files.
> 
> both 'file' and 'link' are identical and indistinguishable
> (this is a property of hard links) so the choice is yours
> (i.e. both will have the flags set afterwards :)
> 

whew .. ok 


> HTH,
> Herbert
> 
> > > hope that clarifies,
> > > Herbert
> > > 
> > > > > thanks for the followup!
> > > > > 
> > > > > best,
> > > > > Herbert
> > > > > 
> > > > > > > i just copied my template into 3 other vservers using hard link   
> > > > > > >   
> > > > > > > cloning along with copying real files into the etc and var. they  
> > > > > > >   
> > > > > > > run ok however I now get an error on start I never got before. I  
> > > > > > >   
> > > > > > > hope I didn't goof using the setattr  
> > > > > > >   
> > > > > > > command. error listed next
> > > > > > > 
> > > > > > >  davin etc # /etc/init.d/vservers start
> > > > > > >   * Starting all vservers ...
> > > > > > >  chroot-shopen("/etc/mtab"): Permission denied
> > > > > > >  secure-mount: open(): Permission denied
> > > > > > >  Failed to update mtab-file
> > > > > > >  secure-mount: open(): Permission denied
> > > > > > >  Failed to update mtab-file
> > > > > > >  secure-mount: open(): Permission denied
> > > > > > >  Failed to update mtab-file
> > > > > > > 
> > > > > > > i just tried setting the attrs mount option on my host / to see 
if
> > > > > > > ithat cures t. didn't have this until I made the 3 other 
vservers.
> > > > > > >
> > > > > > > finished reboot and that didn't cure anything :(
> > > > > > >
> > > > > > > I will say this though in converting my 3 vservers into hard
> > > > > > > linked clones all 4 servers including the template now take up 
1/3
> > > > > > > the amount of space they did before this :)
> > > > > > > 
> > > > > > > 
> > > > > > > -- 
> > > > > > > 
> > > > > > > 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
> > > > > > > 
> > > > > > 
> > > > > > -- 
> > > > > > 
> > > > > > 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
> > > > > 
> > > > 
> > > > -- 
> > > > 
> > > > Chuck
> > > > 
> > > > "...and the hordes of M$*ft users descended upon me in their anger,
> > > > an

[Vserver] this doc needs checking for accuracy

2005-09-16 Thread Chuck
and possible additions

proper editing will be done after the information within is accurate.

-

set up host as per gentoo how-to
and create template as it specifies.
add desired common services.
start and test the template.

create new-guest using skeleton method.
cd into it and remove all entries

then copy with
cp -la gentoo/* new-guest
to create hard links to the gentoo template.

cd into new-guest and 
remove completely, etc, root, home and var
i have setups for most internet services on 
the gentoo template and a regular user defined
therefore home gets moved too. (should /usr/portage
be moved and later recopied as 'real' files?)

if i want to remove the ability to run certain 
services in this vserver, now is the time to
remove the links to them so they are no longer a part
of this guest.

this is only necessary when allowing others
shell access. most people would create a very
minimal template server so this normally would not 
be necessary, but with my setups, i want all 
services available to every server even if i do 
not run them.

then run setattr --iunlink * ONLY in the following
directories inside new-guest
bin
sbin
lib
usr/bin
usr/sbin
usr/lib
(should there be others?)

setattr --~iunlink undoes any damage done to files that should not have that 
attribute.

then cp -Rp /vservers/gentoo/etc  and var and root and home
this will give real files to edit and use in the new-guest  config.

configure new-guest as necessary
start new-guest and enter to verify its operation.

---



-- 

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] this doc needs checking for accuracy

2005-09-16 Thread Herbert Poetzl
On Fri, Sep 16, 2005 at 11:34:44AM -0400, Chuck wrote:
> and possible additions
> 
> proper editing will be done after the information within is accurate.
> 
> -
> 
-- gentoo specific
> set up host as per gentoo how-to
> and create template as it specifies.

-- generic ... after creating a 'template' guest
> add desired common services.
> start and test the template.

> create new-guest using skeleton method.
will only create a skeleton not a full featured guest :)

> cd into it and remove all entries
not required, there are none, except for /etc /proc
both empty dirs, and /dev which contains proper devices
for a new guest/template ...

so actually you'd want to _save_ those /dev entries
somewhere, to _replace_ the installed/created ones
with this limited (known clean) set ...

> then copy with
-- gentoo specific
> cp -la gentoo/* new-guest
> to create hard links to the gentoo template.

will not copy the .[a-zA-Z]* files you might want
to copy too ...

> cd into new-guest and 
> remove completely, etc, root, home and var
> i have setups for most internet services on 
> the gentoo template and a regular user defined
-- gentoo specific
> therefore home gets moved too. (should /usr/portage
> be moved and later recopied as 'real' files?)
> 
> if i want to remove the ability to run certain 
> services in this vserver, now is the time to
> remove the links to them so they are no longer a part
> of this guest.
> 
> this is only necessary when allowing others
> shell access. most people would create a very
> minimal template server so this normally would not 
> be necessary, but with my setups, i want all 
> services available to every server even if i do 
> not run them.
> 
> then run setattr --iunlink * ONLY in the following
> directories inside new-guest
> bin
> sbin
> lib
> usr/bin
> usr/sbin
> usr/lib
> (should there be others?)
> 
> setattr --~iunlink undoes any damage done to files that should not
> have that attribute.

be careful, unifying most of the files will work
on stable (vs2.0.x and vs1.2.x) too, but this
actually assumes CoW link breaking, which is only
present in 2.1.x (and then only if enabled)

> then cp -Rp /vservers/gentoo/etc  and var and root and home
> this will give real files to edit and use in the new-guest  config.
> 
> configure new-guest as necessary
> start new-guest and enter to verify its operation.

best,
Herbert

> ---
> 
> 
> 
> -- 
> 
> 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
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] this doc needs checking for accuracy

2005-09-16 Thread Chuck
On Friday 16 September 2005 12:59 pm, Herbert Poetzl wrote:

Thanks for the comments. will make the changes.. 


on a further note since I see there is a meeting starting, after doing things 
the way Aiken does them, using the following:


 cp -al master/* avon
 find avon -type f -exec setattr --iunlink {} ';'

i then went into the new guest and into the etc/conf.d directory to edit the 
hostname file. when I tried to save it I got 

Error saving file: Too many links

methinks I screwed things up over time. I have 4 clones linked to the template





> On Fri, Sep 16, 2005 at 11:34:44AM -0400, Chuck wrote:
> > and possible additions
> > 
> > proper editing will be done after the information within is accurate.
> > 
> > -
> > 
> -- gentoo specific
> > set up host as per gentoo how-to
> > and create template as it specifies.
> 
> -- generic ... after creating a 'template' guest
> > add desired common services.
> > start and test the template.
> 
> > create new-guest using skeleton method.
> will only create a skeleton not a full featured guest :)
> 
> > cd into it and remove all entries
> not required, there are none, except for /etc /proc
> both empty dirs, and /dev which contains proper devices
> for a new guest/template ...
> 
> so actually you'd want to _save_ those /dev entries
> somewhere, to _replace_ the installed/created ones
> with this limited (known clean) set ...
> 
> > then copy with
> -- gentoo specific
> > cp -la gentoo/* new-guest
> > to create hard links to the gentoo template.
> 
> will not copy the .[a-zA-Z]* files you might want
> to copy too ...
> 
> > cd into new-guest and 
> > remove completely, etc, root, home and var
> > i have setups for most internet services on 
> > the gentoo template and a regular user defined
> -- gentoo specific
> > therefore home gets moved too. (should /usr/portage
> > be moved and later recopied as 'real' files?)
> > 
> > if i want to remove the ability to run certain 
> > services in this vserver, now is the time to
> > remove the links to them so they are no longer a part
> > of this guest.
> > 
> > this is only necessary when allowing others
> > shell access. most people would create a very
> > minimal template server so this normally would not 
> > be necessary, but with my setups, i want all 
> > services available to every server even if i do 
> > not run them.
> > 
> > then run setattr --iunlink * ONLY in the following
> > directories inside new-guest
> > bin
> > sbin
> > lib
> > usr/bin
> > usr/sbin
> > usr/lib
> > (should there be others?)
> > 
> > setattr --~iunlink undoes any damage done to files that should not
> > have that attribute.
> 
> be careful, unifying most of the files will work
> on stable (vs2.0.x and vs1.2.x) too, but this
> actually assumes CoW link breaking, which is only
> present in 2.1.x (and then only if enabled)
> 
> > then cp -Rp /vservers/gentoo/etc  and var and root and home
> > this will give real files to edit and use in the new-guest  config.
> > 
> > configure new-guest as necessary
> > start new-guest and enter to verify its operation.
> 
> best,
> Herbert
> 
> > ---
> > 
> > 
> > 
> > -- 
> > 
> > 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
> 

-- 

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] this doc needs checking for accuracy

2005-09-16 Thread Chuck
On Friday 16 September 2005 02:37 pm, Chuck wrote:


update on this.. it seems i can rename the link or even delete it from the 
shell, but nano cannot save to it. i can copy it to a temp name, delete it 
and rename the temp and it becomes a regular file locally.. 

seems only when nano tries to edit directly does it give that error.


> On Friday 16 September 2005 12:59 pm, Herbert Poetzl wrote:
> 
> Thanks for the comments. will make the changes.. 
> 
> 
> on a further note since I see there is a meeting starting, after doing 
things 
> the way Aiken does them, using the following:
> 
> 
>  cp -al master/* avon
>  find avon -type f -exec setattr --iunlink {} ';'
> 
> i then went into the new guest and into the etc/conf.d directory to edit the 
> hostname file. when I tried to save it I got 
> 
> Error saving file: Too many links
> 
> methinks I screwed things up over time. I have 4 clones linked to the 
template
> 
> 
> 
> 
> 
> > On Fri, Sep 16, 2005 at 11:34:44AM -0400, Chuck wrote:
> > > and possible additions
> > > 
> > > proper editing will be done after the information within is accurate.
> > > 
> > > -
> > > 
> > -- gentoo specific
> > > set up host as per gentoo how-to
> > > and create template as it specifies.
> > 
> > -- generic ... after creating a 'template' guest
> > > add desired common services.
> > > start and test the template.
> > 
> > > create new-guest using skeleton method.
> > will only create a skeleton not a full featured guest :)
> > 
> > > cd into it and remove all entries
> > not required, there are none, except for /etc /proc
> > both empty dirs, and /dev which contains proper devices
> > for a new guest/template ...
> > 
> > so actually you'd want to _save_ those /dev entries
> > somewhere, to _replace_ the installed/created ones
> > with this limited (known clean) set ...
> > 
> > > then copy with
> > -- gentoo specific
> > > cp -la gentoo/* new-guest
> > > to create hard links to the gentoo template.
> > 
> > will not copy the .[a-zA-Z]* files you might want
> > to copy too ...
> > 
> > > cd into new-guest and 
> > > remove completely, etc, root, home and var
> > > i have setups for most internet services on 
> > > the gentoo template and a regular user defined
> > -- gentoo specific
> > > therefore home gets moved too. (should /usr/portage
> > > be moved and later recopied as 'real' files?)
> > > 
> > > if i want to remove the ability to run certain 
> > > services in this vserver, now is the time to
> > > remove the links to them so they are no longer a part
> > > of this guest.
> > > 
> > > this is only necessary when allowing others
> > > shell access. most people would create a very
> > > minimal template server so this normally would not 
> > > be necessary, but with my setups, i want all 
> > > services available to every server even if i do 
> > > not run them.
> > > 
> > > then run setattr --iunlink * ONLY in the following
> > > directories inside new-guest
> > > bin
> > > sbin
> > > lib
> > > usr/bin
> > > usr/sbin
> > > usr/lib
> > > (should there be others?)
> > > 
> > > setattr --~iunlink undoes any damage done to files that should not
> > > have that attribute.
> > 
> > be careful, unifying most of the files will work
> > on stable (vs2.0.x and vs1.2.x) too, but this
> > actually assumes CoW link breaking, which is only
> > present in 2.1.x (and then only if enabled)
> > 
> > > then cp -Rp /vservers/gentoo/etc  and var and root and home
> > > this will give real files to edit and use in the new-guest  config.
> > > 
> > > configure new-guest as necessary
> > > start new-guest and enter to verify its operation.
> > 
> > best,
> > Herbert
> > 
> > > ---
> > > 
> > > 
> > > 
> > > -- 
> > > 
> > > 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
> > 
> 
> -- 
> 
> 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
> 

-- 

Chuck

"...and the hordes of M$*ft users descended upon me in their anger,
and asked 'Why do you not

Re: [Vserver] this doc needs checking for accuracy

2005-09-16 Thread Chuck
On Friday 16 September 2005 02:48 pm, Chuck wrote:


one more update... i just tried to start the guest and got this

davin vservers # vserver vsdavin5 start
chroot-shopen("/etc/mtab"): Too many links
secure-mount: open(): Too many links
Failed to update mtab-file
secure-mount: open(): Too many links
Failed to update mtab-file
secure-mount: open(): Too many links
Failed to update mtab-file

all other guests are off only tried to start this one.

i would say i still have to remove etc var home and root then copy them 
manually to get regular files in there




> On Friday 16 September 2005 02:37 pm, Chuck wrote:
> 
> 
> update on this.. it seems i can rename the link or even delete it from the 
> shell, but nano cannot save to it. i can copy it to a temp name, delete it 
> and rename the temp and it becomes a regular file locally.. 
> 
> seems only when nano tries to edit directly does it give that error.
> 
> 
> > On Friday 16 September 2005 12:59 pm, Herbert Poetzl wrote:
> > 
> > Thanks for the comments. will make the changes.. 
> > 
> > 
> > on a further note since I see there is a meeting starting, after doing 
> things 
> > the way Aiken does them, using the following:
> > 
> > 
> >  cp -al master/* avon
> >  find avon -type f -exec setattr --iunlink {} ';'
> > 
> > i then went into the new guest and into the etc/conf.d directory to edit 
the 
> > hostname file. when I tried to save it I got 
> > 
> > Error saving file: Too many links
> > 
> > methinks I screwed things up over time. I have 4 clones linked to the 
> template
> > 
> > 
> > 
> > 
> > 
> > > On Fri, Sep 16, 2005 at 11:34:44AM -0400, Chuck wrote:
> > > > and possible additions
> > > > 
> > > > proper editing will be done after the information within is accurate.
> > > > 
> > > > -
> > > > 
> > > -- gentoo specific
> > > > set up host as per gentoo how-to
> > > > and create template as it specifies.
> > > 
> > > -- generic ... after creating a 'template' guest
> > > > add desired common services.
> > > > start and test the template.
> > > 
> > > > create new-guest using skeleton method.
> > > will only create a skeleton not a full featured guest :)
> > > 
> > > > cd into it and remove all entries
> > > not required, there are none, except for /etc /proc
> > > both empty dirs, and /dev which contains proper devices
> > > for a new guest/template ...
> > > 
> > > so actually you'd want to _save_ those /dev entries
> > > somewhere, to _replace_ the installed/created ones
> > > with this limited (known clean) set ...
> > > 
> > > > then copy with
> > > -- gentoo specific
> > > > cp -la gentoo/* new-guest
> > > > to create hard links to the gentoo template.
> > > 
> > > will not copy the .[a-zA-Z]* files you might want
> > > to copy too ...
> > > 
> > > > cd into new-guest and 
> > > > remove completely, etc, root, home and var
> > > > i have setups for most internet services on 
> > > > the gentoo template and a regular user defined
> > > -- gentoo specific
> > > > therefore home gets moved too. (should /usr/portage
> > > > be moved and later recopied as 'real' files?)
> > > > 
> > > > if i want to remove the ability to run certain 
> > > > services in this vserver, now is the time to
> > > > remove the links to them so they are no longer a part
> > > > of this guest.
> > > > 
> > > > this is only necessary when allowing others
> > > > shell access. most people would create a very
> > > > minimal template server so this normally would not 
> > > > be necessary, but with my setups, i want all 
> > > > services available to every server even if i do 
> > > > not run them.
> > > > 
> > > > then run setattr --iunlink * ONLY in the following
> > > > directories inside new-guest
> > > > bin
> > > > sbin
> > > > lib
> > > > usr/bin
> > > > usr/sbin
> > > > usr/lib
> > > > (should there be others?)
> > > > 
> > > > setattr --~iunlink undoes any damage done to files that should not
> > > > have that attribute.
> > > 
> > > be careful, unifying most of the files will work
> > > on stable (vs2.0.x and vs1.2.x) too, but this
> > > actually assumes CoW link breaking, which is only
> > > present in 2.1.x (and then only if enabled)
> > > 
> > > > then cp -Rp /vservers/gentoo/etc  and var and root and home
> > > > this will give real files to edit and use in the new-guest  config.
> > > > 
> > > > configure new-guest as necessary
> > > > start new-guest and enter to verify its operation.
> > > 
> > > best,
> > > Herbert
> > > 
> > > > ---
> > > > 
> > > > 
> > > > 
> > > > -- 
> > > > 
> > > > 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 bo

Re: [Vserver] this doc needs checking for accuracy

2005-09-16 Thread James Boddington

Chuck wrote:

On Friday 16 September 2005 12:59 pm, Herbert Poetzl wrote:

Thanks for the comments. will make the changes.. 



on a further note since I see there is a meeting starting, after doing things 
the way Aiken does them, using the following:



 cp -al master/* avon
 find avon -type f -exec setattr --iunlink {} ';'

i then went into the new guest and into the etc/conf.d directory to edit the 
hostname file. when I tried to save it I got 


Error saving file: Too many links



I can not remember what I did when I was getting the 'Too many links' 
error. I am playing with cow stuff on ext3.


A simple test to make sure the cow is working

mkdir a
echo hello > a/test
ln a/test
setattr --iunlink test
echo bye > test
cat a/test test

([EMAIL PROTECTED]) cat a/test test
hello
bye


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


Re: [Vserver] this doc needs checking for accuracy

2005-09-16 Thread Chuck
On Friday 16 September 2005 03:03 pm, James Boddington wrote:
> A simple test to make sure the cow is working
> 
> mkdir a
> echo hello > a/test
> ln a/test
> setattr --iunlink test
> echo bye > test
> cat a/test test
> 
> ([EMAIL PROTECTED]) cat a/test test
> hello
> bye


hmm didnt work

davin vservers # mkdir a
davin vservers # echo hello>a/test
davin vservers # ln a/test
davin vservers # ll
total 131320
drwxr-xr-x   2 root root72 Sep 16 15:07 a
drwxr-xr-x   2 root root80 Sep 15 17:05 changes
drwxr-xr-x  15 root root   360 Sep 14 09:56 gentoo
-rw-r--r--   1 root root 134335809 Sep 15 16:25 template.tgz
-rw-r--r--   2 root root 6 Sep 16 15:07 test
drwxr-xr-x  15 root root   360 Sep 15 22:52 vsdavin2
drwxr-xr-x  15 root root   360 Sep 15 23:10 vsdavin3
drwxr-xr-x  15 root root   360 Sep 15 20:51 vsdavin4
drwxr-xr-x  15 root root   360 Sep 16 14:53 vsdavin5
davin vservers # cat test
hello
davin vservers # setattr --iunlink test
davin vservers # echo bye>test
-bash: test: Too many links
davin vservers #  


-- 

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] this doc needs checking for accuracy

2005-09-16 Thread Chuck
On Friday 16 September 2005 03:10 pm, Chuck wrote:
> On Friday 16 September 2005 03:03 pm, James Boddington wrote:
> > A simple test to make sure the cow is working
> > 
> > mkdir a
> > echo hello > a/test
> > ln a/test
> > setattr --iunlink test
> > echo bye > test
> > cat a/test test
> > 
> > ([EMAIL PROTECTED]) cat a/test test
> > hello
> > bye
> 
> 
> hmm didnt work
> 
> davin vservers # mkdir a
> davin vservers # echo hello>a/test
> davin vservers # ln a/test
> davin vservers # ll
> total 131320
> drwxr-xr-x   2 root root72 Sep 16 15:07 a
> drwxr-xr-x   2 root root80 Sep 15 17:05 changes
> drwxr-xr-x  15 root root   360 Sep 14 09:56 gentoo
> -rw-r--r--   1 root root 134335809 Sep 15 16:25 template.tgz
> -rw-r--r--   2 root root 6 Sep 16 15:07 test
> drwxr-xr-x  15 root root   360 Sep 15 22:52 vsdavin2
> drwxr-xr-x  15 root root   360 Sep 15 23:10 vsdavin3
> drwxr-xr-x  15 root root   360 Sep 15 20:51 vsdavin4
> drwxr-xr-x  15 root root   360 Sep 16 14:53 vsdavin5
> davin vservers # cat test
> hello
> davin vservers # setattr --iunlink test
> davin vservers # echo bye>test
> -bash: test: Too many links
> davin vservers #  
> 

i just double checked and i have CoW enabled in the kernel..

# Linux VServer
#
CONFIG_VSERVER_LEGACY=y
# CONFIG_VSERVER_LEGACY_VERSION is not set
# CONFIG_VSERVER_NGNET is not set
CONFIG_VSERVER_COWBL=y
CONFIG_VSERVER_PROC_SECURE=y
# CONFIG_VSERVER_HARDCPU is not set
# CONFIG_INOXID_NONE is not set
# CONFIG_INOXID_UID16 is not set
# CONFIG_INOXID_GID16 is not set
CONFIG_INOXID_UGID24=y
# CONFIG_INOXID_INTERN is not set
# CONFIG_INOXID_RUNTIME is not set
# CONFIG_XID_TAG_NFSD is not set
# CONFIG_VSERVER_DEBUG is not set

> 
> -- 
> 
> 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
> 

-- 

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] this doc needs checking for accuracy

2005-09-16 Thread Herbert Poetzl
On Fri, Sep 16, 2005 at 03:21:25PM -0400, Chuck wrote:
> On Friday 16 September 2005 03:10 pm, Chuck wrote:
> > On Friday 16 September 2005 03:03 pm, James Boddington wrote:
> > > A simple test to make sure the cow is working
> > > 
> > > mkdir a
> > > echo hello > a/test
> > > ln a/test
> > > setattr --iunlink test
> > > echo bye > test
> > > cat a/test test
> > > 
> > > ([EMAIL PROTECTED]) cat a/test test
> > > hello
> > > bye
> > 
> > 
> > hmm didnt work
> > 
> > davin vservers # mkdir a
> > davin vservers # echo hello>a/test
> > davin vservers # ln a/test
> > davin vservers # ll
> > total 131320
> > drwxr-xr-x   2 root root72 Sep 16 15:07 a
> > drwxr-xr-x   2 root root80 Sep 15 17:05 changes
> > drwxr-xr-x  15 root root   360 Sep 14 09:56 gentoo
> > -rw-r--r--   1 root root 134335809 Sep 15 16:25 template.tgz
> > -rw-r--r--   2 root root 6 Sep 16 15:07 test
> > drwxr-xr-x  15 root root   360 Sep 15 22:52 vsdavin2
> > drwxr-xr-x  15 root root   360 Sep 15 23:10 vsdavin3
> > drwxr-xr-x  15 root root   360 Sep 15 20:51 vsdavin4
> > drwxr-xr-x  15 root root   360 Sep 16 14:53 vsdavin5
> > davin vservers # cat test
> > hello
> > davin vservers # setattr --iunlink test
> > davin vservers # echo bye>test
> > -bash: test: Too many links
> > davin vservers #  
> > 
> 
> i just double checked and i have CoW enabled in the kernel..

you might try with 
 
 http://vserver.13thfloor.at/Experimental/patch-2.6.13.1-vs2.1.0-pre11.diff

just verified that CoW breaking works there
make sure to use an FS with attributes (chattr)
support (reiserfs requires attrs option) and
that you actually use 'links' there (i.e. link
count > 1) not just 'files'

HTH,
Herbert

> # Linux VServer
> #
> CONFIG_VSERVER_LEGACY=y
> # CONFIG_VSERVER_LEGACY_VERSION is not set
> # CONFIG_VSERVER_NGNET is not set
> CONFIG_VSERVER_COWBL=y
> CONFIG_VSERVER_PROC_SECURE=y
> # CONFIG_VSERVER_HARDCPU is not set
> # CONFIG_INOXID_NONE is not set
> # CONFIG_INOXID_UID16 is not set
> # CONFIG_INOXID_GID16 is not set
> CONFIG_INOXID_UGID24=y
> # CONFIG_INOXID_INTERN is not set
> # CONFIG_INOXID_RUNTIME is not set
> # CONFIG_XID_TAG_NFSD is not set
> # CONFIG_VSERVER_DEBUG is not set
> 
> > 
> > -- 
> > 
> > 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
> > 
> 
> -- 
> 
> 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
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] this doc needs checking for accuracy

2005-09-16 Thread James Boddington

Chuck wrote:

On Friday 16 September 2005 03:10 pm, Chuck wrote:

i just double checked and i have CoW enabled in the kernel..

# Linux VServer
#
CONFIG_VSERVER_LEGACY=y
# CONFIG_VSERVER_LEGACY_VERSION is not set
# CONFIG_VSERVER_NGNET is not set
CONFIG_VSERVER_COWBL=y
CONFIG_VSERVER_PROC_SECURE=y
# CONFIG_VSERVER_HARDCPU is not set
# CONFIG_INOXID_NONE is not set
# CONFIG_INOXID_UID16 is not set
# CONFIG_INOXID_GID16 is not set
CONFIG_INOXID_UGID24=y
# CONFIG_INOXID_INTERN is not set
# CONFIG_INOXID_RUNTIME is not set
# CONFIG_XID_TAG_NFSD is not set
# CONFIG_VSERVER_DEBUG is not set



#
# Linux VServer
#
CONFIG_VSERVER_LEGACY=y
# CONFIG_VSERVER_LEGACY_VERSION is not set
# CONFIG_VSERVER_NGNET is not set
CONFIG_VSERVER_COWBL=y
CONFIG_VSERVER_PROC_SECURE=y
# CONFIG_VSERVER_HARDCPU is not set
# CONFIG_INOXID_NONE is not set
# CONFIG_INOXID_UID16 is not set
# CONFIG_INOXID_GID16 is not set
CONFIG_INOXID_UGID24=y
# CONFIG_INOXID_INTERN is not set
# CONFIG_INOXID_RUNTIME is not set
CONFIG_XID_TAG_NFSD=y
CONFIG_VSERVER_DEBUG=y
CONFIG_VSERVER_HISTORY=y
CONFIG_VSERVER_HISTORY_SIZE=64

Ignoring the debugging and the nfsd option the rest looks the same. I am 
currently using 2.6.13-vs2.1.0-pre7. Enabling debuging and turning it on 
with echo 255 > /proc/sys/vserver/debug_misc I get


vxD: cow_break_link(fc0007940b90,»test«)
vxD: path_lookup(old): 0
vxD: old path »/vservers/p/test«
vxD: temp copy »/vservers/p/test©«
vxD: lookup_create(new): fc000786cb90
vxD: vfs_create(new): 0
vxD: dentry_open(old): fce2d6a0
vxD: dentry_open(new): fce2c3a0
vxD: [EMAIL PROTECTED] fce2c3a0,fce2d6a0
vxD: vfs_sendfile: 6
vxD: [EMAIL PROTECTED] fce2c3a0,fce2d6a0
vxD: vfs_rename: 0
vxD: fput(new_file=fce2c3a0[#1])
vxD: fput(old_file=fce2d6a0[#1])
vxD: restarting open_namei() ...

This is from the test in my previous email.

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


Re: [Vserver] this doc needs checking for accuracy

2005-09-16 Thread Chuck
On Friday 16 September 2005 04:45 pm, James Boddington wrote:

ok i will have to try this a bit later.. maybe tomrorow. just got something to 
do handed down by the boss that will take me a large part of this evening to 
do.

> echo 255 > /proc/sys/vserver/debug_misc

-- 

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] this doc needs checking for accuracy

2005-09-16 Thread Chuck
On Friday 16 September 2005 04:39 pm, Herbert Poetzl wrote:

> > > davin vservers # setattr --iunlink test
> > > davin vservers # echo bye>test
> > > -bash: test: Too many links
> > > davin vservers #  
> > > 
> > 
> > i just double checked and i have CoW enabled in the kernel..
> 
> you might try with 
>  
>  http://vserver.13thfloor.at/Experimental/patch-2.6.13.1-vs2.1.0-pre11.diff
> 
> just verified that CoW breaking works there
> make sure to use an FS with attributes (chattr)
> support (reiserfs requires attrs option) and
> that you actually use 'links' there (i.e. link
> count > 1) not just 'files'
> 

hmm ok will that patch work on this kernel since its pre5 or do i need to add 
each patch until i reach this pre11  ?
im not sure they will work on this anyway since it has gentoo patches in it 
too. i may have to add manually.

2.6.13-vs2.1.0-pre5-gentoo

will tackle this tomorow. got a job to do tonight that will take a bit of 
time.


> HTH,
> Herbert
> 
> > # Linux VServer
> > #
> > CONFIG_VSERVER_LEGACY=y
> > # CONFIG_VSERVER_LEGACY_VERSION is not set
> > # CONFIG_VSERVER_NGNET is not set
> > CONFIG_VSERVER_COWBL=y
> > CONFIG_VSERVER_PROC_SECURE=y
> > # CONFIG_VSERVER_HARDCPU is not set
> > # CONFIG_INOXID_NONE is not set
> > # CONFIG_INOXID_UID16 is not set
> > # CONFIG_INOXID_GID16 is not set
> > CONFIG_INOXID_UGID24=y
> > # CONFIG_INOXID_INTERN is not set
> > # CONFIG_INOXID_RUNTIME is not set
> > # CONFIG_XID_TAG_NFSD is not set
> > # CONFIG_VSERVER_DEBUG is not set
> > 
> > > 
> > > -- 
> > > 
> > > 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
> > > 
> > 
> > -- 
> > 
> > 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
> 

-- 

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] this doc needs checking for accuracy

2005-09-16 Thread Chuck
On Friday 16 September 2005 05:21 pm, Chuck wrote:


i double checked before i start on this other thing i have to do and i was 
right i dont have reiserfs extended attributes enabled in the kernel.. just 
resiserfs support... im enabling the extended attributes and recompiling.

should i have either of these 2 enabled as well?

CONFIG_REISERFS_FS_POSIX_ACL
 CONFIG_REISERFS_FS_SECURITY:


also what are the ideal options to enable in the vserver section? may as well 
set them while im doing the kernel.

this is what is currently configured


# Linux VServer
#
CONFIG_VSERVER_LEGACY=y
# CONFIG_VSERVER_LEGACY_VERSION is not set
# CONFIG_VSERVER_NGNET is not set
CONFIG_VSERVER_COWBL=y
CONFIG_VSERVER_PROC_SECURE=y
# CONFIG_VSERVER_HARDCPU is not set
# CONFIG_INOXID_NONE is not set
# CONFIG_INOXID_UID16 is not set
# CONFIG_INOXID_GID16 is not set
CONFIG_INOXID_UGID24=y
# CONFIG_INOXID_INTERN is not set
# CONFIG_INOXID_RUNTIME is not set
# CONFIG_XID_TAG_NFSD is not set
# CONFIG_VSERVER_DEBUG is not set

>

> On Friday 16 September 2005 04:39 pm, Herbert Poetzl wrote:
> 
> > > > davin vservers # setattr --iunlink test
> > > > davin vservers # echo bye>test
> > > > -bash: test: Too many links
> > > > davin vservers #  
> > > > 
> > > 
> > > i just double checked and i have CoW enabled in the kernel..
> > 
> > you might try with 
> >  
> >  
http://vserver.13thfloor.at/Experimental/patch-2.6.13.1-vs2.1.0-pre11.diff
> > 
> > just verified that CoW breaking works there
> > make sure to use an FS with attributes (chattr)
> > support (reiserfs requires attrs option) and
> > that you actually use 'links' there (i.e. link
> > count > 1) not just 'files'
> > 
> 
> hmm ok will that patch work on this kernel since its pre5 or do i need to 
add 
> each patch until i reach this pre11  ?
> im not sure they will work on this anyway since it has gentoo patches in it 
> too. i may have to add manually.
> 
> 2.6.13-vs2.1.0-pre5-gentoo
> 
> will tackle this tomorow. got a job to do tonight that will take a bit of 
> time.
> 
> 
> > HTH,
> > Herbert
> > 
> > > # Linux VServer
> > > #
> > > CONFIG_VSERVER_LEGACY=y
> > > # CONFIG_VSERVER_LEGACY_VERSION is not set
> > > # CONFIG_VSERVER_NGNET is not set
> > > CONFIG_VSERVER_COWBL=y
> > > CONFIG_VSERVER_PROC_SECURE=y
> > > # CONFIG_VSERVER_HARDCPU is not set
> > > # CONFIG_INOXID_NONE is not set
> > > # CONFIG_INOXID_UID16 is not set
> > > # CONFIG_INOXID_GID16 is not set
> > > CONFIG_INOXID_UGID24=y
> > > # CONFIG_INOXID_INTERN is not set
> > > # CONFIG_INOXID_RUNTIME is not set
> > > # CONFIG_XID_TAG_NFSD is not set
> > > # CONFIG_VSERVER_DEBUG is not set
> > > 
> > > > 
> > > > -- 
> > > > 
> > > > 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
> > > > 
> > > 
> > > -- 
> > > 
> > > 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
> > 
> 
> -- 
> 
> 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
> 

-- 

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


[Vserver] I just thought of some severe implications of unifying

2005-09-16 Thread Chuck

What if I need to move a guest that was linked to its template and  has other 
services installed ,to another physical host that already has its own 
template.. 

would i move the guest and copy its template and they would be unique compared 
to the rest of the guests on the destination server?

if the implications are serious enough, i will have to simply clone by tarring 
and put up with the wasted disk space in favor of easy failover

this scenario would be just wanting to move it to a new server leaving the 
rest alone.. if there was a host hardware failure i would move everything to 
a fresh host. but what does that do to the links when moving to another 
drive? it would be same file system, reiserfs




-- 

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] this doc needs checking for accuracy

2005-09-16 Thread James Boddington

Chuck wrote:

On Friday 16 September 2005 05:21 pm, Chuck wrote:
should i have either of these 2 enabled as well?

CONFIG_REISERFS_FS_POSIX_ACL
 CONFIG_REISERFS_FS_SECURITY:


These are my config options for reiserfs

CONFIG_REISERFS_FS=m
# CONFIG_REISERFS_CHECK is not set
# CONFIG_REISERFS_PROC_INFO is not set
CONFIG_REISERFS_FS_XATTR=y
# CONFIG_REISERFS_FS_POSIX_ACL is not set
# CONFIG_REISERFS_FS_SECURITY is not set

There was a problem with reiserfs and the cow link breaking. A solution 
has been found and will be in the next release.


Mount with the attrs option. My mount cmd is
mount /dev/etherd/e9.1 /vservers/p -o attrs

Until the next release this is a patch I am using against 
fs/reiserfs/file.c. I am currently using 2.1.0-pre11


--- file.c-orig Sat Sep 17 09:58:57 2005
+++ file.c  Sat Sep 17 10:41:54 2005
@@ -1554,6 +1554,7 @@
.release = reiserfs_file_release,
.fsync = reiserfs_sync_file,
.sendfile = generic_file_sendfile,
+   .sendpage = generic_file_sendpage,
.aio_read = generic_file_aio_read,
.aio_write = reiserfs_aio_write,
 };

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


Re: [Vserver] this doc needs checking for accuracy

2005-09-16 Thread Chuck
On Friday 16 September 2005 08:48 pm, James Boddington wrote:
> Chuck wrote:
> > On Friday 16 September 2005 05:21 pm, Chuck wrote:
> > should i have either of these 2 enabled as well?
> > 
> > CONFIG_REISERFS_FS_POSIX_ACL
> >  CONFIG_REISERFS_FS_SECURITY:
> 
> These are my config options for reiserfs
> 
> CONFIG_REISERFS_FS=m
> # CONFIG_REISERFS_CHECK is not set
> # CONFIG_REISERFS_PROC_INFO is not set
> CONFIG_REISERFS_FS_XATTR=y
> # CONFIG_REISERFS_FS_POSIX_ACL is not set
> # CONFIG_REISERFS_FS_SECURITY is not set
> 

ok i enabled proc_info, xattr, posix and security figuring if i didnt need 
them they wouldnt come into play.

> There was a problem with reiserfs and the cow link breaking. A solution 
> has been found and will be in the next release.
> 
> Mount with the attrs option. My mount cmd is
> mount /dev/etherd/e9.1 /vservers/p -o attrs
> 

ihave mine in my fstab 

/dev/hdb1 /vservers   reiserfsnoatime,attrs 0 0

then i also put the attrs in my mount for my / partition just to be sure.

> Until the next release this is a patch I am using against 
> fs/reiserfs/file.c. I am currently using 2.1.0-pre11
> 

im using pre5. i have a diff for pre11 but i fear it wont work automatically 
since this is a gentoo product which also has some of their patches in it. i 
would have to patch pre11 manually i suspect.

however below small patch looks good. ill try that
thanks


> --- file.c-orig Sat Sep 17 09:58:57 2005
> +++ file.c  Sat Sep 17 10:41:54 2005
> @@ -1554,6 +1554,7 @@
>  .release = reiserfs_file_release,
>  .fsync = reiserfs_sync_file,
>  .sendfile = generic_file_sendfile,
> +   .sendpage = generic_file_sendpage,
>  .aio_read = generic_file_aio_read,
>  .aio_write = reiserfs_aio_write,
>   };
> 
> -- 
> James
> ___
> 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] this doc needs checking for accuracy

2005-09-16 Thread Chuck
On Friday 16 September 2005 08:48 pm, James Boddington wrote:

it worked!! thank you! i had to add the additional line by hand as the patch 
failed, but it compiled fine and now it appears to work perfectly. see this 
test and tell me if i am wrong:



davin vservers # mkdir a
davin vservers # echo hello>a/test
davin vservers # ln a/test test
davin vservers # cat test
hello
davin vservers # setattr --iunlink test
davin vservers # cat test
hello
davin vservers # echo bye>>test
davin vservers # cat test
hello
bye
davin vservers # cat a/test
hello
davin vservers #




> Until the next release this is a patch I am using against 
> fs/reiserfs/file.c. I am currently using 2.1.0-pre11
> 
> --- file.c-orig Sat Sep 17 09:58:57 2005
> +++ file.c      Sat Sep 17 10:41:54 2005
> @@ -1554,6 +1554,7 @@
>          .release = reiserfs_file_release,
>          .fsync = reiserfs_sync_file,
>          .sendfile = generic_file_sendfile,
> +       .sendpage = generic_file_sendpage,
>          .aio_read = generic_file_aio_read,
>          .aio_write = reiserfs_aio_write,
>   };
> 

-- 

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] this doc needs checking for accuracy

2005-09-16 Thread Herbert Poetzl
On Fri, Sep 16, 2005 at 09:23:40PM -0400, Chuck wrote:
> On Friday 16 September 2005 08:48 pm, James Boddington wrote:
> 
> it worked!! thank you! i had to add the additional line by hand as the patch 
> failed, but it compiled fine and now it appears to work perfectly. see this 
> test and tell me if i am wrong:
> 
> davin vservers # mkdir a
> davin vservers # echo hello>a/test
> davin vservers # ln a/test test
> davin vservers # cat test
> hello
> davin vservers # setattr --iunlink test
> davin vservers # cat test
> hello
> davin vservers # echo bye>>test
> davin vservers # cat test
> hello
> bye
> davin vservers # cat a/test
> hello
> davin vservers #

congratulations!

btw, next devel release will contain fixes 
for jfs and xfs too (which have similar issues)
so stay tuned :)

best,
Herbert

> > Until the next release this is a patch I am using against 
> > fs/reiserfs/file.c. I am currently using 2.1.0-pre11
> > 
> > --- file.c-orig Sat Sep 17 09:58:57 2005
> > +++ file.c      Sat Sep 17 10:41:54 2005
> > @@ -1554,6 +1554,7 @@
> >          .release = reiserfs_file_release,
> >          .fsync = reiserfs_sync_file,
> >          .sendfile = generic_file_sendfile,
> > +       .sendpage = generic_file_sendpage,
> >          .aio_read = generic_file_aio_read,
> >          .aio_write = reiserfs_aio_write,
> >   };
> > 
> 
> -- 
> 
> 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
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] this doc needs checking for accuracy

2005-09-16 Thread Chuck
On Friday 16 September 2005 09:49 pm, Herbert Poetzl wrote:
> On Fri, Sep 16, 2005 at 09:23:40PM -0400, Chuck wrote:
> > On Friday 16 September 2005 08:48 pm, James Boddington wrote:
> > 
> > it worked!! thank you! i had to add the additional line by hand as the 
patch 
> > failed, but it compiled fine and now it appears to work perfectly. see 
this 
> > test and tell me if i am wrong:
> > 
> > davin vservers # mkdir a
> > davin vservers # echo hello>a/test
> > davin vservers # ln a/test test
> > davin vservers # cat test
> > hello
> > davin vservers # setattr --iunlink test
> > davin vservers # cat test
> > hello
> > davin vservers # echo bye>>test
> > davin vservers # cat test
> > hello
> > bye
> > davin vservers # cat a/test
> > hello
> > davin vservers #
> 
> congratulations!
> 
> btw, next devel release will contain fixes 
> for jfs and xfs too (which have similar issues)
> so stay tuned :)
> 

cool! does this fix mean i should re-do the linked servers? or does that fix 
things automagically?


> best,
> Herbert
> 
> > > Until the next release this is a patch I am using against 
> > > fs/reiserfs/file.c. I am currently using 2.1.0-pre11
> > > 
> > > --- file.c-orig Sat Sep 17 09:58:57 2005
> > > +++ file.c      Sat Sep 17 10:41:54 2005
> > > @@ -1554,6 +1554,7 @@
> > >          .release = reiserfs_file_release,
> > >          .fsync = reiserfs_sync_file,
> > >          .sendfile = generic_file_sendfile,
> > > +       .sendpage = generic_file_sendpage,
> > >          .aio_read = generic_file_aio_read,
> > >          .aio_write = reiserfs_aio_write,
> > >   };
> > > 
> > 
> > -- 
> > 
> > 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
> 

-- 

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