Before creating a Primary RVG of an RDS, the following prerequisites must be met:
The data volumes and SRL must exist on the Primary. If the data volumes and SRL do not exist on the Primary, create them. To associate a volume set to the RVG, the volume set must exist on the Primary.
The SRL cannot be a volume set or a component volume of a volume set.
The data volumes and SRL must be started. If the data volumes and SRL are not started, start them. When a data volume is started, its state is active.
The data volumes used by the application must exist in the same RVG. Include the data volumes used by the application in the same RVG.
Make sure you include the appropriate loopback address(es) in the /etc/hosts file
.
If your environment only uses IPv4, you must include an IPv4 loopback address in the /etc/hosts
file. The following is a sample entry:
127.0.0.1 localhost loopback
If your environment only uses IPv6, you must include an IPv6 loopback address in the /etc/hosts
file.
::1 localhost loopback
If your environment uses both IPv4 and IPv6, the /etc/hosts
file must include both loopback addresses.
127.0.0.1 localhost loopback ::1 localhost loopback
On Solaris 11, you must manually edit the /etc/hosts
file to remove the hostname from the lines for loopback addresses.
For example:
::1 seattle localhost
127.0.0.1 seattle loghost localhost
needs to be changed to:
::1 localhost
127.0.0.1 loghost localhost
129.148.174.232 seattle
To create a Primary RVG of an RDS
Issue the following command on the host on which you want to create the Primary RVG:
# vradmin -g diskgroup createpri rvgname \ dv01_name,dv02_name... srl_name
The argument rvgname is the name of the RVG to be created.
The argument dv01_name,dv02_name,... is a comma-separated list of the names of the data volumes to be associated to the RVG. Each item can be an independent data volume name, or the name of a volume set. To associate a volume set to the RVG, specify the name of the volume set, not the names of the individual component volumes.
The argument srl_name is the name of the SRL to be associated to the RVG.
Use -nodcm option if you do not want DCMs to be added to the data volumes. By default, DCMs are added automatically.