Re: [Vserver] Transparently Creating Multiple Instances of Vservers Using COW?

From: Grzegorz Nosek <grzegorz.nosek_at_gmail.com>
Date: Sat 03 Jun 2006 - 11:59:38 BST
Message-ID: <121a28810606030359k1733c999q98aef60ab160ba85@mail.gmail.com>

2006/6/3, Bruno <bonbons67@internet.lu>:
> I don't know if vhashify and friends of util-vserver keep some state of their
> operations (like a DB of hashed files)

AFAIK they just store files in a directory tree with their sha1 hashes
as file names

>
> What may be useful is e.g. an adjusted 'cp' tool that copies regular files as
> hardlink to the reference and adds IUNLINK and IMMUTABLE flags to the
> hardlinked files (where the flags are not alreay present)
> This will copy a whole guest as quickly as scanning the existing tree and
> creating a new inode/hardlink for each inode encountered.

A neat addition might be automatically differentiating between unified
files (hardlink them with cow flags) and normal files (copy them over)
so that copying an already vhashified vserver would be a single
command

Best regards,
 Grzegorz Nosek
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Sat Jun 3 12:00:18 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sat 03 Jun 2006 - 12:00:23 BST by hypermail 2.1.8