From owner-freebsd-questions@FreeBSD.ORG Thu Jun 24 18:57:39 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C282D1065672 for ; Thu, 24 Jun 2010 18:57:39 +0000 (UTC) (envelope-from dougs@dawnsign.com) Received: from mailfilter.dawnsign.com (cetus.dawnsign.com [216.70.250.4]) by mx1.freebsd.org (Postfix) with ESMTP id A2AE18FC1B for ; Thu, 24 Jun 2010 18:57:39 +0000 (UTC) Received: from mailfilter.dawnsign.com (localhost [127.0.0.1]) by mailfilter.dawnsign.com (Postfix) with ESMTP id 3ACF395827 for ; Thu, 24 Jun 2010 11:57:39 -0700 (PDT) Received: from pyxis.dawnsign.com (unknown [192.168.101.22]) by mailfilter.dawnsign.com (Postfix) with ESMTP id 2016395818 for ; Thu, 24 Jun 2010 11:57:39 -0700 (PDT) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Thu, 24 Jun 2010 11:57:38 -0700 Message-ID: <292C3F1D7ADD164EA6A058A4C3C8081A015726@pyxis.dawnsign.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Cannot start smartd on Quantum drive Thread-Index: AcsTzx3Vd6ZGGGNkTcucksTVc5moqw== From: "Doug Sampson" To: X-Virus-Scanned: ClamAV using ClamSMTP Subject: Cannot start smartd on Quantum drive X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jun 2010 18:57:39 -0000 Hello, Running FreeBSD 8.0. I cloned using 'dump' a very old and failing Fujitsu drive that was mounted as /dev/ad0 to a Quantum drive that was mounted at the time of dumping as /dev/ad3. I used the method of cloning described in http://forums.freebsd.org/showthread.php?t=3D11680. There is a second drive that was mounted as /dev/ad2. After the clone was completed and the system was reconfigured taking out the failing drive and inserting the replacement drive as a master drive. Upon booting in the new drive configuration, I received the following message that it couldn't boot from /dev/ad0s1a: ,---- | Timecounter "TSC" frequency 1294237239 Hz quality 80 | Timecounters tick every 1.000 msec | Trying to mount root from ufs:/dev/ad0s1a | ROOT MOUNT ERROR | If you have invalid mount options, reboot, and first try the following | from the loader prompt: | | set vfs.root.mountfrom.options=3Drw | | and then remove invalid entries from /etc/fstab | | Loader variables: | vfs.root.mountfrom=3Dufs:/dev/ad0s1a | vfs.root.mountfrom.options=3Drw `---- I found from dmesg that I had the following mounted disks: ad2: 26147MB at ata1-master UDMA66 ad3: 76293MB at ata1-slave UDMA100 I ended up with a mountroot command prompt. After fiddling around, I finally was able to change the boot order so that it boots from /dev/ad2s1. I also had to edit the /etc/fstab. After rebooting, I was able to boot up the system successfully except that I now received an error message that smartd couldn't start monitoring /dev/ad2 as follows: ad2: FAILURE - SMART status=3D51 error=3D4 Ok, check log: root@ftp:/root# tail /var/log/messages <..snip..> Jun 24 10:26:48 ftp kernel: Trying to mount root from ufs:/dev/ad2s1a Jun 24 10:26:48 ftp kernel: GEOM: ufsid/47336891c9952d8a: geometry does not match label (255h,63s !=3D 16h,63s). Jun 24 10:26:52 ftp kernel: ad2: FAILURE - SMART status=3D51 error=3D4 Jun 24 10:26:52 ftp smartd[786]: Unable to register ATA device /dev/ad2 at line 41 of file /usr/local/etc/smartd.conf Jun 24 10:26:52 ftp smartd[786]: Unable to register device /dev/ad2 (no Directive -d removable). Exiting. Jun 24 10:26:52 ftp root: /etc/rc: WARNING: failed to start smartd <..snip..> root@ftp:/root# Listing relevant info in smartd.conf: # First (primary) ATA/IDE hard disk. Monitor all attributes, enable # automatic online data collection, automatic Attribute autosave, and # start a short self-test every day between 2-3am, and a long self test # Saturdays between 3-4am. #/dev/hda -a -o on -S on -s (S/../.././02|L/../../6/03) /dev/ad2 -a -o on -S on -s (S/../.././02|L/../../6/03) /dev/ad3 -a -o on -S on -s (S/../.././02|L/../../6/03) fsck'ing all volumes on /dev/ad2 comes up clean. Trying to start smartd from command prompt: root@ftp:/root# smartctl -s on /dev/ad2 smartctl 5.39.1 2010-01-28 r3054 [FreeBSD 8.0-STABLE i386] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net =20 =3D=3D=3D START OF ENABLE/DISABLE COMMANDS SECTION =3D=3D=3D Error SMART Enable failed Smartctl: SMART Enable Failed. =20 A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options. root@ftp:/root# smartctl -s on -T verypermissive /dev/ad2 smartctl 5.39.1 2010-01-28 r3054 [FreeBSD 8.0-STABLE i386] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net =20 =3D=3D=3D START OF ENABLE/DISABLE COMMANDS SECTION =3D=3D=3D Error SMART Enable failed Smartctl: SMART Enable Failed. root@ftp:/root# smartctl -i /dev/ad2 smartctl 5.39.1 2010-01-28 r3054 [FreeBSD 8.0-STABLE i386] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net =20 =3D=3D=3D START OF INFORMATION SECTION =3D=3D=3D Model Family: Quantum Fireball Plus KX series Device Model: QUANTUM FIREBALLP KX27.3 Serial Number: 158002833918 Firmware Version: A1S.3700 User Capacity: 27,417,755,648 bytes Device is: In smartctl database [for details use: -P show] ATA Version is: 4 ATA Standard is: ATA/ATAPI-4 T13 1153D revision 15 Local Time is: Thu Jun 24 11:12:35 2010 PDT SMART support is: Available - device has SMART capability. SMART support is: Enabled =20 SMART Disabled. Use option -s with argument 'on' to enable it. root@ftp:/root# smartctl -t short /dev/ad2 smartctl 5.39.1 2010-01-28 r3054 [FreeBSD 8.0-STABLE i386] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net =20 SMART Disabled. Use option -s with argument 'on' to enable it. root@ftp:/root# smartctl -a /dev/ad2 smartctl 5.39.1 2010-01-28 r3054 [FreeBSD 8.0-STABLE i386] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net =20 =3D=3D=3D START OF INFORMATION SECTION =3D=3D=3D Model Family: Quantum Fireball Plus KX series Device Model: QUANTUM FIREBALLP KX27.3 Serial Number: 158002833918 Firmware Version: A1S.3700 User Capacity: 27,417,755,648 bytes Device is: In smartctl database [for details use: -P show] ATA Version is: 4 ATA Standard is: ATA/ATAPI-4 T13 1153D revision 15 Local Time is: Thu Jun 24 11:16:54 2010 PDT SMART support is: Available - device has SMART capability. SMART support is: Enabled =20 SMART Disabled. Use option -s with argument 'on' to enable it. root@ftp:/root# smartctl -s on /dev/ad2 smartctl 5.39.1 2010-01-28 r3054 [FreeBSD 8.0-STABLE i386] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net =20 =3D=3D=3D START OF ENABLE/DISABLE COMMANDS SECTION =3D=3D=3D Error SMART Enable failed Smartctl: SMART Enable Failed. =20 A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options. What do I need to do in order to enable smartd support? ~Doug