You can change the values in the snapdrive.conf file or add new name-value pairs. Before you can change the snapdrive.conf file, ensure that you have the required permissions to complete the task.
Before you begin
You must be logged in as a root user.
Steps
- Back up the snapdrive.conf file.
- Open the snapdrive.conf file in a text editor.
- To add a name-value pair, use the following format:
config-option-name=value value # optional comment
config-option-name is the name of the variable you wanconfig-option-namet to configure; for example, audit-log-file. value is the value you want to assign to this option.
If you want to include a comment with the name-value pair, precede the comment with a number sign (#).
You should enter only one name-value pair, per line.
If the name or the value uses a string, enclose the string in either single (‘) or double (") quotation marks. You can place the quotation marks around either the entire name-value pair or the value. The following examples show how you can use quotation marks and comments with name-value pairs:
Example
"config-option-one=string with white space" # double quotes around the pairconfig-option-two="string with white space" # double quotes around the valueconfig-option-2B=’string with white space’ # single quotes around the value
- To modify a name-value pair, replace the current value with the new value.
Follow the steps below to ensure that the default values are recorded in the file.
- Comment out the line you want to modify.
- Copy the commented-out line.
- Un-comment the copied text by removing the number sign (#).
- Modify the value.
If you want to specify a blank value (for example, to disable the audit log file), enter a pair of double quotation marks ("").
- Save the file after you make your changes.
SnapDrive for UNIX automatically checks this file each time it starts. Your changes take effect the next time it starts.
- Restart the SnapDrive for UNIX daemon by using the snapdrived restart command. Restarting the daemon is necessary for snapdrive.conf file changes to take effect.