From owner-freebsd-stable@FreeBSD.ORG Tue Jun 12 23:21:15 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E79791065687 for ; Tue, 12 Jun 2012 23:21:14 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 761CA8FC0C for ; Tue, 12 Jun 2012 23:21:14 +0000 (UTC) Received: by eabm6 with SMTP id m6so973445eab.13 for ; Tue, 12 Jun 2012 16:21:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to :x-gm-message-state; bh=CaIuOjT9wLlNgOHrsbYmLMbc7QstIHpie+LEAfZIKxc=; b=N8LF+by8j5svjdfNAqdZTWtQs3OrufLqqg+tzLxfqWESa1PU67X+/4SVoAuvCvc8Rw Kjgrj+zUO3s75jZQgZegI6uzJbxfwHJwH+TaT3H4LZB6IGIjLEU16z/WJn28Zbbw+GZu JsDcoN+dCfYEsG1GT5suXd5SsN+B1jcDA6KpEMFGG3q+ESf7YDOzMfSflH5H7wooAHI+ TssrryelYW66N+gidRu2xwz0o4iTyg+2PsNqo4QjDSafi44ewrgEZIE1Rqm7QiiEnGVg UJiFfPu7T7Y1AW4UT2WfNYTMKUHCNJpdRBSQ/FkQOHC21bUEHujNPOABCiK3mNWZ1DkF JKbw== Received: by 10.14.119.140 with SMTP id n12mr7225440eeh.30.1339543273474; Tue, 12 Jun 2012 16:21:13 -0700 (PDT) Received: from ?IPv6:2a01:e35:8aac:83c0:8d27:e6be:7abf:a153? ([2a01:e35:8aac:83c0:8d27:e6be:7abf:a153]) by mx.google.com with ESMTPS id h53sm897479eea.1.2012.06.12.16.21.11 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 12 Jun 2012 16:21:12 -0700 (PDT) References: In-Reply-To: Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: X-Mailer: iPhone Mail (9A405) From: Damien Fleuriot Date: Wed, 13 Jun 2012 01:21:08 +0200 To: Nenhum_de_Nos X-Gm-Message-State: ALoCoQmEmEST7jiDaq7f7LWFbwtL4ujxbc9jEEH5ncypLKN9lKRdQ8lBePQNX2vhBhOQ5Pakgr6j Cc: "freebsd-stable@freebsd.org" Subject: Re: lost ZFS pool X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2012 23:21:15 -0000 On 12 Jun 2012, at 20:17, "Nenhum_de_Nos" wrote: > hail, >=20 > I write just to make sure its dead. I've lost the first disk on a ZFS pool= (jbod). Now I can't > mount it with only the second disk. The first disk clicks to death :( >=20 > [root@optimus ~]# zpool status > pool: pool > state: UNAVAIL > 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: >=20 > NAME STATE READ WRITE CKSUM > pool UNAVAIL 0 0 0 insufficient replicas > label/zfs1 UNAVAIL 0 0 0 cannot open > label/zfs2 ONLINE 0 0 >=20 > I have a spare disk (blank), but even though I can't make it online again .= .. >=20 > is there any hope I can read the files in that disk ? >=20 > thanks, >=20 > matheus >=20 Johan has the right of it, you're splitting data between your 2 devices a la= raid0, this means both disks are required for the pool to function. Your data is gone and you're not recovering any of it. You will want to follow Johan's recommendation of using mirror (raid1), rai= dz (raid5) or even raidz2 (raid6) to ensure data integrity and availability.= Note that using raid does *not* exempt you from running backups. As has been pointed out already (Jeremy Chadwick was that you ?), with large= disks ( >1TB ) you encounter the risk of another disk in your raid array fa= iling while you're rebuilding on the replacement drive, because of the high I= O. Also, while I am a proponent of using the full disk for ZFS (as opposed to a= slice), it is recommended to use slices and shave off roughly 100mb from th= e disk space available when creating your pool. This way, if an old disk fails and you replace it with one the same size but= from another manufacturer (the size may vary a bit, imagine if it's 2mb sma= ller, you can't use it in your pool !) you won't face the problem.=