Method and system for assigning or creating a resource
First Claim
1. A computer storage medium tangibly embodying a program of machine-readable instructions executable by a digital processing apparatus to perform a method for assigning storage in a SAN to a host, the method comprising the following operations:
- retrieving a list of paths to a model LUN, wherein the model LUN is a LUN anywhere in the SAN that can be connected to the host;
receiving a request for storage, wherein the request includes the list of paths;
retrieving a HardwareAccount, Controller, and an AccessAuthorization object for a first path in the list of paths;
making an attach device request to a CIMOM for a first available LUN, using the Controller and the AccessAuthorization object;
determining if the first available LUN was successfully attached,and if so, recording the assignment as successful;
and if not, rolling back all assignments for the first available LUN that were previously recorded as successful;
wherein the request further includes a requested amount of storage space; and
wherein if it is determined that the first available LUN was successfully attached on the first path, the operations further comprises repeating the retrieving, making, and determining operations for the first available LUN for a second path in the list of paths.
1 Assignment
0 Petitions
Accused Products
Abstract
An example of a method for assigning a resource (for example, storage) includes receiving a request for a resource, wherein the request includes a list of paths. This example also includes retrieving a HardwareAccount, Controller, and an AccessAuthorization object for a first path in the list of paths. This example further includes making an attach device request to a CIMOM for a first available resource, using the Controller and the AccessAuthorization object. This example also includes determining if the first available resource was successfully attached, and if so, recording the assignment as successful, and if not, rolling back all assignments for the first available resource that were previously recorded as successful. Another aspect of the invention is a method for creating at least one LUN.
-
Citations
13 Claims
-
1. A computer storage medium tangibly embodying a program of machine-readable instructions executable by a digital processing apparatus to perform a method for assigning storage in a SAN to a host, the method comprising the following operations:
-
retrieving a list of paths to a model LUN, wherein the model LUN is a LUN anywhere in the SAN that can be connected to the host; receiving a request for storage, wherein the request includes the list of paths; retrieving a HardwareAccount, Controller, and an AccessAuthorization object for a first path in the list of paths; making an attach device request to a CIMOM for a first available LUN, using the Controller and the AccessAuthorization object; determining if the first available LUN was successfully attached, and if so, recording the assignment as successful; and if not, rolling back all assignments for the first available LUN that were previously recorded as successful; wherein the request further includes a requested amount of storage space; and wherein if it is determined that the first available LUN was successfully attached on the first path, the operations further comprises repeating the retrieving, making, and determining operations for the first available LUN for a second path in the list of paths. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A computing system, comprising:
-
a memory; and a processing device coupled to the memory, wherein the processing device is programmed to perform operations for assigning storage in a SAN to a host, the operations comprising; receiving a request for storage, wherein the request includes a requested amount of storage space and a list of paths to a model LUN, wherein the model LUN is a LUN anywhere in the SAN that can be connected to the host; retrieving a HardwareAccount, Controller, and an AccessAuthorization object for a first path in the list of paths; making an attach device request to a CIMOM for a first available LUN, using the Controller and the AccessAuthorization object; determining if the first available LUN was successfully attached, and if so, recording the assignment as successful; and if not, rolling back all assignments for the first available LUN that were previously recorded as successful; wherein the request further includes a requested amount of storage space; and wherein if it is determined that the first available LUN was successfully attached on the first path, the operations further comprises repeating the retrieving, making, and determining operations for the first available LUN for a second path in the list of paths.
-
-
12. A computing system contains memory and processor, and comprising:
-
means for retrieving a list of paths to a model LUN, wherein the model LUN is a LUN anywhere in a SAN that can be connected to a requesting host; means for receiving a request for storage, wherein the request includes the list of paths; means for retrieving a HardwareAccount, Controller, and an AccessAuthorization object for a first path in the list of paths; means for making an attach device request to a CIMOM for a first available LUN, using the Controller and the AccessAuthorization object; means for determining if the first available LUN was successfully attached; means for recording the assignment as successful; and means for rolling back all assignments for the first available LUN that were previously recorded as successful, if the first available LUN was not successfully attached; wherein the request further includes a requested amount of storage space; and wherein if it is determined that the first available LUN was successfully attached on the first path, the operations further comprises repeating the retrieving, making, and determining operations for the first available LUN for a second path in the list of paths.
-
-
13. A method for assigning storage in a SAN to a host, comprising the following operations:
-
retrieving a list of paths to a model LUN, wherein the model LUN is a LUN anywhere in the SAN that can be connected to the host; receiving a request for storage, wherein the request includes a requested amount of storage space and the list of paths; retrieving a HardwareAccount, Controller, and an AccessAuthorization object for a first path in the list of paths; making an attach device request to a CIMOM for a first available LUN, using the Controller and the AccessAuthorization object; determining if the first available LUN was successfully attached, and if so, recording the assignment as successful; and if not, rolling back all assignments for the first available LUN that were previously recorded as successful; wherein the request further includes a requested amount of storage space; and wherein if it is determined that the first available LUN was successfully attached on the first path, the operations further comprises repeating the retrieving, making, and determining operations for the first available LUN for a second path in the list of paths.
-
Specification