Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #230385 > unrolled thread

megacli help

Started bybasti <mailinglist@unix-solution.de>
First post2021-01-06 17:30 +0100
Last post2021-01-11 16:10 +0100
Articles 7 — 5 participants

Back to article view | Back to linux.debian.user


Contents

  megacli help basti <mailinglist@unix-solution.de> - 2021-01-06 17:30 +0100
    Re: megacli help Reco <recoverym4n@enotuniq.net> - 2021-01-06 17:50 +0100
      Re: megacli help basti <mailinglist@unix-solution.de> - 2021-01-06 19:40 +0100
    Re: megacli help Greg Wooledge <wooledg@eeg.ccf.org> - 2021-01-06 19:50 +0100
      Re: megacli help basti <mailinglist@unix-solution.de> - 2021-01-06 20:30 +0100
    Re: megacli help Richard Hector <richard@walnut.gen.nz> - 2021-01-10 04:30 +0100
    Re: megacli help Håkon Alstadheim <hakon@alstadheim.priv.no> - 2021-01-11 16:10 +0100

#230385 — megacli help

Frombasti <mailinglist@unix-solution.de>
Date2021-01-06 17:30 +0100
Subjectmegacli help
Message-ID<BujR8-3cS-13@gated-at.bofh.it>
Hello, I want to set all my drives to RAID0 to use mdadm.

"megacli help" have the following options:

MegaCli -CfgEachDskRaid0 [WT|WB] [NORA|RA] [Direct|Cached] [-enblPI]
         [CachedBadBBU|NoCachedBadBBU] [-strpszM]|[FDE|CtrlBased] 
[-Default| -Automatic| -None| -Maximum| -MaximumWithoutCaching] [-Cache] 
-aN|-a0,1,2|-aALL

There is no man page for megacli.

Is there a docu where the single parameter is explained?

what mean:
[WT|WB] ?
[NORA|RA] ?
[Direct|Cached] ?
[CachedBadBBU|NoCachedBadBBU] ?

best regards

[toc] | [next] | [standalone]


#230387

FromReco <recoverym4n@enotuniq.net>
Date2021-01-06 17:50 +0100
Message-ID<Bukau-3j4-11@gated-at.bofh.it>
In reply to#230385
	Hi.

On Wed, Jan 06, 2021 at 05:28:24PM +0100, basti wrote:
> Hello, I want to set all my drives to RAID0 to use mdadm.
> "megacli help" have the following options:

Is there any particular reason you're using megacli instead of storcli?
MegaCli is deprecated. If it's possible - stay away from MegaCli.
Especially if you value your sanity.


> There is no man page for megacli.

Yes, there's no man page for megacli. See below.


> Is there a docu where the single parameter is explained?

No, and there's good reason for it - think of the most horrible,
disgusting and amoral thing you can imagine. Doing that thing is an
experience that's superior to using megacli.

But, [1], [2] and [3] contain nearly anything that's a sane human being
can comprehend.


Reco

[1] http://www.vmwareadmins.com/megacli-working-examples-cheat-sheet/
[2] https://help.serversaustralia.com.au/s/article/megacli-megacli64-cheatsheet
[3] http://erikimh.com/megacli-cheatsheet/

[toc] | [prev] | [next] | [standalone]


#230388

Frombasti <mailinglist@unix-solution.de>
Date2021-01-06 19:40 +0100
Message-ID<BulSV-4nC-1@gated-at.bofh.it>
In reply to#230387
I'm new on LSI raid adapters.
OK i will try storcli. Don't know that megacli is deprecated.
THX


Am 06.01.21 um 17:45 schrieb Reco:
> 	Hi.
> 
> On Wed, Jan 06, 2021 at 05:28:24PM +0100, basti wrote:
>> Hello, I want to set all my drives to RAID0 to use mdadm.
>> "megacli help" have the following options:
> 
> Is there any particular reason you're using megacli instead of storcli?
> MegaCli is deprecated. If it's possible - stay away from MegaCli.
> Especially if you value your sanity.
> 
> 
>> There is no man page for megacli.
> 
> Yes, there's no man page for megacli. See below.
> 
> 
>> Is there a docu where the single parameter is explained?
> 
> No, and there's good reason for it - think of the most horrible,
> disgusting and amoral thing you can imagine. Doing that thing is an
> experience that's superior to using megacli.
> 
> But, [1], [2] and [3] contain nearly anything that's a sane human being
> can comprehend.
> 
> 
> Reco
> 
> [1] http://www.vmwareadmins.com/megacli-working-examples-cheat-sheet/
> [2] https://help.serversaustralia.com.au/s/article/megacli-megacli64-cheatsheet
> [3] http://erikimh.com/megacli-cheatsheet/
> 

[toc] | [prev] | [next] | [standalone]


#230390

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2021-01-06 19:50 +0100
Message-ID<Bum2C-4qY-17@gated-at.bofh.it>
In reply to#230385
On Wed, Jan 06, 2021 at 05:28:24PM +0100, basti wrote:
> "megacli help" have the following options:
> 
> MegaCli -CfgEachDskRaid0 [WT|WB] [NORA|RA] [Direct|Cached] [-enblPI]
>         [CachedBadBBU|NoCachedBadBBU] [-strpszM]|[FDE|CtrlBased] [-Default|
> -Automatic| -None| -Maximum| -MaximumWithoutCaching] [-Cache]
> -aN|-a0,1,2|-aALL

