欢迎加入IT云增值在线QQ交流群:342584734
分类:
2006-03-13 21:46:11
Use the "format" command to display available disks. If necessary, add new disks to the system and run "drvconfig; devlinks; disks" to configure the new disks. Do not partition disks to be used by Veritas.
To display disks setup for Veritas, use the command "vxdisk list".
To add more disks to the control of Veritas, use the following command:
vxdiskadd |
The would be c2t0d0, for example, without the slice suffix. The vxdiskadd script will prompt for necessary information such as the name of the disk group, whether or not to initialize the new disk, etc. Rerun the command "vxdisk list" to view the new disk.
To designate an unused disk as a hot-spare disk, use the following command:
vxedit set spare=on |
The would be the Veritas name for the disk, such as disk01. Use "vxdisk list" to confirm that the disk is now a dedicated hot-spare disk. To remove the disk from the dedicated hot-spare pool, use the following command:
vxedit set spare=off |
By default, Veritas will name disks based on the name of the disk group. To rename a disk (for example, from disk01 to disk02), use the following command:
vxedit rename |
To place a disk offline (for example, if the disk has become corrupted), run the following command:
vxdisk offline |
The would be c2t0d0, for example, without the slice suffix.
To remove a disk from the diskgroup to which it belongs, run the following command:
vxdg [-g diskgroup name] rmdisk |
To then remove that disk from Veritas control entirely, run the following command:
vxdisk rm |
The same set of commands may be used to move disks from one diskgroup to another:
vxdg rmdisk vxdg -g adddisk = |
(For example, "vxdg -g testdg adddisk testdg01=c2t0d0".)
Alternatively, you can simply remove the disk from Veritas control and then reinitialize it with "vxdiskadd". Use "vxdisk list" to confirm the new affiliation.
Every disk group requires a minimum of one disk. The simplest way to add a new diskgroup is to run the "vxdiskadd" command on an unconfigured disk, and when prompted for the name of the diskgroup to use, enter the desired name of the new diskgroup.
To display information on disk groups, run "vxdg list" or "vxdg list".
To destroy a diskgroup and reuse the disks for other purposes, run the following command:
vxdg destroy |
Failing or failed disks can be removed with the "vxdiskadm" menu command. To remove a failing disk, select choice 4, "remove a disk for replacement". To replace the disk later, select choice 5, "replace a failed or removed disk".