LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This 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


Reply
  Search this Thread
Old 04-29-2017, 11:06 AM   #1
Laserbeak
Member
 
Registered: Jan 2017
Location: Manhattan, NYC NY
Distribution: Mac OS X, iOS, Solaris
Posts: 508

Rep: Reputation: 142Reputation: 142
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!
 
Old 04-30-2017, 03:32 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,761

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
Quote:
Originally Posted by Laserbeak View Post
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... ;-)
 
Old 04-30-2017, 09:53 AM   #3
Laserbeak
Member
 
Registered: Jan 2017
Location: Manhattan, NYC NY
Distribution: Mac OS X, iOS, Solaris
Posts: 508

Original Poster
Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by jlliagre View Post
What problems?
What errors?

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:

Code:
zfs send -Rv rpool@rpool.04-28-2017  | zfs receive snap
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Need help with Slackware (14.2 beta) and ZFS - Not automounting the pool. PCManiacpt Slackware 13 09-18-2018 08:52 AM
LXer: How to use snapshots, clones and replication in ZFS on Linux LXer Syndicated Linux News 0 12-11-2015 06:02 AM
ZFS Snapshots and low space on zpool DarkhunterCZ Linux - Server 0 12-03-2015 07:45 PM
re-mount zfs pool masonje Linux - Server 0 09-27-2015 03:44 PM
LXer: OpenSolaris and ZFS: The beauty of snapshots. LXer Syndicated Linux News 0 03-21-2010 03:00 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 10:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration