Information required for the storage create operation
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:
|
If you are using SLES10 update 2, then raw device is used to create a file system.
|
|
|
|
|
lun_name (long or short form)
|
|
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 or logical volume name
|
|
|
|
|
Required: If you are creating a file system that resides directly on a LUN, specify the -nolvm option.
|
|
|
|
|
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.
|
|
|
|
|
Specify the storage system and its volume where you want SnapDrive for UNIX to create the LUNs automatically.
|
File system type (-fstype )
|
|
If you are creating a file system, supply the string representing the file system type.
SnapDrive for UNIX accepts Linux: ext4 or ext3
|
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.
|
|
|
|
|
|
|
|
|
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 the value of the enable-mount-with-netdev configuration parameter is set to off (default value), you must manually specify -mntopts _netdev in the snapdrive storage create command. However, if you change the value to on, the -mntopts _netdev is executed automatically when you run the snapdrive storage create command.
|
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(for example, fstab on Linux). By default, the snapdrive storage create command creates persistent mounts. When you create an LVM storage entity on a Linux 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. On Linux systems, SnapDrive for UNIX adds a UUID in the host file system table.
-
Use -reserve | -noreserve to create the storage with or without creating a space reservation.
|
|
|
Optional: NetApp recommends that you use the default igroup for your host instead of supplying an igroup name.
|