Information required for the storage create operation

Contributors netapp-ivanad akseldavis Download PDF of this page

You must supply some information when you complete the storage create operation.

The following table lists the information you need to supply when you use the snapdrive storage create command to create storage:

Requirement Argument

Decide the type of storage you want to provision. Based on the command you enter, you can create any of the following:

  • LUNs

    If you create one or more LUNs, the first argument must use the long form of the LUN name, which specifies the storage system name, the volume name, and the name of the LUN within the volume.

    To specify additional LUNs, you can use the LUN name (short name) alone if the new LUN is on the same storage system and volume as the previous LUN. Otherwise, you can specify a new storage system name and volume name (or just a volume name) to replace the previous values.

  • A file system created directly on a LUN

    If you create a file system on a LUN, the first argument must be the -fs mount point. To create the file system on a LUN in a storage system and volume, use the -filervol argument and specify the name of the storage system and volume. To create the file system on a specific LUN, use the -lun argument and specify the storage system name, volume name, and LUN name. You must also include the -nolvm option to create the file system on the LUN without activating the host LVM.

    By default, SnapDrive for UNIX automatically performs all of the tasks associated with host preparation and discovery for the LUN, as well as mapping and connecting to it.

  • LVM disk groups with host volumes and file systems

    When you specify a disk or volume group, file system, or host or logical volume, SnapDrive for UNIX performs all the actions necessary to create the entity you specify. You can either explicitly specify the LUNs, or just supply the storage system and volume information and let SnapDrive for UNIX create the LUNs automatically.

    If you are creating an entity such as a file system, you do not need to supply a value for a disk or volume group. SnapDrive for UNIX automatically creates one.

  • A LUN (-lun)


  • Additional LUNs

lun_name (long or short form)

  • Disk group (-dg dgname) or volume group (-vg vgname)

disk or volume group name

SnapDrive for UNIX creates a disk or volume group to hold the LUNs based on the value you enter with the -dg option. The name you supply for the group must not exist.

  • Host volume (-hostvol file_spec) or logical volume (-lvol file_spec)

Host or logical volume name

  • File system (-fs file_spec)




Required: If you are creating a file system that resides directly on a LUN, specify the -nolvm option.

  • Lun size (-lunsize)


  • Disk group size (-dgsize)

  • Volume group size (-vgsize)


Specify the size in bytes or some other data unit for each entity being created. The size of the LVM entity depends on the aggregated size of the LUNs you request.

To control the size of the host entity, use the -dgsize option to specify the size in bytes of the underlying disk group.

  • Path to storage system volume (-filervol)


  • -lun


Specify the storage system and its volume where you want SnapDrive for UNIX to create the LUNs automatically.

  • Use the -filervol option to specify the storage system and volume where you want the LUNs created.

    Do not specify the LUN. SnapDrive for UNIX creates the LUN automatically when you use this form of the snapdrive storage create command. It uses system defaults to determine the LUN IDs, and the size of each LUN. It bases the names of the associated disk/volume groups on the name of the host volume or file system.

  • Use the -lun option to name the LUNs that you want to use.

File system type (-fstype)


If you are creating a file system, supply the string representing the file system type.

For AIX, SnapDrive for UNIX accepts: jfs2 or vxfs.

On an AIX host, the JFS file system type is not supported for storage operations, but supported for Snapshot operations.
By default, SnapDrive for UNIX supplies this value if there is only one file system type for your host platform. In that case, you do not need to enter it.



Optional: Specifies the type of volume manager to be used for SnapDrive for UNIX operations.


option name and value


option name and value



-reserve | -noreserve


Optional: If you are creating a file system, you can specify the following options:

  • Use -fsopts to specify options you want to pass to the host command used to create the file systems. For example, you might supply options that the mkfs command would use. The value you supply usually needs to be a quoted string and must contain the exact text to be passed to the command.

  • Use -mntopts to specify options that you want to pass to the host mount command (for example, to specify host system logging behavior). The options you specify are stored in the host file system table file. Allowed options depend on the host file system type.

    The -mntopts argument is a file system -type option that is specified using the mount command -o flag. Do not include the -o flag in the -mntopts argument. For example, the sequence -mntopts tmplog passes the string -o tmplog to the mount command, and inserts the text tmplog on a new command line.

    If you pass any invalid -mntopts options for storage and snap operations, SnapDrive for UNIX does not validate those invalid mount options.
  • Use -nopersist to create the file system without adding an entry to the file system mount table file on the host. By default, the snapdrive storage create command creates persistent mounts. When you create an LVM storage entity on a AIX host, SnapDrive for UNIX automatically creates the storage, mounts the file system, and then places an entry for the file system in the host file system table.

  • Use -reserve | -noreserve to create the storage with or without creating a space reservation.

  • igroup name(-igroup)


Optional: NetApp recommends that you use the default igroup for your host instead of supplying an igroup name.