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 at 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 at 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 at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe at
freebsd.org"