Sreenivasan, Rohit G | 1 Oct 2004 18:24
Picon
Favicon

RE: Compiling smartmontools-5.32 on Solaris 8

Christian,
 I am getting similar errors (below)...Please help!! Can you send me the
compiled binaries & conf file so that I can try copying them to verify
if it works?

# make 'CFLAGS=-E' smartd.o
`smartd.o' is up to date.

# gcc -E smartd.c >smartd.i

# make
make  all-recursive
Making all in .
if gcc -DHAVE_CONFIG_H -I. -I. -I.  -DSMARTMONTOOLS_SYSCONFDIR=\"/etc\"
-g -O2 -Wall -MT utility.o -MD -MP -F ".deps/utility.Tpo" \
  -c -o utility.o `test -f 'utility.c' || echo './'`utility.c; \
then mv -f ".deps/utility.Tpo" ".deps/utility.Po"; \
else rm -f ".deps/utility.Tpo"; exit 1; \
fi
In file included from utility.c:37:
/usr/include/sys/stat.h:258: parse error before "blksize_t"
/usr/include/sys/stat.h:262: parse error before '}' token
/usr/include/sys/stat.h:318: parse error before "blksize_t"
/usr/include/sys/stat.h:319: conflicting types for `st_blocks'
/usr/include/sys/stat.h:259: previous declaration of `st_blocks'
/usr/include/sys/stat.h:322: parse error before '}' token
utility.c: In function `FixGlibcTimeZoneBug':
utility.c:139: storage size of `prev_stat' isn't known
utility.c:141: storage size of `curr_stat' isn't known
utility.c:139: warning: unused variable `prev_stat'
(Continue reading)

Cowley, David E | 1 Oct 2004 19:12

Clarification requested on Current_Pending_Sector, Offline_Uncorrectable

First of all, thank you Bruce for providing smartmontools!  I wish I'd
heard about them much sooner.

I have many many storage servers stuffed full of Western Digital drives
(WD2000JBs and WD2500JBs) on 3ware adapters (configured JBOD),
configured into linux kernel RAID5 volumes with ext3 filesystems on top.
After having some problems with drives unexpectedly getting kicked out
of the RAID volumes, I've been checking the drives' attributes w/
smartmontools.

I have a number of drives that have values of Offline_Uncorrectable
and/or Current_Pending_Sector greater than zero.

Questions I have are:

If I run a long selftest, should it take care of Current_Pending_Sectors
that aren't associated with unreadable sectors?

If the long selftest clears up Current_Pending_Sectors, is my
filesystem/RAID OK?

If I have Offline_Uncorrectable errors, and the manufacturer's
diagnostic utilities can fix them up (I would pull the drive and run
diags on another machine), is my filesystem/RAID OK?

I would really love to be able to identify the files containing the bad
sectors I expect I have, but do not know how to trace through the linux
kernel RAID 5 layer to map bad sectors to filenames.  Does anybody know
of resources I should check out?  I have thought of the linux-raid
mailing list, but haven't asked there yet.
(Continue reading)

Bruce Allen | 1 Oct 2004 22:44
Picon
Favicon

Re: Porting to the OS/2 platform

Yuri,

Nice work -- this looks pretty clean!  If the only thing that is keeping
you from also porting smartd is the absence of getdtablesize(), I think
that is easily worked around.

Would you be interested in joining the smartmontools developers?  You
could then check your changes into CVS (and help maintain them if users
have problems).  You'd also have to update the INSTALL file.  Please let
me know.

Cheers,
	Bruce

On Wed, 29 Sep 2004, Yuri Dario wrote:

> Hi,
> 
> I put some effort in getting an OS/2 port of smartmontools because I
> got some HD to fail.
> 
> You can grab patches to original code (minimal) and new files here
> 
> http://os2power.dnsalias.com/yuri/software/smartmontools-5.33.zip
> 
> I implemented os_generic as os_os2: the code has been partially taken
> from the linux sources.
> 
> Currently smartd and scsi devices are not supported.
> 
(Continue reading)

Christian Franke | 1 Oct 2004 21:49
Picon
Favicon

Re: Compiling smartmontools-5.32 on Solaris 8

Hi,

sorry, but I'm not able to send you binaries, don't have access to a 
solaris machine ;-)

Keiji, can you help?

Examining the preprocessor output is a usual generic (not solaris 
specific) method to track down nasty preprocessor related syntax problems.

Feel free to send me a private mail with the "stdout"put of "gcc -E 
smartd.c".

Cheers,

Christian

>Christian,
> I am getting similar errors (below)...Please help!! Can you send me the
>compiled binaries & conf file so that I can try copying them to verify
>if it works?
>
>
>
># make 'CFLAGS=-E' smartd.o
>`smartd.o' is up to date.
>
>
># gcc -E smartd.c >smartd.i
>
(Continue reading)

Sam Hopkins | 1 Oct 2004 21:58
Favicon

-S usage on ATA

Hello,

I'm trying to get my AoE driver on freebsd working with smartmontools
and have hit upon a curiosity -  what is -S used for on ATA drives?  I've
read the ATA6 working draft section on SMART enable/disable attribute autosave,
but it's not clear what it's actually for.  What attributes?

Googling hasn't turned up much.  I figured you guys would probably know.

Please copy me on all correspondence as I'm not subscribed to the list.

Cheers,

Sam

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Bruce Allen | 1 Oct 2004 23:22
Picon
Favicon

Re: -S usage on ATA

Hi Sam,

Good question!

The SMART enable/disable attribute autosave was NEVER part of the ATA
spec.  However it was part of the SFF-8035i spec that was later
incorporated into ATA-3.  Please see
ftp://ftp3.ds.pg.gda.pl/people/macro/S.M.A.R.T./8035R2_0.PDF
for details, and in particular page 10.

