From owner-freebsd-questions@FreeBSD.ORG Fri Jun 19 20:35:52 2015 Return-Path: Delivered-To: freebsd-questions@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E29E41C7 for ; Fri, 19 Jun 2015 20:35:52 +0000 (UTC) (envelope-from chrisstankevitz@gmail.com) Received: from mail-la0-x22c.google.com (mail-la0-x22c.google.com [IPv6:2a00:1450:4010:c03::22c]) (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 6C616266 for ; Fri, 19 Jun 2015 20:35:52 +0000 (UTC) (envelope-from chrisstankevitz@gmail.com) Received: by lacny3 with SMTP id ny3so80796255lac.3 for ; Fri, 19 Jun 2015 13:35:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=sDqWr+7MhawWK3xCev0H8Vr0qaekUg7uIj9ydI5n+QI=; b=NqO+KjZ/y/MTic71jv6+ATtV97t9lNSr6EeAJsVxNS2yrK0653a8xeIYFLWKelFPcu aXnJvrjnfydL5/0OuXcqN83OvKDwDoZZfnndvjc5X8zBKM4VnC60QlBdTn/DwgU3E9v0 X2CjCZUPshHg3TDguqkLecPUwzwr6W0AuJ5f1ahkjAN8dZ8ZWXgGDpm4giHgDqU5g58P tUy3+WiFxPUPkiHJEe+PuCxnW6GfAxdOPy6PAeD2k8co5abN03hhzS+Vn1ehewJjOQEd ntk84DufAnVp7ORLjp4TJeKENRGwXh5VqOuh3TOfSMFhTdzzPODyZpHqtXMJ4EtWQCKX vhlg== MIME-Version: 1.0 X-Received: by 10.112.151.178 with SMTP id ur18mr19689972lbb.59.1434746150520; Fri, 19 Jun 2015 13:35:50 -0700 (PDT) Received: by 10.25.42.146 with HTTP; Fri, 19 Jun 2015 13:35:50 -0700 (PDT) Date: Fri, 19 Jun 2015 13:35:50 -0700 Message-ID: Subject: hot swap: removing hard drives From: Chris Stankevitz To: freebsd-questions Content-Type: text/plain; charset=UTF-8 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:35:53 -0000 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