# US 2001/0044807 A1 · File system image transfer

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2001/0044807 A1
- Document ID: US20010044807A1
- Status: Published application
- Kind: A1
- Application number: 09/127,497
- Filed: 1998-07-31
- Published: 2001-11-22
- Earliest claimed: 1998-07-31
- Assignees: Network Appliance, Inc.
- Inventors: STEVEN KLEIMAN; DAVID HITZ; GUY HARRIS; SEAN O'MALLEY
- Web page: https://patentgrep.com/patent/US20010044807A1

## CPC

- G06F 11/1448: {Management of the data involved in backup or backup restore}
- G06F 16/10: File systems; File servers
- G06F 11/1435: {using file system or storage system metadata}
- G06F 11/1456: {Hardware arrangements for backup}
- G06F 2201/84: Using snapshots, i.e. a logical point-in-time copy of the data
- Y10S 707/99953: Recoverability
- Y10S 707/99954: Version management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y10S: TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS

## Abstract

The invention provides a method and system for duplicating all or part of a file system while maintaining consistent copies of the file system. The file server maintains a set of snapshots, each indicating a set of storage blocks making up a consistent copy of the file system as it was at a known time. Each snapshot can be used for a purpose other than maintaining the coherency of the file system, such as duplicating or transferring a backup copy of the file system to a destination storage medium. In a preferred embodiment, the snapshots can be manipulated to identify sets of storage blocks in the file system for incremental backup or copying, or to provide a file system backup that is both complete and relatively inexpensive.

## Claims

### Claim 1

A file system, having a plurality of storage blocks, and including a plurality of bits associated with each one of said plurality of storage blocks, at least one of said plurality of bits identifying whether said one storage block was part of said file system at a time earlier than a current consistent version of said file system.

### Claim 2 (depends on 1)

A file system as in claim 1, including a second one of said plurality of bits identifying whether said one storage block was part of said file system at a second time earlier than a current consistent version of said file system

### Claim 3 (depends on 2)

A file system as in claim 2, including an element disposed for selecting storage blocks in response to said one bit and said second one bit associated with said selected storage blocks.

### Claim 4 (depends on 3)

A file system as in claim 3, including an element disposed for copying said selected storage blocks to a destination.

### Claim 5 (depends on 4)

A file system as in claim 4, wherein said destination includes: a tape, a disk, a data structure in a second file system, a set of network messages, or a destination distributed over a plurality of file systems.

### Claim 6 (depends on 1)

A file system as in claim 1, including an element disposed for selecting storage blocks in response to said one bit associated with said selected storage blocks.

### Claim 7 (depends on 6)

A file system as in claim 6, including an element disposed for copying said selected storage blocks to a destination.

### Claim 8 (depends on 7)

A file system as in claim 7, wherein said destination includes: a tape, a disk, a data structure in a second file system, a set of network messages, or a destination distributed over a plurality of file systems.

### Claim 9

A file system having a plurality of storage blocks, said file system including a snapshot including a set of member storage blocks selected from said plurality, said member storage blocks forming a consistent file system other than an active file system; said snapshot being disposed as an object in said file system, wherein said file system is responsive to at least one file system request with regard to said snapshot.

### Claim 10 (depends on 9)

A file system as in claim 9, including
a mark-on-allocate image of a set of member storage blocks selected from said plurality, said member storage blocks having been added to said snapshot; and
a storage image defined in response to said snapshot and said mark-on-allocate image, said storage image indicating a set of member storage blocks selected from said plurality.

### Claim 11 (depends on 10)

A file system as in claim 10, wherein said storage image is defined with regard to a logical sum operation on said snapshot and said mark-on-allocate image.

### Claim 12 (depends on 9)

A file system as in claim 9, including
a mark-on-deallocate image of a set of member storage blocks selected from said plurality, said member storage blocks having been added to said snapshot; and
a storage image defined in response to said snapshot and said mark-on-deallocate image, said storage image indicating a set of member storage blocks selected from said plurality.

### Claim 13 (depends on 9)

