Block-level data storage systems, also known as block storage systems, such as XIV offered by International Business Machines Corporation, Armonk, N.Y. and VSP offered by Hitachi, Ltd., typically serve one or more client computers by performing physical block-level read and write data operations on multiple physical data storage devices. Typically, one or more logical data volumes are created by an administrator of a block storage system, where a logical data volume may be distributed across multiple physical data storage devices. A client computer is given access to a logical data volume which the client computer's operating system formats and manages in accordance with a file system of its choosing. When the client computer performs a read or write data operation on a data file in its file system, it expresses this operation as a logical block-level data operation request in relation to its logical data volume and sends this request to the block storage system which performs a corresponding physical block-level data operation at a physical data storage location corresponding to the logical data block in the logical data volume.
In one aspect of the invention, a data caching method is provided, which includes discovering a file system structure logically stored on a set of one or more logical data volumes of a block storage system, and receiving a request to retrieve a first data block, in which the first data block is logically stored on the set of logical data volumes. Based on receiving the request to retrieve the first data block, a data file within the file system structure is identified, in which a first portion of the data file is logically stored in the first data block. Further, a second data block logically stored on the set of logical data volumes and physically stored on a set of one or more data storage devices is located, in which a second portion of the data file is logically stored in the second data block. The second data block is read from the set of data storage devices, and stored in a cache memory of the block storage system.
In other aspects of the invention, systems and computer program products embodying the invention are provided.
Additional features and advantages are realized through the techniques described herein. Other embodiments and aspects are described in detail herein and are considered a part of the claimed aspects.
Aspects of the invention will be understood and appreciated more fully from the following detailed description taken in conjunction with the appended drawings in which:
Reference is now made to
Block storage system 100 includes file system discovery apparatus 110 configured to discover file system structures that are logically stored on logical data volumes 108. Such file system structures include data file identifiers and data file size information, as well as the locations of logical data blocks in which portions of the data files are logically stored on logical data volumes 108. Thus, for example, where client computer 102 is configured with a Microsoft Windows operating system that formats its logical data volume 108 using the New Technology File System (NTFS), file system discovery apparatus 110 is, e.g., to discover the NTFS file system structures that client computer 102 logically stored on its logical data volume 108. File system discovery apparatus 110 is, e.g., configured to discover such file system structures independently of any computer operating systems that manage such file system structures in that file system discovery apparatus 110 does not interact with the computer operating systems in order to discover their file system structures. File system discovery apparatus 110 is, e.g., configured to discover file system structures for various known file systems that are logically stored on logical data volumes 108 and maintain such file system structure information in file system structure information 112. File system structure information 112 may be used to map a given data file in a given file system to the logical data blocks on logical data volume 108 that logically store portions of the data file and that correspond to physical data blocks on physical data storage devices 106 that physically store portions of the data file. File system discovery apparatus 110 is also, e.g., configured to identify various disk storage technologies, such as Redundant Array of Inexpensive Disks (RAID) systems and logical volume managers, such as LINUX Logical Volume Manager (LVM) and B-tree File System (BTRFS), as well as the structure of various types of database files.
Block storage system 100 includes a block storage cache controller 114 configured to receive requests, such as from client computer 102, to retrieve logical data blocks from their associated logical data volumes 108. Block storage cache controller 114 is configured to respond to a request to retrieve a logical data block by identifying a data file within file system structure information 112 where any portion of the data file is logically stored in the requested logical data block. Block storage cache controller 114 locates in their associated logical data volumes 108 one or more other logical data blocks, now referred to as “pre-fetch” data blocks, that logically store other portions of the same data file, and, e.g., does so independently of receiving a request to retrieve any of the pre-fetch data blocks. In one example, block storage cache controller 114 locates such pre-fetch blocks that are logically adjacent to the requested logical data block. Block storage cache controller 114 reads the pre-fetch data blocks from their corresponding physical data blocks on physical data storage devices 106, and stores the pre-fetch data blocks in a cache memory 116. In one example, block storage cache controller 114 is configured to keep track of the data blocks that are stored in cache memory 116 so as to avoid reading physical data blocks on physical data storage devices 106 if they are already present in cache memory 116.
In one embodiment, block storage cache controller 114 is configured to determine that the data file includes ordered data records, such as where the data file is a database file or a spreadsheet file, and that the requested logical data block includes one of the ordered data records, or a portion thereof, in which instance block storage cache controller 114 locates and caches one or more pre-fetch data blocks that logically store one or more of the ordered data records that are logically adjacent to the data record in the requested logical data block.
In one embodiment, block storage cache controller 114 is configured to determine that a currently requested logical data block that is associated with one data file is received in temporal proximity to a previous request for a logical data block that is associated with another data file, and that both data files are alphabetically adjacent to each other in the same file system directory or folder, in which instance block storage cache controller 114 locates and caches one or more pre-fetch data blocks in one or more other data files that are alphabetically adjacent in the same file system directory or folder to the data file with which the requested logical data block is associated.
In one embodiment, block storage cache controller 114 is configured to maintain one or more data blocks or data files in cache memory 116 in response to receiving specific requests to do so from a client computer, where the requests specify the data blocks and data files to be maintained in cache memory 116.
In various embodiments, block storage system 100 is configured to monitor any file system discovered by file system discovery apparatus 110 and provide reports or alerts, such as to an administrator of block storage system 100, regarding file system characteristics, such as:
Any of the elements shown in
Reference is now made to
Reference is now made to
Reference is now made to
Referring now to
It is to be appreciated that the term “processor” as used herein is intended to include any processing device, such as, for example, one that includes a CPU (central processing unit) and/or other processing circuitry. It is also to be understood that the term “processor” may refer to more than one processing device and that various elements associated with a processing device may be shared by other processing devices.
The term “memory” as used herein is intended to include memory associated with a processor or CPU, such as, for example, RAM, ROM, a fixed memory device (e.g., hard drive), a removable memory device (e.g., diskette), flash memory, etc. Such memory may be considered a computer readable storage medium.
In addition, the phrase “input/output devices” or “I/O devices” as used herein is intended to include, for example, one or more input devices (e.g., keyboard, mouse, scanner, etc.) for entering data to the processing unit, and/or one or more output devices (e.g., speaker, display, printer, etc.) for presenting results associated with the processing unit.
The present invention may be a system, a method, and/or a computer program product at any possible technical detail level of integration. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention.
The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.
Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, configuration data for integrated circuitry, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++, or the like, and procedural programming languages, such as the “C” programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present invention.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.
The descriptions of the various embodiments of the present disclosure have been presented for purposes of illustration, but are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.