6.1 To create a storage repository on a file server

  1. Find the file system you want to use to create the storage repository with the list FileSystem command, for example:

    OVM> list FileSystem
      id:0004fb0000050000002618dec56ee0e8  name:0004fb0000050000002618dec56ee0e8
      id:0004fb00000500007d0ab143ddfe4467  name:0004fb00000500007d0ab143ddfe4467
      id:0004fb0000050000d426fb8e37a84bbc  name:0004fb0000050000d426fb8e37a84bbc
      id:0004fb0000050000014a27bcf721326e  name:0004fb0000050000014a27bcf721326e
      id:bcfca7ee-e3e5-4e17-b89f-330924f4b8e0  name:nfs:/mnt/vol1/poolfs01
      id:8040d5f1-810f-4f44-8c46-35639113385b  name:nfs:/mnt/vol1/poolfs02
      id:cd3df8d5-ee75-4c7d-a1a1-4bb40bf2eadb  name:nfs:/mnt/vol1/poolfs03
      id:29cc47bd-cf4a-426e-a89e-771d44b473cc  name:nfs:/mnt/vol1/poolfs04
      id:9f06d8ce-0059-4767-b9d9-65075a7762cc  name:nfs:/mnt/vol1/repo01
      id:cdf33132-d692-4abd-9e12-79ae078bb6d2  name:nfs:/mnt/vol2/repo02
      id:de6289b7-168f-4d5a-827f-e4e44ddbee45  name:nfs:/mnt/vol2/repo03
    OVM>
  2. Refresh the file system you intend to use for the storage repository. To refresh the file system, use the syntax:

    refresh { Assembly | FileServer | FileSystem | PhysicalDisk | Repository | SanServer | Server } instance

    For example:

    OVM> refresh FileSystem name=nfs:/mnt/vol1/poolfs01

    For more information on the syntax and usage, see Section A.75, “refresh” .

  3. Create the storage repository. Use the syntax:

    create Repository { fileSystem=value | serverPool=value physicalDisk=value } [ sharePath=value ] name=value [ description=value ]

    For example:

    OVM> create Repository name=MyRepository fileSystem=nfs:/mnt/vol1/repo01

    For more information on the syntax and usage, see Section A.24, “create Repository” .

  4. To grant access to the storage repository to any Oracle VM Servers, you must present the Oracle VM Server to the storage repository. To present Oracle VM Servers or all the members of a server pool to a storage repository, use the syntax:

    add Server instance to { ServerPool | FileServer | SanServer | Repository | NfsAccessGroup } instance

    For example:

    OVM> add Server name=MyServer to Repository name=MyRepository

    For more information on the syntax and usage, see Section A.10, “add Server” .

  5. Finally, refresh the storage repository using the syntax:

    refresh { Assembly | FileServer | FileSystem | PhysicalDisk | Repository | SanServer | Server } instance

    For example:

    OVM> refresh Repository name=MyRepository

    For more information on the syntax and usage, see Section A.75, “refresh” .