Making a single-slice
rootdg
|
This procedure is used if you do not want to dedicate an entire
disk to 'rootdg'. First of all create a slice with at least
2 cylinders. Let's say it is c0t0d0s3
Add VxVM packages, then start vxconfigd
in disabled mode.
# vxconfigd -d
Initialize the /etc/volboot file.
# vxdctl init
Make a new rootdg group.
# vxdg init rootdg
Add simple slice to the /etc/volboot
file.
# vxdctl add disk c0t0d0s3 type=simple
Note: You'll get the following message here - you can ignore
it
"Warning: device c0t0d0s3: not currently in the configuration"
Add disk record.
# vxdisk -f init c0t0d0s3 type=simple
Add disk name to rootdg disk group.
# vxdg adddisk c0t0d0s3
Enable transactions.
# vxdctl enable
Remove the install-db file, if present.
# rm /etc/vx/reconfig.d/state.d/install-db
Un-Encapsulating the boot disk
The boot disk can be un-encapsulated by using the
veritas volume manager vxunroot command, but before
using the vxunroot command the following things should be
taken care :
1. All boot disk volumes have been unmirrored
Example: vxplex -g rootdg -o rm dis rootvol-02 swapvol-02
var-02
2. All non-root file systems, volumes, plexes and subdisks
on boot disk have been removed, vxunroot takes care of only
file system in boot disk are root, swap, var, usr
The vxunroot command performs the following :
1. Returns the boot disk partition map to its original state
2. Returns /etc/vfstab file to its original state
3. Returns /etc/vfstab file to its original stat
4. Returns the OpenBoot prom device aliases to thier original
state
Task monitor command
vxstat command
is used to display statistical information for VM physical
and logical objects:
Displays volume statistics for a given
disk group
# vxstat -g <disk_group>
Displays statistics for a given
volume
# vxstat -g <disk_group> <volume_name>
Displays disk level statistics for
a given disk group
# vxstat -g <disk_group> -d
Displays statistics for specific
disk
# vxstat -g <disk_group> -d <disk_name>
vxtrace command displays detailed information on
disk I/O operation
Trace all physical disk I/O operation
# vxtrace -o disk
Trace all I/O operation on specified disk
# vxtrace -o disk <disk_name>
Trace I/O operation on a specified
volume
# vxtrace <volume_name>
Trace disk device I/O activities
associated with a given volume
# vxtrace -o dev <volume_name>
Stopping the vmsa server
/opt/VRTSvmsa/bin/vmsa_server -k
Enabling and Disabling hot-spare feature
To enable the hot-spare feature in vxvm edit the
/etc/rc2.d/S95vxvm-recover file and comment out the vxrelocd
root & line and uncomment the #vxsparecheck root
& line
|