From: Herbert Poetzl (herbert_at_13thfloor.at)
Date: Fri 16 Sep 2005 - 16:16:08 BST
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_at_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_at_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_at_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_at_list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver