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.


[EMAIL PROTECTED]: 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
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to