shiv124
13 years agoLevel 4
how to check the configuration vxconfigbackup copies ?
How to check the number of configuration copies saved ?
how to change it ?
How to change the default directory of the log files created by vxonfigbackup ?
How to logrotate thi sfiles to keep the size low of etc/vx/cbr/bk directory ?
Regards,
siva
man vxconfigbackup
man vxconfigbackupd
eg: SF5.1SP1 (Solaris) - options relevant to your questions highlighted
https://sort.symantec.com/public/documents/sfha/5.1sp1/solaris/manualpages/html/manpages/volume_manager/html/man1m/vxconfigbackup.1m.html
NAME vxconfigbackup - back up disk group configuration SYNOPSIS /etc/vx/bin/vxconfigbackup [-l directory] [[dgname ...] | [dgid ...]] DESCRIPTION The vxconfigbackup utility can be used to backup up the configuration information for one or more disk groups. The disk groups may be specified either by name or by identifier (ID). If no disk groups are specified, all disk group configurations are backed up. OPTIONS -l directory Specifies a directory other than the default where the backup configuration files are to be written. Note: The default backup directory is /etc/vx/cbr/bk. EXAMPLES Back up the configuration of the mydg disk group to the directory /dgbackup/mydg: vxconfigbackup -l /dgbackup/mydg mydg FILES /etc/vx/cbr/bk/dgname.dgid/dgid.dginfo Default location of backup file for disk group information. /etc/vx/cbr/bk/dgname.dgid/dgid.diskinfo Default location of backup file for disk attributes. /etc/vx/cbr/bk/dgname.dgid/dgid.binconfig Default location of backup file for binary configuration copy. /etc/vx/cbr/bk/dgname.dgid/dgid.cfgrec Default location of backup file for configuration records in vxprint -m format. NOTES The vxconfigbackupd daemon automatically backs up a disk group’s new configuration to the default backup directory whenever the configuration is changed. The vxconfigbackup command is provided to back up the configuration manually at any other desired time. The disk group configuration backup and restore utilities do not save any data in the public region. This includes file system or other application data that is configured within Veritas Volume Manager (VxVM) objects. SEE ALSO vxconfigbackupd(1M), vxconfigrestore(1M)
https://sort.symantec.com/public/documents/sfha/5.1sp1/solaris/manualpages/html/manpages/volume_manager/html/man1m/vxconfigbackupd.1m.html
NAME vxconfigbackupd - disk group configuration backup daemon SYNOPSIS vxconfigbackupd [-l] DESCRIPTION The vxconfigbackupd daemon automatically backs up information about a disk group’s new configuration whenever the configuration is changed. OPTIONS -l Logs backup daemon activities to the file /etc/vx/cbr/bkdaemonLog. FILES /lib/svc/method/vxvm-recover Startup file for vxconfigbackupd in OS releases from Solaris 10 onward. /etc/init.d/vxvm-recover Startup file for vxconfigbackupd in OS releases before Solaris 10. /etc/vx/cbr/bk_config Location of file for backup tunable parameters. The following parameters can be defined: NUM_BK Number of disk group configuration backup copies. The value can be from 1 to 5. If you specify a value greater than 5, VxVM interprets the value as 5. CF_BKUP_PATH The path where the backup copies are stored. /etc/vx/cbr/bk/dgname.dgid/dgid.dginfo Location of backup file for disk group information. /etc/vx/cbr/bk/dgname.dgid/dgid.diskinfo Location of backup file for disk attributes. /etc/vx/cbr/bk/dgname.dgid/dgid.binconfig Location of backup file for binary configuration copy. /etc/vx/cbr/bk/dgname.dgid/dgid.cfgrec Location of backup file for configuration records in vxprint -m format. NOTES The vxconfigbackup command can be used to back up a disk group’s configuration manually at any desired time. The disk group configuration backup and restore utilities do not save any data in the public region. This includes file system or other application data that is configured within VxVM objects. When a disk group is destroyed, its configuration backup information (including the backup directory) is also removed. The only exception to this behavior is when the disk group is in the precommit state of restoration. The backup directory should be large enough to accommodate copies of all the currently imported disk groups. The minimum recommended size of the backup directory is P * (N + 1) megabytes, where P is the private region in megabytes (by default, 32MB), and N is the number of disk groups. The additional P megabytes is required to hold a temporary copy of the disk group configuration when a disk group is imported or a configuration change is made. The default backup directory is /etc/vx/cbr/bk. The location of the backup directory can be configured by using the vxconfigbackup -l backup_directory_path command. SEE ALSO vxconfigbackup(1M), vxconfigrestore(1M)