Dump Restore on ZFS root system

2012-02-07 Thread dick
I run a ZFS on root FreeBSD system. I know I can backup with snapshots 
but I want a dump/restore action because I want to transfer this system 
to a UFS virtual FreeBSD machine.

My question is: will dump / (root) make a dump of *ALL* other directories?

yanta# df -h
Filesystem   SizeUsed   Avail Capacity  
Mounted on

zroot56G335M 55G 1%/
devfs1.0K1.0K  0B   100%/dev
zroot/tmp56G 42M 55G 0%/tmp
zroot/usr  60G4.7G 55G 8%/usr
zroot/usr/home  58G2.4G 55G 4%/usr/home
zroot/usr/ports   56G253M 55G 0%/usr/ports
zroot/usr/ports/distfiles56G291M 55G 1%
/usr/ports/distfiles

zroot/usr/ports/packages  55G 21K 55G 0%/usr/ports/packages
zroot/var  56G571M 55G 1%/var
zroot/var/crash   55G 23K 55G 0%/var/crash
zroot/var/db56G337M 55G 1%/var/db
zroot/var/db/pkg55G3.7M 55G 0%/var/db/pkg
zroot/var/empty 55G 21K 55G 0%/var/empty
zroot/var/log   55G827K 55G 0%/var/log
zroot/var/mail 55G 22K 55G 0%/var/mail
zroot/var/run   55G 53K 55G 0%/var/run
zroot/var/tmp  55G143K 55G 0%/var/tmp
devfs  1.0K1.0K  0B   
100%/var/named/dev


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Dump Restore on ZFS root system

2012-02-07 Thread Vincent Hoffman
On 07/02/2012 11:00, dick wrote:
 I run a ZFS on root FreeBSD system. I know I can backup with snapshots
 but I want a dump/restore action because I want to transfer this
 system to a UFS virtual FreeBSD machine.
 My question is: will dump / (root) make a dump of *ALL* other
 directories?

Dump works at the filesystem level and will not work on a zfs filesystem
[root@banshee /backup/local/zfs]# dump -b 64  -f - ./
dump: ./: unknown file system

I'd use tar or cpio or pax or something.
On a UFS filesystem dump will only dump the filesystem specified and
will not cross mountpoints.

Vince
 yanta# df -h
 Filesystem   SizeUsed   Avail Capacity 
 Mounted on
 zroot56G335M 55G 1%/
 devfs1.0K1.0K  0B  
 100%/dev
 zroot/tmp56G 42M 55G 0%/tmp
 zroot/usr  60G4.7G 55G 8%/usr
 zroot/usr/home  58G2.4G 55G 4%/usr/home
 zroot/usr/ports   56G253M 55G 0%   
 /usr/ports
 zroot/usr/ports/distfiles56G291M 55G 1%   
 /usr/ports/distfiles
 zroot/usr/ports/packages  55G 21K 55G 0%   
 /usr/ports/packages
 zroot/var  56G571M 55G 1%/var
 zroot/var/crash   55G 23K 55G 0%   
 /var/crash
 zroot/var/db56G337M 55G 1%/var/db
 zroot/var/db/pkg55G3.7M 55G 0%/var/db/pkg
 zroot/var/empty 55G 21K 55G 0%/var/empty
 zroot/var/log   55G827K 55G 0%   
 /var/log
 zroot/var/mail 55G 22K 55G 0%   
 /var/mail
 zroot/var/run   55G 53K 55G 0%   
 /var/run
 zroot/var/tmp  55G143K 55G 0%/var/tmp
 devfs  1.0K1.0K  0B  
 100%/var/named/dev

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Dump Restore on ZFS root system

2012-02-07 Thread dick

Op 7-2-2012 12:23, Vincent Hoffman schreef:

On 07/02/2012 11:00, dick wrote:

I run a ZFS on root FreeBSD system. I know I can backup with snapshots
but I want a dump/restore action because I want to transfer this
system to a UFS virtual FreeBSD machine.
My question is: will dump / (root) make a dump of *ALL* other
directories?


