From owner-freebsd-fs@FreeBSD.ORG Mon Jun 4 20:00:20 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 85F0D106564A for ; Mon, 4 Jun 2012 20:00:20 +0000 (UTC) (envelope-from kayasaman@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 000E88FC18 for ; Mon, 4 Jun 2012 20:00:19 +0000 (UTC) Received: by eeke49 with SMTP id e49so1825241eek.13 for ; Mon, 04 Jun 2012 13:00:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=59K7Hjv3T+Lddhb9VCHmvVNKoSI4XgKsYFb7wU+DwsY=; b=j79sLGmz5eeDdqtTg2NpwzracuBPh+IeFejhkXuOPpG3RxbbgbTiILG/cDTefzJzpY 7vIPbrt9ZOvmzJ/P4ATsXjlhEsVGzwBQbXEyYbV8lgTPZNhKYYGq/v8ZeW7JF774yXw/ DF0DjUPJ3Yde3cATEfmrs1qIuy3ZTKOZ/No9JYWlH2jpZDO+IJPPocZdJsGMx34FQ/mo jctYwQdNrKlMcq3q56odApTMfu6IJvWR+aBKRvyB4c+MVQg6c/udvVmpwAxk5ec+A6Ys RQ/uVDPV5hsg4EAbxwXo17ixFxsEho998eCvCJ9gLRyjcn4A2ehFVOItYJr16TT6qlB0 0P3g== Received: by 10.14.96.70 with SMTP id q46mr5709914eef.231.1338840018888; Mon, 04 Jun 2012 13:00:18 -0700 (PDT) Received: from X220.optiplex-networks.com (81-178-2-118.dsl.pipex.com. [81.178.2.118]) by mx.google.com with ESMTPS id u7sm40805224eeb.7.2012.06.04.13.00.16 (version=SSLv3 cipher=OTHER); Mon, 04 Jun 2012 13:00:17 -0700 (PDT) Message-ID: <4FCD13CF.3010406@gmail.com> Date: Mon, 04 Jun 2012 21:00:15 +0100 From: Kaya Saman User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Using ZFS as RAID0 - disk offline question 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: Mon, 04 Jun 2012 20:00:20 -0000 Hi, in ZFS when using a simple RAID 0 style array is there a way to recover a pool after a disk has gone down? Or remove a disk from the pool to shrink it? To be more specific this is what I'm simulating at the moment: zpool create ZPOOL_1 /mnt/disk1 /mnt/disk2 zpool status shows disk1 and disk2 as being part of ZPOOL_1 and ZPOOL_1 is ONLINE. However, if I should ever want to remove disk2 from the pool or if disk2 has gone down how would one go about getting the ZPOOL_1 back online? I am hoping that there is a solution to just running the pool with 1 disk. Or if the disk name changes ie. simulating a disk number to change after moving it to a different controller or so internally. I am just trying to see what would happen as RAIDZ or RAID1 is very good however what about RAID0 in the situation above. I guess one could call this as disaster recovery for the unprepared :-) In actual fact I have done this physically on a Mini-ITX NAS system (of course I have backups of everything) however, my point is to try to see if one disk goes down if the ZPOOL will still be able to function without the additional disk! - as commands such as remove and detach are unavailable in this mode...... Regards, Kaya