Site icon UnixArena

VxVM – vxconfigbackup Command Syntax with Examples

vxconfigbackup  – Unix Arena’s Manual page. 

Product – Veritas Volume Manager-vxvm (Storage Foundation)

/opt/VRTS/bin/vxconfigbackup – Back up disk group configuration

  1. The vxconfigbackup utility can be used to back up the configuration information for one or more disk groups manually at any desired time.
  2. The vxconfigbackupd daemon automatically backs up a disk group’s new configuration to the default backup directory whenever the configuration is changed.
  3. The disk group configuration backup and restore utilities do not save any data in the public region.
  4. This includes only file system or other application data that is configured within VERITAS Volume Manager (VxVM) objects.

File Names

Description

/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.

 

Tasks

Switches

Backup all disk group configuration’s vxconfigbackup [-f]
Backup specific disk group configuration vxconfigbackup [-f] disk_group_name
Backup configurations to specific directory vxconfigbackup [-f] -l directory_path [disk_group_name]

vxconfigbackup – Command Line Examples

To perform All disk group configuration backup

  # vxconfigbackup -f

To list the completed backups

  # ls -l /etc/vx/cbr/bk
	drwxr-xr-x   3 root     root         512 Sep 16 16:04 appsdg.1410430685.21.vxserver
	drwxr-xr-x   6 root     root         512 Sep 16 16:21 oradg.1410429571.18.vxserver
	drwxr-xr-x   6 root     root         512 Sep 16 16:21 rootdg.1410417163.12.vxserver

  # ls -l rootdg.1410417163.12.vxserver
	-rw-r--r--   1 root     root     30341120 Sep 16 16:21 1410417163.12.vxserver.binconfig
	-rw-r--r--   1 root     root       21561 Sep 16 16:21 1410417163.12.vxserver.cfgrec
	-rw-r--r--   1 root     root        2180 Sep 16 16:21 1410417163.12.vxserver.dginfo
	-rw-r--r--   1 root     root        2569 Sep 16 16:21 1410417163.12.vxserver.diskinfo
	drwxr-xr-x   3 root     root         512 Sep 11 13:44 bkp_20140911_134442
	drwxr-xr-x   3 root     root         512 Sep 11 13:52 bkp_20140911_135234
	drwxr-xr-x   3 root     root         512 Sep 16 16:03 bkp_20140916_160351
	drwxr-xr-x   3 root     root         512 Sep 16 16:21 bkp_20140916_162131

To perform backup for specific Disk group

  # vxconfigbackup -f -l oradg
	VxVM vxconfigbackup NOTICE V-5-2-6133 Start backing up diskgroup oradg to /etc/vx/cbr/bk/oradg.1410429571.18.vxserver ...
	VxVM  NOTICE V-5-2-3100 Backup complete for diskgroup: oradg

To perform backup of all disk group configuration & save it to a different directory

  # vxconfigbackup -f -l /TEST 
	VxVM vxconfigbackup NOTICE V-5-2-6133 Start backing up diskgroup rootdg to /TEST/rootdg.1410417163.12.vxserver ...
	VxVM  NOTICE V-5-2-3100 Backup complete for diskgroup: rootdg

	VxVM vxconfigbackup NOTICE V-5-2-6133 Start backing up diskgroup appsdg to /TEST/appsdg.1410430685.21.vxserver ...
	VxVM  NOTICE V-5-2-3100 Backup complete for diskgroup: appsdg

	VxVM vxconfigbackup NOTICE V-5-2-6133 Start backing up diskgroup oradg to /TEST/oradg.1410429571.18.vxserver ...
 	VxVM  NOTICE V-5-2-3100 Backup complete for diskgroup: oradg

  # ls -l /TEST 
	drwxr-xr-x   2 root     root         512 Sep 16 16:55 appsdg.1410430685.21.vxserver
	drwxr-xr-x   2 root     root         512 Sep 16 16:55 oradg.1410429571.18.vxserver
	drwxr-xr-x   2 root     root         512 Sep 16 16:54 rootdg.1410417163.12.vxserver

 HOME

Exit mobile version