Committing a file to WORM in a SmartLock-enabled Isilon OneFS cluster without changing UNIX/ACL permissions

NOTE: This topic is part of the Uptime Information Hub.

2017-07-19_13-59-15.jpg

 

The goal of this article is to guide users on how to commit a file into the write once read many (WORM) state from the Isilon command line interface (CLI) without having to remove the “write” permissions of end users using the chmod -w <file> command. This alleviates the need for storage administrators to re-enable the permission for users to modify the files after the files have been released from WORM retention.

 

The following example is from a compliance mode cluster, but the commands are the same for an “Enterprise SmartLock” cluster.

 

Procedure

  1. Create a compliance mode domain path using the isi worms domain create <path> command and view the SmartLock domains.

 

isi worm domains list

 

Output similar to the following displays:

ID Path Type

----------------------------------------------

65554 /ifs/compliance20160810125436 compliance

----------------------------------------------

Total : 1

  1. Create a file as the ‘compadmin’ user:

date >> file_to_commit

 

  1. List the file to show the current UNIX mode bits permission and confirm that the owner has write permission (highlighted in red)

 

ls –la

Output similar to the following displays:

total 74

drwxrwxrwx 3 compadmin  wheel    56 Jul 19 10:04 .

drwxrwxrwx 53 root      wheel  2306 Jun 26 15:48 ..

drwxrwxrwx 3 root      wheel    54 Aug 10  2016 .isi-compliance

-rw-r--r-- 1 compadmin wheel    29 Jul 19 10:04 file_to_commit

  1. View the contents of the file you just created by running the cat file_to_commit command:

Wed Jul 19 10:04:55 PDT 2017

 

  1. Check that the file has not been committed to WORM.

isi worm files view /ifs/compliance20160810125436/ file_to_commit

Output similar to the following displays:

WORM Domains

ID Root Path

-----------------------------------

65554 /ifs/compliance20160810125436

 

WORM State: NOT COMMITTED

  Expires: -

 

  1. Commit the file into WORM.

chflags dos-readonly file_to_commit

 

  1. Check that the file is now committed.

isi worm files view /ifs/compliance20160810125436/ file_to_commit

Output similar to the following displays:

WORM Domains

ID Root Path

-----------------------------------

65554 /ifs/compliance20160810125436

 

WORM State: COMMITTED

  Expires: 2017-07-19T10:05:36

 

  1. Check that the mode bits are still the same.

ls –l

Output similar to the following displays:

total 26

-rw-r--r--    2 compadmin  wheel  29 Jul 19 10:04 file_to_commit