Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Dec 2016 21:37:09 +0500
From:      "Eugene M. Zheganin" <emz@norma.perm.ru>
To:        freebsd-stable@freebsd.org
Subject:   Re: camcontrol rescan seems to be broken
Message-ID:  <34645c95-2b83-c92b-0195-c1fae9b28df4@norma.perm.ru>
In-Reply-To: <585B77EF.2000805@norma.perm.ru>
References:  <585B77EF.2000805@norma.perm.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34645c95-2b83-c92b-0195-c1fae9b28df4>