From owner-freebsd-questions@FreeBSD.ORG Fri Jun 19 20:47:08 2015 Return-Path: Delivered-To: freebsd-questions@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1239C55D for ; Fri, 19 Jun 2015 20:47:08 +0000 (UTC) (envelope-from jd1008@gmail.com) Received: from mail-ig0-x22a.google.com (mail-ig0-x22a.google.com [IPv6:2607:f8b0:4001:c05::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CA8336BA for ; Fri, 19 Jun 2015 20:47:07 +0000 (UTC) (envelope-from jd1008@gmail.com) Received: by igblr2 with SMTP id lr2so718595igb.0 for ; Fri, 19 Jun 2015 13:47:07 -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:references :in-reply-to:content-type:content-transfer-encoding; bh=n6vO+5kP3dGr0R+d3V2G0luuLyh4geTUiQLCqV6twLc=; b=htcefPwYlwCHyxrNGQl6V+QMI2/ilDd1pgUFCuz9hJKQXKuJqOYdjHIeo/d2iNDRRx XaRyQAwXyG9q64RTik1V0pxNZoMFNtvb7k3APoO3uWGB6l4JaoI3CDrJhv0H1AKkxYS5 SSMLKiTyra9a8Q8f3gDvd5Itc0NxtEDNdGTXVPKCzHGjubL/OjXOV5xH0KLrszlh3fOS +U7wONVRsRVhMY+ipB/jUHiV+V58mm/aC8rqPT9iAnbTogqiijhN4+5A0F9OvNzv4gsQ zkCIbZ/k43hE5JYs+z0stfpboZssZv/TNZ5f9pZzXzpa0YVDtbVDEGvOAcA905mn74EX ZPNQ== X-Received: by 10.107.3.210 with SMTP id e79mr24992725ioi.50.1434746827255; Fri, 19 Jun 2015 13:47:07 -0700 (PDT) Received: from localhost.localdomain ([50.243.6.59]) by mx.google.com with ESMTPSA id x4sm7765359iod.26.2015.06.19.13.47.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Jun 2015 13:47:06 -0700 (PDT) Message-ID: <55847FC8.80106@gmail.com> Date: Fri, 19 Jun 2015 14:47:04 -0600 From: jd1008 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: hot swap: removing hard drives References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jun 2015 20:47:08 -0000 On 06/19/2015 02:35 PM, Chris Stankevitz wrote: > Hello, > > My hardware, caddies, BIOS, OS, etc etc etc all support hot swapping > drives. My drives are used only by ZFS. The zpool on these drives is > not needed for the system to run. There are no swap partitions or > anything else on these drives. These are /dev/daX drives. > > How do I safely remove the hard drives that make up this zpool? > > 1. zpool export (of course) > > 2. camcontrol stop (is this needed?) > > 3. camcontrol eject (is this needed?) > > 4. [some other commands?] > > 5. verify that /dev/daX is not longer listed (is this needed?) > > 6. Yank the drive > > > My guess is that only steps (1) and (6) are needed. Steps (2) through > (5) can be omitted. > > Thank you, > > Chris I had seen a disk farm where each drive external caddy face had a button. To hot remove, one had to push that button, wait for the green light and the lock/latch would unlock and the operator could then pull the drive out. Perhaps FBSD and (all BSD variants and all *nux'es) are not yet equipped with such sensor reader.