Discussion:
restore backup
(too old to reply)
a***@public.gmane.org
2014-07-09 11:33:13 UTC
Permalink
Hello!

I have zfs snapshot dump 'mydump'

Is it possible to mount it in linux?

I created pool mypool:
fallocate -l 31G mypool
zpool create ....

oit-01 nchkz # zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
mypool 30.8G 594K 30.7G 0% 1.00x ONLINE -
zfs receive -vF -d testpool < file.backup


and after ~5 minutes I've got error:
receiving full stream of storage/pub/files-lvvrElKzeMSeaL6x6B+***@public.gmane.org into
mypool/pub/files-lvvrElKzeMSeaL6x6B+***@public.gmane.org
cannot receive new filesystem stream: invalid backup stream

zpool iostat give me info what alloc upper to ~15Gb and after error it is
resets



And I'm tring to just mount this file:

oit-01 nchkz # mount -t zfs mydump /mnt/111
filesystem 'mydump' cannot be mounted, unable to open the dataset


(Sorry for my bad English)

To unsubscribe from this group and stop receiving emails from it, send an email to zfs-discuss+unsubscribe-VKpPRiiRko7s4Z89Ie/***@public.gmane.org
Michael Kjörling
2014-07-09 13:19:35 UTC
Permalink
Post by a***@public.gmane.org
oit-01 nchkz # mount -t zfs mydump /mnt/111
filesystem 'mydump' cannot be mounted, unable to open the dataset
A "zfs send" stream is not a valid file system and thus cannot be
mounted directly. Also, the "zfs" file system type expects a dataset
name (as indicated by the error message), not a file.

Are you absolutely, totally, positively sure that the stream file has
not been corrupted?
--
Michael Kjörling • http://michael.kjorling.se • ***@kjorling.se
OpenPGP B501AC6429EF4514 http://michael.kjorling.se/public-keys/pgp
“People who think they know everything really annoy
those of us who know we don’t.” (Bjarne Stroustrup)

To unsubscribe from this group and stop receiving emails from it, send an email to zfs-discuss+unsubscribe-VKpPRiiRko7s4Z89Ie/***@public.gmane.org
Aidar Kamalov
2014-07-10 11:38:51 UTC
Permalink
Yes, file is corrupted :(

but it is have data, is it possible to restore files from this snapshot? I
tryed testdisk. no results..
foremost can restore file, but without names :(
Post by Michael Kjörling
Post by a***@public.gmane.org
oit-01 nchkz # mount -t zfs mydump /mnt/111
filesystem 'mydump' cannot be mounted, unable to open the dataset
A "zfs send" stream is not a valid file system and thus cannot be
mounted directly. Also, the "zfs" file system type expects a dataset
name (as indicated by the error message), not a file.
Are you absolutely, totally, positively sure that the stream file has
not been corrupted?
--
OpenPGP B501AC6429EF4514 http://michael.kjorling.se/public-keys/pgp
“People who think they know everything really annoy
those of us who know we don’t.” (Bjarne Stroustrup)
--
Aydar A. Kamalov

To unsubscribe from this group and stop receiving emails from it, send an email to zfs-discuss+unsubscribe-VKpPRiiRko7s4Z89Ie/***@public.gmane.org
S3th
2015-02-24 14:25:28 UTC
Permalink
I have a question about how can I backup a server with FreeBSD 10.0 with
ZFS as filesystem. I want to mention it that it has 2 HDD's and I can store
the backup only to the second HDD.

So, I have following:

#gpart status

Name Status Components

da0p1 OK da0
da0p2 OK da0
da0p3 OK da0

da1p1 OK da1
da1p2 OK da1
da1p3 OK da1

What I want is to backup & compress entire data from ( da0 )da0p1, da0p2,
da0p3 in directory /var from da1p3.

#df -h /

size Used Available Capacity Mounted on
38Gb 11Gb 27Gb 29% /

#df -h /home

size Used Available Capacity Mounted on
32Gb 4.7Gb 27Gb 15% /usr/home

#df -h /var
size Used Available Capacity Mounted on
28Gb 357Mb 27.Gb 1% /var


Gived the premises of my problem who and how can help me to backup the
first HDD on the second HDD in /var partiton/directory ?
Post by a***@public.gmane.org
Hello!
I have zfs snapshot dump 'mydump'
Is it possible to mount it in linux?
fallocate -l 31G mypool
zpool create ....
oit-01 nchkz # zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
mypool 30.8G 594K 30.7G 0% 1.00x ONLINE -
zfs receive -vF -d testpool < file.backup
receiving full stream of storage/pub/files[at]02.07.2014 into
mypool/pub/files[at]02.07.2014
cannot receive new filesystem stream: invalid backup stream
zpool iostat give me info what alloc upper to ~15Gb and after error it is
resets
oit-01 nchkz # mount -t zfs mydump /mnt/111
filesystem 'mydump' cannot be mounted, unable to open the dataset
(Sorry for my bad English)
To unsubscribe from this group and stop receiving emails from it, send an email to zfs-discuss+***@zfsonlinux.org.
m***@nonooo.eu
2015-02-24 14:26:44 UTC
Permalink
you may consider writing to the freebsd list...


http://lists.freebsd.org/mailman/listinfo/freebsd-fs

Le 24/02/2015
Post by S3th
I have a question about how can I backup a
server with FreeBSD 10.0 with ZFS as filesystem. I want to mention it
that it has 2 HDD's and I can store the backup only to the second HDD.
Post by S3th
#gpart status
Name Status
Components
Post by S3th
da0p1 OK da0
da0p2 OK da0
da0p3 OK da0
da1p1 OK
da1
Post by S3th
da1p2 OK da1
da1p3 OK da1
What I want is to backup &
compress entire data from ( da0 )da0p1, da0p2, da0p3 in directory /var
from da1p3.
Post by S3th
#df -h /
size Used Available Capacity Mounted
on
Post by S3th
38Gb 11Gb 27Gb 29% /
#df -h /home
size Used Available
Capacity Mounted on
Post by S3th
32Gb 4.7Gb 27Gb 15% /usr/home
#df -h /var
size Used Available Capacity Mounted on
Post by S3th
28Gb 357Mb 27.Gb 1% /var
Gived the premises of my problem who and how can help me to backup the
first HDD on the second HDD in /var partiton/directory ?
Post by S3th
miercuri,
Post by a***@public.gmane.org
Hello!
I have zfs snapshot dump 'mydump'
Is it possible to mount it in
linux?
Post by S3th
Post by a***@public.gmane.org
fallocate -l 31G mypool
zpool
create ....
Post by S3th
Post by a***@public.gmane.org
oit-01 nchkz # zpool list
NAME SIZE ALLOC FREE
CAP DEDUP HEALTH ALTROOT
Post by S3th
Post by a***@public.gmane.org
mypool 30.8G 594K 30.7G 0% 1.00x ONLINE -
zfs receive -vF -d testpool < file.backup
and after ~5 minutes
receiving full stream of
storage/pub/files[at]02.07.2014 into mypool/pub/files[at]02.07.2014
cannot receive new filesystem stream: invalid backup stream
Post by S3th
Post by a***@public.gmane.org
zpool
iostat give me info what alloc upper to ~15Gb and after error it is
resets
Post by S3th
Post by a***@public.gmane.org
oit-01 nchkz #
mount -t zfs mydump /mnt/111
Post by S3th
Post by a***@public.gmane.org
filesystem 'mydump' cannot be mounted,
unable to open the dataset
Post by S3th
Post by a***@public.gmane.org
(Sorry for my bad English)
To
unsubscribe from this group and stop receiving emails from it, send an
email to zfs-discuss+***@zfsonlinux.org [1].



Links:
------
[1] mailto:zfs-discuss+***@zfsonlinux.org

To unsubscribe from this group and stop receiving emails from it, send an email to zfs-discuss+***@zfsonlinux.org.
S3th
2015-02-24 15:48:46 UTC
Permalink
no no, I decline ur invitation.... because I was invited to post on your
forum..... so.... it's not nice to walk me around....
Post by m***@nonooo.eu
you may consider writing to the freebsd list...
http://lists.freebsd.org/mailman/listinfo/freebsd-fs
I have a question about how can I backup a server with FreeBSD 10.0 with
ZFS as filesystem. I want to mention it that it has 2 HDD's and I can store
the backup only to the second HDD.
#gpart status
Name Status Components
da0p1 OK da0
da0p2 OK da0
da0p3 OK da0
da1p1 OK da1
da1p2 OK da1
da1p3 OK da1
What I want is to backup & compress entire data from ( da0 )da0p1, da0p2,
da0p3 in directory /var from da1p3.
#df -h /
size Used Available Capacity Mounted on
38Gb 11Gb 27Gb 29% /
#df -h /home
size Used Available Capacity Mounted on
32Gb 4.7Gb 27Gb 15% /usr/home
#df -h /var
size Used Available Capacity Mounted on
28Gb 357Mb 27.Gb 1% /var
Gived the premises of my problem who and how can help me to backup the
first HDD on the second HDD in /var partiton/directory ?
Post by a***@public.gmane.org
Hello!
I have zfs snapshot dump 'mydump'
Is it possible to mount it in linux?
fallocate -l 31G mypool
zpool create ....
oit-01 nchkz # zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
mypool 30.8G 594K 30.7G 0% 1.00x ONLINE -
zfs receive -vF -d testpool < file.backup
receiving full stream of storage/pub/files[at]02.07.2014 into
mypool/pub/files[at]02.07.2014
cannot receive new filesystem stream: invalid backup stream
zpool iostat give me info what alloc upper to ~15Gb and after error it
is resets
oit-01 nchkz # mount -t zfs mydump /mnt/111
filesystem 'mydump' cannot be mounted, unable to open the dataset
(Sorry for my bad English)
To unsubscribe from this group and stop receiving emails from it, send an
To unsubscribe from this group and stop receiving emails from it, send an email to zfs-discuss+***@zfsonlinux.org.
Luke Olson
2015-02-24 17:32:41 UTC
Permalink
This is a forum for ZFS on Linux. While there are some overlaps between
platforms this isn't a general forum for ZFS on all platforms. The link
posted above for the FreeBSD forum would be a good place to ask the
question (zfs send and receive is probably the answer you're looking for
but they'll know for sure). Also don't hijack threads because it's rude and
makes it more difficult for people to follow the discussion.

Luke
Post by S3th
no no, I decline ur invitation.... because I was invited to post on your
forum..... so.... it's not nice to walk me around....
Post by m***@nonooo.eu
you may consider writing to the freebsd list...
http://lists.freebsd.org/mailman/listinfo/freebsd-fs
I have a question about how can I backup a server with FreeBSD 10.0 with
ZFS as filesystem. I want to mention it that it has 2 HDD's and I can store
the backup only to the second HDD.
#gpart status
Name Status Components
da0p1 OK da0
da0p2 OK da0
da0p3 OK da0
da1p1 OK da1
da1p2 OK da1
da1p3 OK da1
What I want is to backup & compress entire data from ( da0 )da0p1, da0p2,
da0p3 in directory /var from da1p3.
#df -h /
size Used Available Capacity Mounted on
38Gb 11Gb 27Gb 29% /
#df -h /home
size Used Available Capacity Mounted on
32Gb 4.7Gb 27Gb 15% /usr/home
#df -h /var
size Used Available Capacity Mounted on
28Gb 357Mb 27.Gb 1% /var
Gived the premises of my problem who and how can help me to backup the
first HDD on the second HDD in /var partiton/directory ?
Post by a***@public.gmane.org
Hello!
I have zfs snapshot dump 'mydump'
Is it possible to mount it in linux?
fallocate -l 31G mypool
zpool create ....
oit-01 nchkz # zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
mypool 30.8G 594K 30.7G 0% 1.00x ONLINE -
zfs receive -vF -d testpool < file.backup
receiving full stream of storage/pub/files[at]02.07.2014 into
mypool/pub/files[at]02.07.2014
cannot receive new filesystem stream: invalid backup stream
zpool iostat give me info what alloc upper to ~15Gb and after error it
is resets
oit-01 nchkz # mount -t zfs mydump /mnt/111
filesystem 'mydump' cannot be mounted, unable to open the dataset
(Sorry for my bad English)
To unsubscribe from this group and stop receiving emails from it, send an
To unsubscribe from this group and stop receiving emails from it, send
To unsubscribe from this group and stop receiving emails from it, send an email to zfs-discuss+***@zfsonlinux.org.
Loading...