ata breakage from RELENG_5 to RELENG_6
Kevin Oberman
oberman at es.net
Mon Aug 22 20:45:30 GMT 2005
> Date: Mon, 22 Aug 2005 16:38:15 -0400
> From: Mike Tancsa <mike at sentex.net>
> Sender: owner-freebsd-stable at freebsd.org
>
> At 04:33 PM 22/08/2005, Søren Schmidt wrote:
>
> >On 22/08/2005, at 22:24, Mike Tancsa wrote:
> >
> >>
> >>I updated one of our boxes from RELENG_5 to 6. Couple of things I
> >>noticed was that the smartmontools and atacontrol seems to be
> >>broken now. I updated smartmon to the latest in the ports, but same
> >>problem.
> >
> >The ioctl ABI to ATA has changed, you need atacontrol and
> >smartmontools to be in sync.
> >atacontrol is just a recompile, smartmontools you want rev 1.17 or
> >later of the Makefile...
>
> Hi,
> I did a cvsup this morning and built world and kernel
>
> [verify1] /dev# ls -l /sbin/atacontrol
> -r-xr-xr-x 1 root wheel 12448 Aug 22 16:01 /sbin/atacontrol
> [verify1] /dev# ident /usr/src/sbin/atacontrol/atacontrol.c
> /usr/src/sbin/atacontrol/atacontrol.c:
> $FreeBSD:
> src/sbin/atacontrol/atacontrol.c,v 1.36.2.1 2005/08/07 11:16:58 sos Exp $
> [verify1] /dev#
>
>
> FreeBSD verify1.sentex.ca 6.0-BETA3 FreeBSD
> 6.0-BETA3 #0: Mon Aug 22 11:12:03 EDT 2005
>
>
> [verify1] /usr/src/sbin/atacontrol# ls -l
> total 30
> drwxr-xr-x 2 root wheel 512 Aug 22 09:40 .
> drwxr-xr-x 93 root wheel 2048 Aug 22 09:41 ..
> -rw-r--r-- 1 root wheel 148 Nov 5 2003 Makefile
> -rw-r--r-- 1 root wheel 5928 Aug 19 11:54 atacontrol.8
> -rw-r--r-- 1 root wheel 16821 Aug 7 07:16 atacontrol.c
> [verify1] /usr/src/sbin/atacontrol# make clean
> rm -f atacontrol atacontrol.o atacontrol.8.gz atacontrol.8.cat.gz
> [verify1] /usr/src/sbin/atacontrol# make depend
> [verify1] /usr/src/sbin/atacontrol# make
> cc -O2 -fno-strict-aliasing
> -pipe -Wsystem-headers -Werror -Wall
> -Wno-format-y2k -W -Wno-unused-parameter
> -Wstrict-prototypes -Wmissing-prototypes
> -Wpointer-arith -Wreturn-type -Wcast-qual
> -Wwrite-strings -Wswitch -Wshadow -Wcast-align
> -Wunused-parameter -Wchar-subscripts -Winline
> -Wnested-externs -Wredundant-decls -c /usr/src/sbin/atacontrol/atacontrol.c
> cc -O2 -fno-strict-aliasing
> -pipe -Wsystem-headers -Werror -Wall
> -Wno-format-y2k -W -Wno-unused-parameter
> -Wstrict-prototypes -Wmissing-prototypes
> -Wpointer-arith -Wreturn-type -Wcast-qual
> -Wwrite-strings -Wswitch -Wshadow -Wcast-align
> -Wunused-parameter -Wchar-subscripts -Winline
> -Wnested-externs -Wredundant-decls -o atacontrol atacontrol.o
> gzip -cn /usr/src/sbin/atacontrol/atacontrol.8 > atacontrol.8.gz
> [verify1] /usr/src/sbin/atacontrol# make install
> install -s -o root -g wheel -m 555 atacontrol /sbin
> install -o root -g wheel -m 444 atacontrol.8.gz /usr/share/man/man8
> [verify1] /usr/src/sbin/atacontrol# atacontrol cap 0 0
> usage: atacontrol <command> args:
> atacontrol list
> atacontrol info channel
> atacontrol attach channel
> atacontrol detach channel
> atacontrol reinit channel
> atacontrol create type [interleave] disk0 ... diskN
> atacontrol delete channel
> atacontrol addspare array disk
> atacontrol rebuild array
> atacontrol status array
> atacontrol mode device [mode]
> atacontrol cap device
> [verify1] /usr/src/sbin/atacontrol# atacontrol info 0
> atacontrol: Invalid channel 0
> [verify1] /usr/src/sbin/atacontrol#
The arguments for atacontrol have changed. The update to the man pages
was committed to current in the past day or two. I'm not sure it it has
made it to RELENG_6.
You can't just specify the channel number any more. The channel is now
the device name, e.g. "ata0".
--
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman at es.net Phone: +1 510 486-8634
More information about the freebsd-stable
mailing list