> what mean:
> [WT|WB] ?
> [NORA|RA] ?
> [Direct|Cached] ?
> [CachedBadBBU|NoCachedBadBBU] ?

One or the other.  Mutually exclusive.  Either A or B, possibly neither
one, but not both.

[toc] | [prev] | [next] | [standalone]


#230392

Frombasti <mailinglist@unix-solution.de>
Date2021-01-06 20:30 +0100
Message-ID<BumFj-4Tt-3@gated-at.bofh.it>
In reply to#230390
Am 06.01.21 um 19:45 schrieb Greg Wooledge:
> On Wed, Jan 06, 2021 at 05:28:24PM +0100, basti wrote:
>> "megacli help" have the following options:
>>
>> MegaCli -CfgEachDskRaid0 [WT|WB] [NORA|RA] [Direct|Cached] [-enblPI]
>>         [CachedBadBBU|NoCachedBadBBU] [-strpszM]|[FDE|CtrlBased] [-Default|
>> -Automatic| -None| -Maximum| -MaximumWithoutCaching] [-Cache]
>> -aN|-a0,1,2|-aALL
> 
>> what mean:
>> [WT|WB] ?
>> [NORA|RA] ?
>> [Direct|Cached] ?
>> [CachedBadBBU|NoCachedBadBBU] ?
> 
> One or the other.  Mutually exclusive.  Either A or B, possibly neither
> one, but not both.
>
I found the options explaint in https://docs.broadcom.com/doc/12352476

[WT|WB] Write through /  Write back
[NORA|RA]  No read ahead / Read ahead
[Direct|Cached] Sets the logical drive cache policy
[CachedBadBBU|NoCachedBadBBU] Enables caching when BBU is not functioning

So I would say:

storcli -CfgEachDskRaid0 WT RA direct nocachedbadbbu -a0

is the best for use with mdadm?

[toc] | [prev] | [next] | [standalone]


#230515

FromRichard Hector <richard@walnut.gen.nz>
Date2021-01-10 04:30 +0100
Message-ID<BvzAt-8aq-1@gated-at.bofh.it>
In reply to#230385
On 7/01/21 5:28 am, basti wrote:
> Hello, I want to set all my drives to RAID0 to use mdadm.

Is there any advantage in that?

I entirely agree with using mdadm rather than hardware raid, given the 
choice, since it allows for switching the disks into a system with a 
different card/adapter. But since RAID0 in this case is not JBOD, it's 
my understanding you can't do that anyway. IIRC last time I had to deal 
with this, we decided to just use the HW RAID and take advantage of the 
(slight) performance improvement (we measured it). But that's a long 
time ago now.

Richard

[toc] | [prev] | [next] | [standalone]


#230566

FromHåkon Alstadheim <hakon@alstadheim.priv.no>
Date2021-01-11 16:10 +0100
Message-ID<Bw6Zs-31B-15@gated-at.bofh.it>
In reply to#230385

[Multipart message — attachments visible in raw view] — view raw

Den 06.01.2021 17:28, skrev basti:
> Hello, I want to set all my drives to RAID0 to use mdadm.
>
> "megacli help" have the following options:
>
My version of megacli gives several pages of output for the 'help' 
option. megacli is a very strange program, but there is method to the 
madness. You can google to find a pdf describing the options, but those 
descriptions are equally alien. I no longer use it, but I made a perl 
program to search and pick apart the help-text from megacli. The 
attached perl-code contains a dump of the help text from my version of 
megacli. You might wish to update it with your current output for the 
'megacli -help' command. Some bits of my perl contain norwegian text and 
comments. Sorry. Anyway, the abbreviations sort of make sense, 'adp' = 
adapter, 'a' = adapter, 'PD' = physical drive 'Physdrv' = physical 
drive, 'LD' and 'L'  = logical drive , and so on . No coherency, except 
if you squint a certain way.

Anyway, what you want to look up is 'jbod' .

Not verified recently, but back when I did use the old LSI card (my 
current one is simpler, and uses storcli) , I also used the following 
snippet:

----hsp-to-jbod:---

#!/bin/bash
slot=$1
shift
megacli pdhsp rmv physdrv[64:${slot}] && megacli pdmakejbod 
physdrv[64:${slot}]
----

I believe hsp means "hot spare" (i.e. not currently used in a hardware 
raid config) .

I also used the following: <code> megacli pdlist|grep '^Device 
Id:\\|^Slot Number:' </code>


> MegaCli -CfgEachDskRaid0 [WT|WB] [NORA|RA] [Direct|Cached] [-enblPI]
>         [CachedBadBBU|NoCachedBadBBU] [-strpszM]|[FDE|CtrlBased] 
> [-Default| -Automatic| -None| -Maximum| -MaximumWithoutCaching] 
> [-Cache] -aN|-a0,1,2|-aALL
>
> There is no man page for megacli.
>
> Is there a docu where the single parameter is explained?
>
> what mean:
> [WT|WB] ?
Write through/Write back
> [NORA|RA] ?
No read-ahead / Read ahead
> [Direct|Cached] ?
For IO
> [CachedBadBBU|NoCachedBadBBU] ?
>
If you have the battery backup for the cards ram (google "cache vault") 
then this allows to automatically disable write-caching (WB) when the 
battery goes bad



[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web