![](https://csdnimg.cn/release/download_crawler_static/4073583/bg11.jpg)
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
8
|
Chapter 1: Introduction
Linear Mode
Linear mode, also called append mode, writes data to a single array disk until it is
full. Once the disk is full, data is written to the next disk in the array until all disks
are full. This provides an easy way to use disks of different sizes in an array, so that
no space is ever wasted. Like striping, linear mode is not technically a RAID, because
no redundancy is provided. It was also not present in the original RAID specifica-
tion. For clarity, I will use the term linear mode, rather than append mode, through-
out the rest of the book.
Disk spanning
The term linear mode is unique to the Linux kernel’s implementation of RAID. Most
hardware RAID vendors use the term disk spanning, or simply spanning, to refer to
this type of end-to-end disk arrangement. The terms disk concatenation or concate-
nated disks are also used.
JBOD (Just a Bunch Of Disks)
JBOD refers to the single-disk operating mode that many hardware RAID controllers
support. With JBOD mode, the controller is able to circumvent RAID firmware and
treat a single hard disk as a normal disk controller would. This is useful when you
have disks that you want to configure without RAID support, but that you want to
connect to a RAID controller. If your controller does not support JBOD, then you
would need to use a standard disk controller to connect non-RAID disks, resulting in
additional hardware spending and the use of another expansion slot.
I have seen some instances where the term JBOD is used interchangeably with terms
like linear mode, disk spanning, and concatenation. When I use it throughout this
book, I mean it in the context described here: a standalone disk connected to a RAID
controller.
RAID on Linux
It’s important to understand that when I refer to a RAID array, I’m talking about a
block device and not a filesystem. You could think of the relationship between the
two much in the same way you might think of the relationship between a house and
its foundation. If the foundation is weak, the house will eventually collapse. The file-
system, which represents the house in my analogy, is built on top of a block device.
Normally, a block device is a single hard disk, but RAID introduces another layer
(see Figure 1-5). RAID groups many block devices into a single virtual device.
This means that Linux interacts with an array through a single block device having a
single major and minor number. Physically, the array device points to many different
physical disks, each with their own major and minor numbers. Programmers might