Dump works at the filesystem level and will not work on a zfs filesystem
[root@banshee /backup/local/zfs]# dump -b 64  -f - ./
dump: ./: unknown file system

I'd use tar or cpio or pax or something.
On a UFS filesystem dump will only dump the filesystem specified and
will not cross mountpoints.

OK, got it. I will have to read up on the best option (tar, cpio or pax)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Dump Restore on ZFS root system

2012-02-07 Thread George Kontostanos
On Tue, Feb 7, 2012 at 1:55 PM, dick d...@nagual.nl wrote:
 Op 7-2-2012 12:23, Vincent Hoffman schreef:

 On 07/02/2012 11:00, dick wrote:

 I run a ZFS on root FreeBSD system. I know I can backup with snapshots
 but I want a dump/restore action because I want to transfer this
 system to a UFS virtual FreeBSD machine.
 My question is: will dump / (root) make a dump of *ALL* other
 directories?

 Dump works at the filesystem level and will not work on a zfs filesystem
 [root@banshee /backup/local/zfs]# dump -b 64  -f - ./
 dump: ./: unknown file system

 I'd use tar or cpio or pax or something.
 On a UFS filesystem dump will only dump the filesystem specified and
 will not cross mountpoints.

 OK, got it. I will have to read up on the best option (tar, cpio or pax)

You can always clone it using zfs send / receive to your vm:

http://www.aisecure.net/2011/03/26/cloning-a-zfs-bootable-system/


-- 
George Kontostanos
Aicom telecoms ltd
http://www.aisecure.net
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Dump Restore on ZFS root system

2012-02-07 Thread William Brown

On 07/02/2012, at 22:25, dick wrote:

 Op 7-2-2012 12:23, Vincent Hoffman schreef:
 On 07/02/2012 11:00, dick wrote:
 I run a ZFS on root FreeBSD system. I know I can backup with snapshots
 but I want a dump/restore action because I want to transfer this
 system to a UFS virtual FreeBSD machine.
 My question is: will dump / (root) make a dump of *ALL* other
 directories?
 
 Dump works at the filesystem level and will not work on a zfs filesystem
 [root@banshee /backup/local/zfs]# dump -b 64  -f - ./
 dump: ./: unknown file system
 
 I'd use tar or cpio or pax or something.
 On a UFS filesystem dump will only dump the filesystem specified and
 will not cross mountpoints.
 OK, got it. I will have to read up on the best option (tar, cpio or pax)
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

Why not use the ZFS send / receive command?



Sincerely,

William Brown

Research  Teaching, Technology Services
The University of Adelaide, AUSTRALIA 5005

CRICOS Provider Number 00123M
-
IMPORTANT: This message may contain confidential or legally privileged
information. If you think it was sent to you by mistake, please delete all
copies and advise the sender. For the purposes of the SPAM Act 2003, this
email is authorised by The University of Adelaide.

pgp.mit.edu
http://pgp.mit.edu:11371/pks/lookup?op=vindexsearch=0x3C0AC6DAB2F928A2






signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Dump Restore on ZFS root system

2012-02-07 Thread Warren Block

On Tue, 7 Feb 2012, dick wrote:


Op 7-2-2012 12:23, Vincent Hoffman schreef:

On 07/02/2012 11:00, dick wrote:

I run a ZFS on root FreeBSD system. I know I can backup with snapshots
but I want a dump/restore action because I want to transfer this
system to a UFS virtual FreeBSD machine.
My question is: will dump / (root) make a dump of *ALL* other
directories?


Dump works at the filesystem level and will not work on a zfs filesystem
[root@banshee /backup/local/zfs]# dump -b 64  -f - ./
dump: ./: unknown file system

I'd use tar or cpio or pax or something.
On a UFS filesystem dump will only dump the filesystem specified and
will not cross mountpoints.

OK, got it. I will have to read up on the best option (tar, cpio or pax)


Or rsync, with -a, -H, and probably some other options I can't recall.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org