Solaris 11.3 -- I'm trying to create ZFS snapshots and backing them up to another pool...
Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Solaris 11.3 -- I'm trying to create ZFS snapshots and backing them up to another pool...
But I ran into a bunch of problems. I eventually solved all of them (I thought), but then when I restarted, I got a ton of errors..
Turns out that Solaris was trying to mount the same mountpoints from both the original pool and the pool with just backup snapshots on it. I got some to not mount by setting the mountpoint to "legacy" but it didn't seem to work with all the directories.
In the end, I had to run:
Code:
# zfs destroy snap
Does anyone backup their disk like this using zfs pools? Sun documentation says it's possible, but they prefer to save the pool to another computer. But mine is just on a second hard drive. I should have just disconnected it from the VM instead of destroying the pool. Maybe that's what you're supposed to do, back up then disconnect drive. Never have the drive connected at boot time... sorry for the rambling!
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Quote:
Originally Posted by Laserbeak
But I ran into a bunch of problems. I eventually solved all of them (I thought), but then when I restarted, I got a ton of errors..
What problems?
What errors?
Quote:
Turns out that Solaris was trying to mount the same mountpoints from both the original pool and the pool with just backup snapshots on it. I got some to not mount by setting the mountpoint to "legacy" but it didn't seem to work with all the directories.
So what commands did you ran and what did they output?
Quote:
Code:
# zfs destroy snap
You can't destroy a snapshot that way, is "snap" a pool?
Quote:
Does anyone backup their disk like this using zfs pools?
You don't backup disks but file systems or volumes. Although recommended and more convenient if you want to restore individual files, there is no requirement to receive the exported pool, you can just save the stream sent to a file. Alternatively, you might disable the mountpoint property when receiving the stream using the "zfs receive -x mountpoint" option. See https://docs.oracle.com/cd/E53394_01...801/gbchx.html
Quote:
says it's possible, but they prefer to save the pool to another computer.
That makes sense. Storing the backup on a remote server is more secure.
Quote:
But mine is just on a second hard drive. I should have just disconnected it from the VM instead of destroying the pool. Maybe that's what you're supposed to do, back up then disconnect drive. Never have the drive connected at boot time... sorry for the rambling!
If disconnecting the drive is a mandatory post backup step, what's the point doing backups... ;-)
So what commands did you ran and what did they output?
You can't destroy a snapshot that way, is "snap" a pool?
You don't backup disks but file systems or volumes. Although recommended and more convenient if you want to restore individual files, there is no requirement to receive the exported pool, you can just save the stream sent to a file. Alternatively, you might disable the mountpoint property when receiving the stream using the "zfs receive -x mountpoint" option. See http://<br />
://docs.oracle.com/cd...801/gbchx.html
That makes sense. Storing the backup on a remote server is more secure.
If disconnecting the drive is a mandatory post backup step, what's the point doing backups... ;-)
Yes "snap" was a separate pool that contained a different hard drive. I don't recall the exact command I used but I gleaned it from the Sun (actually ORACLE) documentation to back it up. It was something along the lines of this, where rpool@rpool.04-28-2017 is a snapshot:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.