Claims
- 1. A computerized method for tracking logical volumes comprising the steps of:
detecting the creation of a logical volume; querying the logical volume for a non-persistent device name and a unique volume identifier; creating a persistent association between the unique volume identifier and a redirected name if there is no existing association; and linking the redirected name to the non-persistent device name.
- 2. The computerized method of claim 1, further comprising the steps of:
detecting the deletion of a logical volume; and disassociating the unique volume identifier from the redirected name for the logical volume.
- 3. The computerized method of claim 2, further comprising the step of unlinking the redirected name from the non-persistent device name.
- 4. The computerized method of claim 1, further comprising the step of:
creating an entry in a persistent data structure containing the unique volume identifier and the redirected name for the logical volume.
- 5. The computerized method of claim 4, further comprising the step of:
creating a non-persistent data structure from the persistent data structure.
- 6. The computerized method of claim 5, wherein an entry in the non-persistent data structure contains the unique volume identifier, the redirected name, and the non-persistent device name for the logical volume.
- 7. The computerized method of claim 1, further comprising the step of:
supplying, upon request, the unique volume identifier, the redirected name, and the non-persistent device name for the logical volume.
- 8. A computer-readable medium having stored thereon a mount manager data structure comprising:
a first field containing data representing a unique volume identifier for a logical volume; and a second field containing data representing a redirected name for the logical volume identified by the data in the first field.
- 9. The computer-readable medium of claim 8, further comprising:
a third field containing data representing a non-persistent device name for the logical volume identified by the data in the first field.
- 10. A computer system comprising:
a processing unit; a system memory coupled to the processing unit through a system bus; a computer-readable medium coupled to the processing unit through a system bus; and a mount manager executed from the computer-readable medium by the processing unit, wherein the mount manager causes the processing unit to create a persistent association between a redirected name and a unique volume identifier that identifies a logical volume on the computer-readable medium, and establish a symbolic link between the redirected name and a non-persistent device name for the logical volume upon each boot of the computer so that a reference to the redirected name is correctly resolved by the processing unit to the logical volume identified by the unique volume identifier and the data on the logical volume can be accessed through the redirected name.
- 11. The computer system of claim 10, wherein the mount manager further causes the processing unit to create a persistent data structure on the computer-readable medium that associates the redirected name with the unique volume identifier.
- 12. The computer system of claim 10, wherein the mount manager further causes the processing unit to create a non-persistent data structure in system memory from the persistent data structure.
- 13. The computer system of claim 11, wherein the mount manager further causes the processing unit to disassociate the unique volume identifier from the redirected name when the logical volume is deleted from the computer-readable medium.
- 14. The computer system of claim 13, wherein the mount manager further causes the processing unit to break the symbolic link between redirected name and the non-persistent device name when the logical volume is deleted from the computer-readable medium.
- 15. A computer-readable medium having computer-executable components comprising:
a plug and play manager for detecting the presence of a physical device in a computer system and for assigning a device driver responsibility for controlling access to the physical device; a partition manager communicatively coupled to the device driver for capturing partition device objects enumerated from the physical device by the device driver, wherein each partition device object corresponds to a portion of the physical device, the partition manager further communicatively coupled to the plug and play manager; a volume manager communicatively coupled to the partition manager for creating a volume device object from at least one partition device object captured by the partition manager, for assigning a device name to the logical volume represented by the volume device object, and further communicatively coupled to the plug and play manager for registering the creation of the volume device object, wherein the volume device object comprises the device name and a unique volume identifier for the logical volume; a mount manager communicatively coupled to the plug and play manager for receiving notification of the creation of the volume device object, and for establishing a persistent association between the unique volume identifier of the volume device object and a redirected name; and an object manager communicatively coupled to the partition manager, the volume manager, and the mount manager for managing the partition device objects and the volume device object, and for creating a symbolic link object for the redirected name that causes a reference to the redirected name to be redirected to the volume device object.
- 16. The computer-readable medium of claim 15, wherein the mount manager creates an entry in a persistent data structure to establish the persistent association between the unique volume identifier and the redirected name.
- 17. The computer-readable medium of claim 16, wherein the mount manager creates a non-persistent data structure from the persistent data structure.
- 18. The computer-readable medium of claim 15, wherein the mount manager requests the object manager create the symbolic link object when the mount manager establishes the persistent association between the unique volume identifier and the redirected name.
- 19. The computer-readable medium of claim 15, wherein the mount manager disassociates the unique volume identifier and the redirected name when the logical volume corresponding to the unique volume identifier is deleted.
- 20. The computer-readable medium of claim 19, wherein the mount manager requests the object manager delete the symbolic link object when the mount manager disassociates the unique volume identifier with the redirected name.
- 21. The computer-readable medium of claim 15, wherein the mount manager returns the unique volume identifier, the redirected name, and the device name for the logical volume when requested by the plug and play manager.
RELATED APPLICATIONS
[0001] This application is related to the co-assigned and co-filed U.S. patent applications titled “Persistent Names for Logical Volumes” (docket number 777.124US1) and “Persistent Volume Mount Points” (docket number 777.123US1) which are hereby incorporated by reference.