Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Jan 2005 18:39:50 +1100
From:      Jan Mikkelsen <janm@transactionware.com>
To:        Scott Long <scottl@freebsd.org>
Cc:        scsi@freebsd.org
Subject:   Re: IBM ServeRAID 7k & 5.3
Message-ID:  <41DE3CC6.7010803@transactionware.com>
In-Reply-To: <41DE373E.8090805@freebsd.org>
References:  <000001c4f370$b3cb7a40$0202a8c0@mosm1> <41DE373E.8090805@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

Scott Long wrote:
> There is no documentation on anything related to this that I know of.
> Sorry.  These are decent cards, but there seems to be little chance that
> Adaptec or IBM will support online management under FreeBSD.

Thanks for the reply.

I looked through the driver code and wrote an "ipsstat" utility that 
uses the user command ioctl to query what is going on.  The output isn't 
pretty; my main purpose is to have someone be notified if a logical 
drive goes into degraded mode.

Example output below.  The implementation is pretty straightforward; 
I'm happy to hand out the source.

Regards,

Jan.


janm@serv: src $ sudo ./ipsstat /dev/ips0
ips adaptor info for /dev/ips0
drivecount:           1
miscflags:            6
SLTflags:             0
BSTflags:             0
pwr_chg_count:        0
wrong_addr_count:     0
unident_count:        0
nvram_dev_chg_count:  0
codeblock_version:    7.00.17
bootblock_version:    7.00.17
max_concurrent_cmds:  64
max_phys_devices:     30
flash_prog_count:     0
defunct_disks:        0
rebuildflags:         15
offline_drivecount:   0
critical_drivecount:  0
config_update_count:  41
blockedflags:         0
psdn_error:           0

drivecount:           1
host_id:              Null Config
rebuild_rate:         15
board_desc:           TMB 4 Ch
processor:            PPC-750

Info for logical drive 0:
user_field:           5132
state:                OK
raid_cache_param:     1
chunk_unit_count:     2
stripe_size:          4
params:               0
logical_drive_size:   286746624

Details of chunk 0 for logical drive 0:
channel:              1
target:               0
starting sector:      0
sector count:         286746624

Details of chunk 1 for logical drive 0:
channel:              1
target:               1
starting sector:      0
sector count:         286746624

Device at channel 1, target 0:
initiator:            0
params:               0
misc_flag:            0
state:                137
block_count:          286747728
device_id:            IBM-ESXSDTN146C3S29CECWGBXTC

Device at channel 1, target 1:
initiator:            0
params:               0
misc_flag:            0
state:                137
block_count:          286747728
device_id:            IBM-ESXSDTN146C3S29CECWDSDGE

Device at channel 1, target 8:
initiator:            0
params:               3
misc_flag:            0
state:                1
block_count:          0
device_id:            IBM     02R0980a1   000



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41DE3CC6.7010803>