A file system as in claim 9, including
a shadow snapshot of a set of member storage blocks selected from said plurality, said member storage blocks having formed a consistent file system other than an active file system, with a set of selected member storage blocks removed from said consistent file system; and
a storage image defined in response to said snapshot and said shadow snapshot, said storage image indicating a set of member storage blocks selected from said plurality.

### Claim 14 (depends on 9)

A file system as in claim 9, including an indicator of which ones of said member storage blocks have been copied.

### Claim 15 (depends on 9)

A file system as in claim 9, including a plurality of said snapshots; wherein said plurality of said snapshots are associated with an array of bits, said array having one set of bits for substantially each storage block in said plurality of storage blocks, said set of bits having at least one bit for each said snapshot.

### Claim 16 (depends on 9)

A file system as in claim 9, wherein said file system can manipulate said snapshot without having to traverse a hierarchy of file system objects within said snapshot.

### Claim 17 (depends on 9)

A file system as in claim 9, wherein said snapshot includes a data structure disposed in a format allowing for a set management operation to be performed relatively efficiently.

### Claim 18 (depends on 9)

A file system as in claim 9, wherein said snapshot includes an array of bits, said array having one bit for substantially each storage block in said plurality.

### Claim 19 (depends on 9)

A file system as in claim 9, including
a plurality of said snapshots; and
a storage image determined in response to said plurality of snapshots;
said storage image defining a second set of member storage blocks selected from said plurality.

### Claim 20 (depends on 19)

A data structure as in claim 19, including an indicator of which ones of said storage blocks in said storage image have been copied.

### Claim 21 (depends on 19)

A file system as in claim 19, wherein said storage image is a result of a logical sum or difference performed on said set of member storage blocks for said snapshot and a set of member storage blocks for a second said snapshot.

### Claim 22 (depends on 19)

A file system as in claim 19, wherein said storage image is a result of a logical sum or difference performed on said set of member storage blocks for said snapshot and a set of member storage blocks for a second said storage image.

### Claim 23 (depends on 19)

A file system as in claim 19, wherein said storage image is a result of a set management operation on said set of member storage blocks for said snapshot.

### Claim 24 (depends on 9)

A file system as in claim 9, wherein said snapshot includes a data structure disposed in a format allowing for a set management operation to be performed in O(n) time or less, where n is a number of storage blocks in said plurality, without reading any contents of said storage blocks in said plurality.

### Claim 25 (depends on 24)

A file system as in claim 24, wherein said set management operation is a logical sum or difference.

### Claim 26 (depends on 9)

A file system as in claim 9, wherein said snapshot includes a data structure identifying which storage blocks in said plurality are member storage blocks of said snapshot.

### Claim 27 (depends on 26)

A file system as in claim 26, wherein said data structure uses no more than about {fraction (1/100)}th of an amount of storage required by said storage blocks in said plurality.

### Claim 28 (depends on 26)

A file system as in claim 26, wherein said data structure uses no more than about four bytes per storage block in said plurality.

### Claim 29

A method of operating a file server, said method including steps for
forming a first snapshot of a first consistent state of said file system at a selected time, said first snapshot including an indication of a set of storage blocks in said first consistent state;
forming a second snapshot of a second consistent state of said file system, said second snapshot including an indication of a set of storage blocks in said second consistent state; and
performing an operation on said first and second snapshots to form a storage image including an indication of at least some storage blocks in said file system.

### Claim 30 (depends on 29)

A method as in claim 29, wherein said operation includes a logical sum or difference.

### Claim 31 (depends on 29)

A method as in claim 29, wherein
said operation includes a logical sum or difference; and
said purpose includes making a copy including or excluding a selected range of snapshots.

### Claim 32 (depends on 29)

A method as in claim 29, wherein
said operation includes a logical sum or difference; and
said purpose includes copying said storage image to a destination.

### Claim 33 (depends on 32)

A method as in claim 32, wherein said destination includes a tape, a disk, a data structure in a second file system, a set of network messages, or a destination distributed over a plurality of file systems.

### Claim 34

