VX VM
VX VM
Volume Manager
Basic Administration and
Trouble shooting
by
ES Support, Chennai
What is Volume Manger?
VERITAS Volume Manager
(VxVM) is an online storage
management tool that
provides a logical volume
management layer which
overcomes the physical
restrictions of hardware disk
devices by spanning volumes
across multiple spindles.
What is Volume Manger?
Availability
Performance
Scalability
Types of Objects
How Volume Manager
Works?. . .
Relationships . . .
Volume Layouts
Planning a First-Time
VxVM Setup
to place under Volume
Manager control?
Do you want to use
enclosure-based naming?
Do you want to exclude any
disks from Volume Manager
control?
Do you want to suppress
dynamic multipathing on
any disks?
When you place disks under Volume
Manager control, do you want to
preserve or eliminate data in
existing file systems and partitions?
Manager control, do you want to
preserve or eliminate data in
existing file systems and partitions?.
..
# vxlicense –c ;Adding a
license a key
# vxlicense –p ;Viewing
installed license keys
VxVM Standard Packages
# pkgadd -d . VRTSlic
# pkgadd -d . VRTSvxvm
# pkgadd -d . VRTSvmsa
# pkgadd -d . VRTSvmdoc
# pkgadd -d . VRTSvmman
# pkgadd -d . VRTSvmdev
The vxinstall Program
# tail -f
/var/opt/vmsa/logs/command
CLI Directories
/etc/vx/bin
/usr/sbin
/usr/lib/vxvm/bin
Managing Disks
Placing a Disk Under
Volume Manager Control
Placing a Disk Under
Volume Manager Control. .
.
Placing a Disk Under
Volume Manager Control .
..
# vxdisksetup -i c1t0d0
vxdiskunsetup –C c1t0d0
Rename the disk
# umount /filesystem2
(or)
Simplified administration:
Concatenation:
Disadvantages
# vxprint –Aht
# vxprint –g rootdg
# vxprint –dt
# vxprint –st
# vxprint –pt
# vxprint -vt
Removing a Volume
Removing a Volume . . .
# vxassist -g datadg remove
volume datavol
vxmirror -g datadg -a
# /etc/vx/bin/vxmirror -d yes
(or)
# newfs
dev/vx/rdsk/datadg/datavol
# mount
/dev/vx/dsk/datadg/datavol
/data
Volume Maintenance . . .
Volume Maintenance . . .
Managing Volume Tasks
Managing Volume Tasks . .
.
rootdev:/pseudo/vxio@0:0
set
/etc/vfstab: Before Root
Encapsulation
/etc/vfstab: After Root
Encapsulation
Mirroring the Root Disk
# /etc/vx/bin/vxmirror
rootdisk secrootmir
# prtconf -vp | grep bootpath
bootpath:
'/sbus@3,0/SUNW,socal@d,100
00/sf@0,0/
ssd@w2100002037590098,0:a'
# prtconf -vp | grep vx
vx-disk01:
'/sbus@3,0/SUNW,socal@d,10000/
sf@0,0/
ssd@w21000020374fe71f,0:a'
vx-rootdisk:
'/sbus@3,0/SUNW,socal@d,10000/
sf@0,0/
ssd@w2100002037590098,0:a'
Unencapsulating a Root
Disk
# vxunroot
To convert the root, swap, usr,
var, opt, and home file systems
back to being accessible
directly through disk partitions
instead of through volume
devices, you use the vxunroot
utility. Other changes that were
made to ensure the booting of
the system from the root
For vxunroot to work properly, the
following conditions must be met:
All but one plex of rootvol,
swapvol, usr, var, opt, and home
must be removed (using vxedit or
vxplex).
One disk in addition to the root
disk must exist in rootdg.
To convert a root volume
back to partitions:
# vxconfigd
# vxdctl -k stop
# vxdctl disable
# vxdctl list
Changing the Host ID
If you change your host name in
UNIX, you need to change your
host ID in the volboot file. To
change the host ID in the volboot
file and on all disks in disk groups
currently imported on the machine
# vxdctl hostid hostid
# vxdctl enable
If some disks are inaccessible at
the time of a hostid operation, it
may be necessary to use the
vxdisk clearimport operation to
clear out the old host ID on those
disks when they become
reaccessible. Otherwise, you may
not be able to re-add those disks
to their disk groups.
Caution: Be careful when using this
command. If the system crashes
before the hostid operation
completes, some disk groups may not
reimport automatically
Re-Creating the volboot
File
To re-create the volboot file because it
was removed or invalidated
1. Disk replacement
When a disk fails, you replace the corrupt
disk with a new disk. The disk used to
replace the failed disk must be either an
uninitialized disk or a disk in the free disk
pool. The replacement disk cannot already
be in a disk group. If you want to use a disk
that exists in another disk group, then you
must remove the disk from the disk group
and place it back into the free disk pool
2. Volume recovery
When a disk fails and is removed for
replacement, the plex on the failed disk is
disabled, until the disk is replaced.
Volume recovery involves:
Starting disabled volumes
Precautionary Tasks
(or)
# vxprint -g diskgroup
-hmvpsQqr > backup.DGname
Displaying a Saved
Configuration
# vxprint -D - -rhtmqQ
lostvolume < backup.DGname >
restoredvolume
# vxmake -g diskgroup -d
restoredvolume
To start the restored volume, and
recover its plexes.
# vxrecover -Es
restoredvolume