Re: [PATCH] pg_upgrade: support for btrfs copy-on-write clones - Mailing list pgsql-hackers

From Oskari Saarenmaa
Subject Re: [PATCH] pg_upgrade: support for btrfs copy-on-write clones
Date
Msg-id 524C2C63.1080503@ohmu.fi
Whole thread Raw
In response to Re: [PATCH] pg_upgrade: support for btrfs copy-on-write clones  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: [PATCH] pg_upgrade: support for btrfs copy-on-write clones  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
On 02/10/13 17:18, Andrew Dunstan wrote:
>
> On 10/01/2013 06:31 PM, Oskari Saarenmaa wrote:
>> Add file cloning as an alternative data transfer method to pg_upgrade.
>> Currently only btrfs is supported, but copy-on-write cloning is also
>> available on at least ZFS.  Cloning must be requested explicitly and if
>> it isn't supported by the operating system or filesystem a fatal error
>> is thrown.
>>
>
> So, just curious, why isn't ZFS supported? It's what I am more
> interested in, at least.

No fundamental reason; I'm hoping ZFS will be supported in addition to 
btrfs, but I don't have any systems with ZFS filesystems at the moment 
so I haven't been able to test it or find out the mechanisms ZFS uses 
for cloning.  On btrfs cloning is implemented with a custom 
btrfs-specific ioctl, ZFS probably has something similar which would be 
pretty easy to add on top of this patch.

Added this patch to commitfest as suggested, 
https://commitfest.postgresql.org/action/patch_view?id=1251

/ Oskari




pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: [PATCH] pg_upgrade: support for btrfs copy-on-write clones
Next
From: Magnus Hagander
Date:
Subject: Prevent pg_basebackup -Fp -D -?