How to check WORM (Write-Once-Read-Many) support is enabled on File System

book

Article ID: 100047931

calendar_today

Updated On:

Description

Description

WORM (Write-Once-Read-Many) support can be enabled on Veritas File System (VxFS) version 13 and later. This article provides steps to check if WORM feature is enabled.

 

How to check if WORM is enabled in the existing file system:

If worm is enabled in fileystem,  pflags value would be 3 in the given output

# echo '8192B.p S' | /opt/VRTS/bin/fsdb -t vxfs /dev/vx/rdsk/testdg/warm_vol

flags 4000 mod 0 clean 3c pflags 3    <<<<< WORM is enabled in the filesystem

 

# echo '8192B.p S' | /opt/VRTS/bin/fsdb -t vxfs /dev/vx/rdsk/testdg/testvol

flags 4000 mod 0 clean 3c pflags 1   <<<< WORM is not enabled 

 

By default, this feature is not enabled during the creation of file system:

# mkfs -t vxfs  /dev/vx/dsk/testdg/testvol
    version 15 layout
    1024000 sectors, 512000 blocks of size 1024, log size 1024 blocks
    rcq size 1024 blocks
    largefiles supported
    maxlink supported
    WORM not supported
 

The enable WORM option must be set when the file system is created:

# mkfs -t vxfs -o worm=yes /dev/vx/dsk/testdg/warm_vol
    version 15 layout
    1024000 sectors, 512000 blocks of size 1024, log size 1024 blocks
    rcq size 1024 blocks
    largefiles supported
    maxlink supported
    WORM supported

 

 

Issue/Introduction

How to check WORM (Write-Once-Read-Many) support is enabled on File System