6.5 HP StoreAll OS User Guide

Autocommit period is set and the default retention period is zero seconds:
Files remaining unchanged during the autocommit period automatically become WORM but
are not retained and can be deleted. To make a WORM file retained, set the atime to a time
in the future, either before or after the file becomes WORM.
Autocommit period is set and the default retention period is non-zero:
Files remaining unchanged during the autocommit period automatically become
WORM-retained and use the default retention period. You can assign a different retention
period to a file if necessary.
Autocommit period is not set and the default retention period is zero seconds:
To make a normal file WORM, run a command to set the file to read-only. If the file was
created as read-only, the act of setting it to read-only will cause the file to become WORM,
even though the permissions will not change.
To make a WORM file retained, set the atime to a time in the future, either before or after the
file becomes WORM.
Auto commit period is not set and the default retention period is non-zero:
To make a normal file WORM-retained, run a command to set the file to read-only. If the file
was created as read-only, the act of setting it to read-only will cause the file to become WORM,
even though the permissions will not change. By default, the file uses the default retention
period.
To assign a different retention period to the WORM-retained file, set the atime to a time in
the future.
NOTE: If you are not using autocommit, files must explicitly be made read-only to make them
WORM or WORM-retained. Typically, you can configure your application to do this.
Making a file read-only
UNIX. For users logged on locally to StoreAll servers or for NFS users mounting a StoreAll file
system, usechmod to make the file read-only. For example:
chmod 444 myfile.txt
All of the write bits of the permissions must be cleared to set the file to WORM or WORM-retained,
but none of the other permissions bits, such as read and execute, need to be changed. To clear
all read bits without changing any other bits:
chmod a-w myfile.txt
Windows. For a Windows SMB client accessing a file on a StoreAll file system, for example via
a mapped share drive, use the attrib command to make the file read-only:
Z:\mydir> attrib +r myfile.txt
The Z drive specifies the current directory as a mapped share drive.
Setting the atime
UNIX. Use a command such as touch to set the access time to the future:
touch -a -d "30 minutes" myfile.txt
See the touch(1) man page documentation for the time/date formats allowed with the -d option.
You can also enter the following on a Linux command line to see the acceptable date/time strings
for the touch command:
info "Date input formats"
Windows. Windows does not include a touch command. Instead, use a third-party tool such as
cygwin or FileTouch to set the access time to the future.
280 Managing data retention