Re: [zfs-discuss] Accidentally added disk instead of attaching

2009-12-14 Thread Martijn de Munnik
On Mon, 2009-12-07 at 23:31 +0100, Martijn de Munnik wrote: On Dec 7, 2009, at 11:23 PM, Daniel Carosone wrote: but if you attempt to add a disk to a redundant config, you'll see an error message similar [..] Doesn't the mismatched replication message help? Not if you're trying to

Re: [zfs-discuss] Accidentally added disk instead of attaching

2009-12-08 Thread Daniel Carosone
Doesn't the mismatched replication message help? Not if you're trying to make a single disk pool redundant by adding .. er, attaching .. a mirror; then there won't be such a warning, however effective that warning might or might not be otherwise. Not a problem because you can then detach

Re: [zfs-discuss] Accidentally added disk instead of attaching

2009-12-08 Thread Kjetil Torgrim Homme
Daniel Carosone d...@geek.com.au writes: Not if you're trying to make a single disk pool redundant by adding .. er, attaching .. a mirror; then there won't be such a warning, however effective that warning might or might not be otherwise. Not a problem because you can then detach the vdev

Re: [zfs-discuss] Accidentally added disk instead of attaching

2009-12-07 Thread Andriy Gapon
on 06/12/2009 19:40 Volker A. Brandt said the following: I wanted to add a disk to the tank pool to create a mirror. I accidentally used zpool add ? instead of zpool attach ? and now the disk is added. Is there a way to remove the disk without loosing data? Been there, done that -- at a

Re: [zfs-discuss] Accidentally added disk instead of attaching

2009-12-07 Thread Cindy Swearingen
I agree that zpool attach and add look similar in their syntax, but if you attempt to add a disk to a redundant config, you'll see an error message similar to the following: # zpool status export pool: export state: ONLINE scrub: none requested config: NAMESTATE READ

Re: [zfs-discuss] Accidentally added disk instead of attaching

2009-12-07 Thread Richard Elling
On Dec 7, 2009, at 10:42 AM, Cindy Swearingen wrote: I agree that zpool attach and add look similar in their syntax, but if you attempt to add a disk to a redundant config, you'll see an error message similar to the following: # zpool status export pool: export state: ONLINE scrub: none

Re: [zfs-discuss] Accidentally added disk instead of attaching

2009-12-07 Thread Volker A. Brandt
Andriy Gapon writes: on 06/12/2009 19:40 Volker A. Brandt said the following: I wanted to add a disk to the tank pool to create a mirror. I accidentally used zpool add ? instead of zpool attach ? and now the disk is added. Is there a way to remove the disk without loosing data? Been

Re: [zfs-discuss] Accidentally added disk instead of attaching

2009-12-07 Thread Daniel Carosone
Jokes aside, this is too easy to make a mistake with the consequences that are too hard to correct. Anyone disagrees? No, and this sums up the situation nicely, in that there are two parallel paths toward a resolution: - make the mistake harder to make (various ideas here) - make the

Re: [zfs-discuss] Accidentally added disk instead of attaching

2009-12-07 Thread Daniel Carosone
but if you attempt to add a disk to a redundant config, you'll see an error message similar [..] Doesn't the mismatched replication message help? Not if you're trying to make a single disk pool redundant by adding .. er, attaching .. a mirror; then there won't be such a warning, however

Re: [zfs-discuss] Accidentally added disk instead of attaching

2009-12-07 Thread Richard Elling
On Dec 7, 2009, at 2:23 PM, Daniel Carosone wrote: but if you attempt to add a disk to a redundant config, you'll see an error message similar [..] Doesn't the mismatched replication message help? Not if you're trying to make a single disk pool redundant by adding .. er, attaching .. a

Re: [zfs-discuss] Accidentally added disk instead of attaching

2009-12-07 Thread Ed Plese
On Mon, Dec 7, 2009 at 12:42 PM, Cindy Swearingen cindy.swearin...@sun.com wrote: I agree that zpool attach and add look similar in their syntax, but if you attempt to add a disk to a redundant config, you'll see an error message similar to the following: # zpool status export  pool: export

Re: [zfs-discuss] Accidentally added disk instead of attaching

2009-12-07 Thread Martijn de Munnik
On Dec 7, 2009, at 11:23 PM, Daniel Carosone wrote: but if you attempt to add a disk to a redundant config, you'll see an error message similar [..] Doesn't the mismatched replication message help? Not if you're trying to make a single disk pool redundant by adding .. er, attaching ..

Re: [zfs-discuss] Accidentally added disk instead of attaching

2009-12-07 Thread Martijn de Munnik
On Dec 7, 2009, at 11:32 PM, Ed Plese wrote: On Mon, Dec 7, 2009 at 12:42 PM, Cindy Swearingen cindy.swearin...@sun.com wrote: I agree that zpool attach and add look similar in their syntax, but if you attempt to add a disk to a redundant config, you'll see an error message similar to the

Re: [zfs-discuss] Accidentally added disk instead of attaching

2009-12-07 Thread Ed Plese
On Mon, Dec 7, 2009 at 4:32 PM, Ed Plese e...@edplese.com wrote: Would it be beneficial to have a command line option to zpool that would only preview or do a dry-run through the changes, but instead just display what the pool would look like after the operation and leave the pool unchanged?  

Re: [zfs-discuss] Accidentally added disk instead of attaching

2009-12-07 Thread Damon Atkins
What about removing attach/deattach and replace it with zpool add [-fn] 'pool' submirror 'device/mirrorname' 'new_device' e.g. NAMESTATE READ WRITE CKSUM rpoolONLINE 0 0 0 mirror-01 ONLINE 0 0 0 c4d0s0 ONLINE

[zfs-discuss] Accidentally added disk instead of attaching

2009-12-06 Thread Martijn de Munnik
Hi, I wanted to add a disk to the tank pool to create a mirror. I accidentally used zpool add … instead of zpool attach … and now the disk is added. Is there a way to remove the disk without loosing data? Or maybe change it to mirror? Thanks, Martijn -- This message posted from

Re: [zfs-discuss] Accidentally added disk instead of attaching

2009-12-06 Thread Martijn de Munnik
I saw this bug report… http://bugs.opensolaris.org/view_bug.do?bug_id=4852783 -- This message posted from opensolaris.org ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Re: [zfs-discuss] Accidentally added disk instead of attaching

2009-12-06 Thread Martijn de Munnik
Do you know a good zfs backup restore walktrough online? -- This message posted from opensolaris.org ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Re: [zfs-discuss] Accidentally added disk instead of attaching

2009-12-06 Thread Volker A. Brandt
Do you know a good zfs backup restore walktrough online? Not really. Check out the zfs send and receive commands in the ZFS Administration Guide: http://docs.sun.com/app/docs/doc/819-5461/gbinw?a=view Basically, you make a snapshot of every filesystem you want to backup, then you use zfs send