From owner-freebsd-stable@freebsd.org Thu Dec 22 18:46:16 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 13FF9C8D04B for ; Thu, 22 Dec 2016 18:46:16 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x234.google.com (mail-io0-x234.google.com [IPv6:2607:f8b0:4001:c06::234]) (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 CCB40233 for ; Thu, 22 Dec 2016 18:46:15 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x234.google.com with SMTP id h133so817118ioe.3 for ; Thu, 22 Dec 2016 10:46:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=FVX1yXnuTNI2KNPxnWm8ETOpFAvDstEYP8e4M8NrzB8=; b=q9KNAC6E2HZKAXoA8xDBY6cevQ44O26SW2iCWqhPVRR1IB5xIlveQzrZiBfkD4Fwsl 6KShSsOIAoZnn6lruSzL7bOxFIlWxmQ8mZaVbUNY0N0/UrtUrGzOYv9ZFsb7EpSCJXQG rhoJd5Xiq2Lpno4quGw59pxTMNPWU+tjZstvhQjVqb6/XlSrkhKXVCcKTMqyhjpT7xlQ 4qXNPlfUQT+n1QGRNqZxRG6SYMFG40fDGC/+f83Vvrgs7DZfYCtmPVJ9m7PPPCpECt3R mV+ILtJJxHjNycJhd5M7aLaVnmj/9zXLjblG+IKxU0OXcF/n1PC339n9l79DPEjrqq67 2nAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=FVX1yXnuTNI2KNPxnWm8ETOpFAvDstEYP8e4M8NrzB8=; b=jhIZuQ+PjCzrIZnDjADTT5ozxjNfcsLisZ6zD6M7p9VHTrPsmyYzRIAHiDxfx9Z/tZ hbAbwqzKUkOvjqkr8H7CCOsz9rUlUgZVn2TD5txqtkem0d2qr5l8QXjVEh64gE4B+SCD lTGGevJSpy+PT0EB9oJWqLDgEIeNqq3FTtbHBBKvgLAX5vudnHYM9aMGfLAB94K83bnx Tajlsu5VhqlpeaoAzi1+SErRZE2jSx6GpODf1J49vAXYRdLn+70C5vg0a02kxfxSj6Ib DViGPZXzxOxdGi76yhYXfhOTdBw3cT/O7xhdONB4HwSUwnLL44i3p9pZNIJMIdaqHT0U 2j1w== X-Gm-Message-State: AIkVDXJEA47WQgNDtxrILY430DXDtgUAHGWMCpPoDPyr14zkFG6kbVuap2peG4+1t90RK5S1R1LSvgoONKQZ+w== X-Received: by 10.107.139.74 with SMTP id n71mr11748653iod.166.1482432375077; Thu, 22 Dec 2016 10:46:15 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.22.135 with HTTP; Thu, 22 Dec 2016 10:46:14 -0800 (PST) X-Originating-IP: [69.53.245.200] In-Reply-To: <34645c95-2b83-c92b-0195-c1fae9b28df4@norma.perm.ru> References: <585B77EF.2000805@norma.perm.ru> <34645c95-2b83-c92b-0195-c1fae9b28df4@norma.perm.ru> From: Warner Losh Date: Thu, 22 Dec 2016 11:46:14 -0700 X-Google-Sender-Auth: P5eXwLZu3kpQ9QJItLLd7nrTfEc Message-ID: Subject: Re: camcontrol rescan seems to be broken To: "Eugene M. Zheganin" Cc: FreeBSD-STABLE Mailing List Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2016 18:46:16 -0000 Sure sounds like your binaries are cross-threaded with the kernel. what was "file `which camcontrol`" tell you? Warner On Thu, Dec 22, 2016 at 9:37 AM, Eugene M. Zheganin wrote: > Hi. > > On 22.12.2016 11:51, Eugene M. Zheganin wrote: >> >> Hi, >> >> could anyone tell me where am I wrong: >> >> # camcontrol rescan all >> camcontrol: CAMIOCOMMAND ioctl failed: Invalid argument >> # uname -U >> 1100122 >> # uname -K >> 1100122 >> # uname -a >> FreeBSD bsdrookie.norma.com. 11.0-RELEASE-p5 FreeBSD 11.0-RELEASE-p5 #0 >> r310364: Wed Dec 21 19:03:58 YEKT 2016 >> emz@bsdrookie.norma.com.:/usr/obj/usr/src/sys/BSDROOKIE amd64 >> > Furthermore, there's definitely something wrong on my machine, because > smartctl complains too: > > # smartctl -a /dev/ada1 > smartctl 6.4 2015-06-04 r4109 [FreeBSD 11.0-RELEASE-p5 amd64] (local build) > Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org > > error sending CAMIOCOMMAND ioctl: Inappropriate ioctl for device > > # smartctl -a /dev/ada0 > smartctl 6.4 2015-06-04 r4109 [FreeBSD 11.0-RELEASE-p5 amd64] (local build) > Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org > > error sending CAMIOCOMMAND ioctl: Inappropriate ioctl for device > Unable to get CAM device list > /dev/ada0: Unable to detect device type > Please specify device type with the -d option. > > Use smartctl -h to get a usage summary > > ktrace part, if it will help: > > [...] > 4291 smartctl NAMI "/dev/xpt0" > 4291 smartctl RET openat 3 > 4291 smartctl CALL ioctl(0x3,0xc4d81802,0x7fffffffa978) > 4291 smartctl RET ioctl -1 errno 25 Inappropriate ioctl for device > > Does anyone have an idea on how to fix things back to normal ? > > Thanks. > _______________________________________________ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"