Next | Prev | Up | Top | Contents | Index

Increasing the Size of a Logical Volume

Caution: The procedure in this section can result in the loss of data if it is not performed properly. It is recommended only for experienced IRIX system administrators. An existing logical volume can be extended to include one or more additional disk partitions. Remember that if the original logical volume is striped, you must add a number of disk partitions that is a multiple of the stripes parameter.

Caution: All files on the disk partition added to the logical volume are destroyed. If the disk partition contains files that you want to save, back up all files on the partition to tape or another disk before beginning this procedure. Follow this procedure to increase the size of a logical volume, for example lv0:

  1. Unmount the logical volume you plan to extend:

    # umount /dev/dsk/lv0

  2. Add the block device files for the new disk partition(s) to the end of the /etc/lvtab entry for the logical volume. For example, say the original entry is:
lv0:Zebra Project:stripes=2:devs=/dev/dsk/dks0d2s7,/dev/dsk/dks1d1s7 

Add more device_pathnames for the new disk partitions to the end of the entry (although the line shown wrapped here, it is one line in the file):

lv0:Zebra Project:stripes=2:devs=/dev/dsk/dks0d2s7,/dev/dsk/dks1d1s7, 
/dev/dsk/dks0d3s7, /dev/dsk/dks1d2s7 

  1. Give the command lvck to check other logical volumes, if any, and the syntax of the changed entry in /etc/lvtab:

    # lvck

    The <NO LABEL PRESENT> message you see is normal for the devices in the new logical volume.

  2. Give the command mklv with the -f option to update the logical volume labels:

    # mklv -f lv0

  3. If there is a filesystem on the logical volume, extend it with the growfs command:

    # growfs /dev/dsk/lv0

  4. Remount the logical volume:

    # mount /dev/dsk/lv0



Next | Prev | Up | Top | Contents | Index