From: none on
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
From: Richard B. Gilbert on
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.
>
>
> Regards,
>
> Florian

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?
From: Florian Faltermeier on
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.
>>
>>
>> Regards,
>>
>> Florian
>
> 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.

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.

From: Ian Collins on
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
From: Florian Faltermeier on
Ian Collins schrieb:
> 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?
>
Hello Ian,

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

Regards,
Florian