Srinivas Chadalavada
2008-Sep-25 22:21 UTC
[zfs-discuss] RAIDZ one of the disk showing unavail
This is on X86 box running solaris10 I created RAIDZ using this command. These are new disks previously under hardware raid control on X4140 zpool create -f -m /export/content export_content raidz c0t2d0 c0t3d0 c0t4d0 c0t5d0 c0t6d0 c0t7d0 Here is the output ech3-mes02.prod:schadala[563] ~ $ zpool status -x pool: export_content state: DEGRADED status: One or more devices could not be opened. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Attach the missing device and online it using ''zpool online''. see: http://www.sun.com/msg/ZFS-8000-D3 scrub: none requested config: NAME STATE READ WRITE CKSUM export_content DEGRADED 0 0 0 raidz1 DEGRADED 0 0 0 c0t2d0 UNAVAIL 0 0 0 cannot open c0t3d0 ONLINE 0 0 0 c0t4d0 ONLINE 0 0 0 c0t5d0 ONLINE 0 0 0 c0t6d0 ONLINE 0 0 0 c0t7d0 ONLINE 0 0 0 errors: No known data errors I see the first disk as unavailble, How do i make it online? I run this command, it says manual reapir needed, did anyone had this problem before? ech3-mes03.prod:schadala[523] ~ $ sudo zpool replace -f export_content c0t2d0 invalid vdev specification the following errors must be manually repaired: /dev/dsk/c0t2d0s0 is part of active ZFS pool export_content. Please see zpool(1M). -- This message posted from opensolaris.org
Srinivas Chadalavada wrote:> I see the first disk as unavailble, How do i make it online?By replacing it with a non-broken one. -- Ralf Ramge Senior Solaris Administrator, SCNA, SCSA Tel. +49-721-91374-3963 ralf.ramge at webde.de - http://web.de/ 1&1 Internet AG Brauerstra?e 48 76135 Karlsruhe Amtsgericht Montabaur HRB 6484 Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Oliver Mauss, Achim Weiss Aufsichtsratsvorsitzender: Michael Scheeren
>>>>> "sc" == Srinivas Chadalavada <chadalavada2002 at yahoo.com> writes: >>>>> "rr" == Ralf Ramge <ralf.ramge at webde.de> writes:sc> I see the first disk as unavailble, How do i make it online? rr> By replacing it with a non-broken one. Ralf, aren''t you missing this obstinence-error: sc> the following errors must be manually repaired: sc> /dev/dsk/c0t2d0s0 is part of active ZFS pool export_content. and he used the -f flag. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 304 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20080926/49caff86/attachment.bin>
Miles Nordin wrote:> Ralf, aren''t you missing this obstinence-error: > > sc> the following errors must be manually repaired: > sc> /dev/dsk/c0t2d0s0 is part of active ZFS pool export_content. > > and he used the -f flag.No, I saw it. My understanding has been that the drive was unavailable right after the *creation* of the zpool. And replacing a broken drive with itself doesn''t make sense. And after replacing the drive with a working one, ZFS should recognize this automatically. -- Ralf Ramge Senior Solaris Administrator, SCNA, SCSA Tel. +49-721-91374-3963 ralf.ramge at webde.de - http://web.de/ 1&1 Internet AG Brauerstra?e 48 76135 Karlsruhe Amtsgericht Montabaur HRB 6484 Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Oliver Mauss, Achim Weiss Aufsichtsratsvorsitzender: Michael Scheeren