Table of ContentsView in Frames

Setting the autocommit period

To commit the files in a SnapLock volume to WORM state automatically, you must set the autocommit period. The autocommit period determines how long a file in that volume must remain unchanged before it is committed to the WORM state. You can set the autocommit period by using the vol options command.

Step

  1. To set the autocommit period, enter the following command: vol options vol_name snaplock_autocommit_period {none|count{h|d|m|y}}
    autocommit_period is the time in hours, days, months, or years.
    Example

    In the following example, the autocommit period is set to 24 days on the volume sle_vol. vol options sle_vol snaplock_autocommit_period 24d

    Note: You can disable the autocommit feature by setting the autocommit period to none.
    After the SnapLock retention period has elapsed, no changes can be made to the file. If you want to delete the file, you must manually change permissions to read-write after the retention period has expired.

Examples of file access before and after an autocommit operation

The following example shows a file fingerprint output of a file before and after the autocommit operation:
file fingerprint -x /vol/test_slc_vol/sample_file.0

<fingerprint><fingerprint-info><fingerprint-algorithm>sha-256</fingerprint-algorithm><fingerprint-start-time>1306404682</fingerprint-start-time><formatted-fingerprint-start-time>Thu May 26 10:11:22 GMT 2011</formatted-fingerprint-start-time><fingerprint-scope>data_and_metadata</fingerprint-scope><fingerprint-version>2</fingerprint-version><fingerprint-input-path>/vol/test_slc_vol/sample_file.0</fingerprint-input-path><filer-id>118069060</filer-id><filer-name>f3070-230-70</filer-name><snaplock-license>compliance and enterprise</snaplock-license><snaplock-system-compliance-clock>1306404680</snaplock-system-compliance-clock><formatted-snaplock-system-compliance-clock>Thu May 26 10:11:20 GMT 2011</formatted-snaplock-system-compliance-clock><volume-name>test_slc_vol</volume-name><volume-uuid>43cf0d50-8780-11e0-a7ee-123478563412</volume-uuid><volume-type>flexible</volume-type><volume-containing-aggregate>slc</volume-containing-aggregate><aggregate-uuid>a235e9e7-8531-11e0-a7ee-123478563412</aggregate-uuid><volume-snaplock-type>compliance</volume-snaplock-type><snaplock-volume-compliance-clock>1306404680</snaplock-volume-compliance-clock><formatted-snaplock-volume-compliance-clock>Thu May 26 10:11:20 GMT 2011</formatted-snaplock-volume-compliance-clock><formatted-volume-expiry-date>no_expiry_date</formatted-volume-expiry-date><metadata-files><file-fingerprint-info><path>/vol/test_slc_vol/sample_file.0</path><fsid>773461395</fsid><fileid>96</fileid><file-type>regular</file-type><file-size>2048</file-size><creation-time>1306404660</creation-time><formatted-creation-time>Thu May 26 10:11:00 GMT 2011</formatted-creation-time><modified-time>1306404660</modified-time><formatted-modified-time>Thu May 26 10:11:00 GMT 2011</formatted-modified-time><changed-time>1306404660</changed-time><formatted-changed-time>Thu May 26 10:11:00 GMT 2011</formatted-changed-time><access-time>1306404660</access-time><formatted-access-time>Thu May 26 10:11:00 GMT 2011</formatted-access-time><owner-id>0</owner-id><group-id>0</group-id><data-fingerprint>5aAKqZkayKXuMQmETYSlVYO9IFcq0//NQnkvPDaxg60=</data-fingerprint><metadata-fingerprint>iGAAuCvXpKnbrCOHI8AF/vzNKVesrw8wEV10p8LfeyU=</metadata-fingerprint></file-fingerprint-info></metadata-files><fingerprint-end-time>1306404682</fingerprint-end-time><formatted-fingerprint-end-time>Thu May 26 10:11:22 GMT 2011</formatted-fingerprint-end-time></fingerprint-info></fingerprint>

The following example shows the same file with the file-type changed to worm after the autocommit period has elapsed:
file fingerprint -x /vol/test_slc_vol/sample_file.0

<fingerprint><fingerprint-info><fingerprint-algorithm>sha-256</fingerprint-algorithm><fingerprint-start-time>1306404712</fingerprint-start-time><formatted-fingerprint-start-time>Thu May 26 10:11:52 GMT 2011</formatted-fingerprint-start-time><fingerprint-scope>data_and_metadata</fingerprint-scope><fingerprint-version>2</fingerprint-version><fingerprint-input-path>/vol/test_slc_vol/sample_file.0</fingerprint-input-path><filer-id>118069060</filer-id><filer-name>f3070-230-70</filer-name><snaplock-license>compliance and enterprise</snaplock-license><snaplock-system-compliance-clock>1306404710</snaplock-system-compliance-clock><formatted-snaplock-system-compliance-clock>Thu May 26 10:11:50 GMT 2011</formatted-snaplock-system-compliance-clock><volume-name>test_slc_vol</volume-name><volume-uuid>43cf0d50-8780-11e0-a7ee-123478563412</volume-uuid><volume-type>flexible</volume-type><volume-containing-aggregate>slc</volume-containing-aggregate><aggregate-uuid>a235e9e7-8531-11e0-a7ee-123478563412</aggregate-uuid><volume-snaplock-type>compliance</volume-snaplock-type><snaplock-volume-compliance-clock>1306404710</snaplock-volume-compliance-clock><formatted-snaplock-volume-compliance-clock>Thu May 26 10:11:50 GMT 2011</formatted-snaplock-volume-compliance-clock><volume-expiry-date>1306491101</volume-expiry-date><is-volume-expiry-date-wraparound>false</is-volume-expiry-date-wraparound><formatted-volume-expiry-date>Fri May 27 10:11:41 GMT 2011</formatted-volume-expiry-date><metadata-files><file-fingerprint-info><path>/vol/test_slc_vol/sample_file.0</path><fsid>773461395</fsid><fileid>96</fileid><file-type>worm</file-type><file-size>2048</file-size><creation-time>1306404660</creation-time><formatted-creation-time>Thu May 26 10:11:00 GMT 2011</formatted-creation-time><modified-time>1306404660</modified-time><formatted-modified-time>Thu May 26 10:11:00 GMT 2011</formatted-modified-time><changed-time>1306404701</changed-time><is-changed-time-wraparound>false</is-changed-time-wraparound><formatted-changed-time>Thu May 26 10:11:41 GMT 2011</formatted-changed-time><retention-time>1306491101</retention-time><is-wraparound>false</is-wraparound><formatted-retention-time>Fri May 27 10:11:41 GMT 2011</formatted-retention-time><owner-id>0</owner-id><group-id>0</group-id><data-fingerprint>5aAKqZkayKXuMQmETYSlVYO9IFcq0//NQnkvPDaxg60=</data-fingerprint><metadata-fingerprint>aUe0DQjT73ncAwp9tWP+XdvgaU6mMJcnzsSlF5zb9CA=</metadata-fingerprint></file-fingerprint-info></metadata-files><fingerprint-end-time>1306404712</fingerprint-end-time><formatted-fingerprint-end-time>Thu May 26 10:11:52 GMT 2011</formatted-fingerprint-end-time></fingerprint-info></fingerprint>