Customer created a pool with 2 disks that were mirrored. He then wanted to see what would happen if he destroyed the mirror. He offlined the disk c1t5d0 then "destroy" it. Hi ZFS question. He then added back to the pool with the intention of it replacing itself as the mirror. However the pool doesn''t seem to be a "mirror pool" any more and once he onlined the disk he can''t offline it. cpb0814:/> zpool status pool: pool1 state: ONLINE scrub: resilver completed with 0 errors on Tue Jul 25 15:16:49 2006 config: NAME STATE READ WRITE CKSUM pool1 ONLINE 0 0 0 c0t0d0 ONLINE 0 0 0 33.0K resilvered c1t5d0 ONLINE 0 0 0 cpb0814:/> zpool offline pool1 c1t5d0 cannot offline /dev/dsk/c1t5d0: no valid replicas cpb0814:/> I believe he is running into bug 6328632. My questions 1. How does he rectify it 2. What would be the proper way to add a replace a 2 disk mirror Does the pool have to be destroyed and recreated ? Any information would be helpful. Thanks Jeff /\ \\ \ S U N M I C R O S Y S T E M S I N C. \ \\ / / \/ / / Jeff Evans - Technical Support Engineer / / \//\ email: jeffrey.evans at sun.com \//\ / / / / /\ / address: 4 Network Drive, Burlington 01803-0902 / \\ \ mailstop: UBUR04-105 \ \\ phone: 800-872-4786 \/ option 1, option 1, case-id #
You want ''zpool attach'' instead of ''zpool add''. What the customer did was add it back, but as a dynamic stripe instead of a second half of a mirror. And no, there is currently no way to remove a dynamically striped disk from a pool. We''re working on it. - Eric On Wed, Jul 26, 2006 at 02:12:11PM -0400, Jeffrey Evans wrote:> Customer created a pool with 2 disks that were mirrored. > He then wanted to see what would happen if he destroyed the mirror. > He offlined the disk c1t5d0 then "destroy" it. > > Hi ZFS question. > > He then added back to the pool with the intention of it replacing itself > as the mirror. However the pool doesn''t seem to be a "mirror pool" any > more and once he onlined the disk he can''t offline it. > > > cpb0814:/> zpool status > pool: pool1 > state: ONLINE > scrub: resilver completed with 0 errors on Tue Jul 25 15:16:49 2006 > config: > > NAME STATE READ WRITE CKSUM > pool1 ONLINE 0 0 0 > c0t0d0 ONLINE 0 0 0 33.0K resilvered > c1t5d0 ONLINE 0 0 0 > cpb0814:/> zpool offline pool1 c1t5d0 > cannot offline /dev/dsk/c1t5d0: no valid replicas > cpb0814:/> > > I believe he is running into bug 6328632. > My questions > 1. How does he rectify it > 2. What would be the proper way to add a replace a 2 disk mirror > Does the pool have to be destroyed and recreated ? > > Any information would be helpful. > > Thanks > > Jeff > /\ > \\ \ S U N M I C R O S Y S T E M S I N C. > \ \\ / > / \/ / / Jeff Evans - Technical Support Engineer > / / \//\ email: jeffrey.evans at sun.com > \//\ / / > / / /\ / address: 4 Network Drive, Burlington 01803-0902 > / \\ \ mailstop: UBUR04-105 > \ \\ phone: 800-872-4786 > \/ option 1, option 1, case-id # > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss-- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock
Hello Eric, Wednesday, July 26, 2006, 8:44:55 PM, you wrote: ES> And no, there is currently no way to remove a dynamically striped disk ES> from a pool. We''re working on it. That''s interesting (I mean that''s something is actually being done about it). Can you give us some specifics (features, time frames, something to try, ...)? Perhaps ''block rewriting'' so stripe width change could be done and rewriting of old data on stripes, etc.? -- Best regards, Robert mailto:rmilkowski at task.gda.pl http://milek.blogspot.com