SoftNAS API Guide
Menu
Index

4.23. createvolume

 
Description
 
This method is used to create a volume.
 
Request
 
In addition the the Standard Request Structure, the following parameters are required.
 
For definitions of parameters, see section Properties
Parameter
Parameter Name
Required?
volume name
vol_name
Y
pool name
pool
Y
volume type
vol_type
Y
provisioning
provisioning
Y
reserve space
reserve_space
Y
reserve units
reserve_units
Y
compression
compression
Y
dedup
dedup
Y
shareISCSI
shareISCSI
Y
shareCIFS
shareCIFS
Y
exportNFS
exportNFS
Y
enable snapshots
enable_snapshots
Y
schedule name
scedule_name
Y
hourlysnaps
hourlysnaps
Y
dailysnaps
dailysnaps
Y
weeklysnaps
weeklysnaps
Y
 
Example
$ softnas-cmd createvolume volume5 pool3
filesystem thin exportNFS=on shareCIFS=on dedup=on enable_snapshot=on
schedule_name=Default hourlysnaps=5 dailysnaps=10 weeklysnaps=0 -t
 
Example 2
$ softnas-cmd createvolume volume6 pool3
filesystem thick reserve_space=1 reserve_units=G -t
 
 
 
Made with help of Dr.Explain