Exercise 5: Create volumes in each disk group.
The syntax for the command is:
# vxassist -g group_name -U gen make volume_name volume_size disk_name |
For example, the command for vol01, the first volume in the acct disk group is:
# vxassist -g acct -U gen make vol01 500m c1t0d0 |
Exercise 6: Create an associated mirror for each volume.
The syntax for the command is:
# vxassist -g group_name mirror volume_name disk_name |
For example, the command for vol1 is:
# vxassist -g acct mirror vol01 c2t0d0 |
The examples above use a volume size of 500 Mbytes (500m) for simplicity of calculations. The actual size of a CVM device is slightly less than the full disk drive size. CVM reserves a small amount of space for private use, called the private region.
Exercise 7: Repeat the procedure for each volume in the disk group.
Create one volume in each disk group. When you have finished, you should have these mirrored volumes:
Table 3-4 Volume Totals
Group |
Volume Name |
Total |
---|---|---|
acct |
vol01 |
1 |
history |
vol01 |
1 |
admin_system |
vol01 |
1 |
log_node1 |
vol01 |
1 |
log_node2 |
vol01 |
1 |
In the example, the five volumes all use the same name, vol01. The use of the same name is allowed if the volumes belong to different groups.
Exercise 8: Create a log for an existing volume.
The syntax for the command is:
# vxassist -g group_name addlog volume_name disk_name |
For example, the command for vol1 is:
# vxassist -g acct addlog vol01 c2t0d0 |