After checking the prerequisites ("Prerequisites for Maintaining DiskSuite Objects"), and the preliminary information ("Preliminary Information for Renaming Metadevices"), use the metarename(1M) command to rename a metadevice. Refer to the metarename(1M) man page for more information.
# umount /home # metarename d10 d100 d10: has been renamed to d100 (Edit the /etc/vfstab file so that the file system references the new metadevice) # mount /home |
The metadevice d10 is renamed to metadevice d100. Because d10 contains a mounted file system, the file system must be unmounted before the rename. If the metadevice is used for a file system with an entry in the /etc/vfstab file, the entry must be changed to reference the new metadevice name. For example, the following line:
/dev/md/dsk/d10 /dev/md/rdsk/d10 /docs ufs 2 yes - |
should be changed to:
/dev/md/dsk/d100 /dev/md/rdsk/d100 /docs ufs 2 yes - |