From owner-freebsd-questions@FreeBSD.ORG Wed Nov 19 14:53:08 2014 Return-Path: Delivered-To: freebsd-questions@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 1C905A27 for ; Wed, 19 Nov 2014 14:53:08 +0000 (UTC) Received: from mail1.postbank.bg (mx.postbank.bg [195.242.126.253]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail.postbank.bg", Issuer "GeoTrust DV SSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8A3FD15D for ; Wed, 19 Nov 2014 14:53:06 +0000 (UTC) X-AuditID: ac100165-f791c6d000000c67-64-546caec8e243 Received: from sofdc01excv16.postbank.bg ( [10.1.129.39]) (using TLS with cipher AES128-SHA (128/128 bits)) (Client did not present a certificate) by mail1.postbank.bg (Eurobank AD BG Outbound mail system) with SMTP id 4D.2A.03175.8CEAC645; Wed, 19 Nov 2014 16:52:56 +0200 (EET) From: "Ivailo A. Tanusheff" To: "freebsd-questions@freebsd.org" Subject: Free disks enumeration needed Thread-Topic: Free disks enumeration needed Thread-Index: AdAECIA1HM7DkQZsSc6CYZFchKYsbA== Date: Wed, 19 Nov 2014 14:52:55 +0000 Message-ID: <1422065A4E115F409E22C1EC9EDAFBA4220D87FE@sofdc01exc02.postbank.bg> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.1.2.26] Content-Type: text/plain; charset="us-ascii" content-transfer-encoding: quoted-printable MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprIKsWRmVeSWpSXmKPExsXCxdiorntiXU6IQfMvdYuXXzexODB6zPg0 nyWAMaqB0SYxLy+/JLEkVSEltTjZVik6IL+4JCkxLztWwSWzODknMTM3tUhJITPFVslYSaEg JzE5NTc1r8RWKbGgIDUvRcmOSwED2ACVZeYppOYl56dk5qXbKnkG++taWJha6hoq2SFMtVJT NjRO+MqeseXYcaaCTtaK/qttzA2MX5m7GDk5JARMJN59XcAOYYtJXLi3nq2LkYtDSGAOk8TL o8fYQBJsQEXb5u5hArFFBJwlVp/5zQpiCwuoSXS+e8EIEdeWmLrvMguErScxa9EMMJtFQFXi 9IqfQAs4OHgF/CV+Ta8BCTMC7fp+ag3YSGYBcYlbT+YzQdwgILFkz3mo20QlXj7+xwphy0o8 +vYYql5HYsHuT2wQtrbEsoWvwep5BQQlTs58wjKBUWgWkrGzkLTMQtIyC0nLAkaWVYySxflp KckGhsG+7mUGhnoF0BjSS0rfxAiM4DUCjKk7GF9ccTrEKMDBqMTD++JtdogQa2JZcWXuIUYJ DmYlEd6kmTkhQrwpiZVVqUX58UWlOanFhxiTgYEwkVlKNDkfmFzySuINTQwMTU2MDC0MzCxM SRNWEue1XpQZIiSQDkxK2ampBalFMFuYODilGhiLX7cqBOTpnrO9Vdp9IPNgmb34R9lJd61e cd1riPD4/u3/1w62iZvYuTLcdrdnLbr4ujaOwep36dxrz9xqWdVzOt/FLPEXmrAt1uv0RAnR P8qctsZPrihH7gmpjy2XPhf4+IL1lJkTL8s7571J/K4ek2H2fheb8/Pe0Io3DY72HbJPXfo3 CymxFGckGmoxFxUnAgCCw9lUJAMAAA== X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Nov 2014 14:53:08 -0000 Dear all, I have a little bit strange question, but I will appreciate your help. I have a FreeBSD server, with attached both SATA and SCSI drives. The server= uses both ZFS and UFS file systems. I want to find a way to find out which drives are available to be used in ne= w zfs pool with a script or C program, i.e. which drives are not used by zfs= or ufs on the system. For the SATA drives I believe glabel status gives me the reasonable informat= ion, but I do not see any SCSI drive there. It is easy to enumerate disks installed on the system, but how to find out w= hich are "free" for use? Regards, Ivailo Tanusheff Disclaimer: This communication is confidential. If you are not the intended recipient, y= ou are hereby notified that any disclosure, copying, distribution or taking= any action in reliance on the contents of this information is strictly proh= ibited and may be unlawful. If you have received this communication by mista= ke, please notify us immediately by responding to this email and then delete= it from your system. Eurobank Bulgaria AD is not responsible for, nor endorses, any opinion, reco= mmendation, conclusion, solicitation, offer or agreement or any information= contained in this communication. Eurobank Bulgaria AD cannot accept any responsibility for the accuracy or co= mpleteness of this message as it has been transmitted over a public network.= If you suspect that the message may have been intercepted or amended, pleas= e call the sender.