[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 System Management Guide: Operating System and Devices

Changing the Name of a Logical Volume

This procedure enables you to rename a logical volume without losing any data on the logical volume. The file system associated with the logical volume must be unmounted and then renamed.

Prerequisites

It is important to have an understanding of the following:

Procedure

In this example, the logical volume is changed from lv00 to hd33.

  1. Unmount the file system associated with the logical volume:
    unmount /test1
    Note: You cannot use the umount command on a device in use. A device is in use if any file is open for any reason or if a user's current directory is on that device.
  2. Rename the logical volume:
    chlv -n hd33 lv00 
  3. Change the dev parameter of the mount point of the file systems associated with the logical volume in the /etc/filesystems file to match the new name of the logical volume. For example: /dev/lv00 becomes /dev/hd33
    Note: If you rename a JFS log, you will be prompted to run chfs on all file systems that use the renamed log device.
  4. Remount the file systems:
    mount /test1

[ Previous | Next | Contents | Glossary | Home | Search ]