VERITAS Volume Manager VM daemons vxconfigd Maintains system configuration in the kernel & disk (private region). If the daemon is stopped it does not disable any configuration state loaded into the kernel, it only affects the ability to make configuration changes until vxconfigd is restarted. It can be in three states: Enable = Normal mode Disable = Most operations cannot be be used Booted = Normal startup while using boot disk group vxrelocd Monitors for failure events and relocates failed sub disks vxconfigbackupd Used to backup configuration changes, the files created can be used with vxmake to restore lost groups. vxnotify Display VERITAS volume manager events used with the vxconfigd daemon Kernel Info Kernel States The kernel can be in three states: Enabled - both private and public regions are accessible Disabled - no private or public regions are accessible Detached - only private regions are accessible
VM utilities VxVM debug vxconfigd -k -m enable -x -x log log to /var/vxvm/vxconfigd.log -x logfile = log to filename -x syslog log to syslog -x timestamp date and timestamp every entry -x tracefile=name log all possible tracing to file vxiod The vxiod utility starts, stops, or reports on VERITAS Volume Manager (VxVM) I/O daemons. An I/O daemon provides a process context for performing I/O in VxVM.Manage extended disk i/o & handles dirty regions, logging vxiod set = set number of running viod daemon Note: when run on its own it displays # of vxiod daemons that are running. vxdctl [option] The vxdctl utility manages aspects of the state of the volume configuration daemon vxconfigd and also manages aspects of configuration for bootstrapping the rootdg disk group. mode = what mode the vxconfigd is running in enable = enable the vxconfigd daemon (reread the db) disable = disable the vxconfigd daemon stop = kill the vxconfigd daemon (Use 'vxconfigd -k -m disable' to start again) license [init] = print out license info or reread licenses support = display version and components list = display entries in /etc/vx/volboot init [dmp] = recreate /etc/vx/volboot Note: when is disabled or stop mode no VX commands will be able to run vxinstall Install volume manger (use /etc/vx/disk to exclude any disks or controllers) Disk Regions Private This is were VERITAS holds the meta data regarding the disk. A copy of the configuration database is copied to each private region within the disk group. VERITAS will try and keep 5 copies of the configuration database. Normally configured as slice 3 Public This is the area that will store the user’s data. Normally configured as slice 4. Disk Layouts Sliced Disk layout private region and public region slices are on separate partitions (3 & 4), this type of disk is not suitable for moving between different O/S's but are suitable for boot partitions Can be converted to CDS CDS (Cross-platform Data Sharing) private and public regions are one slice (slice 7) , this type is suitable for moving between different O/S's but not suitable for boot partitions’. Simple Private and public are the same partition but continuous (slice 3) Can be converted to CDS None None partitioning VxVM Configuration Database DB size vxdg list | grep permlen - the size of the configuration db DB location vxdisk list | grep -i configs - db location File Locations vxinstall has not be run /etc/vx/reconfig.d/state.d/install-db Host ID's /etc/vx/volboot backup config files (vxconfigbackupd) /etc/vx/cbr/bk delete or deported disk group config files /etc/vx/dgcfg/deport All commands logs /var/adm/vx/veacmdlog Licenses /etc/vx/licenses/lic Imported disk groups info /var/vxvm/tempdb
Note: to clear the tempdb file: vxconfigd -k -x cleartempdir - clear the /var/vxvm/tempdb vxconfigd log file /var/vxvm/vxconfigd.log Backup & Restore Backup /usr/lib/vxvm/bin/vxconfigbackup -l /var/vxvm/backups -l = location where to store backup Restore (precommit/commit) vxconfigrestore -p # either one of the below after the precommit vxconfigrestore -d vxconfigrestore -c Note: -p = when you want to check that the restore is correct (use vxprint to check) -d = abort the precommit -c = commit the precommit Disks Initialize disk vxdisksetup -i c2t0d0 privlen=768 vxdisksetup -i format=sliced - initialized a disk as a sliced disk Note: format can be either sliced, simple, cdsdisk or none (see above - Disk Regions) Uninitialize disk vxdiskunsetup -C c2t0d0 Disk Information vxdisk -g list vxdisk -s list Resize a LUN vxdisk -g resize length=8G Add a disk slice to volboot vxdctl add disk type=simple Add a disk slice vxdisk –f type=simple Add a disk vxdiskadd c1t0d0 or c1 (all disk on controller) vxdisksetup -i Remove a disk totally from VM vxdisk rm Remove a disk from a volume vxdg -g rmdisk Remove a disk slice from VM vxdctl rm disk Clear any host ID flags vxdisk clearimport Renaming a disk vxedit -g rename Move disk to different disk group vxdg move
No comments:
Post a Comment