Previous  |  Next  >  
Product: Volume Manager Guides   
Manual: Volume Manager 4.1 Administrator's Guide   

Renaming a Disk

If you do not specify a VM disk name, VxVM gives the disk a default name when you add the disk to VxVM control. The VM disk name is used by VxVM to identify the location of the disk or the disk type. To change the disk name to reflect a change of use or ownership, use the following command:


vxedit [-g diskgroup] rename old_diskname new_diskname

For example, you might want to rename disk mydg03, as shown in the following output from vxdisk list, to mydg02: #


vxdisk list
DEVICE        TYPE        DISK      GROUP      STATUS
c0t0d0        auto:hpdisk        mydg01      mydg      online
c1t0d0        auto:hpdisk        mydg03      mydg      online
c1t1d0        auto:hpdisk        -      -      online

You would use the following command to rename the disk.


vxedit -g mydg rename mydg03 mydg02

To confirm that the name change took place, use the vxdisk list command again:


vxdisk list
DEVICE        TYPE        DISK      GROUP      STATUS
c0t0d0        auto:hpdisk        mydg01      mydg      online
c1t0d0        auto:hpdisk        mydg02      mydg      online
c1t1d0        auto:hpdisk        -      -      online
Note   Note    By default, VxVM names subdisk objects after the VM disk on which they are located. Renaming a VM disk does not automatically rename the subdisks on that disk.
 ^ Return to Top Previous  |  Next  >  
Product: Volume Manager Guides  
Manual: Volume Manager 4.1 Administrator's Guide  
VERITAS Software Corporation
www.veritas.com