Storage Foundation 8.0.2 Administrator's Guide - Linux
- Section I. Introducing Storage Foundation
- Overview of Storage Foundation
- How Dynamic Multi-Pathing works
- How Veritas Volume Manager works
- How Veritas Volume Manager works with the operating system
- How Veritas Volume Manager handles storage management
- Volume layouts in Veritas Volume Manager
- Online relayout
- Volume resynchronization
- Dirty region logging
- Volume snapshots
- FastResync
- How VxVM handles hardware clones or snapshots
- Volume encryption
- How Veritas File System works
- Section II. Provisioning storage
- Provisioning new storage
- Advanced allocation methods for configuring storage
- Customizing allocation behavior
- Using rules to make volume allocation more efficient
- Understanding persistent attributes
- Customizing disk classes for allocation
- Specifying allocation constraints for vxassist operations with the use clause and the require clause
- Creating volumes of a specific layout
- Customizing allocation behavior
- Creating and mounting VxFS file systems
- Creating a VxFS file system
- Mounting a VxFS file system
- tmplog mount option
- ioerror mount option
- largefiles and nolargefiles mount options
- Resizing a file system
- Monitoring free space
- Extent attributes
- Section III. Administering multi-pathing with DMP
- Administering Dynamic Multi-Pathing
- Discovering and configuring newly added disk devices
- About discovering disks and dynamically adding disk arrays
- How to administer the Device Discovery Layer
- Administering DMP using the vxdmpadm utility
- Gathering and displaying I/O statistics
- Specifying the I/O policy
- Discovering and configuring newly added disk devices
- Dynamic Reconfiguration of devices
- Reconfiguring a LUN online that is under DMP control using the Dynamic Reconfiguration tool
- Manually reconfiguring a LUN online that is under DMP control
- Managing devices
- Displaying disk information
- Changing the disk device naming scheme
- Adding and removing disks
- Event monitoring
- Administering Dynamic Multi-Pathing
- Section IV. Administering Storage Foundation
- Administering sites and remote mirrors
- About sites and remote mirrors
- Fire drill - testing the configuration
- Changing the site name
- Administering the Remote Mirror configuration
- Failure and recovery scenarios
- Administering sites and remote mirrors
- Section V. Optimizing I/O performance
- Veritas File System I/O
- Veritas Volume Manager I/O
- Managing application I/O workloads using maximum IOPS settings
- Section VI. Using Point-in-time copies
- Understanding point-in-time copy methods
- When to use point-in-time copies
- About Storage Foundation point-in-time copy technologies
- Volume-level snapshots
- Storage Checkpoints
- About FileSnaps
- About snapshot file systems
- Administering volume snapshots
- Traditional third-mirror break-off snapshots
- Full-sized instant snapshots
- Creating instant snapshots
- Adding an instant snap DCO and DCO volume
- Controlling instant snapshot synchronization
- Creating instant snapshots
- Cascaded snapshots
- Adding a version 0 DCO and DCO volume
- Administering Storage Checkpoints
- Storage Checkpoint administration
- Administering FileSnaps
- Administering snapshot file systems
- Understanding point-in-time copy methods
- Section VII. Optimizing storage with Storage Foundation
- Understanding storage optimization solutions in Storage Foundation
- Migrating data from thick storage to thin storage
- Maintaining Thin Storage with Thin Reclamation
- Reclamation of storage on thin reclamation arrays
- Identifying thin and thin reclamation LUNs
- Veritas InfoScale 4k sector device support solution
- Section VIII. Maximizing storage utilization
- Understanding storage tiering with SmartTier
- Creating and administering volume sets
- Multi-volume file systems
- Features implemented using multi-volume file system (MVFS) support
- Adding a volume to and removing a volume from a multi-volume file system
- Volume encapsulation
- Load balancing
- Administering SmartTier
- About SmartTier
- Placement classes
- Administering placement policies
- File placement policy rules
- Multiple criteria in file placement policy rule statements
- Using SmartTier with solid state disks
- Sub-file relocation
- Administering hot-relocation
- How hot-relocation works
- Moving relocated subdisks
- Deduplicating data
- Compressing files
- About compressing files
- Use cases for compressing files
- Section IX. Administering and protecting storage
- Managing volumes and disk groups
- Rules for determining the default disk group
- Moving volumes or disks
- Monitoring and controlling tasks
- Performing online relayout
- Adding a mirror to a volume
- Managing disk groups
- Disk group versions
- Displaying disk group information
- Importing a disk group
- Moving disk groups between systems
- Importing a disk group containing hardware cloned disks
- Handling conflicting configuration copies
- Destroying a disk group
- Backing up and restoring disk group configuration data
- Managing plexes and subdisks
- Decommissioning storage
- Rootability
- Encapsulating a disk
- Rootability
- Sample supported root disk layouts for encapsulation
- Encapsulating and mirroring the root disk
- Administering an encapsulated boot disk
- Quotas
- Using Veritas File System quotas
- File Change Log
- Support for protection against ransomware
- Non-modifiable storage checkpoints
- Soft WORM storage
- Secure file system
- Secure File System for Oracle Single Instance
- Managing volumes and disk groups
- Section X. Reference
- Appendix A. Reverse path name lookup
- Appendix B. Tunable parameters
- Tuning the VxFS file system
- Methods to change Dynamic Multi-Pathing tunable parameters
- Tunable parameters for VxVM
- Methods to change Veritas Volume Manager tunable parameters
- Appendix C. Command reference
- Appendix D. Executive Order logging
Secure File System for Oracle Single Instance
SecureFS Oracle Integration provides the ability to take application aware file system checkpoints for Oracle Single Instance for ransomware protection. The feature creates consistent online checkpoints for all the file systems used by Oracle to store data, redo logs, and archive logs. This makes application consistent recovery in case of ransomware scenario possible with minimum RTO.
Note:
Before configuring SecureFS, ensure that the Oracle instance is in running state.
Prerequisites
Install InfoScale version 8.0.2 Update 2 to configure SecureFS (Immutable checkpoints) for Oracle Single Instance.
SecureFS for Oracle requires Oracle database to be running in ARCHIVELOG mode. Refer to the Oracle Database documentation for steps to enable ARCHIVELOG mode.
Ensure that all the directories used by Oracle for storing data and log files reside on a VxFS file system. This allows SecureFS to checkpoint all these file systems in application consistent manner.
Daemon FsSetPriD
The daemon FsSetPriD is introduced in VCS to configure file system as primary where Oracle DB resource is online. When Oracle database is configured as VCS resource in Oracle service group, the Oracle service group is CFS mount service group which has CFSmount resource and CVMVoldg resource. When Oracle resource is online on one of the nodes then InfoScale cluster file system should be primary on the same node, then the SecureFS feature works correctly. To make the SecureFS feature wok correctly, you must configure FsSetPriD daemon as an independent process agent resource inside the same Oracle service group where Oracle resource is present. When Oracle service group is online, then the Process agent resource will be online, and it will make the underneath CFS mount as primary on that node. See step 9 for more information.
To configure secure file system for Oracle Single Instance using CLI
- Run the command to ensure that vxfstaskd is in an active state.
systemctl status vxfstaskd
- Enable and start the dbed service.
systemctl enable vxdbdctrl.service systemctl start vxdbdctrl.service
- If the Oracle application is managed through a Veritas Cluster Server resource, create the new Process agent resource. Refer to
Veritas Cluster Server Administrator's Guide
for details. If the Oracle application is not managed through the Veritas Cluster Server resource, make all the file systems used by the application primary on the node where the Oracle instance is running.#/opt/VRTS/bin/fsclustadm setprimary <mount point>
Sample command:
#/opt/VRTS/bin/fsclustadm setprimary /dbmnt
- Create a secureFS config file on the data file mount point.
#/opt/VRTS/bin/vxschadm create <mount point>
Sample command:
#/opt/VRTS/bin/vxschadm create /dbmnt
- Enable Compliance (WORM) or Enterprise (SoftWORM) on data file mount point.
#/opt/VRTS/bin/fsadm -o <worm/softworm> <mount point>
Sample command:
#/opt/VRTS/bin/fsadm -o worm /dbmnt
- Configure DBED on the node where the Oracle instance is running.
#/opt/VRTS/bin/dbed_update -S <Oracle SID> -H <Oracle home>
Sample command:
#/opt/VRTS/bin/dbed_update -S testdb -H /u01/oracle/dbhome
- Add Oracle application in secureFS config file on data file mount point.
#/opt/VRTS/bin/vxschadm add application oracle <ora_user> <ora_home> <ora_sid> <mntpt>
Sample command:
#/opt/VRTS/bin/vxschadm add application oracle orauser /u01/oracle/dbhome testdb /dbmnt
When SecureFS is configured on the data file system, it identifies all the other file systems used by Oracle and applies the same checkpoint schedule for all such file systems. Manual intervention is not required.
Note:
WORM mode and audit log feature enabled on data file mount point, are applied to redo and archival log mount points.
- Enable the checkpoint feature on the data file mount point.
#/opt/VRTS/bin/vxschadm add checkpoint <interval in os cron format> <maximum number of checkpoints> <retention period of checkpoint> <time mode> <removable> <mount_point>
Time interval
Format : "mm hh dd MM ww" mm : minutes (0-59) or * hh : hours (0-23) or * dd : days (1-31) or * MM: months (1-12) or * ww: week (0-6) SUNDAY=0, SATURADAY=6
*: Refers 'per' for example per minute, per hour, and so on.
Time mode can be:
m : minutes h : hours d : days M : months y : years
Sample command and output:
#/opt/VRTS/bin/vxschadm add checkpoint "59 15 * * *" 1 h 0 1 /mnt1
Following are the sample output of the snapshot format:
Example 1: "30 15 * * *" Output: Every day at 1530 hours, the task is run.
Example 2: "30 15 * * 6" :Output: Every Saturday at 1530 hours, the task is run. Caution: "* * * * *"
- Configure VCS process agent if Oracle Single Instance is under VCS control. The daemon FsSetPriD is introduced in VCS to configure file system as primary where Oracle DB resource is online. See Secure File System for Oracle Single Instance
/opt/VRTS/bin/haconf -makerw #/opt/VRTS/bin/hares -add <VCS process agent name> Process <Oracle service group name> #/opt/VRTS/bin/hares -modify <VCS process agent resource name> Enabled 1 #/opt/VRTS/bin/hares -modify <VCS process agent name> PathName " /opt/VRTSperl/bin/perl" #/opt/VRTS/bin/hares -modify <VCS process agent name> Arguments "%-I /opt/VRTSvcs/lib -Sw /opt/VRTSagents/ha/bin/Oracle/FsSetPriD <VCS process agent name>" #/opt/VRTS/bin/hares -modify <VCS process agent name> PidFile "/var/run/ <VCS process agent name>.pid" #/opt/VRTS/bin/hares -override <VCS process agent name> RestartLimit #/opt/VRTS/bin/hares -modify <VCS process agent name> RestartLimit 50 #/opt/VRTS/bin/hares -modify <VCS process agent name> Critical 0 #/opt/VRTS/bin/haconf -dump -makero
Sample command
#/opt/VRTS/bin/haconf -makerw #/opt/VRTS/bin/hares -add res_set_primary Process oracle_service_group #/opt/VRTS/bin/hares -modify res_set_primary Enabled 1 #/opt/VRTS/bin/hares -modify res_set_primary PathName " /opt/VRTSperl/bin/perl" #/opt/VRTS/bin/hares -modify res_set_primary Arguments "%-I /opt/VRTSvcs/lib -Sw /opt/VRTSagents/ha/bin/Oracle/FsSetPriD res_set_primary" "-I /opt/VRTSvcs/lib -Sw /opt/VRTSagents/ha/bin/Oracle/FsSetPriD ora_securefs 120" #/opt/VRTS/bin/hares -modify res_set_primary PidFile "/var/run/res_set_primary.pid" #/opt/VRTS/bin/hares -override res_set_primary RestartLimit #/opt/VRTS/bin/hares -modify res_set_primary RestartLimit 50 #/opt/VRTS/bin/hares -modify res_set_primary Critical 0 #/opt/VRTS/bin/haconf -dump -makero
The agent checks every 120 seconds and when Oracle service group is online, the agent makes the underneath CFS mount as primary on that node. Default discovery cycle is 120 seconds and can be modified to any value. This can be configured during configuration time. Any modification of time is not effective after modification. Below is an example to change the discovery cycle from 120 seconds to 5 seconds.
hares -modify set_primary_res Arguments "%-I /opt/VRTSvcs/lib -Sw /opt/VRTSagents/ha/bin/Oracle/FsSetPriD set_primary_res 5"
If Oracle Single Instance is not in under VCS control ensure FS primary of data file mount point is the system where Oracle Single Instance is up and running.
Interval of less than one hour is not supported. The checkpoints that get created are non-modifiable checkpoints which can only be mounted in read-only mode. If a new datafile or log directory is added to Oracle application which is on a new file system, such file system automatically becomes part of the SecureFS configuration on next checkpoint schedule. Manual intervention is not required.
All secureFS configuration file operations that are done using #/opt/VRTS/bin/vxschadm must be on the data file mount point.
Note:
Operations performed on redo and archive file system can lead to undefined behavior. Previously taken checkpoints and modes that are WORM and aulog, remain as is, even after you delete the checkpoint feature.