Welcome to HardwareForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

aaccli> container create raid5

 
   Hardware Problem Solving Community! (Home) -> PC Storage RSS
Related Topics:
Add new hard drive and create array - I currently have an ASUS A7N8X Deluxe with a WD 74GB Raptor drive. I'd like to add an drive and raid them. I would be using the for the raid setup and most likely raid 0. Will I lose all my data if I add the new drive..

Failure to create backup image by Ghost 2003 - I tried to create backup image of my computer without success using Ghost 2003 and looking forward to any from members. Hardware in use:- 1. Toshiba R150 NB 2. USB 1.1 bootable floppy drive 3. HP 8100 IDE CD Writer Plus +..

What stripe size to use for RAID5? - I have a Promise SX6000 PCI RAID5 card w/ 128Mb cache. I have 6 drives hooked up in a 5x75GB RAID5 with 1x75GB set aside as a hot-spare drive. Using the default stripe size of 64KB and NTFS formatted as 4KB cluster size. is

RAID10+10Krpm vs RAID5+15Krpm - I'm setting up a SCSI drive array, and I was which is more -- RAID level or drive speed? I'm the following setups: RAID 10 with 10K rpm drives RAID 5 with 15K rpm drives Obviously RAID 10 will always have the..

Replace older drives on a RAID5. - We have an email server running a RAID5 (Hot Swap) storage setup with an Adaptec 2100s SCSI Currently we have 4 older IBM 18GB 80pin drives 1 drive is setup as the "Hot One of the drives just recently and..
Author Message
Frantisek Rysanek

External


Since: Apr 01, 2005
Posts: 4



(Msg. 1) Posted: Fri Apr 01, 2005 6:19 am
Post subject: aaccli> container create raid5
Archived from groups: comp>sys>ibm>pc>hardware>storage (more info?)

Took me some time to figure out, so I guess I'd better publish this.
Maybe someone else has been wondering how to create a RAID 5 from
the AACCLI command line, in Linux or FreeBSD or what have you...

Suppose you have 3 disk drives, known as ID's 0, 1 and 2 on
the SCSI bus (or three SATA drives on channels 0, 1 and 2).
This is perhaps the simplest way to do it:

container create raid5 ((0,0,0)) (0,1,0) (0,2,0)

The internal logic of the FSA raid is non-trivial and the AACCLI
is rather spartan, including the documentation.
The double brackets mean that you're supplying a "freespace"
rather than a plain SCSI device, but that you would like to use
a default capacity for the new volume (available maximum) so
there's actually no particular capacity given after the SCSI device
within the "freespace" definition. See also the documentation
provided by Adaptec in the box.

Frank Rysanek

 >> Stay informed about: aaccli> container create raid5 
Back to top
Login to vote
Arno Wagner

External


Since: Nov 07, 2003
Posts: 2164



(Msg. 2) Posted: Fri Apr 01, 2005 11:35 am
Post subject: Re: aaccli> container create raid5 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Previously Frantisek Rysanek <Frantisek.Rysanek DeleteThis @post.cz> wrote:
 > Took me some time to figure out, so I guess I'd better publish this.
 > Maybe someone else has been wondering how to create a RAID 5 from
 > the AACCLI command line, in Linux or FreeBSD or what have you...

Cryptic, yes.

 > Suppose you have 3 disk drives, known as ID's 0, 1 and 2 on
 > the SCSI bus (or three SATA drives on channels 0, 1 and 2).
 > This is perhaps the simplest way to do it:

 > container create raid5 ((0,0,0)) (0,1,0) (0,2,0)

 > The internal logic of the FSA raid is non-trivial and the AACCLI
 > is rather spartan, including the documentation.

Not to forget unusable for any automatic monitoring.

 > The double brackets mean that you're supplying a "freespace"
 > rather than a plain SCSI device, but that you would like to use
 > a default capacity for the new volume (available maximum) so
 > there's actually no particular capacity given after the SCSI device
 > within the "freespace" definition. See also the documentation
 > provided by Adaptec in the box.

Personally I have now an expensive paperweight in the form
of an Adaptec 2810 controller. It kept crashing, it was slow,
it did not have a commandline control tool (AACCLI is a GUI
on text-mode, not a commandline tool that you can use, e.g. in
a cron-job) and now I am running LINUX software RAID on Promise
TX4's, which is also much, much faster.

Arno<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: aaccli&gt; container create raid5 
Back to top
Login to vote
Frantisek Rysanek

