PETAL: 3.3.3 Deleting Files from the Archive

Previous: 3.3.2 Exporting a backup tape Next: 3.3.4 Useful Commands Home: Petal Documentation

Deleting a file from a Storage Allocation is not permitted by end users. Any attempt to delete a file will generate a read only filesystem error. In exceptional circumstances, files can be deleted by the administrator by removing the read only limitation.

The mmparam command can be used to change the read-only configuration for the current mount session:

mmparam g0 set_name

... and will not be in effect next time the volume is mounted. After deleting the files the normal configuration has to be restored using the option -g1h to restore the one hour grace period.

Every empty directory or empty file can be deleted without the need to issue this command first, and end users can perform these operations under their own storage allocation. Other allowed operations are moving files in subdirectories and creating or deleting empty directories.

Once the files have been written to tape, deleting them from the folder structure - even using the command explained above - will NOT free up any space on the tape. When a tape has been finalized, then its content could potentially be moved to another tape and compacted to reclaim the free space. This should not be a common practice though, because the operation of copying the tape and reclaiming the space via the command vlreuse will take a long time to run (many hours) and the volume has to be set offline during this process.

The best practice is to advise end users to prepare their directory structure and the files they want to archive to PETAL beforehand to make sure that no unwanted files end up being copied to their storage allocation folder.

Previous: 3.3.2 Exporting a backup tape Next: 3.3.4 Useful Commands Home: Petal Documentation

T950

Topic revision: r3 - 01 Dec 2017 - StuartBorthwick1
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright 2008-2014 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.