Veritas: Setting Persistent Volume Permissions

By default, a newly created volume will only have

for the root user only, i.e below is a ‘test’ volume under disk group testdg:

/dev/vx/dsk/testdg# ls -l
total 0
brw------- 1 root root 79,76000 Jun 9 14:33 test

The on the volume can be changed by using the chmod command:

/dev/vx/dsk/testdg# chmod 777 test
/dev/vx/dsk/testdg# ls -l
total 0
brwxrwxrwx 1 root root 79,76000 Jun 9 14:33 test

However, because chmod is an OS command, after the system reboots, the on the volume are restored to what they were before, root.

In order to permanently change the , a VERITAS Volume Manager command is needed to change the permission records within the disk group configuration:

vxedit set user=username group=groupname mode=**** volumename

Here is an example:

# ls -l
total 0
brw------- 1 root root 79,76000 Jun 9 14:33 test
/dev/vx/dsk/testdg# vxedit set mode=777 test
/dev/vx/dsk/testdg# ls -l
total 0
brwxrwxrwx 1 root root 79,76000 Jun 9 14:33 test

This will allow the volume to retain its even after the system reboots.

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA * Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.