Sun Cluster 2.2 Cluster Volume Manager Guide

3.5 Creating Volumes

3.5.1 Creating a Volume

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

3.5.2 Adding a Mirror to a Volume

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 

history 

vol01 

admin_system 

vol01 

log_node1 

vol01 

log_node2 

vol01 


Note -

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.


3.5.3 Creating a Log File for an Existing Volume

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