[zfs-discuss] Puzzling problem with zfs receive exit status

2012-03-29 Thread Borja Marcos
Hello, I hope someone has an idea. I have a replication program that copies a dataset from one server to another one. The replication mechanism is the obvious one, of course: zfs send -Ri from snapshot(n-1) snapshot(n) file scp file remote machine (I do it this way instead of using a

Re: [zfs-discuss] Puzzling problem with zfs receive exit status

2012-03-29 Thread Ian Collins
On 03/29/12 10:46 PM, Borja Marcos wrote: Hello, I hope someone has an idea. I have a replication program that copies a dataset from one server to another one. The replication mechanism is the obvious one, of course: zfs send -Ri from snapshot(n-1) snapshot(n) file scp file remote machine

[zfs-discuss] Puzzling problem with zfs receive exit status

2012-03-29 Thread Carsten John
-Original message- To: zfs-discuss@opensolaris.org; From: Borja Marcos bor...@sarenet.es Sent: Thu 29-03-2012 11:49 Subject:[zfs-discuss] Puzzling problem with zfs receive exit status Hello, I hope someone has an idea. I have a replication program that copies a

Re: [zfs-discuss] Puzzling problem with zfs receive exit status

2012-03-29 Thread Borja Marcos
On Mar 29, 2012, at 11:59 AM, Ian Collins wrote: Does zfs receive produce any warnings? Have you tried adding -v? Thank you very much Ian and Carsten. Well, adding a -v gave me a clue. Turns out that one of the old snapshots had a clone created. zfs receive -v was complaining that it

Re: [zfs-discuss] Puzzling problem with zfs receive exit status

2012-03-29 Thread Richard Elling
On Mar 29, 2012, at 4:33 AM, Borja Marcos wrote: On Mar 29, 2012, at 11:59 AM, Ian Collins wrote: Does zfs receive produce any warnings? Have you tried adding -v? Thank you very much Ian and Carsten. Well, adding a -v gave me a clue. Turns out that one of the old snapshots had a

Re: [zfs-discuss] Puzzling problem with zfs receive exit status

2012-03-29 Thread Borja Marcos
On Mar 29, 2012, at 5:11 PM, Richard Elling wrote: Thank you very much Ian and Carsten. Well, adding a -v gave me a clue. Turns out that one of the old snapshots had a clone created. zfs receive -v was complaining that it couldn't destroy an old snapshot, which wasn't visible but had

[zfs-discuss] Accessing Data from a detached device.

2012-03-29 Thread Matt Keenan
Hi, Is it possible to access the data from a detached device from an mirrored pool. Given a two device mirrored pool, if you zpool detach one device. Can the data on the removed device be accessed in some means. From what I can see you can attach the device back to the original pool, but

Re: [zfs-discuss] Accessing Data from a detached device.

2012-03-29 Thread Casper . Dik
Is it possible to access the data from a detached device from an mirrored pool. If it is detached, I don't think there is a way to get access to the mirror. Had you used split, you should be able to reimport it. (You can try aiming zpool import at the disk but I'm not hopeful) Casper

Re: [zfs-discuss] Accessing Data from a detached device.

2012-03-29 Thread Cindy Swearingen
Hi Matt, There is no easy way to access data from a detached device. You could try to force import it on another system or under a different name on the same system with the remaining device. The easiest way is to split the mirrored pool. See the steps below. Thanks, Cindy # zpool status

Re: [zfs-discuss] Accessing Data from a detached device.

2012-03-29 Thread Matt Keenan
Cindy/Casper, Thanks for the pointer, luckily I'd not done the detach before sending the email, split seems the way to go. thanks again Matt On 03/29/12 05:13 PM, Cindy Swearingen wrote: Hi Matt, There is no easy way to access data from a detached device. You could try to force import it

Re: [zfs-discuss] Accessing Data from a detached device.

2012-03-29 Thread Daniel Carosone
On Thu, Mar 29, 2012 at 05:54:47PM +0200, casper@oracle.com wrote: Is it possible to access the data from a detached device from an mirrored pool. If it is detached, I don't think there is a way to get access to the mirror. Had you used split, you should be able to reimport it. (You