From owner-freebsd-fs@FreeBSD.ORG Fri Jun 3 17:39:29 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4DCD0106566B for ; Fri, 3 Jun 2011 17:39:29 +0000 (UTC) (envelope-from universite@ukr.net) Received: from otrada.od.ua (universite-1-pt.tunnel.tserv24.sto1.ipv6.he.net [IPv6:2001:470:27:140::2]) by mx1.freebsd.org (Postfix) with ESMTP id C98AD8FC0C for ; Fri, 3 Jun 2011 17:39:28 +0000 (UTC) Received: from [IPv6:2001:470:28:140:6c98:8f17:eeb3:d87e] ([IPv6:2001:470:28:140:6c98:8f17:eeb3:d87e]) (authenticated bits=0) by otrada.od.ua (8.14.4/8.14.4) with ESMTP id p53HdNIH008319 for ; Fri, 3 Jun 2011 20:39:24 +0300 (EEST) (envelope-from universite@ukr.net) Message-ID: <4DE91C38.8030602@ukr.net> Date: Fri, 03 Jun 2011 20:39:04 +0300 From: "Vladislav V. Prodan" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: freebsd-fs@freebsd.org References: <4DDC0D13.3030401@ukr.net> In-Reply-To: <4DDC0D13.3030401@ukr.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-95.5 required=5.0 tests=FREEMAIL_FROM,FSL_RU_URL, RDNS_NONE, SPF_SOFTFAIL, T_TO_NO_BRKTS_FREEMAIL, USER_IN_WHITELIST autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mary-teresa.otrada.od.ua X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (otrada.od.ua [IPv6:2001:470:28:140::5]); Fri, 03 Jun 2011 20:39:27 +0300 (EEST) Subject: Re: how to import raidz2, if only one disk is missing? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jun 2011 17:39:29 -0000 24.05.2011 22:54, Vladislav V. Prodan wrote: > how to change the status of "FAULTED" on "DEGRADED"? > Managed to partially lift the pool. # zpool status tank pool: tank state: FAULTED status: One or more devices could not be opened. There are insufficient replicas for the pool to continue functioning. action: Attach the missing device and online it using 'zpool online'. see: http://www.sun.com/msg/ZFS-8000-3C scrub: none requested config: NAME STATE READ WRITE CKSUM tank FAULTED 0 0 1 corrupted data raidz2 DEGRADED 0 0 6 gpt/disk0 ONLINE 0 0 0 gpt/disk1 ONLINE 0 0 0 gpt/disk2 ONLINE 0 0 0 gpt/disk3 UNAVAIL 0 0 0 cannot open gpt/disk4 ONLINE 0 0 0 ad18p1 ONLINE 0 0 0 # zdb tank version=15 txg=0 pool_guid=17628573572433446879 vdev_tree type='root' id=0 guid=17628573572433446879 bad config type 16 for stats children[0] type='raidz' id=0 guid=17179795338638175685 nparity=2 metaslab_array=14 metaslab_shift=35 ashift=9 asize=4500909195264 is_log=0 bad config type 16 for stats children[0] type='disk' id=0 guid=1193943216826871140 path='/dev/gpt/disk0' whole_disk=0 DTL=22 bad config type 16 for stats children[1] type='disk' id=1 guid=15455958051005423086 path='/dev/gpt/disk1' whole_disk=0 DTL=20 bad config type 16 for stats children[2] type='disk' id=2 guid=8664568011785700035 path='/dev/gpt/disk2' whole_disk=0 DTL=163 bad config type 16 for stats children[3] type='disk' id=3 guid=8811702962298963660 path='/dev/gpt/disk3' whole_disk=0 DTL=161 bad config type 16 for stats children[4] type='disk' id=4 guid=6754554128830363882 path='/dev/gpt/disk4' whole_disk=0 DTL=164 bad config type 16 for stats children[5] type='disk' id=5 guid=16960671095707356147 path='/dev/ad18p1' whole_disk=0 DTL=160 bad config type 16 for stats name='tank' state=0 timestamp=1306186996 hostid=143250101 hostname='mary-teresa.otrada.od.ua' zdb: can't open tank: Input/output error I put a new HDD to 2 terabytes, but the pool does not see gpt/disk3 :( # ll /dev/gpt total 0 crw-r----- 1 root operator 0, 93 3 июн 20:07 boot crw-r----- 1 root operator 0, 97 3 июн 20:07 disk-system crw-r----- 1 root operator 0, 103 3 июн 20:07 disk0 crw-r----- 1 root operator 0, 110 3 июн 20:07 disk1 crw-r----- 1 root operator 0, 119 3 июн 20:07 disk2 crw-r----- 1 root operator 0, 139 3 июн 20:15 disk3 crw-r----- 1 root operator 0, 117 3 июн 20:07 disk4 crw-r----- 1 root operator 0, 136 3 июн 20:27 disk5 crw-r----- 1 root operator 0, 95 3 июн 20:07 swap What else recommend to restore the pool? -- Vladislav V. Prodan VVP24-UANIC +380[67]4584408 +380[99]4060508 vlad11@jabber.ru