Karel Gardas
2010-Nov-25 15:32 UTC
[zfs-discuss] How to zfs send current stage of fs from read-only pool?
Hello, I''m trying to recover from zfs pool crash described here: http://www.opensolaris.org/jive/thread.jspa?threadID=135675&tstart=0 -- I''ve successfully used Victor''s advice and now I do have my pool imported in read-only mode. I see the data on filesystems and would like to backup all of them using zfs send/zfs receive to another backup pool. My problem is that `zfs send'' supports sending only of snapshot and I cannot create any new snapshot on the read-only pool. Is there any workaround for this? Something for example like virtual @now snapshot would be great to have for those purposes IMHO... Thanks for any idea! Karel -- This message posted from opensolaris.org
Cindy Swearingen
2010-Nov-29 21:59 UTC
[zfs-discuss] How to zfs send current stage of fs from read-only pool?
Karel, You can''t create snapshots in a read-only pool. You will have to use something else besides zfs snapshots, such as tar or cpio. You could have used zfs send if a snapshot already existed but you can''t write anything to the pool when it is in read-only mode. Thanks, Cindy On 11/25/10 08:32, Karel Gardas wrote:> Hello, > I''m trying to recover from zfs pool crash described here: http://www.opensolaris.org/jive/thread.jspa?threadID=135675&tstart=0 -- I''ve successfully used Victor''s advice and now I do have my pool imported in read-only mode. I see the data on filesystems and would like to backup all of them using zfs send/zfs receive to another backup pool. > My problem is that `zfs send'' supports sending only of snapshot and I cannot create any new snapshot on the read-only pool. Is there any workaround for this? Something for example like virtual @now snapshot would be great to have for those purposes IMHO... > Thanks for any idea! > Karel