[zfs-discuss] Promote a directory to a file system in-place?

Gordan Bobic gordan.bobic at gmail.com
Wed Oct 16 08:17:42 EDT 2013


There is no such feature at the moment.



On Wed, Oct 16, 2013 at 1:15 PM, Michael Kjörling <michael at kjorling.se>wrote:

> (I sent this a few days ago, but it doesn't appear to have made it
> through for whatever reason. Apologies if it ends up being a
> duplicate!)
>
>
> ----- Forwarded message from Michael Kjörling <michael at kjorling.se> -----
>
> Date: Sat, 12 Oct 2013 23:03:53 +0000
> Message-ID: <20131012230353.GO7198 at yeono.kjorling.se>
>
> ZFS file systems allow many things that directories don't. For
> example, you can't set quotas, copies, readonly, etc. on a directory,
> only on file systems. Creating a new file system is quick and easy,
> but that doesn't mean they are always the best choice. Sometimes, a
> plain old directory does the job perfectly fine.
>
> Sometimes, changing needs for different sets of data mean that what
> once was perfectly fine as a directory in another file system would
> now be better off as a file system of its own, with its own set of
> property values. Just one _example_, for archive data one might make
> different trade-offs in terms of CPU consumption and disk storage (let
> alone such things as read-only, log bias and caching) than one would
> do for data in active use, leading to different settings for various
> properties.
>
> As it stands, the only way I've found to promote a directory to a file
> system is to create a file system in a reasonable place, give it a
> temporary mount point, move the data into the file system (which can
> take a lot of time if there's a lot of data to be moved, and can be
> decidedly non-trivial if the data is dynamic and/or in use) and then
> change the mount point of the newly created file system to be the path
> to the original directory.
>
> Is there a way to promote a directory to a file system _in place_
> without manually having to move the data around?
>
> ----- End forwarded message -----
>
> --
> Michael Kjörling • http://michael.kjorling.semichael at kjorling.se
>                 “People who think they know everything really annoy
>                 those of us who know we don’t.” (Bjarne Stroustrup)
>
> To unsubscribe from this group and stop receiving emails from it, send an
> email to zfs-discuss+unsubscribe at zfsonlinux.org.
>

To unsubscribe from this group and stop receiving emails from it, send an email to zfs-discuss+unsubscribe at zfsonlinux.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.zfsonlinux.org/pipermail/zfs-discuss/attachments/20131016/9415f937/attachment.html>


More information about the zfs-discuss mailing list