Creating a volume
You can create a volume and specify its junction point and other properties by using the volume create command.
Before you begin
The SVM for the new volume and the aggregate that will supply the storage resources for the SVM must already exist.
If the SVM has a list of associated aggregates, the aggregate must be included in the list.
About this task
A volume must include a junction path for its data to be made available to clients. You can specify the junction path when you create a new volume. If you create a volume without specifying a junction path, you must mount the volume in the SVM namespace using the volume mount command.
Examples
The following command creates a new volume named users1 on the SVM vs1.example.com and the aggregate aggr1. The new volume is made available at /users. The volume is 750 GB in size, and its volume guarantee is of type volume (by default).
cluster1::> volume create -vserver vs1.example.com -volume users -aggregate aggr1 -size 750g -junction-path /users
[Job 1642] Job succeeded: Successful
cluster1::> volume show -vserver vs1.example.com -volume users -junction
Junction Junction
Vserver Volume Active Junction Path Path Source
----------------- ------- -------- --------------- -----------
vs1.example.com users1 true /users RW_volume
The following command creates a new volume named home4
on the SVM vs1.example.com
and the aggregate aggr1
. The directory /eng/ already exists in the namespace for the vs1 SVM, and the new volume is made available at /eng/home, which becomes the home directory for the /eng/ namespace. The volume is 750 GB in size, and its volume guarantee is of type volume (by default).
cluster1::> volume create -vserver vs1.example.com -volume home4 -aggregate aggr1 -size 750g -junction-path /eng/home
[Job 1642] Job succeeded: Successful
cluster1::> volume show -vserver vs1.example.com -volume home4 -junction
Junction Junction
Vserver Volume Active Junction Path Path Source
---------------- ------- -------- --------------- -----------
vs1.example.com home4 true /eng/home RW_volume