HP Dynamic Root Disk (DRD) manual Drd sync command, Trimming the list of files to be synchronized

Page 28

For a sample shutdown script, see drd sync system shutdown script” (page 31).

Additional information is provided below in the comparison between the booted system and the clone. This information is provided by the preview option on the drd sync command, the preparatory actions that can be used to precisely control what files are synchronized, and the considerations advised when multiple iterations of the drd sync command are run.

5.3 The drd sync command

The drd sync command

Determines the list of files in the booted volume group that are not excluded by the –x exclude_list option

Trims the list based on criteria described below

Copies the files to the clone, preserving ownership and permissions

When the drd sync preview (-p) option is used, the file-copy step is suppressed. In any case, the list of files to be copied is produced.

5.3.1 Determining the list of files in the booted volume group

The drd sync command finds each file in the root LVM volume group (or VxVM disk group) on the booted system that is not excluded by the x exclude_list option to provide the initial list of files to be synchronized.

Note that files that have been erased from the booted root volume group since the clone was created are not identified by this process.

5.3.2 Trimming the list of files to be synchronized

The list of files produced above is reduced based on the following criteria:

1.Locations that are not synchronized

/var/adm/sw/*: Because the appropriate mechanism for managing software changes on the clone is drd runcmd, the directory tree rooted at /var/adm/sw (which contains the Software Distributor Installed Products Database and associated log files) is not copied by drd sync. Instead, files in this location are created and modified by execution of Software Distributor commands (such as swinstall and swremove) during execution of the drd runcmd command.

/tmp/*, /var/tmp/*, /var/opt/drd/tmp/*: These locations contain transient files, so changes to files in these locations are not propagated to the clone.

/stand/*: Changes to the HP-UX kernel should be applied by using drd runcmd with either a Software Distributor command or the kctune, kcmodule, konfig, or mk_kernelcommands, so changes in this location are not propagated by drd sync.

/etc/lvmconf/*, /etc/lvmtab*, /etc/lvmpvg*, /etc/vx/*, and /etc/ vxvmconf/*: These locations contain information specific to the root LVM volume group (or VxVM disk group) on the booted system and should not be propagated to the clone's system image.

/etc/fstab*: This location contains information specific to the VxVM disk group mount point for the clone's system image.

/dev/<clone_group>/*: To prevent errors in the drd mount command, the /dev/<clone_group> directory is not copied to the clone.

The collection of files that are not synchronized—because they reside in locations that are not synchronized—is written to the /var/opt/drd/sync/

28 Synchronizing the inactive clone image with the booted system

Image 28
Contents Dynamic Root Disk A.3.10.* Administrators Guide Document Part Number DRD Version Supported Operating Systems Table of Contents Troubleshooting DRD Support and other resources DRD commandsRehosting and unrehosting systems Glossary IndexList of Figures List of Examples Commands overview About Dynamic Root DiskConceptual overview TerminologyDownloading and installing Dynamic Root Disk Cloning the active system image Active system imageLocating disks Locating disks on HP-UX 11i v2 systemsLocating disks on HP-UX 11i v3 Integrity systems # /usr/sbin/ioscan -fnkC disk# /usr/sbin/ioscan -m dsf Using DRD for limited disk availability checks Using other utilities to determine disk availabilityChoosing a target disk Using drd clone to analyze disk size Creating the cloneCloning the active system image Example 2-7 The drd clone command output Success ErrorExample 2-8 The drd clone command output for SAN disk Adding or removing a diskSwinstall Swremove Swlist Swmodify Swverify Swjob DRD-Safe commands and PackagesUpdating and maintaining software on the clone Updating and managing patches with drd runcmd Kctune Update-ux View Kcmodule Kconfig Mkkernel Swm jobDRD-Safe patches and the drdunsafepatchlist file Updating and managing products with drd runcmd Patches with special installation instructionsSpecial considerations for firmware patches Viewing logs Accessing the inactive system image Mounting the inactive system imagePerforming administrative tasks on the inactive system image Enter the patches into a file such as Compare vxconfigbackup with the clone copy Unmounting the inactive system imageUnmounting the inactive system image Page Overview Quick start-basic synchronizationDetermining the list of files in the booted volume group Drd sync commandTrimming the list of files to be synchronized Files that have changed on the clone Copying the files to the inactive clone image Drd sync system shutdown script Page Activating the inactive system image Preparing the inactive system image to activate later# /opt/drd/bin/drd activate # /usr/bin/more /stand/bootconf l /dev/dsk/c2t0d0s2 Undoing activation of the inactive system imageActivating the inactive system image Undoing activation of the inactive system image Page Rehosting overview Rehosting and unrehosting systemsRehosting examples Rehosting a mirrored image Example 7-1 Provisioning a new systemUnrehosting overview # rm /var/opt/drd/registry/registry.xmlPage Troubleshooting DRD Page Support and other resources Contacting HPLocating this guide New and changed information in this editionRelated information Typographic conventions Find1 Page DRD command syntax DRD commandsDrd activate command HAalternatebootdisk=blockdevicespecialfile Ignoreunmountedfs=truefalseLogfile=/var/opt/drd/drd.log Logverbosity=4Drd clone command Reboot=truefalseVerbosity=3 Default Copyautofile optionTtargetdevicefile Copyautofile=truefalseblockdevicespecialfileEnforcedsa=truefalse Drd deactivate command Drd mount command Example A-1 File system mount points Drd rehost command Devicespecialfile -v-xextended option=value -x-?-Xoptionfile Extended options Drd runcmd command Extended options Drd status command Alternatebootdisk=blockdevicespecialfile Drd sync command Usr/sbin/swlist -l file, orDrd umount command Excludelist=Alternatebootdisk=blockdevicespecialfile Drd unrehost command Fsysteminformationfile Mirrordisk=blockdevicespecialfile Page Booted system GlossarySystem image Index Idisk partition, 10, 11 inactive system file system