External


Since: Apr 01, 2005
Posts: 4



(Msg. 3) Posted: Sun Apr 03, 2005 10:45 pm
Post subject: Re: aaccli> container create raid5 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

  > > The internal logic of the FSA raid is non-trivial and the AACCLI
  > > is rather spartan, including the documentation.
 >
 > Not to forget unusable for any automatic monitoring.
 >
hmm. I guess once upon a time I was able to get some sort of e-mail
notifications to work, with an ASR-2120 (aacraid).

At that time, there was a demon called "anotifyd" - unfortunately
it didn't use ioctl(/dev/aac0) directly, but rather it relied on
the other demons in the bunch: aiomgrd and arcpd. In other words,
you needed to install the whole HTTP/SSL-based "Adaptec Storage
Manager"
just to get e-mail notifications to work.
That was with the original aacraid CD. Today, the AAR-2410/2810 are
shipped with aacraid CD version 2 - I haven't yet investigated what's
new.

 > it did not have a commandline control tool (AACCLI is a GUI
 > on text-mode, not a commandline tool that you can use, e.g. in
 > a cron-job)
 >
I believe aaccli *can* be scripted. You merely supply the commands
in a file. A somewhat funny point is that you have to supply an
"exit" command on the very last line of the script, otherwise
aaccli doesn't terminate Smile See the AACCLI manual on the CD.

 > and now I am running LINUX software RAID on Promise
 > TX4's, which is also much, much faster.
 >
as long as you can afford to spend the CPU time on RAID5
XOR crunching, right?

By Promise you probably mean the non-RAID flavour,
i.e. without the FastTrak RAID BIOS, right?

Anyway it's interesting to know that the AAR-2810 kept
crashing for you. This is something I should focus on Smile

On a somewhat unrelated note, right now I have an Areca
1120 in my torture chamber. Its drivers are not in Vanilla
kernels yet, but its RAID5 performance is nice, and hot-swap
behavior even in non-SAF-TE drawers is excellent.

Frank Rysanek<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: aaccli&gt; container create raid5 
Back to top
Login to vote
Arno Wagner

External


Since: Nov 07, 2003
Posts: 2164



(Msg. 4) Posted: Mon Apr 04, 2005 1:35 pm
Post subject: Re: aaccli> container create raid5 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Previously Frantisek Rysanek <Frantisek.Rysanek.DeleteThis@post.cz> wrote:
   >> > The internal logic of the FSA raid is non-trivial and the AACCLI
   >> > is rather spartan, including the documentation.
  >>
  >> Not to forget unusable for any automatic monitoring.
  >>
 > hmm. I guess once upon a time I was able to get some sort of e-mail
 > notifications to work, with an ASR-2120 (aacraid).

 > At that time, there was a demon called "anotifyd" - unfortunately
 > it didn't use ioctl(/dev/aac0) directly, but rather it relied on
 > the other demons in the bunch: aiomgrd and arcpd. In other words,
 > you needed to install the whole HTTP/SSL-based "Adaptec Storage
 > Manager"
 > just to get e-mail notifications to work.
 > That was with the original aacraid CD. Today, the AAR-2410/2810 are
 > shipped with aacraid CD version 2 - I haven't yet investigated what's
 > new.

  >> it did not have a commandline control tool (AACCLI is a GUI
  >> on text-mode, not a commandline tool that you can use, e.g. in
  >> a cron-job)
  >>
 > I believe aaccli *can* be scripted. You merely supply the commands
 > in a file. A somewhat funny point is that you have to supply an
 > "exit" command on the very last line of the script, otherwise
 > aaccli doesn't terminate Smile See the AACCLI manual on the CD.

I tried that. It works. But the output is mostly unusable,
since it still contains vt100 control sequences. And
of course AACCLI does _not_ support terminal type "dumb".

  >> and now I am running LINUX software RAID on Promise
  >> TX4's, which is also much, much faster.
  >>
 > as long as you can afford to spend the CPU time on RAID5
 > XOR crunching, right?

Not really an issue. It is needed only on writing, or reading
from a degraded array. It is difficult to really measure how
much effort goes into the RAID, but when I stream data to
an 8 disk RAID5 array on a dual Athlon 2800+ box, it takes
overall less than 50% of one CPU and gets 35MB/s real, sustained
speed. Could possibly be faster, but I did not invest much time
into tuning, since it is mostly read from. I suspect the bottleneck
is the PCI switching between the different controllers (4, since
each TX4 is essentially 2 controller son one chip).

 > By Promise you probably mean the non-RAID flavour,
 > i.e. without the FastTrak RAID BIOS, right?