A method to be performed in a file system, said file system having a plurality of storage blocks, said method including steps for
defining a storage image of a set of member storage blocks selected from said plurality, said storage image being formed in response to a set of member storage blocks forming a consistent file system other than an active file system; and
forming an image stream of a sequence of member storage blocks selected from said storage image.

### Claim 35 (depends on 34)

A method as in claim 34, including steps for associating a block location with substantially each one of said sequence.

### Claim 36 (depends on 34)

A method as in claim 34, wherein said operation includes reconstructing a file system in response to said image stream.

### Claim 37 (depends on 34)

A method as in claim 34, wherein said steps for forming are performed in response to a selected operation to be performed on said member storage blocks, said operation being other than an operation on an active file system

### Claim 38 (depends on 34)

A method as in claim 34, wherein said steps for forming include steps for optimizing said sequence of member storage blocks for a file system operation.

### Claim 39 (depends on 34)

A method as in claim 34, wherein said steps for forming include steps for optimizing said sequence of member storage blocks for a file system operation in a RAID file system.

### Claim 40 (depends on 34)

A method as in claim 34, wherein said steps for forming include steps for
optimizing said sequence of member storage blocks in response to a physical location in a storage medium for substantially each said member storage block, said storage medium having a plurality of storage elements capable of being read in parallel; and
ordering said sequence of member storage blocks so that said member storage blocks can be substantially optimally read in parallel from said plurality of storage elements.

### Claim 41 (depends on 34)

A method as in claim 34, wherein said storage image represents a complete file system.

### Claim 42 (depends on 34)

A method as in claim 34, wherein said storage image represents a set of changes to a file system.

### Claim 43 (depends on 34)

A method as in claim 34, including repeating said selecting step at periodic intervals.

### Claim 44 (depends on 34)

A method as in claim 34, including repeating said selecting step in response to an operator command.

### Claim 45 (depends on 34)

A method as in claim 34, including repeating said selecting step in response to a remote device.

### Claim 46

An incremental mirror copy of a file system, said incremental copy including a base set of storage blocks stored in a first storage medium, and an incremental set of storage blocks stored in a second storage medium.

### Claim 47 (depends on 46)

An incremental mirror copy as in claim 46, wherein
said first storage medium is substantially slower than said second storage medium; and
said incremental set of storage blocks is more recent than a time needed to recover said base set of storage blocks.

### Claim 48 (depends on 46)

An incremental mirror copy as in claim 46, wherein said incremental set of storage blocks is responsive to a plurality of updates of said file system.

### Claim 49 (depends on 46)

An incremental mirror copy as in claim 46, wherein said incremental set of storage blocks is responsive to a continuous sequence of updates of said file system, wherein said incremental mirror copy includes a substantially up to date set of storage blocks in said file system.

### Claim 50 (depends on 46)

An incremental mirror copy as in claim 46, wherein said incremental set of storage blocks is responsive to an indication of a set of storage blocks deallocated from said file system.

### Claim 51

Apparatus including
a file system including a plurality of snapshots thereof, each representing an associated consistent state at an associated selected time; and
each said snapshot including an indication of a set of storage blocks in said associated consistent state, said indication being recorded in at least one storage block in said associated consistent state.

### Claim 52 (depends on 51)

Apparatus as in claim 51, including a storage image defining at least some storage blocks in said file system, said storage image responsive to an operation on at least two of said snapshots.

### Claim 53

An incremental mirror of a file system having a plurality of storage blocks, said incremental mirror including
a first set of first member storage blocks selected from said plurality, said first member storage blocks forming a copy of a first consistent version of said file system; and
a second set of second member storage blocks selected from said plurality, said second member storage blocks being responsive to said first consistent version and to a second consistent version of said file system, said second set including a set of changes between said first and second consistent version;
said first set being stored in a first storage medium, and said second set being stored in a second storage medium of substantially different type;
whereby a complete copy of said file system can be constructed from said first set and said second set.

### Claim 54 (depends on 53)

An incremental mirror as in claim 53, wherein said first storage medium has much greater storage capacity and is relatively slower than said second storage medium.

