Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ZFS - Backup configuration

1,008 views
Skip to first unread message

none

unread,
Jan 18, 2010, 9:36:35 AM1/18/10
to
Hello,


Does anyone know how I can backup the config data (with zfs properties)
of the ZFS Filesystem ?

The background is when a ZFS Filesystem/Zpool is completely destroyed
(e.g rpool) I want easily recover the configuration data. After that I
can recover the user data.

I use TSM to backup the user data.
I don't want to use the commands zfs send/receive.


Regards,

Florian

Richard B. Gilbert

unread,
Jan 18, 2010, 10:49:04 AM1/18/10
to

What about the commands you used to create the filesystem? If you wrote
a script to create it, rerunning that script should recreate the file
system. If you didn't write a script, do you remember the exact commands?

What problem are you trying to solve?

Florian Faltermeier

unread,
Jan 18, 2010, 11:20:53 AM1/18/10
to
Richard B. Gilbert schrieb:

Hello Richard,

I can look in the zpool history. At every night I make a backup of the
zpool history command and copy it to another machine. But this cannot be
the best way. When I do a lot of things with the zfs/zpool commands the
configuration is changing again and again. When the system comes down
you have a lot to do with zfs commands.

What I want is, that I copy every night the actual ZFS configuration
(zfs properties, zpool properties, and so on) away. When the system
crashes so I can say: "No problem. I have an actual backup of my zfs
configuration". So I don't have to do a lot of things with the zfs
commands (zpool create, zfs set,...)

It was really good when there is for example a following feature

# zpool backup config -f config.file
# zpool restore config -f config.file

Regards,
Florian

Thank you.

Ian Collins

unread,
Jan 18, 2010, 1:56:56 PM1/18/10
to
Florian Faltermeier wrote:
> Richard B. Gilbert schrieb:
>> none wrote:
>>> Hello,
>>>
>>> Does anyone know how I can backup the config data (with zfs
>>> properties) of the ZFS Filesystem ?
>>>
>>> The background is when a ZFS Filesystem/Zpool is completely destroyed
>>> (e.g rpool) I want easily recover the configuration data. After that
>>> I can recover the user data.
>>>
>>> I use TSM to backup the user data.
>>> I don't want to use the commands zfs send/receive.
>>
>> What about the commands you used to create the filesystem? If you
>> wrote a script to create it, rerunning that script should recreate the
>> file system. If you didn't write a script, do you remember the exact
>> commands?
>>
>> What problem are you trying to solve?
>
> Hello Richard,
>
> I can look in the zpool history. At every night I make a backup of the
> zpool history command and copy it to another machine. But this cannot be
> the best way. When I do a lot of things with the zfs/zpool commands the
> configuration is changing again and again. When the system comes down
> you have a lot to do with zfs commands.

Why can't you just do a recursive incremental send to to the other machine?

--
Ian Collins

Florian Faltermeier

unread,
Jan 19, 2010, 3:23:43 AM1/19/10
to
Ian Collins schrieb:
Hello Ian,

I think that zfs send/receive don't backup all zfs configurations.

Regards,
Florian

Dick Hoogendijk

unread,
Jan 19, 2010, 6:32:01 AM1/19/10
to
quoting Florian Faltermeier (Tue, 19 Jan 2010 09:23:43 +0100):
> I think that zfs send/receive don't backup all zfs configurations.

100% wrong.

--
Dick Hoogendijk -- PGP/GnuPG key: 01D2433D
+ http://nagual.nl/ | SunOS 10u7 05/09 | OpenSolaris 2010.03 b131
+ All that's really worth doing is what we do for others (Lewis Carrol)

Florian Faltermeier

unread,
Jan 19, 2010, 6:54:34 AM1/19/10
to
Dick Hoogendijk schrieb:

> quoting Florian Faltermeier (Tue, 19 Jan 2010 09:23:43 +0100):
>> I think that zfs send/receive don't backup all zfs configurations.
>
> 100% wrong.
>
Thanks for this information. Is this the only way to backup my zfs
configuration? What I want is that I have only the zfs/zpool
configuration. Because the user data is backed up by TSM or NDMP.

Florian

Giorgos Keramidas

unread,
Jan 19, 2010, 9:41:53 AM1/19/10
to
On Tue, 19 Jan 2010 12:54:34 +0100, Florian Faltermeier <floria...@gmx.net> wrote:
> Thanks for this information. Is this the only way to backup my zfs
> configuration? What I want is that I have only the zfs/zpool
> configuration. Because the user data is backed up by TSM or NDMP.

zfs send includes the filesystem data. If you only want to keep a
backup copy of the active zfs datasets and their properties, you can
probably use "zfs get all <dataset>" on all of them.

cindy

unread,
Jan 19, 2010, 3:17:35 PM1/19/10
to
On Jan 19, 7:41 am, Giorgos Keramidas <keram...@ceid.upatras.gr>
wrote:

> On Tue, 19 Jan 2010 12:54:34 +0100, Florian Faltermeier <florian-m...@gmx.net> wrote:
> > Thanks for this information. Is this the only way to backup my zfs
> > configuration? What I want is that I have only the zfs/zpool
> > configuration. Because the user data is backed up by TSM or NDMP.
>
> zfs send includes the filesystem data. If you only want to keep a
> backup copy of the active zfs datasets and their properties, you can
> probably use "zfs get all <dataset>" on all of them.

Florian is asking for a solution that copies his pool configuration
information,
not his dataset properties, and currently no easy way exists to save
the pool
configuration.

Florian, we are working on providing a pool recovery solution, we're
just not
there yet. A combination of zfs dataset snapshots and capturing your
zpool
history output can provide a workable recovery solution in the
meantime.

If you are using the Solaris 10 release, you might consider creating a
ZFS
flash archive (for a total pool recovery) or if you are using the
Solaris Nevada
or OpenSolaris release, build 131 includes the zpool split feature
that
allows you to split a mirrored pool to create an identical pool.
Neither are
true backup solutions but might give you ideas until we provide a pool
recovery tool.

Thanks,

Cindy

Florian Faltermeier

unread,
Jan 20, 2010, 10:56:53 AM1/20/10
to
Giorgos Keramidas schrieb:
I know. But this is not what I really want.

Thanks.

Florian

0 new messages