Date: Thu, 22 Dec 2016 11:46:14 -0700 From: Warner Losh <imp@bsdimp.com> To: "Eugene M. Zheganin" <emz@norma.perm.ru> Cc: FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org> Subject: Re: camcontrol rescan seems to be broken Message-ID: <CANCZdfpQdmpA8cO7zz=teO6Nq9rOJxeirNn4Ksza%2BiK6m53UXQ@mail.gmail.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <emz@norma.perm.ru> 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfpQdmpA8cO7zz=teO6Nq9rOJxeirNn4Ksza%2BiK6m53UXQ>