Put in remaining pages and wiki contents.
[ikiwiki.git] / docs / handbook / handbook-vinum-objects.mdwn
1 \r
2 \r
3 ## 13.5 Vinum Objects \r
4 \r
5 In order to address these problems, Vinum implements a four-level hierarchy of objects:\r
6 \r
7
8 * The most visible object is the virtual disk, called a ***volume***. Volumes have essentially the same properties as a UNIX® disk drive, though there are some minor differences. They have no size limitations.\r
9
10 * Volumes are composed of ***plexes***, each of which represent the total address space of a volume. This level in the hierarchy thus provides redundancy. Think of plexes as individual disks in a mirrored array, each containing the same data.\r
11
12 * Since Vinum exists within the UNIX disk storage framework, it would be possible to use UNIX partitions as the building block for multi-disk plexes, but in fact this turns out to be too inflexible: UNIX disks can have only a limited number of partitions. Instead, Vinum subdivides a single UNIX partition (the ***drive***) into contiguous areas called ***subdisks***, which it uses as building blocks for plexes.\r
13
14 * Subdisks reside on Vinum ***drives***, currently UNIX partitions. Vinum drives can contain any number of subdisks. With the exception of a small area at the beginning of the drive, which is used for storing configuration and state information, the entire drive is available for data storage.\r
15 \r
16 The following sections describe the way these objects provide the functionality required of Vinum.\r
17 \r
18 ### 13.5.1 Volume Size Considerations \r
19 \r
20 Plexes can include multiple subdisks spread over all drives in the Vinum configuration. As a result, the size of an individual drive does not limit the size of a plex, and thus of a volume.\r
21 \r
22 ### 13.5.2 Redundant Data Storage \r
23 \r
24 Vinum implements mirroring by attaching multiple plexes to a volume. Each plex is a representation of the data in a volume. A volume may contain between one and eight plexes.\r
25 \r
26 Although a plex represents the complete data of a volume, it is possible for parts of the representation to be physically missing, either by design (by not defining a subdisk for parts of the plex) or by accident (as a result of the failure of a drive). As long as at least one plex can provide the data for the complete address range of the volume, the volume is fully functional.\r
27 \r
28 ### 13.5.3 Performance Issues \r
29 \r
30 Vinum implements both concatenation and striping at the plex level:\r
31 \r
32
33 * A ***concatenated plex*** uses the address space of each subdisk in turn.\r
34
35 * A ***striped plex*** stripes the data across each subdisk. The subdisks must all have the same size, and there must be at least two subdisks in order to distinguish it from a concatenated plex.\r
36 \r
37 ### 13.5.4 Which Plex Organization? \r
38 \r
39 Vinum implements two kinds of plex:\r
40 \r
41
42 * Concatenated plexes are the most flexible: they can contain any number of subdisks, and the subdisks may be of different length. The plex may be extended by adding additional subdisks. They require less CPU time than striped plexes, though the difference in CPU overhead is not measurable. On the other hand, they are most susceptible to hot spots, where one disk is very active and others are idle.\r
43
44 * The greatest advantage of striped (RAID-0) plexes is that they reduce hot spots: by choosing an optimum sized stripe (about 256 kB), you can even out the load on the component drives. The disadvantages of this approach are (fractionally) more complex code and restrictions on subdisks: they must be all the same size, and extending a plex by adding new subdisks is so complicated that Vinum currently does not implement it. Vinum imposes an additional, trivial restriction: a striped plex must have at least two subdisks, since otherwise it is indistinguishable from a concatenated plex.\r
45 \r
46 [vinum-objects.html#VINUM-COMPARISON Table 13-1] summarizes the advantages and disadvantages of each plex organization.\r
47 \r
48 ***'Table 13-1. Vinum Plex Organizations***'\r
49 \r
50 [[!table  data="""
51 | Plex type | Minimum subdisks | Can add subdisks | Must be equal size | Application 
52  concatenated | 1 | yes | no | Large data storage with maximum placement flexibility and moderate performance 
53  striped | 2 | no | yes | High performance in combination with highly concurrent access |\r
54 """]]\r
55 \r
56 \r
57 CategoryHandbook\r
58 CategoryHandbook-vinum\r