The smartctl man page also has some details about this.

Cheers,
	Bruce

On Fri, 1 Oct 2004, Sam Hopkins wrote:

> Hello,
> 
> I'm trying to get my AoE driver on freebsd working with smartmontools
> and have hit upon a curiosity -  what is -S used for on ATA drives?  I've
> read the ATA6 working draft section on SMART enable/disable attribute autosave,
> but it's not clear what it's actually for.  What attributes?
> 
> Googling hasn't turned up much.  I figured you guys would probably know.
> 
> Please copy me on all correspondence as I'm not subscribed to the list.
> 
> Cheers,
> 
(Continue reading)

SAWADA Keiji | 2 Oct 2004 06:33
Picon

Re: Compiling smartmontools-5.32 on Solaris 8

Hello,

I put object files and executables here, please try:

http://card-captor.dyndns.org/pub/solaris-smart/smartmontools-5.32/

Build environment:

% uname -srvmpi
SunOS 5.9 Generic_112234-03 i86pc i386 i86pc
% gcc -v
Reading specs from /opt/csw/gcc3/lib/gcc/i386-pc-solaris2.9/3.4.1/specs
Configured with: /users/aalmroth/build/gcc-3.4.1/configure --prefix=/opt/csw/gcc3
--with-local-prefix=/opt/csw/gcc3 --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld
--enable-multilib --disable-nls --enable-threads --with-libiconv-prefix=/opt/csw
Thread model: posix
gcc version 3.4.1

I didn't try this binary (I don't have SCSI drives for this machine),
but build was OK.

On Fri, 01 Oct 2004 21:49:08 +0200
Christian.Franke <at> t-online.de (Christian Franke) wrote:

> Hi,
> 
> sorry, but I'm not able to send you binaries, don't have access to a 
> solaris machine ;-)
> 
> Keiji, can you help?
(Continue reading)

Christian Franke | 2 Oct 2004 12:54
Picon
Favicon

Re: Compiling smartmontools-5.32 on Solaris 8

Hi,

Keiji, thanks for providing the binaries.

Rohit, the gcc installation on your machine is probably broken.

In the preprocessor output you sent me, the "typedef ... blksize_t" 
needed by "struct stat" is missing. It should be in sys/types.h or below.
The attached file contains the pathnames of the included files extracted 
from your cpp output.

The files "/usr/intel/.../3.1/include/sys/types.h" and 
"/usr/include/sys/stat.h" don't work together.
There is possibly a "/usr/intel/.../3.1/include/sys/stat.h" (generated 
from "/usr/include/sys/stat.h") missing.
(Sorry if I'm wrong, it is >10 years ago that I bootstrapped gcc to a 
new machine;-)

Compiling this program (a /bin/false replacement ;-)) wouldn't work also:

--- snip ---
#include <sys/types.h>
#include <sys/stat.h>
main() { return 1; }
--- snip ---

If you have Solaris' own compiler installed as "cc", try the following 
configure to build smartmontools:

CC=cc ./configure [...options...]
(Continue reading)

Hermann Deppe | 5 Oct 2004 16:33
Picon

Harddisk: IBM Deskstar 60GXP on my computer


Hallo smartmontools-support,

with the warning after starting 'smartctl -a /dev/hda' on my computer

==> WARNING: IBM Deskstar 60GXP drives may need upgraded SMART 
firmware.
Please see http://www.geocities.com/dtla_update/index.html#rel and
http://www-3.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-42215 
or
http://www-1.ibm.com/support/docview.wss?uid=psg1MIGR-42215

it was inpossible to load an upgraded SMART firmeware for Linux from 
on of the 
three URL's. URL 1 with link to "60GXP (IC35L0xxAVER07) A45A Firmware 
Update" gave 'invalid URL'. URL 2 could not get loaded and
URL 3 has a firmeware update only for Windows, not for Linux.

Can You give me an advice? Should I run smartctl without upgrading 
SMART?

Regards
Hermann Deppe

------------------------------------------------------------------------
   Hermann Deppe            TUEV ET Baden-Wuerttemberg Abteilung ETA1
   Gottlieb-Daimler-Str. 7  70794 Filderstadt     Tel: +49 711 7005-826
   E-Mail: de <at> tuvsg2.rus.uni-stuttgart.de         Fax: +49 711 7005-888
------------------------------------------------------------------------

(Continue reading)

Bruce Allen | 6 Oct 2004 22:17
Picon
Favicon

Re: Harddisk: IBM Deskstar 60GXP on my computer

> with the warning after starting 'smartctl -a /dev/hda' on my computer
> 
> ==> WARNING: IBM Deskstar 60GXP drives may need upgraded SMART 
> firmware.
> Please see http://www.geocities.com/dtla_update/index.html#rel and
> http://www-3.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-42215 
> or
> http://www-1.ibm.com/support/docview.wss?uid=psg1MIGR-42215
> 
> it was inpossible to load an upgraded SMART firmeware for Linux from 
> on of the 
> three URL's. URL 1 with link to "60GXP (IC35L0xxAVER07) A45A Firmware 
> Update" gave 'invalid URL'. URL 2 could not get loaded and
> URL 3 has a firmeware update only for Windows, not for Linux.
> 
> Can You give me an advice? Should I run smartctl without upgrading 
> SMART?

I would advise you to upgrade the firmware.  I suspect that you can use
the firmware update program from windows, after booting the computer using
a windows boot disk.  Perhaps someone else on this mailing list has done
this and can comment.

Cheers,
	Bruce

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
(Continue reading)


Gmane