Right.

 > Anyway it's interesting to know that the AAR-2810 kept
 > crashing for you. This is something I should focus on Smile

It just froze. No diagnostics, the kernel just stopped being
able to communicated with the controller. Was not a kernel
problem either. I had some problems with some SATA enclosures
that were out of spec and they likely crashed the controller.
Still, a hard freeze is unacceptable, regardlass of what nonsense
the disks do. After I moved to software RAID, the kernel
just kicked a disk _with_ diagnostics from time to time until
I replaced the enclosures.

 > On a somewhat unrelated note, right now I have an Areca
 > 1120 in my torture chamber. Its drivers are not in Vanilla
 > kernels yet, but its RAID5 performance is nice, and hot-swap
 > behavior even in non-SAF-TE drawers is excellent.

Well, hot-swap is nice. Linux needs still some time to do that
for SATA, but the capability is in the standard-SATA hardware.

Arno<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: aaccli&gt; container create raid5 
Back to top
Login to vote
Frantisek Rysanek

External


Since: Apr 01, 2005
Posts: 4



(Msg. 5) Posted: Mon Apr 04, 2005 11:50 pm
Post subject: Re: aaccli> container create raid5 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

  > > I believe aaccli *can* be scripted. You merely supply the commands
  > > in a file.
 >
 > I tried that. It works. But the output is mostly unusable,
 > since it still contains vt100 control sequences. And
 > of course AACCLI does _not_ support terminal type "dumb".
 >
another interesting point on your part Smile

By the output of ldd, it seems to me that aaccli relies on ncurses.
I believe that the handling of terminal types is done by ncurses,
rather than by aaccli directly.
It's indeed a deficiency in aaccli that it can't recognize raw
file/pipe on the output and avoid curses altogether, the way some
better behaved software does it.

You made me try this on my own.
I've made a simple script containing just "open aac0" and "exit".
If I ran "aaccli <sample.scp >output.txt" under TERM=linux, i could
indeed see some escape sequences in the output.
If I did "export TERM=dumb" though, the output seemd to lack all
escape sequences, except for the terminal-style EOLs (just CR == \r).
Nonetheless, it seems that Curses translate a "clear screen" into
several hundred space characters (0x20) ahead of useful data, so there
*is* some formatting to crunch, if you want to process this output
by Perl or something.

Maybe I should try some more complex aaccli commands to learn
how messy this can get Smile Backspace characters and such...

 > Not really an issue. It is needed only on writing, or reading
 > from a degraded array. It is difficult to really measure how
 > much effort goes into the RAID, but when I stream data to
 > an 8 disk RAID5 array on a dual Athlon 2800+ box, it takes
 > overall less than 50% of one CPU and gets 35MB/s real, sustained
 > speed. Could possibly be faster, but I did not invest much time
 > into tuning, since it is mostly read from. I suspect the bottleneck
 > is the PCI switching between the different controllers (4, since
 > each TX4 is essentially 2 controller son one chip).
 >
thanks for that data, this is perhaps the first time I've seen
a real-world benchmark of this kind posted by anyone.
Then again I didn't try too hard to find one Smile

In my experience, various RAID5 controllers based on the
Intel IOP302/303 can do about 50 MBps sustained sequential
writes, averaged over 2 seconds (so the peak rate may actually
be much higher). The newer solutions based on IOP321/331 are
perhaps 2x or 3x as fast.
RAID0 transfer rates are yet somewhat faster, so indeed the RAID5
crunching is a bit of a bottleneck, rather than the PCI bus.

Regarding the "PCI switching between different controllers":

These IOP chips are also using PCI as their primary and secondary
bus (dual-ported design) - the IOP302/303 have PCI66@64, the
IOP321/331
have PCI-X@133. That's 533 MBps or 1.066 GBps respectively of
theoretical
bandwidth. Compare that to 50 or 150 MBps.

The SCSI or SATA bus controller on a RAID card is usually a single
chip. This design style saves package count, up to 8-channel
controllers
are available. Sometimes two chips - it appears that there's no other
way
to achieve 16 SATA channels.

