![]() |
< Previous | Next > |
Product: Volume Manager Guides | |
Manual: Volume Manager 4.1 Administrator's Guide |
Specifying a Disk Group to Commands![]() Many VxVM commands allow you to specify a disk group using the -g option. For example, the following command creates a volume in the disk group, mktdg: # vxassist -g mktdg make mktvol 5g The block special device corresponding to this volume is: /dev/vx/dsk/mktdg/mktvol System-Wide Reserved Disk GroupsThe following disk group names are reserved, and cannot be used to name any disk groups that you create: bootdg Specifes the boot disk group. This is an alias for the disk group that contains the volumes that are used to boot the system. VxVM sets bootdg to the appropriate disk group if it takes control of the root disk. Otherwise, bootdg is set to nodg (no disk group; see below). ![]() defaultdg Specifies the default disk group. This is an alias for the disk group name that should be assumed if the -g option is not specified to a command, or if the VXVM_DEFAULTDG environment variable is undefined. By default, defaultdg is set to nodg (no disk group; see below). nodg Specifies to an operation that no disk group has been defined. For example, if the root disk is not under VxVM control, bootdg is set to nodg. ![]() Rules for Determining the Default Disk GroupIt is recommended that you use the -g option to specify a disk group to VxVM commands that accept this option. If you do not specify the disk group, VxVM applies the following rules in order until it determines a disk group name:
If none of these rules succeeds, the requested operation fails. ![]() Displaying the System-Wide Boot Disk GroupTo display the currently defined system-wide boot disk group, use the following command: # vxdg bootdg See the vxdg(1M) manual page for more information. Displaying and Specifying the System-Wide Default Disk GroupTo display the currently defined system-wide default disk group, use the following command: # vxdg defaultdg If a default disk group has not been defined, nodg is displayed. Alternatively, you can use the following command to display the default disk group: # vxprint -Gng defaultdg 2>/dev/null In this case, if there is no default disk group, nothing is displayed. Use the following command to specify the name of the disk group that is aliased by defaultdg: # vxdctl defaultdg diskgroup If bootdg is specified as the argument to this command, the default disk group is set to be the same as the currently defined system-wide boot disk group. If nodg is specified as the argument to the vxdctl defaultdg command, the default disk group is undefined. ![]() See the vxdctl(1M) and vxdg(1M) manual pages for more information. |
^ Return to Top | < Previous | Next > |
Product: Volume Manager Guides | |
Manual: Volume Manager 4.1 Administrator's Guide | |
VERITAS Software Corporation
www.veritas.com |