Académique Documents
Professionnel Documents
Culture Documents
VM daemons
Maintains system configuration in the kernel & disk (private region). If the daemon is stop
not disable any configuration state loaded into the kernel, it only affects the ability to make
configuration changes until vxconfigd is restarted.
vxconfigd
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 subdisks
Used to backup configuration chnages, the files created can be used with vxmake to restor
vxconfigbackupd
groups.
vxnotify Display veritas volume manager events used with the vxconfigd daemon
used to administer a cache object that is assoicated with volumes that have one or more sp
vxcached optimized snapshots. When the usage of a cached volume reaches the high watermark vxc
autom,atically grows the cache volume if required and configured
Monitors VxVM for disks being attached and reattaches a detached site if the disks belong
sire become accessible, the daemon monitors vxnotify command and waits for a failed dis
vxattachd
disk is attached vxattachd attempts to online the disk, if successful it then starts recovery u
vxrecover
vxdbd Handles comunication to and from the storage foundation product, it uses port 3233
Kernel Info
The kernel can be in three states:
Kernel 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
Note: when run on its own it displays # of vxiod daemons that are running.
The vxdctl utility manages aspects of the state of the volume configuration daemon vxconfig
manages aspects of configuration for bootstrapping the rootdg disk group.
Disk Regions
Disk Regions
This is were veritas holds the meta data regarding the disk. A copy of the configuration da
copied to each private region within the disk group. Veritas will try and keep 5 copies of th
configuration database.
Private
See below for where the slice is kept
Once the private region is created it cannot be changed, thus if it fills up then you have to r
disk with a new private region length, see disks -> initialize disk
This is the area that will store the users data.
Public
See below for where the slice is kept
Disk Layouts
private and public region slices are on separate partitions, this type of
disk is not suitable for moving between different O/S's but are suitable
Sliced Disk layout for boot partitions format=sliced
File Locations
/usr/lib/vxvm/bin/vxconfigbackup -l /var/vxvm/backups
Backup
-l = location where to store backup
vxconfigrestore -p <group>
Disks
Note: format can be either sliced, simple, cdsdisk or none (see above - Disk Regions)
Uninitialize disk vxdiskunsetup -C c2t0d0
vxdisk -g <group> list <disk>
Disk Information
vxdisk -s list
Resize a LUN vxdisk -g <group> resize <disk> length=8G
Add a disk slice to
vxdctl add disk <device> type=simple
volboot
Add a disk slice vxdisk –f <device> type=simple
vxdiskadd c1t0d0 or c1 (all disk on controller)
Add a disk
vxdisksetup -i <device>
Remove a disk totally
vxdisk rm <device>
from VM
Remove a disk from a
vxdg -g <group> rmdisk <diskname>
volume
Remove a disk slice
vxdctl rm disk <device>
from VM
Clear any host ID
vxdisk clearimport <disk name>
flags
Renaming a disk vxedit -g <disk> rename <old disk name> <new disk name>
Move disk to different vxdg move <source dg> <target dg> <disk>
disk group
Note: you must always have one disk in a disk group, you cannot move a disk that is use
volume
vxdisk offline <dev name>
Offline a disk
Note: disk must not be in a disk group
vxdisk online <dev name>
Online a disk
Note: disk must have a private region otherwise you need to initialise the disk
Hot spare vxedit –g <group> set spare=on <disk>
NoHotUse vxedit –g <group> set nohotuse=on <disk>
Turn off failing flag vxedit -g <group> set failing=off <disk>
Encapsulate a disk vxdisk define c0t0d0s0 type=nopriv
vxreattach [-br | -c <device>]
## if now errors reported above and in the file, then dd back to disk
dd if=/tmp/c2t0d0s3_privreg.good of=/dev/rdsk/c2t0d0s3
Disk Group
Volume
types:
fsgen - filesystems
Create a raw volume gen - raw volumes
raid - supports raid5
root - suuports root filesystems for booting
swap - performs no recovery on startup
relayout - used temporary for disk relayout operations
vxedit –rf rm <volume>
vxassist -g <group> remove volume <vol>
Remove a volume
Note: you must disable the volume first
Initializing a volume vxvol init state <volume> [plex]state=clean,enable,active
vxassist -g <group> relayout <vol> layout=stripe ncol=2
vxassist -g <group> relayout <vol> layout=stripe ncol=+1
vxassist -g <group> relayout <vol> layout=stripe ncol=-1
vxassist -g <group> relayout <vol> layout=stripe stripe=32k ncol=5
vxassist -g <group> relayout <vol> layout=raid5 stripeunit=32k ncol3
Online Relayout
vxassist -g <group> convert <vol> layout=stripe-mirror
Plexs
Sub-disks
Disks
Display all the physical vxdisk list
disks vxdisk -o alldgs list
Display detailed disk info vxdisk list <disk>
Check for disk failures vxstat –g <group>–ff –d
Disk Group
Display group properties vxdg list
Display detailed group info vxdg list <group>
vxinfo -p -g <group>
Volume
Display volume info vxprint –Aht <vol>
Display volume properties vxprint –vl
Display unstartable volume vxinfo -g <group> <vol>
Check for volume failures vxstat –g <group>–ff -v
Plex
Display plex properties vxprint –vp
Check for plex failures vxstat –g <group>–ff -p
Sub-Disks
Display sub-disk properties vxprint –st
Veritas Tasks
vxtask list
vxtask monitor - continuously monitor
Licensing
VEA
Logging
Logging help in recovery and can speed it up dramatically, the main form of logging in veritas is
the DRL (dirty region log) which performs the following
Policies can be used if you have slower disks within a volume and you wish to use the faster
disks.
Veritas have created some scripots that can check the integrity of the vxvm setup i.e mirrored
volumes, spares, etc. The scripts are based on rules and there are a number of differents rules
veritas has set, look in the rules directory to see all of them.