Beruflich Dokumente
Kultur Dokumente
Welcome
To
VERITAS Presentation
Volume Manager for Solaris
VERITAS Confidential
Suite of Products
VERITAS Confidential
VERITAS Volume Manager
General features are:
• Centralized Storage Management across
Entire Domain
– Supports concurrent local and remote client
connections to the server for browsing and
update capabilities; thus, it’s possible to
administer online storage remotely.
– Provides asynchronous notification to all
connected clients whenever any change to
the storage configuration takes place.
VERITAS Confidential
VM – General Features
• Configuration Solutions
– Ability to configure and manage different
volume layouts: concatenated, striped,
mirrored, mirrored striped, and RAID-5
volumes. Supports up to 32-way mirrors on a
mirrored volume.
– Automatic detection of failed disks and the
ability to repair fault-tolerant volumes on those
disks without interrupting applications using
the volumes.
VERITAS Confidential
VM – General Features
- Provides storage migration path with the ability
to upgrade existing Windows NT 4 or “basic
disk” partitions to the new “dynamic” volumes
based on VERITAS Volume Manager
technology.
- Supports and manages FT (fault-tolerant)
disks and volumes previously created in a
Windows NT system with Disk Administrator.
- Supports online extending of all volume types.
VERITAS Confidential
VM – General Features
- Supports a cluster environment that runs
under VERITAS Cluster Server software or
Microsoft Cluster Server software.
- Supports mounting a volume without requiring
the use of a drive letter.(windows only)
- Supports moving of storage between
computers with the Import and Deport
Dynamic Disk Group functions.
- Command line support for administrators who
prefer this method over a GUI.
VERITAS Confidential
VM – General Features
• Optimized System Performance
- I/O statistics are used to identify high-traffic
areas, known as “hot spots.” You can use the
Volume Manager Move Subdisk command to
resolve these hot spots online.
- Data is assigned to physical drives to evenly
balance the I/O load among the disk drives.
This is known as storage load balancing.
- Event logging of errors and important
information is provided.
VERITAS Confidential
GUI vs. Command Line
VERITAS Confidential
VERITAS Enterprise Administrator
VERITAS Enterprise Administrator (VEA), provides
access to applications on managed hosts.
VERITAS Confidential
Storage Objects
• Disk Group
– A set of disks that are an administrative domain for
creating and managing volumes. Volumes can’t span
disk groups.
– Each disk stores a copy of the configuration data for
the whole group. Dividing all disks into smaller
groups reduces the amount of configuration data
that have to be stored on each disk.
• Disk
– Volume Manager disk objects persist even when the
physical disk they represent are removed from the
system.
VERITAS Confidential
VEA – Disk View tab
VERITAS Confidential
Storage Objects
• Volume
– A virtual disk without the size limitations, and with
better performance and reliability than the
underlying physical disks.
• Subdisk
– A contiguous region on a disk that is part of the
physical storage for a volume. Subdisks can’t
overlap.
• Plex
– A component of a volume that contains one
complete copy of the data or a log.
VERITAS Confidential
VEA – Volume tab
VERITAS Confidential
VEA – Subdisks and Plex
VERITAS Confidential
Storage Object Relationships in General
Disk group
1
1
N
N
Disk Volume
1
1 1
N 1
N N
Subdisk
VERITAS Confidential
VRTSexplorer
• Allows support to check the health of the
System
• In Windows Explorer
• ftp://ftp.veritas.com/pub/support/vxexplor
e.tar.Z
VERITAS Confidential
How to Run VRTSexplorer
#cd VRTSspt
#cd VRTSexplorer
./VRTSexplorer
VRTSexplorer: Initializing.
VRTSexplorer: Please enter case number, or just hit enter:100000001
VRTSexplorer: Please select a destination directory (default: /tmp):
VRTSexplorer: Collecting system configuration information for SunOS system.
VRTSexplorer: Collecting VERITAS package version information.
VRTSexplorer: Collecting loadable module information.
VRTSexplorer: Collecting ISIS configuration information.
VRTSexplorer: Collecting SIG licensing information.
VRTSexplorer: Determining current VxVM operating mode.
VRTSexplorer: Collecting VxVM configuration information.
VRTSexplorer: Collecting DMP configuration information.
VERITAS Confidential
NOTICE: This section will stop and restart the VxVM Configuration Daemon,
vxconfigd. This may cause your VxVA, VMSA and/or VEA session to exit.
This may also cause a momentary stoppage of any VxVM configuration
actions. This should not harm any data; however, it may cause some
configuration operations (e.g. moving subdisks, plex
resynchronization) to abort unexpectedly. Any VxVM configuration
changes should be completed before running this section.
If you are using EMC PowerPath devices with VERITAS Volume Manager,
you must run the EMC command(s) 'powervxvm setup' (or 'safevxvm
setup') and/or 'powervxvm online' (or 'safevxvm online') if this
script terminates abnormally.
VERITAS Confidential
VXVM Directory
Dmp-----Directory vxprint_ht
vxdctl_c_mode vxprint_m_debdg
vxdctl_mode vxprint_m_deq
vxdg_list vxprint_m_dg1
vxdg_list_debdg vxprint_m_rootdg
vxdg_list_deq vxprint_mpvshr_debdg
vxdg_list_dg1 vxprint_mpvshr_deq
vxdg_list_rootdg vxprint_mpvshr_dg1
vxprint_mpvshr_rootdg
vxdisk_list
vxstat_g_debdg
vxdisk_list_c0t0d0s2
vxstat_g_deq
For Every Disk vxstat_g_dg1
vxdisk_s_list vxstat_g_rootdg
vxkprint
vxprint
VERITAS Confidential
Common Issues on Solaris
DMP
Device Failures
Package Install/Upgrade
Disaster Recovery
(Duplicate Disk Group Copies)
VERITAS Confidential
DMP
• DMP Functionality
• When is DMP installed
• DMP Flow Chart
• DMP Error Handling
– DMP Supported Arrays (Appendix A)
– Array Types (Appendix B)
VERITAS Confidential
DMP Functionality
VERITAS Confidential
DMP Flow Chart
VERITAS Confidential
When is DMP installed
• The DMP driver is installed during the VxVM
pkgadd
• This can be verified by doing looking at the
modinfo file in the explorer
– #more modinfo | grep VxVM
• 23 10202043 1188e8 263 1 vxio (VxVM 3.5s_p2.8 I/O driver)
• 25 10305b3e 1b23c 262 1 vxdmp (VxVM 3.5s_p2.8 DMP Driver)
• 26 1031e81a 80f 264 1 vxspec (VxVM 3.5s_p2.8 control/status)
VERITAS Confidential
Error Handling in DMP
• Error daemon is awakened whenever I/O returns
with an error
VERITAS Confidential
Error Handling in DMP(contd)
VERITAS Confidential
Disk Failure
• Determine the disk(s) failing
– Use command vxdisk list
VERITAS Confidential
vxdisk list
VERITAS Confidential
vxprint –g testdg -ht
VERITAS Confidential
/var/adm/messages
• Sep 16 13:19:34 aisia disk not responding to selection
• Sep 16 13:19:34 aisia vxdmp: [ID 997040 kern.notice] NOTICE:
vxvm:vxdmp: disabled path 32/0x160 belonging to the
dmpnode 239/0x20
• Sep 16 13:19:34 aisia vxdmp: [ID 148046 kern.notice] NOTICE:
vxvm:vxdmp: disabled dmpnode 239/0x20
• Sep 16 13:19:48 aisia vxio: [ID 686135 kern.warning]
WARNING: vxvm:vxio: object testdg00-02 detached from RAID-
5 vol02 at column 2 offset 0
• Sep 16 13:19:48 aisia vxio: [ID 354480 kern.warning]
WARNING: vxvm:vxio: RAID-5 vol02 entering degraded mode
operation
• /vxvm/vxprint_ht
• /vxvm/vxdisk_list
• /var/adm/messages
– search for degraded
• Solution (Appendix E)
VERITAS Confidential
Package Installation/Upgrade
VERITAS Confidential
pkginfo –l VRTSvxvm
PKGINST: VRTSvxvm
NAME: VERITAS Volume Manager, Binaries
CATEGORY: system
ARCH: sparc
VERSION: 3.5,REV=06.21.2002.23.14
BASEDIR: /
VENDOR: VERITAS Software
DESC: Virtual Disk Subsystem pkgadd -d /cdrom/CD_name/volume_manager3.5/pkgs
PSTAMP: VERITAS-3.5s:21-Jun-2002
1-VRTSvlic
INSTDATE: Aug 20 2003 10:47
2-VRTSvxvm
HOTLINE: 800-342-0652 3-VRTSvmdoc
EMAIL: support@veritas.com 4-VRTSvmman
STATUS: completely installed 5-VRTSob
6-VRTSobgui
FILES: 603 installed pathnames 7-VRTSvmpro
22 shared pathnames 8-VRTSfspro
9 linked files
76 directories
340 executables
158087 blocks used (approx)
VERITAS Confidential
/uname_a
SunOS aisia 5.9 Generic_112233-03 sun4u sparc SUNW,Sun-Blade-1000
/kernel
# more /kernel/drv/sparcv9/ls_l_vx
-rw-r--r-- 1 root sys 435312 Jun 21 2002 /kernel/drv/sparcv9/vxdmp
-rw-r--r-- 1 root sys 412304 Jun 21 2002 /kernel/drv/sparcv9/vxdmp.SunOS_5.7
-rw-r--r-- 1 root sys 427536 Jun 21 2002 /kernel/drv/sparcv9/vxdmp.SunOS_5.8
-rw-r--r-- 1 root other 435312 Aug 20 10:48 /kernel/drv/sparcv9/vxdmp.SunOS_5.9
-rw-r--r-- 1 root sys 2953480 Jun 21 2002 /kernel/drv/sparcv9/vxio
-rw-r--r-- 1 root sys 2866112 Jun 21 2002 /kernel/drv/sparcv9/vxio.SunOS_5.7
-rw-r--r-- 1 root sys 2908152 Jun 21 2002 /kernel/drv/sparcv9/vxio.SunOS_5.8
-rw-r--r-- 1 root other 2953480 Aug 20 10:48 /kernel/drv/sparcv9/vxio.SunOS_5.9
-rw-r--r-- 1 root sys 15336 Oct 31 2002 /kernel/drv/sparcv9/vxportal
-rw-r--r-- 1 root sys 19216 Jun 21 2002 /kernel/drv/sparcv9/vxspec
-rw-r--r-- 1 root sys 17840 Jun 21 2002 /kernel/drv/sparcv9/vxspec.SunOS_5.7
-rw-r--r-- 1 root sys 18536 Jun 21 2002 /kernel/drv/sparcv9/vxspec.SunOS_5.8
-rw-r--r-- 1 root other 19216 Aug 20 10:48 /kernel/drv/sparcv9/vxspec.SunOS_5.9
VERITAS Confidential
/opt/VRTSvlic/bin
#./vxlicrep -e
License Key =
528222690330627075168549872296
Product Name = VERITAS Volume Manager
Lic Key Lib Ver = ELM
Key = Valid
License Type = PERMANENT_NODE_LOCK
Node Lock Type = 3 (Hostid and Architecture ID)
Features :=
RAID = Enabled
VERITAS Confidential
Disaster Recovery
• Disaster Recovery(DR)
– Any event that will require a rebuild of a Disk Group
or Volume configuration database.
• Example Errors:
Duplicate Disk Group Records
Corrupted Disk Group Configuration
No Valid Disk Group Configuration Found
VERITAS Confidential
Disaster Recover (contd)
• Layouts of the Diskgroup and Volumes
– vxprint –ht or vxprint -htr
– vxprint –g <diskgroup> -mpvshr
VERITAS Confidential
Disk Group Configuration
VERITAS Confidential
Configuration Record Types
• The types of configuration records
correspond to the VM object model
– Disk group record
– Volume record
– Plex record
– Subdisk record
– Two kinds of disk records
VERITAS Confidential
Disk Media v.s. Disk Access Records
• Disk Media Configuration Record
– Identifies a disk by disk id and gives it an
administrative name, e.g. “disk1”.
– A disk group contains dm recs for all member disks.
– Subdisk recs are associated with dm recs.
– Dm recs can be disassociated from a failed physical
disk and re-associated with a replacement disk.
• Disk Access Record
– Identifies an O/S access path to a disk,
e.g. \device\Harddisk0.
– Not stored in the on-disk configuration database
because it can easily change after rebooting.
VERITAS Confidential
Missing Disks
VERITAS Confidential
Missing Disk
VERITAS Confidential
VM Alert Message
Alert Message
VERITAS Confidential
Event Viewer Alert
VERITAS Confidential
Replace Disk
VERITAS Confidential
Foreign Disks
• A disk is foreign if the hostid in it’s
configuration doesn’t match the server,
or
VERITAS Confidential
Foreign Disk
VERITAS Confidential
Merge Foreign
VERITAS Confidential
Dynamic Disk Header
VERITAS Confidential
Disk Header Contents
• diskid: 8998ae08-f2a6-4264-97dc-8f5ceeda43de
• group: name=NewGrp id=a51fb942-4fcd-4a0f-bc88-0dd0b07a64c9
• flags: private autoimport
• import: bootsig=130 hostid=d0120cc1-8d21-11d7-aade-806d6172696f
• diskset: id=b95a984f-aeb0-4855-ab15-0b39e05145fe
• version: 2.12
• iosize: 512
• public: slice=0 offset=63 len=35551782
• private: slice=0 offset=35564430 len=2048
• update: seqno=0.36 time=1635821074
• headers: 2047 1856
• configs: count=1 len=1481
• logs: count=1 len=224
VERITAS Confidential
Configuration Records
• Disk: Disk2 rid=0.1029 updated=0.1155
• assoc: diskid=8998ae08-f2a6-4264-97dc-8f5ceeda43de
VERITAS Confidential
Disketset Id
• Diskset id is used to make sure that a disk that’s
removed and then reinserted is not modified.
• A new diskset id is created when a disk is
missing.
• Diskset id is stored in the disk header and also in
the dg record in the config database.
• Each dm record also keeps track of the last
diskset id when its da is detached.
VERITAS Confidential
Diskset Id Checking
• A disk cannot be onlined if the diskset id does
not match in its header and dg record in config.
• A disk can be brought online automatically in
rescan operation if the diskset id in the header
matches the “lastset” id in a detached dm record.
VERITAS Confidential
Vxdisksetid output
harddisk4
header diskset ID=47b91238-1db1-4943-9d63-6264c7b667b7
config diskset ID=47b91238-1db1-4943-9d63-6264c7b667b7
VERITAS Confidential
Vxtool
vxtool - VERITAS Volume Manager diagnostic operations
Usage:
• vxtool disk <sub-operation> [-<options>] [<arguments>]
• vxtool kernel <sub-operation> [-<options>] [<arguments>]
• vxtool verify [-v] <volume-name> [[<offset>] <length>]
• vxtool getioparms <driveletter>:
VERITAS Confidential
Vxtool disk setheader
Fields that can be modified:
• Diskid
• Hostid
• Dgid
• Dg_name
• Disksetid
• newdisksetid
VERITAS Confidential
Vxtool disk setheader
VERITAS Confidential
DMP Supported Arrays Appendix A
VERITAS Confidential
Array Types Appendix B
• A/A •Active/Active disk array; I/Os could be simultaneously active on more than one
path to the device without any performance degradation
• A/P •Active/Passive disk array; I/Os can not be issued to more than one path to the
device without severe performance penalty; when such arrays are con.figured in
auto-trespass mode,the path failover occurs with a normal I/O command to the
passive (standby) path
• A/PF
•Active/Passive disk array in explicit failover mode; A/P array that will require special
failover command; support for such arrays can not be added dynamically
• A/PG
•Active/Passive disk array with LUN group failover. A special case of A/P array
where a group of LUN’s fail-over
VERITAS Confidential
vxdg_list Appendix C
VERITAS Confidential
vxdisk_list_c1t15d0s2 Appendix D
VERITAS Confidential
Solution Appendix E
• Vxdiskadm (Appendix G)
– Option 4 Remove a disk for replacement
– Option 5 Replace a failed or removed disk
• Volume should start rebuilding parity on new
device
– Use vxtask list to view status
• Example:
vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
171 171 R5RECOVER/R 32.09% 0/699426/224448
RECOV vol02 testdg00-02
VERITAS Confidential
vxprivutil Appendix F
VERITAS Confidential
vxdiskadm Appendix G
SO ON……….
VERITAS Confidential