Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Lets say I have an rpool with etc/ as a regular directory within it and now I want to create a separate zfs rpool/etc, obviously inheriting all the data I had in original /etc.

What would be the most proper and safe way to do so?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

It isn't supported to turn /etc into its own zfs file system.

The reason is that /etc is needed during the early stages of boot, before (Open)Solaris starts to mount zfs file systems, so it would be empty if you change it.

My guess is that you want to take snapshots of /etc, but you can just take snapshots of the root file system instead:

zfs snapshot rpool/ROOT/opensolaris

You may have to replace opensolaris with the name of the current boot environment (run beadm list to find out which)

share|improve this answer
ok, what about any other directory, then? say, rpool/zones/myzone/export/home/git? :) –  Yurii Rashkovskii Jul 19 '09 at 14:48
If you want to turn your git directory into a zfs filesystem, you just need to make tar archive of the current contents, then "rm -rf" the git dir, after that run "zfs create -o mountpoint=/path/to/git rpool/path/to/whatever/git" and finally untar the saved files. –  Martin Jul 20 '09 at 21:55
oh, ok, that's what I thought... but secretly hoped there was a transparent way to split zfs :) –  Yurii Rashkovskii Jul 20 '09 at 22:57
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.