A.39 create FileSystem

Creates an OCFS2 file system on a physical disk on a file server.

Syntax

create FileSystem physicalDisk=value name=value [ description=value ] on FileServer instance

Where instance is:

{ id=value | name=value }

Description

This command creates an OCFS2 file system on a physical disk on a file server. When creating a file system on an NFS file server, you can use the file server itself to create the file system. When creating an OCFS2 file system on a LUN, you should use a local file server on an Oracle VM Server that has access to the LUN to create the file system. See Section 7.2, “To create a storage repository on a storage array” for an example.

Options

The following table shows the available options for this command.

Option

Description

physicalDisk=value

The name or ID of the physical disk on which to create the OCFS2 file system.

name=value

A name for the file system.

description=value

Optional description for the file system. value is a maximum of 4,000 characters.

To set an empty description, use description="".

{ id=value | name=value }

The instance of the object using either the id or name option, for example name=MyFileSystem.

Note

Any create command only creates a single instance of an object, and therefore only accepts a single object instance as an attribute. Providing more than one object of the same attribute type as a parameter always results in the last attribute value taking precedence.

Examples

Example A.51 Creating an OCFS2 file system on physical disk on a file server

OVM> create FileSystem physicalDisk=0004fb0000180000e3c93dc542901b7a name=MyRepoFileSystem \
 on FileServer id=0004fb00000900007e1ce0c83b3f136f

Example A.52 Creating an OCFS2 file system on a LUN

OVM> create FileSystem name=MyRepoFileSystem physicalDisk="MyLUN1" on FileServer \
  name="Local FS MyServer1"

See Also