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(mtab): Permission denied
   Failed to update mtab-file
   secure-mount: open(mtab): Permission denied
   Failed to update mtab-file
   secure-mount: open(mtab): 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(mtab): Permission denied
Failed to update mtab-file
secure-mount: open(mtab): Permission denied
Failed to update mtab-file
secure-mount: open(mtab): 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 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(mtab): Permission denied
  Failed to update mtab-file
  secure-mount: open(mtab): Permission denied
  Failed to update mtab-file
  secure-mount: open(mtab): 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.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 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(mtab): Permission denied
   Failed to update mtab-file
   secure-mount: open(mtab): Permission denied
   Failed to update mtab-file
   secure-mount: open(mtab): 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
 

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(mtab): Permission denied
Failed to update mtab-file
secure-mount: open(mtab): Permission denied
Failed to update mtab-file
secure-mount: open(mtab): 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 

[Vserver] I think I goofed

2005-09-15 Thread Chuck

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(mtab): Permission denied
 Failed to update mtab-file
 secure-mount: open(mtab): Permission denied
 Failed to update mtab-file
 secure-mount: open(mtab): 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