Re: backing up ZFS

2012-10-27 Thread Bryan Hodgson

'dump' will not work on ZFS.  This fact is bound in to the nature
of ZFS.

'tar' will work, but by default will not cross mount points due to
the use of the --one-file-system parameter by amanda (this is
actually a good thing).  You can alter this behavior to a certain
extent by the use of the 'include' parameter in your DLE
definition.

Amanda has supported the use of 'zfs send' as a backup method for
some time now.  You'll need to check the documentation on details.

The BSD's don't automatically organize rpool on the Solaris model,
and boot environment administration of the type present in Solaris
is (in my experience) problematic (although there are some OSS
tools to do this, I haven't had great success with them).

HTH.

Bryan

On Sat, Oct 27, 2012 at 10:24:04AM +0200, Gour wrote:
> On Fri, 26 Oct 2012 11:40:20 -0400
> Brian Cuttler  wrote:
> 
> > That is odd, and not reflective out output for ZFS file systems
> > on a Solaris box.
> 
> Hmm..
> 
> > Clearly the script will not work for you as intended.
> 
> You mean dump or even gnutar?
> 
> > I have no clue what tank0/ROOT/default contains, suspect
> > /root/default is the mount point, but you'd know and I
> > can only guess. Suspect tank0/ROOT is in fact /root.
> 
> Here I'll include df-h output as well:
> 
> [gour@atmarama gour] df
> -h
> ~ Filesystem   SizeUsed   Avail Capacity  Mounted
> on tank0/ROOT/default   368G5.5G363G 1%/
> devfs1.0k1.0k  0B   100%/dev
> procfs   4.0k4.0k  0B   100%/proc
> linprocfs4.0k4.0k  0B
> 100%/compat/linux/proc tank0/root   363G 40M
> 363G 0%/root tank0/tmp363G126k
> 363G 0%/tmp tank0/usr/home   363G 73k
> 363G 0%/usr/home tank0/usr/home/gour  893G529G
> 363G59%/usr/home/gour tank0/usr/jails  363G
> 83M363G 0%/usr/jails tank0/usr/obj363G
> 31k363G 0%/usr/obj tank0/usr/pbi374G
> 11G363G 3%/usr/pbi tank0/usr/ports  363G
> 675M363G 0%/usr/ports tank0/usr/ports/distfiles363G
> 106M363G 0%/usr/ports/distfiles
> tank0/usr/src363G435M363G 0%/usr/src
> tank0/var/audit  363G 31k363G 0%/var/audit
> tank0/var/log363G626k363G 0%/var/log
> tank0/var/tmp363G114k363G 0%/var/tmp
> 
> 
> and zfs list (again):
> 
> [gour@atmarama gour] zfs list 
>~
> NAMEUSED  AVAIL  REFER  MOUNTPOINT
> tank0   550G   363G31K  legacy
> tank0/ROOT 5.52G   363G31K  legacy
> tank0/ROOT/default 5.52G   363G  5.52G  /mnt
> tank0/root 40.1M   363G  40.1M  /root
> tank0/swap 2.06G   365G  37.8M  -
> tank0/tmp   127K   363G   127K  /tmp
> tank0/usr   543G   363G31K  /mnt/usr
> tank0/usr/home  530G   363G  73.5K  /usr/home
> tank0/usr/home/gour 530G   363G   530G  /usr/home/gour
> tank0/usr/jails83.8M   363G  83.8M  /usr/jails
> tank0/usr/obj31K   363G31K  /usr/obj
> tank0/usr/pbi  11.6G   363G  11.6G  /usr/pbi
> tank0/usr/ports 782M   363G   676M  /usr/ports
> tank0/usr/ports/distfiles   106M   363G   106M  /usr/ports/distfiles
> tank0/usr/src   435M   363G   435M  /usr/src
> tank0/var   802K   363G31K  /mnt/var
> tank0/var/audit  31K   363G31K  /var/audit
> tank0/var/log   626K   363G   626K  /var/log
> tank0/var/tmp   114K   363G   114K  /var/tmp
> 
> 
> Does it help?
> 
> > I can not be 100% certain about linux, but as far as Solaris
> > goes (I believe linux to be the same) dump will only dump ext
> > type, ufs, xfs etc type file systems, that tar is always used
> > with ZFS file systems.
> 
> I'm on Free(PC)BSD.
> 
> 
> Sincerely,
> Gour
> 
> -- 
> A person who has given up all desires for sense gratification, 
> who lives free from desires, who has given up all sense of 
> proprietorship and is devoid of false ego ? he alone can 
> attain real peace.
> 
> http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810
> 


Re: backing up ZFS

2012-10-27 Thread Gour
On Fri, 26 Oct 2012 11:40:20 -0400
Brian Cuttler  wrote:

> That is odd, and not reflective out output for ZFS file systems
> on a Solaris box.

Hmm..

> Clearly the script will not work for you as intended.

You mean dump or even gnutar?

> I have no clue what tank0/ROOT/default contains, suspect
> /root/default is the mount point, but you'd know and I
> can only guess. Suspect tank0/ROOT is in fact /root.

Here I'll include df-h output as well:

[gour@atmarama gour] df
-h
~ Filesystem   SizeUsed   Avail Capacity  Mounted
on tank0/ROOT/default   368G5.5G363G 1%/
devfs1.0k1.0k  0B   100%/dev
procfs   4.0k4.0k  0B   100%/proc
linprocfs4.0k4.0k  0B
100%/compat/linux/proc tank0/root   363G 40M
363G 0%/root tank0/tmp363G126k
363G 0%/tmp tank0/usr/home   363G 73k
363G 0%/usr/home tank0/usr/home/gour  893G529G
363G59%/usr/home/gour tank0/usr/jails  363G
83M363G 0%/usr/jails tank0/usr/obj363G
31k363G 0%/usr/obj tank0/usr/pbi374G
11G363G 3%/usr/pbi tank0/usr/ports  363G
675M363G 0%/usr/ports tank0/usr/ports/distfiles363G
106M363G 0%/usr/ports/distfiles
tank0/usr/src363G435M363G 0%/usr/src
tank0/var/audit  363G 31k363G 0%/var/audit
tank0/var/log363G626k363G 0%/var/log
tank0/var/tmp363G114k363G 0%/var/tmp


and zfs list (again):

[gour@atmarama gour] zfs list   
 ~
NAMEUSED  AVAIL  REFER  MOUNTPOINT
tank0   550G   363G31K  legacy
tank0/ROOT 5.52G   363G31K  legacy
tank0/ROOT/default 5.52G   363G  5.52G  /mnt
tank0/root 40.1M   363G  40.1M  /root
tank0/swap 2.06G   365G  37.8M  -
tank0/tmp   127K   363G   127K  /tmp
tank0/usr   543G   363G31K  /mnt/usr
tank0/usr/home  530G   363G  73.5K  /usr/home
tank0/usr/home/gour 530G   363G   530G  /usr/home/gour
tank0/usr/jails83.8M   363G  83.8M  /usr/jails
tank0/usr/obj31K   363G31K  /usr/obj
tank0/usr/pbi  11.6G   363G  11.6G  /usr/pbi
tank0/usr/ports 782M   363G   676M  /usr/ports
tank0/usr/ports/distfiles   106M   363G   106M  /usr/ports/distfiles
tank0/usr/src   435M   363G   435M  /usr/src
tank0/var   802K   363G31K  /mnt/var
tank0/var/audit  31K   363G31K  /var/audit
tank0/var/log   626K   363G   626K  /var/log
tank0/var/tmp   114K   363G   114K  /var/tmp


Does it help?

> I can not be 100% certain about linux, but as far as Solaris
> goes (I believe linux to be the same) dump will only dump ext
> type, ufs, xfs etc type file systems, that tar is always used
> with ZFS file systems.

I'm on Free(PC)BSD.


Sincerely,
Gour

-- 
A person who has given up all desires for sense gratification, 
who lives free from desires, who has given up all sense of 
proprietorship and is devoid of false ego — he alone can 
attain real peace.

http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810