### Claim 55 (depends on 53)

An incremental mirror copy as in claim 53, wherein said second set of member storage blocks is responsive to a plurality of updates of said file system.

### Claim 56 (depends on 53)

An incremental mirror copy as in claim 53, wherein said second set of member storage blocks is responsive to a continuous sequence of updates of said file system, wherein said second set of member storage blocks includes a substantially up to date set of storage blocks in said file system.

### Claim 57 (depends on 53)

An incremental mirror copy as in claim 53, wherein said second set of member storage blocks is responsive to an indication of a set of storage blocks deallocated from said file system.

### Claim 58

In a file system having a plurality of storage blocks, a data structure including
a first snapshot of a set of member storage blocks selected from said plurality, said member storage blocks forming a consistent file system other than an active file system;
said first snapshot being represented as an object in said file system and having a set of storage blocks for recording said first snapshot;
whereby copying said member storage blocks in said first snapshot has the property of preserving at least one snapshot recorded in said file system at a time of said first snapshot.

### Claim 59 (depends on 58)

A data structure as in claim 58, including
a second snapshot of a set of member storage blocks selected from said plurality, said member storage blocks forming a consistent file system other than an active file system;
said second snapshot being represented as an object in said file system and having a set of storage blocks for recording said second snapshot;
whereby copying said member storage blocks in said second snapshot has the property of preserving at least one snapshot recorded in said file system at a time of said second snapshot.

### Claim 60 (depends on 58)

A data structure as in claim 58, including
an image stream including a set of storage blocks including both said first snapshot and said second snapshot;
whereby copying said member storage blocks in said image stream has the property of preserving both said first snapshot and said second snapshot.

### Claim 61

In a file system having a plurality of storage blocks, a data structure including
a snapshot of a set of member storage blocks selected from said plurality, said member storage blocks forming a consistent file system other than an active file system;
said snapshot being represented as an object in said file system and having a set of storage blocks for recording said snapshot;
whereby a backup and restore operation on said file system has the property of preserving said snapshot within said file system.

### Claim 62

In a file system having a plurality of storage blocks, a data structure including
a storage image of a set of member storage blocks selected from said plurality;
said storage image being formed in response to a set of member storage blocks forming a consistent file system other than an active file system.

### Claim 63 (depends on 62)

A data structure as in claim 62, including
a first storage image indicating a set of member storage blocks forming a consistent file system; and
a sequence of incremental storage images, each having a predecessor, at least one of said predecessors being said first storage image;
wherein a logical sum of said set of storage images includes at least one complete snapshot.

### Claim 64 (depends on 62)

A data structure as in claim 62, including an indicator of which ones of said storage blocks in said storage image have been copied.

### Claim 65 (depends on 62)

A data structure as in claim 62, wherein said storage image indicates a logical difference of two sets of member storage blocks, at least one of said sets forming a consistent file system.

### Claim 66 (depends on 62)

A data structure as in claim 62, wherein said storage image indicates a logical sum of two sets of member storage blocks each collectively forming a consistent file system.

### Claim 67 (depends on 62)

A data structure as in claim 62, wherein said storage image indicates a set of member storage blocks forming a consistent file system.

### Claim 68

In a file system having a plurality of storage blocks, a data structure including a shadow snapshot of a set of member storage blocks selected from said plurality, said member storage blocks having formed a consistent file system other than an active file system, with a set of selected member storage blocks removed from said consistent file system.

### Claim 69 (depends on 68)

A data structure as in claim 68, wherein said shadow snapshot is disposed in a format allowing for a set management operation to be performed relatively efficiently.

### Claim 70 (depends on 68)

A data structure as in claim 68, wherein said shadow snapshot uses, in addition to said member storage blocks, no more than about {fraction (1/100)}th of an amount of storage required by said storage blocks in said plurality.

### Claim 71 (depends on 68)

A data structure as in claim 68, wherein said shadow snapshot uses, in addition to said member storage blocks, no more than about one byte per storage block in said plurality.

### Claim 72 (depends on 68)

