Hi Folks,

I'm trying to backup my /export folder to an USB disk by zfs send/receive.
But zfs receive try to mount the dataset to a mountpoint which is already
mounted on the existing zfs system, and failed. see below:

1) zfs list
# zfs list
NAME                                 USED  AVAIL  REFER  MOUNTPOINT
rpool                               5.63G  69.2G  56.5K  /rpool
[EMAIL PROTECTED]                         18K      -  55.5K  -
rpool/ROOT                          3.38G  69.2G    18K  /rpool/ROOT
rpool/[EMAIL PROTECTED]                      0      -    18K  -
rpool/ROOT/opensolaris              3.38G  69.2G  2.47G  legacy
rpool/ROOT/[EMAIL PROTECTED]      60.0M      -  2.22G  -
rpool/ROOT/opensolaris/opt           863M  69.2G   863M  /opt
rpool/ROOT/opensolaris/[EMAIL PROTECTED]    72K      -  3.60M  -
rpool/export                        2.25G  69.2G    19K  /export
rpool/[EMAIL PROTECTED]                  15K      -    19K  -
rpool/export/home                   2.25G  69.2G  2.25G  /export/home
rpool/export/[EMAIL PROTECTED]             19K      -    21K  -

2) create a pool on my usb disk
#zpool create tank /dev/dsk/c7t0d0

3) backup to the USB disk
# zfs send -R rpool/[EMAIL PROTECTED] | zfs receive -dF tank
cannot mount '/export': directory is not empty

See, /export is already mounted by rpool/export, and of course
it failed when "zfs receive" want to mount tank/export to /export.

Any suggestions?

Thanks,
-Aubrey
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to