Next | Prev | Up | Top | Contents | Index

Creating Entries in the /etc/lvtab File

The file /etc/lvtab contains a table of logical volumes. It is read by the commands that create, install, and check the consistency of logical volumes. You can modify it with a text editor to add new logical volumes or to change existing ones.

The entries in /etc/lvtab have this form (it is shown wrapped here, but it is a single line with no blank spaces):

volume_device_name:[volume_name][:stripes=stripe_number[:step=stripe_unit]]:devs=
device_pathnames 
The volume_device_name is of the form lvn, where n is a one or two digit integer. The logical volume is accessed through the device special files /dev/dsk/lv<n> and /dev/rdsk/lv<n>.

The volume_name is an arbitrary identifying name for the logical volume. This name is included in the logical volume labels on each of the partitions making up the logical volume. It is then used by commands to verify that the logical volume on the disks is actually the volume expected by /etc/lvtab. Any name of up to 80 characters can be used; you should probably choose something that other users can identify. You can leave this field blank, but this is not recommended.

The stripes option creates a logical volume that is striped across its constituent devices (see Figure 6-1 for an illustration of how the data is written to the devices). The number of device_pathnames must be a multiple of stripe_number. stripe_number specifies the number of disks the volume is striped across. For example, suppose you have a logical volume with 6 constituent devices and a stripe_number of 3. The logical volume is set up to stripe across the first three devices until they are filled, then to stripe across the second three.

The step option further specifies the stripe unit (the granularity with which the storage is distributed across the components of a striped volume). stripe_unit is measured in disk blocks. The default stripe unit is the device track size, which is generally a good value to use.

The device_pathnames are listed following any options. They are the block device filenames of the devices constituting the logical volume. device_pathnames must be separated by commas. The partitions named must be legal for use as normal data storage, and not dedicated partitions, such as swap.



Next | Prev | Up | Top | Contents | Index