Data storage systems, such as tape libraries, are used to store and retrieve data storage devices from locations within the data storage system so that data may be written to or read from the data storage device. Typically, the storage systems are used to store magnetic data cartridges. However, other types of data storage devices may be stored in other embodiments of data storage systems.
Since the contents and/or arrangement of the data cartridges may change, most data storage systems include an inventory system that may be used for keeping track of the presence, locations, and identities of the various data cartridges. Access to the data cartridges within the data storage system may be locked when the data storage system is operational. However, if the data storage system is shut down intentionally or unintentionally (e.g., power failure), an operator or other user may gain access to the cartridges. Since data cartridges could have been exchanged, removed, or added while the data storage system was shut down, an inventory of the cartridges must be performed after the system has been restarted. The inventory is time consuming and may not be necessary most of the time.
In one embodiment, an inventory control device is disclosed. The inventory control device comprises a latch positioned in relation to an access device of a data storage system so that opening the access device causes the latch to move from a first position to a second position. A sensor senses a latch state indicating the position of the latch. The inventory control device also comprises control logic communicatively coupled to the sensor. The control logic causes the data storage system to inventory one or more storage locations associated with the access device if the sensor indicates the latch is in the second position. The control logic causes the data storage system to not inventory the one or more storage locations if the sensor indicates the latch is in the first position.
Illustrative embodiments of the invention are illustrated in the drawings in which:
An exemplary data storage system with an inventory control device is illustrated in
As illustrated in
Alternative access devices are also contemplated. By way of example, an access device 120 may be a door to a data storage device through which the user may enter and gain access to all of the storage locations within the data storage device. Access devices may also be doors or other mechanisms that allow a user to gain access to a subset or all of the data storage locations within the data storage system 100.
Data storage system 100 also includes a control panel 150. The control panel may be used to display information to a user. It may also be used to hold controls to the library, such as a power or reset button. In alternate embodiments, data storage system 100 may not include control panel 150.
As shown in
Control logic 220 is communicatively coupled to a sensor 306, such as an optical interrupter, that senses a state indicating the position or movement of a mechanical device, such as a latch 304. As illustrated by
The latch may stay in the second position until it is moved back to the first position by actuator 302. By way of example, actuator may be a solenoid or motor. It should be appreciated that alternate embodiments may use a different type of latch 304 or sensor 306 than that shown in
The latch state indicating the position of the latch 304 is communicated to control logic 220. Control logic 220 may then use this information to determine if the access device 120 was opened while the data storage system 100 was shut down. Data storage system may have been shut down due to a power off, power failure, restart, or other condition that caused the data storage system to be inoperative. If the latch has been moved to the second state, control logic may cause the actuator 302 to move the latch back from the second position to the first position.
As will be explained with reference to
If the access device was opened 410, users may have rearranged, added, or moved data storage devices within the one or more storage locations associated with the access device. Thus, control logic 220 may cause an inventory to be performed 415 on these storage locations. Storage locations associated with access devices that were not opened during system shutdown or that could not have been accessed when the access device 120 was opened during system shutdown may or may not be inventoried. At any time after obtaining the position of the latch indicating the access device was opened, control logic may also cause actuator 302 or other mechanism to return the latch 304 to the position indicating the access device was not opened.
If the access device was not opened 410, the data storage devices were probably not added, moved, or rearranged within the one or more storage locations associated with the access device 120. Consequently, it is not necessary to inventory the one or more storage locations associated with access device 120. Therefore, an inventory on the one or more storage locations is not performed 425.
In one embodiment, the inventory may be performed by moving a cartridge access device to each of the storage locations that may have been accessed when access device 120 was opened so that the cartridge access device can read bar code labels of the data storage devices contained therein. The inventory list may then be updated with the information obtained from the inventory of the storage locations. Other methods of performing the inventory may also be used.
If the latch state does not indicate the access device was opened, it is not necessary to inventory the one or more storage locations associated with access device 120. Therefore, an inventory on the one or more storage locations is not performed 420. It should be appreciated that the process illustrated in