Method of identifying and dynamically updating storage device status at target
First Claim
1. A method of identifying storage device status at a target, applied in a storage area network (SAN) built by Linux system, for determining operating status of storage devices at a target through logic device identification numbers, the method comprising:
- an initiator establishing a session with the target, and obtaining a plurality of allocated storage devices and a plurality of corresponding logic unit numbers (LUNs);
the initiator writing a report LUN command into a command descriptor block (CDB), packaging the CDB into a small computer systems interface (SCSI) CMD request packet, and sending the SCSI CMD request packet to the target;
receiving a feedback SCSI CMD response packet, and parsing the LUNs carried by the SCSI CMD response packet; and
the initiator comparing the allocated LUNs with the LUNs obtained from the SCSI CMD response packet, and updating the status of the storage devices.
1 Assignment
0 Petitions
Accused Products
Abstract
A method of identifying and dynamically updating storage device status at a target is applied for a storage area network (SAN) built by Linux system, for determining operating status of storage devices at a target through logic device identification numbers. First, a session is established between an initiator and the target, and allocated storage devices and corresponding logic unit numbers (LUNs) are obtained. Then, the initiator sends a CMD request packet with report LUN command to the target. Afterward, according to the LUNs in a received CMD response packet, operating status corresponding to the storage devices is determined. Thereby, timeout may be reduced by avoiding sending queries to those storage devices. When the device allocation is modified, the target may send an asynchronous message PDU to update a storage device status record at the target, so as to maintain the usability of the record.
-
Citations
10 Claims
-
1. A method of identifying storage device status at a target, applied in a storage area network (SAN) built by Linux system, for determining operating status of storage devices at a target through logic device identification numbers, the method comprising:
-
an initiator establishing a session with the target, and obtaining a plurality of allocated storage devices and a plurality of corresponding logic unit numbers (LUNs); the initiator writing a report LUN command into a command descriptor block (CDB), packaging the CDB into a small computer systems interface (SCSI) CMD request packet, and sending the SCSI CMD request packet to the target; receiving a feedback SCSI CMD response packet, and parsing the LUNs carried by the SCSI CMD response packet; and the initiator comparing the allocated LUNs with the LUNs obtained from the SCSI CMD response packet, and updating the status of the storage devices. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A method of dynamically updating storage device status at a target, applied in a storage area network (SAN) built by Linux system, for determining operating status of storage devices of a target through logic device identification numbers, the method comprising:
-
when a device allocation is added or removed at the target, the target sending an asynchronous message PDU to an initiator; the initiator receiving the asynchronous message PDU, and parsing a sense data from the asynchronous message PDU, so as to identify whether a device allocation is added or removed at the target; the initiator writing a report logic unit number (LUN) command into a command descriptor block (CDB), packaging the CDB into a small computer systems interface (SCSI) CMD request packet, and sending the SCSI CMD request packet to the target; receiving a feedback SCSI CMD response packet, and parsing the LUNs carried by the SCSI CMD response packet; and the initiator comparing the allocated LUNs with the LUNs obtained from the SCSI CMD response packet, and updating the status of the storage devices. - View Dependent Claims (7, 8, 9, 10)
-
Specification