Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a 1Gb/s bandwidth between my computers. The source can actually read and send data at 25MB/s via SSH. My test file is 4GB, I use scp without compression for the test transfer. The rate is 25MB/s at the beginning, but after a point it starts to decrease quite suddenly. After sending 2GB the rate is down at 4.5MB/s almost steadily, the load is up to 6. Disks are WDC WD5001ABYS-01YNA0 models. Filesystem is ext3.

The bottleneck seems to be the RAID bus controller: 3ware Inc 9550SX SATA-II RAID PCI-X The tw_cli commands run very slowly (I see the output appearing line by line, does not occur when not stressed).

# tw_cli /c1 show

Unit  UnitType  Status         %RCmpl  %V/I/M  Stripe  Size(GB)  Cache  AVrfy
------------------------------------------------------------------------------
u0    RAID-5    OK             -       -       256K    931.303   OFF    OFF

Port   Status           Unit   Size        Blocks        Serial
---------------------------------------------------------------
p0     OK               u0     465.76 GB   976773168     WD-WCAS87320631
p1     OK               -      465.76 GB   976773168     WD-WCAS87223554
p2     OK               u0     465.76 GB   976773168     WD-WCAS87159042
p3     OK               u0     465.76 GB   976773168     WD-WMAYP6812676
p4     NOT-PRESENT      -      -           -             -
p5     NOT-PRESENT      -      -           -             -
p6     NOT-PRESENT      -      -           -             -
p7     NOT-PRESENT      -      -           -             -

Head of tw_cli /c1 diag

### CLI Version:      x86 (32 bit)
### Time Stamp:       00:13.27 11-Dec-2013
### Host Name:        somelinux
### OS Version:       Linux 2.6.18
### Driver Version:   2.26.02.010
### Controller ID:    1
### Model:            9550SXU-8LP
### Firmware:         FE9X 3.04.00.005
### BIOS:             BE9X 3.04.00.002
### Serial #:         L320810A7430290
### Available Memory: 112MB

As far as I know the cache cannot count in this case because the write is a long linear one. These drives can do 40MB/s writing when they are alone.

What can be the cause of all this? What should I do?


Additional info

Reading is 32MB/s with the caused load of 1.5.

share|improve this question
    
Is the battery present on this unit? Present and fully functioning / charged? –  Wesley Dec 10 '13 at 23:32
    
BBU comm error 0x241 while writing packet : I2C transaction aborted –  Notinlist Dec 10 '13 at 23:35

1 Answer 1

up vote 3 down vote accepted

The output from tw_cli shows that the write cache is disabled. By default, 3ware cards disable the write cache if the BBU is not present.

When the write cache is disabled each write operation must be flushed to all disks to prevent possible corruption in the event of a power failure.

Write cache can be enabled by running:

tw_cli /c1/u0 set cache=on

Beware that if you enable write cache without having a working/charged BBU or a UPS, you may experience data loss if a unexpected power failure occurs.

share|improve this answer
    
How serious can the data loss be? Like some bad sectors? Or will I loose my whole array? –  Notinlist Dec 13 '13 at 10:35
    
The data loss should be containted to the files being written. If filesystem metadata is being written, your filesystem might end up in a inconsistent state. This may require a fsck or similar during the next boot. –  martinp Dec 13 '13 at 18:21
    
Translate that to "full disappearing data unless you pay for recovery". Things CAN get nasty. Not likely, but possible. –  TomTom Feb 19 at 15:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.