On Fri, Jun 12, 2009 at 18:07, Ross Walker<[email protected]> wrote:
> I don't know if MegaCli supports that adapter, if it does, a:
>
> MegaCli -PDList -a0
>
> Will show the physical drives on adapter 0.
It does in fact support the adapter.  I was being an idiot and running
MegaCli as a regular user :-/

So, the good news is, it's easy to get it to do *almost* what I want,
provided I do so as root:
Fetch MegaCli from http://tinyurl.com/megacli-solaris
Unzip and install from .pkg or run directly
# ./MegaCli -pdlist -aAll
Observe all the drives are visible to the adapter
# ./MegaCli -adpsetprop coercionmode 0 -aAll
# ./MegaCli -adpgetprop coercionmode -aAll
Observe "coercion mode" is 0; the whole disks will be visible.  If
starting with fresh disks, maybe set this to 2 so that disks will be
rounded down to an even gigabyte to allow for easier replacement in
the future.
# ./MegaCli -cfgClr -aAll
Reset any existing configurations
# ./MegaCli -CfgEachDiskRaid0 -aAll
Turn on JBOD-like behavior.  However, this isn't quite what I want.
Here's what I mean:
# ./MegaCli -pdlist -aall

Adapter #0
(...)
Raw Size: 715404MB [0x575466f0 Sectors]
Non Coerced Size: 714892MB [0x574466f0 Sectors]
Coerced Size: 714302MB [0x5731f000 Sectors]

format confirms (I think?!) the smaller size:
format> verify
bytes/sector    =  512
sectors = 1462890495
accessible sectors = 1465149134
Part      Tag    Flag     First Sector          Size          Last Sector
  0        usr    wm               256       698.63GB           1465132750

These reported number-of-sectors are, in order, 714301, 715404, and
715396MB.  So maybe all that the LSI card is doing to coerce is
misreport the number of sectors, and not disallowing access to sectors
beyond that?

The zpool was created with a regular SATA controller, which did not
reserve any space at the end.  Therefore, any data in the last 512MB
may be corrupted by the LSI "this is a raid device with the following
configuration" block (see page 3-77 of the manual linked to in my
first message).  This isn't one of my real disks, luckily, so I
haven't lost any data yet, but I'm somewhat apprehensive about letting
LSI stomp all over my real disks.  I may get desperate and go for it
anyways and hope I won't lose anything irreplaceable (I don't have
much of that anyways) or make the LSI controller angry.

> Also have you tried raidctl?
raidctl doesn't work for this adapter:
# raidctl -l
(nothing)

Thanks for the help.

Will
_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss

Reply via email to