A data structure as in claim 68, wherein said shadow snapshot is disposed as a single object in said file system, whereby said file system can manipulate said snapshot without having to traverse a hierarchy of file system objects within said snapshot.

### Claim 73 (depends on 68)

A data structure as in claim 68, wherein said removed member storage blocks are responsive to completion of a processing operation.

### Claim 74 (depends on 73)

A data structure as in claim 73, wherein said processing operation includes a file system operation.

### Claim 75 (depends on 73)

A data structure as in claim 73, wherein said processing operation includes reuse of said selected member storage blocks by said file system.

### Claim 76 (depends on 68)

A data structure as in claim 68, wherein said shadow snapshot is disposed in a format allowing for a set management operation to be performed in O(n) time or less, where n is a number of storage blocks in said plurality, without reading any contents of said storage blocks in said plurality.

### Claim 77 (depends on 76)

A data structure as in claim 76, wherein said set management operation is a logical sum or difference.

### Claim 78

In a file system having a plurality of storage blocks, a data structure including a mark-on-allocate image of a set of member storage blocks selected from said plurality, said member storage blocks having been added to a snapshot that originally formed a consistent file system.

### Claim 79 (depends on 78)

A data structure as in claim 78, wherein said mark-on-allocate storage image is disposed as a single object in said file system, whereby said file system can manipulate said snapshot without having to traverse a hierarchy of file system objects within said snapshot.

### Claim 80 (depends on 78)

A data structure as in claim 78, wherein said mark-on-allocate image is disposed in a format allowing for a set management operation to be performed relatively efficiently.

### Claim 81 (depends on 78)

A data structure as in claim 78, wherein said mark-on-allocate storage image uses no more than about {fraction (1/100)}th of an amount of storage required by said storage blocks in said plurality.

### Claim 82 (depends on 78)

A data structure as in claim 78, wherein said mark-on-allocate image uses no more than about four bytes per storage block in said plurality.

### Claim 83 (depends on 78)

A data structure as in claim 78, said member storage blocks having been selected responsive to completion of a processing operation.

### Claim 84 (depends on 83)

A data structure as in claim 83, wherein said processing operation includes a file system operation.

### Claim 85 (depends on 83)

A data structure as in claim 83, wherein said processing operation includes reuse of said selected member storage blocks by said file system.

### Claim 86 (depends on 78)

A data structure as in claim 78, wherein said mark-on-allocate image is disposed in a format allowing for a set management operation to be performed in O(n) time or less, where n is a number of storage blocks in said plurality, without reading any contents of said storage blocks in said plurality.

### Claim 87 (depends on 86)

A data structure as in claim 86, wherein said set management operation is a logical sum or difference.

### Claim 88

In a file system having a plurality of storage blocks, a data structure including a mark-on-deallocate image of a set of member storage blocks selected from said plurality, said member storage blocks having been removed from a snapshot that originally formed a consistent file system.

### Claim 89 (depends on 88)

A data structure as in claim 88, wherein said mark-on-deallocate storage image is disposed as a single object in said file system, whereby said file system can manipulate said snapshot without having to traverse a hierarchy of file system objects within said snapshot.

### Claim 90 (depends on 88)

A data structure as in claim 88, wherein said mark-on-deallocate image is disposed in a format allowing for a set management operation to be performed relatively efficiently.

### Claim 91 (depends on 88)

A data structure as in claim 88, wherein said mark-on-deallocate storage image uses no more than about {fraction (1/100)}th of an amount of storage required by said storage blocks in said plurality.

### Claim 92 (depends on 88)

A data structure as in claim 88, wherein said mark-on-deallocate image uses no more than about four bytes per storage block in said plurality.

### Claim 93 (depends on 88)

A data structure as in claim 88, wherein said mark-on-deallocate image is disposed in a format allowing for a set management operation to be performed in O(n) time or less, where n is a number of storage blocks in said plurality, without reading any contents of said storage blocks in said plurality.

### Claim 94 (depends on 93)

A data structure as in claim 93, wherein said set management operation is a logical sum or difference.
