zfs snapshot -r : invalid option 'r'
Hello,
I've been attempting to do snapshots of a ZFS drive on a system where /export/home is part of a ZFS pool. Just doing
zfs snapshot HOME@<date>
will only backup the directories rather than their contents, so I can't use that. And using the -r option results in the following:
zfs snapshot -r /export/home@20070220
invalid option 'r'
usage:
snapshot <filesystem@name|volume@name>
According to the man pages this should work, and according to docs.sun it should work:
http://docs.sun.com/app/docs/doc/819-5461/6n7ht6qr1?a=view#gdfdt
Has anyone else experienced this? I suppose I could kluge together some use of the find command, but it makes no sense that this isn't working.
Thanks,
Dave
[789 byte] By [
dschanena] at [2007-11-26 19:02:19]

# 2
zfs snapshot -r functionality was added in solaris 10u3.
So presumably your solaris is older than that.
Have a look in /etc/release
So you will need to download the new version and do an upgrade install.
Recommended patches for solaris 10 have been restricted to contract customers for a while. I believe security patches are still free.
If you had a contract and installed all available patches then you would probably get the new zfs functionality without an upgrade install.
But patching is so slow and unreliable these days that theres an argument to say that doing an upgrade install is easier anyway :-)
# 3
Hi Robert,
Thanks for your response. I suspected this might be the case, but it seems like I get conflicting information from the Sun website. It still says recommended and security patches are free everywhere I looked except when I went to download them. We got this machine in October and I obtained and installed a recommended patch cluster as well as a bunch of ZFS patches (it might have even been early November, shortly before the update), using only a valid account with no contract.
It would have been nice to know the policy on patch clusters was changing shortly, since now I want to use the snapshots as a backup for users.
For us at least, an upgrade install would be a royal pain in the butt, since this machine is sitting in a data center in the basement and that would entail me signing in there and sitting on the floor while it installs from DVD media.
# 7
> Thats what jumpstart servers were invented for.
> But it is a fair investment of time and hardware to
> figure it all out unless you a quite a few sun boxes.
Yeah, unfortunately our research group has just the one system right now. I suppose a live upgrade would be a viable option, but it would mean playing around with the disk slices.
Thanks for the thoughts though.