From owner-freebsd-questions@FreeBSD.ORG Wed Jun 8 20:52:21 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D748016A41C for ; Wed, 8 Jun 2005 20:52:21 +0000 (GMT) (envelope-from bsdnode@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8458343D1F for ; Wed, 8 Jun 2005 20:52:21 +0000 (GMT) (envelope-from bsdnode@gmail.com) Received: by wproxy.gmail.com with SMTP id 70so72496wra for ; Wed, 08 Jun 2005 13:52:20 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=O+cHwU64uH1TJO7L97EW1VZI22sciuhhDj45zOVW5YxloJw3pVHHh9i0LTlubamDR6bNf4ZXiTz82X9YZVnH9l4Usv1gv3sgKdcD+XkullnJ/a6CEq8ZA+BiRUuUvc8UBomu7+cFMyXrXdptz/W4jJlqi1MNIB3/hYfBuSuRRNM= Received: by 10.54.51.17 with SMTP id y17mr4780286wry; Wed, 08 Jun 2005 13:52:20 -0700 (PDT) Received: by 10.54.16.72 with HTTP; Wed, 8 Jun 2005 13:52:20 -0700 (PDT) Message-ID: <40356a66050608135255ee85f0@mail.gmail.com> Date: Wed, 8 Jun 2005 16:52:20 -0400 From: Bruno Gallant To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: getting the HD serial numbers X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Bruno Gallant List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jun 2005 20:52:22 -0000 Hello, is there a way to get the serial number of an hard drive while the machine is up? I know it can be done with the Linux /proc filesystem, but I was wondering if I could do the same without having to stop the server and remove the disks. [1] I tried the smartctl command, but I don't think my drives are supported. [2] The individual hard drives are hidden behind a Compaq array. 2 x 36Gb in raid 1. ida0: port 0x2000-0x20ff mem 0xc4000000-0xc4ffff ff,0xc5000000-0xc5ffffff irq 19 at device 1.0 on pci0 ida0: [GIANT-LOCKED] ida0: drives=3D1 firm_rev=3D1.42 idad0: on ida0 idad0: 34727MB (71122560 sectors), blocksize=3D512 I don't think I can get this info, but the only stupid question is the one that is not asked. Thanks all. [1] My servers are HP DL-360s and DL-380s, so it's not _that_ hard to do, but I don't like stopping my servers for nothing. [2] Brand new HDs from HP --=20 # Bruno Gallant - scion@bsdnode.net - bsdnode@gmail.com