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


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


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


[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