I don't believe that multiplexing PCI transactions among two or four
discrete controller chips on a PCI bus would add some overhead
compared to multiplexing different channels in a multi-channel
controller IC.
My impression is that different channels, even in a single controller
chip, tend to have separate "register footprints" in the PCI bus
address space, separate state machines etc. Even if not, you can't
merge tranfers from two different channels into a single PCI
bus-master transaction, so you have to do the whole transaction setup
"per channel" anyway, and the different channels have to arbitrate PCI
DMA concurrently anyway.
Different IRQ sharing setups are possible either way - there are no
straight implications.
==> There's no principal difference between a single-chip controller
and four separate chips. In this respect, a PC system is not much
different from an IOP-based RAID controller.

I guess I've wandered way off topic here Smile

I'm running a software-based mirror (under Linux 2.4 => "md" devices)
on a small fileserver and I have to say I'm completely satisfied.

Frank Rysanek<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: aaccli&gt; container create raid5 
Back to top
Login to vote
Arno Wagner

External


Since: Nov 07, 2003
Posts: 2164



(Msg. 6) Posted: Tue Apr 05, 2005 9:52 am
Post subject: Re: aaccli> container create raid5 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Previously Frantisek Rysanek <Frantisek.Rysanek.TakeThisOut@post.cz> wrote:
   >> > I believe aaccli *can* be scripted. You merely supply the commands
   >> > in a file.
  >>
  >> I tried that. It works. But the output is mostly unusable,
  >> since it still contains vt100 control sequences. And
  >> of course AACCLI does _not_ support terminal type "dumb".
  >>
 > another interesting point on your part Smile

 > By the output of ldd, it seems to me that aaccli relies on ncurses.
 > I believe that the handling of terminal types is done by ncurses,
 > rather than by aaccli directly.
 > It's indeed a deficiency in aaccli that it can't recognize raw
 > file/pipe on the output and avoid curses altogether, the way some
 > better behaved software does it.

 > You made me try this on my own.
 > I've made a simple script containing just "open aac0" and "exit".
 > If I ran "aaccli <sample.scp >output.txt" under TERM=linux, i could
 > indeed see some escape sequences in the output.
 > If I did "export TERM=dumb" though, the output seemd to lack all
 > escape sequences, except for the terminal-style EOLs (just CR == \r).
 > Nonetheless, it seems that Curses translate a "clear screen" into
 > several hundred space characters (0x20) ahead of useful data, so there
 > *is* some formatting to crunch, if you want to process this output
 > by Perl or something.

Well, then you seem to have a more advanced version that I have.
With TERM=dumb I could not even get output...

 > Maybe I should try some more complex aaccli commands to learn
 > how messy this can get Smile Backspace characters and such...

Pretty messy. I actually geban making a Perl-wrapper before
I had seen enough crashes to stpu uing the controller.

[...]
 > The SCSI or SATA bus controller on a RAID card is usually a single
 > chip. This design style saves package count, up to 8-channel
 > controllers
 > are available. Sometimes two chips - it appears that there's no other
 > way
 > to achieve 16 SATA channels.

 > I don't believe that multiplexing PCI transactions among two or four
 > discrete controller chips on a PCI bus would add some overhead
 > compared to multiplexing different channels in a multi-channel
 > controller IC.

Possible. As I said, I did not do extensive benchmarking.

 > My impression is that different channels, even in a single controller
 > chip, tend to have separate "register footprints" in the PCI bus
 > address space, separate state machines etc. Even if not, you can't
 > merge tranfers from two different channels into a single PCI
 > bus-master transaction, so you have to do the whole transaction setup
 > "per channel" anyway, and the different channels have to arbitrate PCI
 > DMA concurrently anyway.
 > Different IRQ sharing setups are possible either way - there are no
 > straight implications.
 > ==> There's no principal difference between a single-chip controller
 > and four separate chips. In this respect, a PC system is not much
 > different from an IOP-based RAID controller.

 > I guess I've wandered way off topic here Smile

This is Usenet, you are welcome to wander Wink

 > I'm running a software-based mirror (under Linux 2.4 => "md" devices)
 > on a small fileserver and I have to say I'm completely satisfied.

I have several larger servers wit RAID5 and RAID1 and my normal
workstatuons with RAID1 and I am also competely satisfied with
the "md" driver. After the experience with the Adaptec attempt
at a SATA RAID controller, I guess I will stay with software
RAID for some time.

Arno<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: aaccli&gt; container create raid5 
Back to top
Login to vote
Display posts from previous:   
   Hardware Problem Solving Community! (Home) -> PC Storage All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]