Re: [Scsirastools-developers] New scsirastools-1.5.7 release
Brought to you by:
arcress
From: Cress, A. R <and...@in...> - 2008-07-24 16:18:26
|
Daniel, The key is the messages: device 6 is duplicate device 7 is duplicate There are 3 ATA devices showing up that are identical, and they have no serial number, since they are emulated devices. When Linux disks are hot-removed, Linux has trouble with reporting the missing device correctly and frequently will report the removed device as a duplicate of the device before it in the scan order. Hence the need for duplicate checking. Was this output produced with sgraidmon or sgdiskmon? It looks like sgraidmon. Hmmm. There is already code to avoid treating Emulated non-SATA drives as hotplug devices. In sgsubmon.c:IsSATA(), it checks for vendor=ATA and a valid serial number, but apparently this is being defeated by this particular disk. Can you try it with this changed sgsubmon.c? It has debug that will show exactly what the serial number contains. Andy -----Original Message----- From: scs...@li... [mailto:scs...@li...] On Behalf Of Daniel Smolik Sent: Wednesday, July 23, 2008 4:47 PM To: scs...@li... Subject: Re: [Scsirastools-developers] New scsirastools-1.5.7 release Cress, Andrew R napsal(a): > > See http://scsirastools.sf.net for rpms, etc. > This version fixes a few minor bugs, esp. when running on read-only > filesystems, and > one bug in sgmode when interpreting bogus mode pages returned by some > raid devices. > > Andy > > 1.5.7 = released 07/23/08, updated 07/23/08 > src/sgdiag.c - fixed error with -f option to do unattended format > src/sgcommon.c - added showlog(), cleanup of fdlog > src/sgcommon.h - added showlog(), dump_buf() > src/sgsub.c - make dumpbuf() static > src/sgmode.c - fixed segfault if bogus mode pages returned, > replace fprintf(fdlog) with showlog(), dump_buf(). > src/sg*.c - use showlog() throughout for safety > files/st373455.mdf - new, for ST373455 disks > doc/sgmode.8 - refer to UserGuide 3.1 for mdf files > doc/UserGuide - set mdf info 1c 0a 88 00 to make sure SMART+MRIE=off > scsirastools-1.5.7 contains: > sgdefects.c ver 1.12 > sgdiag.c ver 1.19 > sgdiskmon.c ver 1.6 > sgdskfl.c ver 1.15 > sgmode.c ver 1.17 > sgraidmon.c ver 1.35 > sgsafte.c ver 1.26 > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------ - > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Scsirastools-developers mailing list > Scs...@li... > https://lists.sourceforge.net/lists/listinfo/scsirastools-developers Hi Andy,dev[5] iret=0, ret=0, len=64 8:0:0:0 /dev/sg5 /dev/sde ATA WDC WD7500AYPS-002.0 [6] jret=-1 maj=0, min=0 [6] bdev ret=0 sdname = /dev/sdf inquiry ret=65, errno=2 dev[6] iret=0, ret=0, len=64 10:0:0:0 /dev/sg6 /dev/sdf ATA WDC WD7500AYPS-002.0 [7] jret=-1 maj=0, min=0 [7] bdev ret=0 sdname = /dev/sdg inquiry ret=65, errno=2 dev[7] iret=0, ret=0, len=64 12:0:0:0 /dev/sg7 /dev/sdg ATA WDC WD7500AYPS-002.0 scan ret = 0 device 6 is duplicate device 7 is duplicate device 7 is duplicate device 6 is duplicate nchgs=0 nrdy=6 lastnrdy=64 ndev=8 Num Name bus:ch:id:lun Type Vendor Device_Model FRev Serial# Status 0 /dev/sg0 /dev/sda 4:0:0:0 Disk SEAGATE ST39103LCSUN9.0G 034A 9949862528 online 1 /dev/sg1 /dev/sdb 4:0:1:0 Disk FUJITSU MAG3091L SUN9.0G 1111 9944499149 online 2 /dev/sg2 /dev/sdc 4:0:2:0 Disk FUJITSU MAG3091L SUN9.0G 1111 9944499100 online 3 /dev/sg3 /dev/sdd 4:0:3:0 Disk FUJITSU MAG3091L SUN9.0G 1111 9944498794 online 4 /dev/sg4 /dev/sr0 5:0:6:0 CDRM TOSHIBA XM6201TASUN32XCD 1103 12/12/97 ready 5 /dev/sg5 /dev/sde 8:0:0:0 Emul ATA WDC WD7500AYPS-0 02.0 ready 6 /dev/sg6 /dev/sdf 10:0:0:0 Disk failed 7 /dev/sg7 /dev/sdg 12:0:0:0 Disk failed monitoring 6 scsi devices ... dev 4 stat=3, saving dev 5 stat=3, saving on sdg6 and sdg7 reports failed but this disk are the same as sdg5. I don't understand why. Dan I have compiled new version nad run it on my modified Sparc box with mixture of Scsi and SATA disk an get this: -- Mydatex s r.o. http://www.mydatex.cz email: sm...@my... mob: 604200362 tel: 226210085 ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Scsirastools-developers mailing list Scs...@li... https://lists.sourceforge.net/lists/listinfo/scsirastools-developers |