Professional Documents
Culture Documents
Sun - VERITAS Volume Manager - Student Guide
Sun - VERITAS Volume Manager - Student Guide
Troubleshooting
IES-410
Student Guide
Copyright 2003 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, California 94303, U.S.A. All rights reserved.
This product or document is protected by copyright and distributed under licenses restricting its use, copying, distribution, and
decompilation. No part of this product or document may be reproduced in any form by any means without prior written authorization of
Sun and its licensors, if any.
Third-party software, including font technology, is copyrighted and licensed from Sun suppliers.
Sun, Sun Microsystems, the Sun Logo, Solaris, StorEdge, Sun Enterprise, SunSolve, Sun Enterprise Network Array, JumpStart, OpenBoot,
Solstice, Sun BluePrints, and Solstice DiskSuite are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other
countries.
All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. in the U.S. and
other countries. Products bearing SPARC trademarks are based upon an architecture developed by Sun Microsystems, Inc.
UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open Company, Ltd.
U.S. Government approval might be required when exporting the product.
RESTRICTED RIGHTS: Use, duplication, or disclosure by the U.S. Government is subject to restrictions of FAR 52.227-14(g)(2)(6/87) and
FAR 52.227-19(6/87), or DFAR 252.227-7015 (b)(6/95) and DFAR 227.7202-3(a).
DOCUMENTATION IS PROVIDED AS IS AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS, AND
WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY
INVALID.
Please
Recycle
Copyright 2003 Sun Microsystems Inc., 901 San Antonio Road, Palo Alto, California 94303, Etats-Unis. Tous droits rservs.
Ce produit ou document est protg par un copyright et distribu avec des licences qui en restreignent lutilisation, la copie, la distribution,
et la dcompilation. Aucune partie de ce produit ou document ne peut tre reproduite sous aucune forme, par quelque moyen que ce soit,
sans lautorisation pralable et crite de Sun et de ses bailleurs de licence, sil y en a.
Le logiciel dtenu par des tiers, et qui comprend la technologie relative aux polices de caractres, est protg par un copyright et licenci
par des fournisseurs de Sun.
Sun, Sun Microsystems, the Sun Logo, Solaris, StorEdge, Sun Enterprise, SunSolve, Sun Enterprise Network Array, JumpStart, OpenBoot,
Solstice, Sun BluePrints, et Solstice DiskSuite sont des marques de fabrique ou des marques dposes de Sun Microsystems, Inc. aux EtatsUnis et dans dautres pays.
Toutes les marques SPARC sont utilises sous licence sont des marques de fabrique ou des marques dposes de SPARC International, Inc.
aux Etats-Unis et dans dautres pays. Les produits portant les marques SPARC sont bass sur une architecture dveloppe par Sun
Microsystems, Inc.
UNIX est une marques dpose aux Etats-Unis et dans dautres pays et licencie exclusivement par X/Open Company, Ltd.
Laccord du gouvernement amricain est requis avant lexportation du produit.
LA DOCUMENTATION EST FOURNIE EN LETAT ET TOUTES AUTRES CONDITIONS, DECLARATIONS ET GARANTIES
EXPRESSES OU TACITES SONT FORMELLEMENT EXCLUES, DANS LA MESURE AUTORISEE PAR LA LOI APPLICABLE, Y
COMPRIS NOTAMMENT TOUTE GARANTIE IMPLICITE RELATIVE A LA QUALITE MARCHANDE, A LAPTITUDE A UNE
UTILISATION PARTICULIERE OU A LABSENCE DE CONTREFAON.
Please
Recycle
Table of Contents
About This Course ........................................................... Preface--xiii
Course Goals...................................................................... Preface--xiii
Course Map......................................................................... Preface--xiv
Topics Not Covered.............................................................Preface--xv
How Prepared Are You?................................................... Preface--xvi
Introductions ..................................................................... Preface--xvii
How to Use Course Materials ........................................ Preface--xviii
Conventions .........................................................................Preface--xix
Icons .............................................................................Preface--xix
Typographical Conventions ......................................Preface--xx
Introducing the VERITAS Volume Manager Software
Architecture ......................................................................................1-1
Objectives ........................................................................................... 1-1
Relevance............................................................................................. 1-2
Additional Resources ........................................................................ 1-3
Introducing Storage Management................................................... 1-4
Host-Based Storage Management........................................... 1-4
Controller-Based Storage Management................................. 1-5
Comparison of Storage Management Methods.................... 1-6
Exploring VxVM Software and Storage Management ................. 1-7
Relationship to the Operating System Environment ........... 1-7
Configuration Database ........................................................... 1-8
Device Discovery Layer (DDL) ............................................... 1-9
Drivers and Daemons............................................................... 1-9
VxVM Software Support Files.............................................. 1-11
Examining VxVM Software Objects.............................................. 1-20
Physical Disks......................................................................... 1-21
VxVM Software Disks ............................................................ 1-21
Disk Groups ............................................................................. 1-23
Subdisks.................................................................................... 1-24
Plexes ........................................................................................ 1-25
Volumes.................................................................................... 1-26
VxVM Software Layered Volume Objects........................... 1-27
Sun Proprietary: Internal Use Only
v
Copyright 2003 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services, Revision B
vi
viii
xii
Preface
Course Map
Course Map
The following course map enables you to see the general topics and the
modules for that topic area in reference to the course goal.
Architecture
The VERITAS
Volume Manager
Software Architecture
Availability Management
Encapsulating
Disks
Managing Dynamic
Multi-Pathing
Problem Management
Troubleshooting
Tools and Utilities
Recovering
Boot and System
Processes
Recovering Disk,
Disk Group and
Volume Failures
Release Management
Upgrading
the VxVM
Software
Preface-xiv
Refer to the Sun Educational Services catalog for specific information and
registration.
Preface-xv
Preface-xvi
Can you create the following VxVM software objects from the
command line and Storage Administrator graphical user interface
(GUI)?
Disks
Subdisks
Plexes
Volumes:
Striped
Simple
RAID 5
Can you replace a failed disk using command line utilities and the
Storage Administrator GUI?
Introductions
Introductions
Now that you have been introduced to the course, introduce yourself to
the other students and the instructor, addressing the following items:
Name
Company affiliation
Preface-xvii
Preface-xviii
Visual aids The instructor might use several visual aids to convey a
concept, such as a process, in a visual form. Visual aids commonly
contain graphics, animation, and video.
Conventions
Conventions
The following icons and typographical conventions are used in this course
to represent various training elements and alternative learning resources.
Icons
Additional resources Indicates additional reference materials are
available.
Note Indicates additional information that can help but is not crucial to
understanding of the concept being described. Examples of notational
information include keyword shortcuts and minor system adjustments.
Caution Indicates that there is a risk of personal injury from a
nonelectrical hazard, or risk of irreversible damage to data, software, or
the operating system. A caution indicates that the possibility of a hazard
(as opposed to certainty) might happen, depending on the action of the
user.
Caution Indicates that either personal injury or irreversible damage of
data, software, or the operating system will occur if the user performs this
action. A warning does not indicate potential events; if the action is
performed, catastrophic events will occur.
Preface-xix
Conventions
Caution Indicates the risk of injury due to heat or hot surfaces will
result.
Typographical Conventions
Courier is used for the names of command, files, and directories, as well
as on-screen computer output. For example:
Use ls -al to list all files.
system% You have mail.
Courier bold is used for characters and numbers that you type. For
example:
system% su
Password:
Preface-xx
Module 1
Relevance
Relevance
!
?
1-2
Where are the VxVM software driver and driver configuration files
stored?
What new features are included in the VxVM software version 3.2?
Additional Resources
Additional Resources
Additional resources The following references provide additional
information on the topics described in this module:
1-3
Process
Data
User
Manager
9-GByte
VxVM Software
Virtual
Layer
Volume
JBOD Enclosure
Interface
Adapter Board
3-GByte
disk/slice/LUN
Figure 1-1
1-4
disk
disk
disk
disk
disk
disk
disk
disk
disk
disk
disk
disk
Host Bus
Adapter
Data
Storage Subsystem
Manager
9-GByte
LUN
Controller
RAID
User
Manager
Process
Cache
RAID
Hardware
3-GByte
Disk/Slice
Figure 1-2
disk
disk
disk
disk
disk
disk
disk
disk
disk
disk
disk
disk
1-5
1-6
1-7
Applications
Database
VxVM
Configuration
Database
DMP Driver
Kernel
vxconfigd
Enclosure/Array
DDL
Figure 1-3
Configuration Database
The VxVM software configuration database stores all disk and volume
configuration data. The following apply to the configuration database:
1-8
Kernel Drivers
VxVM software storage management drivers include the following:
vxdmp The vxdmp daemon performs DMP operations on multipathed storage subsystems.
1-9
Note The vxconfigd logging and error messages are discussed in detail
in Module 4, Troubleshooting Tools and Utilities.
1-10
/kernel/drv
/kernel/drv/sparcv9
/sbin
/usr/sbin
/etc/init.d
/etc/rc*.d
/opt
/etc/vx
/var/vxvm
/dev/vx
-rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--
1
1
1
1
1
1
1
root
root
root
root
root
root
root
sys
sys
sys
sys
sys
sys
sys
1-11
-rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rwxr-xr-x
-rw-r--r--rwxr-xr-x
1
1
1
1
1
1
1
1
1
1
1
root
root
root
root
root
root
root
root
root
root
root
sys
sys
sys
other
sys
sys
sys
sys
sys
sys
sys
If the VxVM software driver binaries are corrupted, copy the proper
architecture version of the binary into the corrupted driver binary file to
correct the problem. This process is presented in Module 5, Recovering
Boot and System Processes.
-rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--
1
1
1
1
1
1
1
1
1
root
root
root
root
root
root
root
root
root
sys
sys
sys
sys
sys
sys
other
sys
sys
1-12
-r-xr-xr-x
-r-xr-xr-x
-r-xr-xr-x
-r-xr-xr-x
-r-xr-xr-x
-r-xr-xr-x
1
1
1
1
1
1
root
root
root
root
root
root
sys
sys
sys
sys
sys
sys
1 root
1 root
bin
bin
195272 Aug 15
189800 Aug 15
2001 vxliccheck
2001 vxlicense
vxclust
vxconfigd
vxdco
vxdctl
vxddladm
vxdg
vxdisk
vxdiskadd
vxdiskadm
vxdiskconfig
vxdmpadm
vxedit
vxibc
vxinfo
vxinstall
vxiod
vxliccheck
vxlicense
vxmake
vxmend
vxnetd
vxnotify
vxplex
vxprint
vxrecover
vxrecover.wrap
vxrelayout
vxrlink
vxrvg
vxsd
vxspcshow
vxstart_vvr
vxstat
vxtask
vxtrace
vxvol
vmsa-server
volmgt
vxnm-host_infod
1-13
vxnm-vxnetd
vxvm-reconfig
vxvm-recover
vxvm-shutdown
vxvm-startup1
vxvm-startup2
vxvm-sysboot
K10vmsa-server
K99vxvm-shutdown
S35vxvm-startup1
S85vxvm-startup2
S86vxvm-reconfig
S94vxnm-host_infod
S94vxnm-vxnetd
S95vxvm-recover
S96vmsa-server
1-14
vmsaguide.pdf
vmsaguide.ps
vrtsisp
vsap
vvr
vxfs
vxld
vxvm
vmsa
vmsa_server
LICENSE.ps
1-15
./vx/reconfig.d:
total 18
2 drwxr-xr-x
2 drwxr-xr-x
2 drwxr-xr-x
2 -rw-r--r-2 drwxr-xr-x
2 -rw-r--r-2 drwxr-xr-x
2 -rw-r--r-2 drwxr-xr-x
6
8
3
1
2
1
3
1
2
root
root
root
root
root
root
root
root
root
sys
other
other
other
sys
other
root
other
sys
512
512
512
18
512
7
512
54
512
Mar
Mar
Mar
Mar
Mar
Mar
Mar
Mar
Mar
29
29
29
29
29
29
29
29
29
16:06
16:08
16:01
16:01
15:41
16:02
17:15
16:02
17:16
.
..
disk.d
enclrs
org.d
OTHER_DISKS
saveconf.d
SENA0
state.d
There are three files in this directory that describe disks under VxVM
software control:
enclrs This file lists the files in the directory that identify
disks detected by the VxVM software. An example is shown
here.
::::::::::::::
enclrs
::::::::::::::
OTHER_DISKS
SENA0
1-16
SENA0 This file lists all disks in the enclosure named SENA0
detected by the VxVM software device discovery. An example
of the SENA0 file is shown here.
::::::::::::::
SENA0
::::::::::::::
c2t25d0
c2t16d0
c2t26d0
c2t10d0
c2t5d0
c2t0d0
c2t19d0
./vx/reconfig.d/disk.d:
total 6
2 drwxr-xr-x
3 root
2 drwxr-xr-x
6 root
2 drwxr-xr-x
2 root
other
sys
other
./vx/reconfig.d/disk.d/c0t0d0:
total 12
2 drwxr-xr-x
2 root
other
2 drwxr-xr-x
3 root
other
2 -rw-r--r-1 root
other
2 -rw-r--r-1 root
other
2 -rw-r--r-1 root
other
2 -rw-r--r-1 root
other
512 Mar
512 Mar
9 Mar
933 Mar
7 Mar 29
452 Mar
29 16:01 .
29 16:01 ..
29 16:01 dmname
29 16:01 newpart
16:01 primary_node
29 16:01 vtoc
The ./c0t0d0 directory contains files that describe present and prior
configuration information about the encapsulated boot disk. The file
named vtoc holds the boot disks pre-encapsulation vtoc and can be
used to recover the original configuration for the boot disk if
unencapsulation fails.
Note The procedure for using the vtoc file to unencapsulate the boot
disk is addressed in Module 2, Encapsulating Disks.
1-17
./vx/reconfig.d/saveconf.d:
total 6
2 drwxr-xr-x
3 root
2 drwxr-xr-x
6 root
2 drwxr-xr-x
2 root
root
sys
root
./vx/reconfig.d/saveconf.d/etc:
total 14
2 drwxr-xr-x
2 root
root
2 drwxr-xr-x
3 root
root
2 -rw-r--r-1 root
root
2 -rw-r--r-1 root
root
2 -rw-r--r-1 root
root
4 -rw-r--r-1 root
other
512
512
239
239
140
2002
Mar
Mar
Mar
Mar
Mar
Mar
29
29
29
29
29
29
16:08
17:15
16:08
16:08
16:08
15:41
.
..
dumpadm.conf.new
dumpadm.conf.orig
dumpadm.out.orig
system
1-18
If two or more servers can access the same disks using the
same bus, the VxVM software hostid ensures that the two
hosts do not interfere with each other when accessing the
VxVM software disks.
The volboot file can also contain a list of simple disks for
rootdg. Refer to the VxVM Software Disks on page 1-21 for
more information.
3 root
31 root
2 root
2
3
1
1
1
root
root
root
root
root
sys
sys
root
root
sys
root
root
root
512
512
8704
2560
3072
Mar
Mar
Mar
Mar
Mar
29
29
29
29
29
17:15
17:15
17:15
17:15
17:15
.
..
DGa
DGb
rootdg
dmp
dmpconfig
dsk
info
iod
netiod
rdmp
rdsk
task
taskmon
trace
1-19
Figure 1-4 illustrates the relationship between physical and virtual VxVM
software objects.
Volume
Physical Objects
Physical Disks
Virtual Objects
Disk Group
VxVM
Software
Private
Plex
Plex
Plex
Subdisk
Plex
Subdisk
Subdisk
Subdisk
Subdisk
Public
VxVM
Software
Private
Subdisk
Public
Figure 1-4
1-20
Physical Disks
Physical disks are storage devices where data is ultimately stored.
Physical disks, or physical objects, are identified by the Solaris OE using a
unique identifier called a ctd number. Valid ctd identifiers are:
s A slice or partition
The VxVM software uses a drive ctd number for identification of the
physical device when it is brought under VxVM software control.
Initialized Disks
Initialized disks are reformatted with either one or two partitions, and all
data is destroyed. The partitions are used to store the VxVM software
configuration and data areas called private and public regions.
The private region is a small partition where disk group configuration
information is stored. The private region has the following characteristics:
It is usually slice 3.
1-21
The public region uses the remaining space available on the physical disk
to store subdisks. The public region has the following characteristics:
It is usually slice 4.
1-22
Encapsulated Disks
Encapsulation brings a physical disk under the VxVM software control
and preserves the data. The /etc/vfstab file is modified to reflect the
new volume names on the disks file systems. Encapsulation has the
following characteristics:
The /etc/vfstab file requires free space on the disk, usually in the
private region, to store configuration information.
The file size starts at 1024 sectors to the VxVM software version 3.2,
and 2048 sectors in version 3.2 and later.
Disk Groups
A named collection of VxVM software disks that share a common
configuration is called a disk group. Common configuration refers to a set of
records that provide detailed information about related VxVM software
objects, their connections and attributes. This configuration information is
stored in the private region of the VxVM software disks. A backup copy
for each configured disk group is stored in /var/vxvm/tempdb.
Disk groups are virtual objects and have the following characteristics:
1-23
Disk groups allow grouping of the VxVM software disks into logical
collections.
Volumes created within a specific disk group can use only the VxVM
software disks that are a member of that disk group.
Note Moving volumes and disks among disk groups using an early
version of the VxVM software was a risky procedure. The VxVM software
version 3.2 has new options for the vxdg command to move the VxVM
software objects among disk groups and to split and join disk groups.
These new options require a special license.
Subdisks
Subdisks are contiguous blocks of space. Subdisks provide the basic
building blocks for the VxVM software plexes and volumes, creating the
VxVM software basic unit of storage allocation. Subdisks are virtual
objects.
The following characteristics apply to subdisks:
Subdisk names are based on the VxVM software disk name where they
reside, appended with an incremental numeric identifier. Figure 1-5 on
page 1-25 illustrates how subdisk names are derived.
1-24
Physical Disk
Subdisks
Private Region
Public Region
disk01-01
disk01-01
/dev/rdsk/c2t3d5
disk01-02
disk01-02
disk01-03
Free Space
disk01-03
disk01
Figure 1-5
Plexes
The VxVM software virtual objects built from subdisks are called plexes. A
plex consists of one or more subdisks located on one or more VxVM
software disks.
Plexes are:
Concetanation
Stripe (RAID 0)
Mirror (RAID 1)
1-25
Plex
Private Region
Public Region
disk01-01
disk01-01
disk01-02
disk01-02
disk01-03
disk01-03
vol01-01
Free Space
disk01
Figure 1-6
Subdisks
Volume name
This plex is a
sub-mirror.
Plex Components
Volumes
Volumes are virtual devices (virtual objects) that appear to be physical
disks to applications, databases and file systems. Volumes are the VxVM
softwares top-tier virtual objects. Although volumes appear to be
physical disks, they do not share the limitations of physical disks.
Volumes have the following characteristics:
1-26
They consist of one or more plexes. Each plex holds one copy of the
volumes data.
Volume
disk01-01
disk01-02
disk01-03
vol01-01
disk02-01
disk02-02
disk01-01
disk01-02
disk02-01
disk02-02
disk01-03
disk02-03
vol01-01
vol01-02
vol01
disk02-03
vol01-02
Figure 1-7
Two-Plex Volume
1-27
Volume
Plex
Mirror
Plex
Mirror
Plex
SD
SD
SD
SD
SD
SD
SD
Subplex
Subplex
SD
SD
Subvolume
Stripe
Stripe
SD
Subvolume
Mirror
Subplex
Subplex
SD
SD
RAID 0+1
Subvolume
Mirror
Subplex
Subplex
SD
SD
RAID 1+0
Figure 1-8
Layered Volumes
1-28
Resynchronizing Volumes
Resynchronizing Volumes
The VxVM software ensures that all data stored redundantly using
mirrored or RAID 5 volumes remains in a consistent state. Data is written
in parallel to both mirrored and RAID volumes to ensure that data
remains consistent unless there is a system crash or physical disk failure.
If this occurs, data can become inconsistent or unsynchronized.
System failures are not the only reason data can become unsynchronized.
Data can become inconsistent during maintenance procedures when a
mirrored plex or RAID 5 element is taken offline. If data becomes
inconsistent between mirrored plexes or between a RAID 5 volumes data,
use a volume resynchronization to correct the problem.
Volume resynchronization happens for some volumes during a system
reboot. Other volumes undergo volume resynchronization when they are
started. Plexes that are taken offline for maintenance become stale. Stale
plexes are resynchronized when configured back into a volume.
The components of volume resynchronization are discussed in detail in
this section.
Dirty Flag
The VxVM software keeps track of data synchronization operations using
a flag called the dirty flag. When data is written to a volume, it is marked
as dirty until the volume stops or all writes are completed and the data in
the volume plexes are identical.
Volumes that do not have the dirty flag reset require volume
resynchronization when started or during a system reboot.
1-29
Resynchronizing Volumes
Resynchronization Process
The resynchronization (resync) process depends on the type of volume
started.
During resync of a RAID 5 volume, if a log is available, the log is
replayed. If a log is not available, the volume is placed in reconstructrecovery mode, and all parity is regenerated. This is a very time
consuming recovery process. Make sure that all RAID 5 volumes have a
log attached to reduce the time it takes to resync a RAID 5 volume.
During resync of a mirrored volume, the volume is placed into recovery
mode (or read-writeback recovery mode). Data is available for use by the
Solaris OE. This type of recovery is executed in the background and is
very time consuming. Attaching a dirty region log (DRL) to mirrored
volumes and using a fast resync operation can help speed up the recovery
process.
The resync process can be expensive and have an adverse impact on
system resources. The VxVM software reduces the impact multiple
resyncs have on the system by managing the recovery operations to avoid
placing stress on specific disks and controllers.
1-30
RAID 5 Logs
RAID 5 logs perform the following tasks:
1-31
NAME
NAME
NAME
NAME
NAME
NAME
NCONFIG
DEVICE
USETYPE
VOLUME
PLEX
PLEX
NLOG
TYPE
KSTATE
KSTATE
DISK
VOLNAME
MINORS
PRIVLEN
STATE
STATE
DISKOFFS
NVOLLAYR
GROUP-ID
PUBLEN
LENGTH
LENGTH
LENGTH
LENGTH
STATE
READPOL
LAYOUT
[COL/]OFF
[COL/]OFF
PREFPLEX
NCOL/WID MODE
DEVICE
MODE
AM/NM
MODE
v
pl
sd
sd
sd
pl
sd
r0
r0-01
ddg01-01
ddg02-01
ddg03-01
r0-02
ddg04-01
RAID-5
r0
r0-01
r0-01
r0-01
r0
r0-02
ENABLED
ENABLED
ddg01
ddg02
ddg03
ENABLED
ddg04
ACTIVE
ACTIVE
0
0
0
LOG
0
20480
21568
10800
10800
10800
4320
4320
RAID
RAID
0/0
1/0
2/0
CONCAT
0
3/32
c1t2d0
c1t2d1
c1t3d0
c1t4d0
RW
ENA
ENA
ENA
RW
ENA
The logging does not perform the same function as the Solstice
DiskSuite softwares dirty mirror region log. Dirty region logging
does not enable partial resynchronization if a plex is taken offline for
maintenance.
Partial resynchronization is handled by the fast mirror resync (FMR)
facility. FMR requires a separate license.
1-32
DRLs are not supported on core system volumes, such as the /, /usr,
and /var volumes.
NAME
NAME
NAME
NAME
NAME
NAME
NCONFIG
DEVICE
USETYPE
VOLUME
PLEX
PLEX
NLOG
TYPE
KSTATE
KSTATE
DISK
VOLNAME
MINORS
PRIVLEN
STATE
STATE
DISKOFFS
NVOLLAYR
GROUP-ID
PUBLEN
LENGTH
LENGTH
LENGTH
LENGTH
STATE
READPOL
LAYOUT
[COL/]OFF
[COL/]OFF
PREFPLEX
NCOL/WID MODE
DEVICE
MODE
AM/NM
MODE
v
pl
sd
pl
sd
pl
sd
v
pl
sd
sd
pl
sd
m0
m0-01
ddg04-02
m0-02
ddg05-01
m0-03
ddg04-03
m1
m1-01
z
ddg01-02
m1-02
ddg02-02
fsgen
m0
m0-01
m0
m0-02
m0
m0-03
fsgen
m1
m1-01
m1-01
m1
m1-02
ENABLED
ENABLED
ddg04
ENABLED
ddg05
ENABLED
ddg04
ENABLED
ENABLED
ddg05
ddg01
ENABLED
ddg02
ACTIVE
ACTIVE
4320
ACTIVE
4320
ACTIVE
25920
ACTIVE
ACTIVE
0
10800
ACTIVE
10800
20480
21600
21600
21600
21600
LOGONLY
5
20480
21600
4320
21600
21600
21600
SELECT
CONCAT
0
CONCAT
0
CONCAT
LOG
SELECT
CONCAT
LOG
0
CONCAT
0
c1t4d0
c1t4d1
c1t4d0
c1t4d1
c1t2d0
c1t2d1
RW
ENA
RW
ENA
RW
ENA
RW
ENA
ENA
RW
ENA
1-33
Empty When a volume is created and the plex is not initialized, the
plex is in an empty state.
Active A plex is in the active state when the volume is started and
the plex fully participates in normal volume I/O (meaning the plex
contents change as the contents of the volume change).
A plex state is also active when the volume is stopped as a result of
a system crash and the plex was active at the moment of the crash. In
this case, a system failure can leave plex contents in an inconsistent
1-34
Stale If there is a possibility a plex does not have the complete and
current volume contents, this plex is placed in a stale state.
Additionally, if I/O errors occur on a plex, the kernel stops using
and updating the plex, and the operation sets the state of the plex to
stale.
To set the plex state to stale and start to recover data after the
vxvol start operation, use the following command:
1-35
1-36
PS: Clean
PKS: Disabled
PS
PS: Active
PKS: Enabled
= Plex state
Figure 1-9
1-37
Create plex
PS: Empty
PS: Active
PKS: Disabled
PKS: Disabled
After crash
and reboot
(vxvol start)
Initialize plex
Start up
Recover data
(vxvol start)
(vxvol resync)
PS:Clean
PS: Active
PS: Offline
PKS: Disabled
PKS: Enabled
PKS: Disabled
Resync data
(vxplex att)
Shut down
(vxvol stop)
Uncorrectable
I/O failure
PS: IOFAIL
PKS: Detached
PS
= Plex state
PKS
Resync
PS: Stale
fails
PKS: Detached
1-38
1.
A new plex is created leaving the plex state (PS) as empty and the
plex kernel state (PKS) as disabled.
2.
3.
Once the volume is started, the plex transitions to the active PS and
to the enabled PKS. At this time, the plex is available for use by the
volume and stays in this state until an error occurs or the volume is
stopped.
2.
Repairs are affected and the plex is reattached to the volume. This
causes the execution of a data resync. Once the data in the plex is
updated, the PS transitions to active, and the PKS transitions to
enabled.
The plex is now usable by the volume.
Use the vxprint utility to view plex states and their transitions. If a small
plex is re-synching, vxprint might not show the transition states as they
may happen too fast for vxprint to report.
The following example shows a VM disk (rootmirror) that has an I/O
failure. The plex rootvol-02 has transitioned to a detached PKS and an
iofail PS.
bash-2.03# vxprint -htg rootdg
DG NAME
NCONFIG
NLOG
MINORS
DM NAME
DEVICE
TYPE
PRIVLEN
RV NAME
RLINK_CNT
KSTATE
STATE
RL NAME
RVG
KSTATE
STATE
V NAME
RVG
KSTATE
STATE
PL NAME
VOLUME
KSTATE STATE
SD NAME
PLEX
DISK
DISKOFFS
SV NAME
PLEX
VOLNAME NVOLLAYR
DC NAME
PARENTVOL
LOGVOL
SP NAME
SNAPVOL
DCO
GROUP-ID
PUBLEN
PRIMARY
REM_HOST
LENGTH
LENGTH
LENGTH
LENGTH
STATE
DATAVOLS SRL
REM_DG
REM_RLNK
READPOL
PREFPLEX
LAYOUT
NCOL/WID
[COL/]OFF DEVICE
[COL/]OFF AM/NM
dg rootdg
default
default
1023554924.1025.lowtide
dm rootdisk
dm rootmirror
c1t0d0s2
-
sliced
-
3590
-
17678493 IOFAIL
v
pl
sd
sd
pl
sd
rootvol
ENABLED ACTIVE
4197879 ROUND
rootvol-01
rootvol
ENABLED ACTIVE
4197879 CONCAT
rootdisk-B0 rootvol-01
rootdisk 17678492 1
0
rootdisk-02 rootvol-01
rootdisk 0
4197878 1
rootvol-02 rootvol
DETACHED IOFAIL 4197879 CONCAT
rootmirror-01 rootvol-02 rootmirror 0
4197879 0
c1t0d0
c1t0d0
-
UTYPE
MODE
MODE
MODE
root
RW
ENA
ENA
RW
RLOC
1-39
Device Discovery
Device discovery is separated from the base VxVM software functionality
into a separate layer. Previously, the VxVM software discovered block
storage devices by scanning the Solaris OE device tree using the vxiod
daemon. This strategy assumed that the Solaris OE device tree remained
static or changed very little. When changes occurred, command line
utilities were used to update the VxVM software configuration.
Additionally, dynamic multi-pathing (DMP) must be aware of all multipathed storage subsystems and know the type of storage subsystem to
enable DMP support. Prior to the VxVM software version 3.2, support for
new arrays would necessitate changes to the DMP device discovery code.
This required patching the VxVM software and undergoing a probable
system outage.
With the growth of disk subsystem vendors and storage area networks
implemented within storage environments, the previous strategy proved
to be inadequate. The current device discovery facility is designed to
allow the dynamic addition of new storage subsystems without
modification to the VxVM software modules. The VxVM software DDL
discovers all disks that are visible to the Solaris OE.
1-40
Type of disks
Number of paths
Attributes
Figure 1-11 illustrates DDL components and the relationship to the VxVM
software kernel.
Applications
Database
VxVM
Configuration
Database
DMP Driver
Kernel
Enclosure/Array
vxconfigd
DDL
1-41
Active/Active
JBODs
JBOD Support
The device discovery facility can detect multi-pathed disk storage devices
that do not belong to a disk array but are capable of being multi-pathed
by DMP. Use the vxddladm utility to add or remove JBODs.
Disks must have a unique serial number that can be read through a SCSI
inquiry or the mode_sense command to be detected correctly.
DDL Administration
The device discovery facility is managed by the vxddladm utility to
provide a high-level function for device discovery and configuration. It is
used to:
Add JBODs
Remove JBODs
Include arrays
Exclude arrays
A sample output from the execution of the vxddladm command with the
listsupport option is shown here. This option lists all disk enclosures
currently supported by the systems DDL.
bash-2.03# vxddladm listsupport
LIB_NAME
ARRAY_TYPE
VID
PID
=======================================================================
libvxap.so
A/A
SUN
AP_NODES
libvxatf.so
A/A
VERITAS
ATFNODES
libvxeccs.so
A/A
ECCS
all
libvxemc.so
A/A
EMC
SYMMETRIX
libvxhds.so
A/A
HITACHI
OPEN-*
libvxhitachi.so
A/PG
HITACHI
DF350
1-42
A/PG
A/PG
A/P
A/A
A/A
A/A
A/A
A/A
A/A
A/A
A/A
A/A
A/A
A/A
A/A
A/A
A/A
A/A
A/A
A/A
A/P
A/A
A/A
A/A
A/A
A/A
A/PF
A/A
A/A
A/A
A/A
A/A
A/A
A/A
HITACHI
HITACHI
LSI
NEC
NEC
NEC
NEC
NEC
NEC
NEC
NEC
NEC
NEC
NEC
NEC
NEC
NEC
NEC
NEC
NEC
SUN
VERITAS
SENA
IBM
SSA
StorComp
VERITAS
HP
FUJITSU
FUJITSU
FUJITSU
FUJITSU
FUJITSU
FUJITSU
DF400
DF500
INF-01-00
DS1200
DS1200F
DS3000SL
DS3000SM
DS3001
DS3002
DS1000
DS1000F
DS1100
DS1100F
DS3011
DS1230
DS450
DS450F
iStorage
iStorage
iStorage
T300
RDACNODES
all
2105
all
OmniForce
all
OPEN-*
GR710
GR720
GR730
GR740
GR820
GR840
1000
2000
4000
Note See the vxddladm man page for command syntax options.
Device Naming
Enclosure-based and operating system (OS)-independent naming changes
the way storage devices are identified by the VxVM software and
provides the following benefits:
1-43
In cluster environments, disk array names are the same on all nodes
in the cluster.
logical_enclosure_name_#
Default disk names are based on the vendor identification (ID). For
example, disks in a Sun StorEdge T3 multi-path array named purple0 by
the VxVM software have the following names:
purple0_1
purple0_2
purple0_3
Device names have the following characteristics:
1-44
c1t0d0
c1t0d0s0
c1t0d0s1
c1t0d0s2
c1t0d0s3
c1t0d0s4
c1t0d0s5
c1t0d0s6
c1t0d0s7
c1t19d0s5
c1t19d0s6
c1t19d0s7
c1t1d0
c1t1d0s0
c1t1d0s1
c1t1d0s2
c1t1d0s3
c1t1d0s4
c1t2d0s2
c1t2d0s3
c1t2d0s4
c1t2d0s5
c1t2d0s6
c1t2d0s7
c1t3d0
c1t3d0s0
c1t3d0s1
Notice that the dmp metanodes now use devices named SENA0_xyz. A
long listing of the directory shows that c1t0d0 and SENA0_0 are the same
device by comparing the major and minor numbers.
bash-2.03# ls -las
total 12
10 drwxr-xr-x
2
2 drwxr-xr-x
6
0 brw------1
...
0 brw------1
...
/dev/vx/dmp
root
root
root
other
other
other
root
other
68,
2 Jun
8 09:41 c1t0d0
GROUP
rootdg
rootdg
-
STATUS
online
offline
error
online
online
offline
online
online
1-45
sliced
sliced
sliced
sliced
sliced
sliced
datadg02
datadg01
-
datadg
datadg
-
online
online
online
online
online
online
1-46
1-47
Module 2
Encapsulating Disks
Objectives
Upon completion of this module, you should be able to:
Recover the loss of the encapsulated disk in a boot disk mirrored pair
Relevance
Relevance
!
?
2-2
Additional Resources
Additional Resources
Additional resources The following references provide additional
information on the topics described in this module:
SunSolveSM Online Free Info Docs and Free Symptoms and Resolutions,
[http://sunsolve.Sun.COM/pub-cgi/search.pl?mode=
advanced].
2-3
2-4
Slice 0
Public
Slice 2
Slice 1
Slice 3
Region
(Slice 6)
Slice 2
and
Slice 6
Slice 4
Slice 7
Free Space
Figure 2-1
Private Region
Although the VxVM software re-partitions the disk, the original data
resides in the same blocks they occupied prior to encapsulation. The data
is not moved or overwritten. The VxVM software is responsible for
performing the translation necessary to make the data available as VxVM
software volumes.
2-5
device
to fsck
mount
point
/dev/rdsk/c1d0s2
/dev/rdsk/c1t0d0s0
-
/dev/rdsk/c1t3d0s0
/dev/rdsk/c1t3d0s1
/dev/rdsk/c1t3d0s3
/dev/rdsk/c1t3d0s4
/usr
/dev/fd
/proc
/
/tmp
/fs1
/fs2
/fs3
/fs4
ufs
ufs
ufs
ufs
1
2
3
4
FS
type
fsck
pass
ufs
fd
proc
swap
ufs
tmpfs
1
1
-
yes
yes
yes
yes
logging
logging
logging
logging
mount
mount
at boot options
yes
no
no
no
no
yes
logging
-
<--\
<- Disk to be encapsulated.
<- /
<--/
Pre-Encapsulation df -k Command
This example output from the df -k command displays the file systems
currently mounted from disk c1t3d0.
# df -k
Filesystem
/dev/dsk/c1t0d0s0
/proc
fd
mnttab
swap
swap
2-6
kbytes
used
avail capacity
7670973 1536449 6057815
21%
0
0
0
0%
0
0
0
0%
0
0
0
0%
1209520
16 1209504
1%
1209520
16 1209504
1%
Mounted on
/
/proc
/dev/fd
/etc/mnttab
/var/run
/tmp
2055705
2055705
2055705
2055705
2073
2073
2073
2073
1991961
1991961
1991961
1991961
1%
1%
1%
1%
/fs2
/fs1
/fs4
/fs3
prtvtoc /dev/rdsk/c1t3d0s2
/dev/rdsk/c1t3d0s2 partition map
Dimensions:
512 bytes/sector
133 sectors/track
27 tracks/cylinder
3591 sectors/cylinder
4926 cylinders
4924 accessible cylinders
Flags:
1: unmountable
10: read-only
Unallocated space:
First
Sector
Last
Sector
Count
Sector
16791516
890568 17682083 <---- Unallocated space at end of disk.
Partition
0
1
2
3
4
Tag
0
0
5
0
0
First
Sector
Last
Flags
Sector
Count
Sector
00
0
4197879
4197878
00
4197879
4197879
8395757
01
0 17682084 17682083
00
8395758
4197879 12593636
00
12593637
4197879 16791515
Mount Directory
/fs1 <-- Mount Points
/fs2 <-/fs3 <-/fs4 <--
Notice that the beginning sector of unallocated space is the last sector of
partition 4 plus 1.
2-7
Flag
wm
wm
wu
wm
wm
wm
wm
wm
Cylinders
0 - 1168
1169 - 2337
0 - 4923
2338 - 3506
3507 - 4675
0
0
0
Size
2.00GB
2.00GB
8.43GB
2.00GB
2.00GB
0
0
0
Blocks
(1169/0/0) 4197879
(1169/0/0) 4197879
(4924/0/0) 17682084
(1169/0/0) 4197879
(1169/0/0) 4197879
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
Start the vxdiskadm utility from the shell command line while
logged in as the superuser. Type the following:
# vxdiskadm
Volume Manager Support Operations
Menu: VolumeManager/Disk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2-8
?
??
q
2.
Here are
3.
c1t3d0
Continue operation? [y,n,q,?] (default: y) y
You can choose to add this disk to an existing disk group or to
a new disk group. To create a new disk group, select a disk group
name that does not yet exist.
2-9
Enter the name of the disk group for this encapsulated disk to join.
In the following example the disk group name is storagedg.
Answer all prompts as appropriate for this particular encapsulation
procedure:
5.
Select a name for the newly encapsulated disk. Although the name is
arbitrary, it is a good idea to follow some naming convention. In the
following example, the disk name is storage01. Answer the
remaining prompts as appropriate for this specific encapsulation
procedure:
2-10
?
??
q
2-11
This example illustrates how the VxVM software views this disk prior to
completeion of the encapsulation procedure. After the encapsulation
process is completed, compare this example to the same information for
the encapsulated disk.
Select an operation to perform: list
DISK
rootdisk
rootmirror
GROUP
rootdg
rootdg
STATUS
online
error
error
error <--- Disk is in the error state.
online
online
error
error
error
error
error
online
online
online
2-12
?
??
q
A system reboot is required before the disk is available for use by the
VxVM software.
device
to fsck
mount
point
FS
type
fsck
pass
mount
at boot
mount
options
/dev/rdsk/c1d0s2
/dev/vx/rdsk/rootvol
-
/usr
/dev/fd
/proc
/
/tmp
ufs
fd
proc
swap
ufs
tmpfs
1
1
-
yes
no
no
no
no
yes
logging
-
2-13
1
2
3
4
yes
yes
yes
yes
logging
logging
logging
logging
to fsck
point
/dev/rdsk/c1d0s2
/dev/rdsk/c1t0d0s0
-
/dev/rdsk/c1t3d0s0
/dev/rdsk/c1t3d0s1
/dev/rdsk/c1t3d0s3
/dev/rdsk/c1t3d0s4
type
/usr
/dev/fd
/proc
swap
/
/tmp
/fs1
/fs2
/fs3
/fs4
ufs
ufs
ufs
ufs
pass
ufs
fd
proc
ufs
tmpfs
1
2
3
4
yes
yes
yes
yes
1
no
1
-
at boot options
yes
no
no
no
yes
logging
-
logging
logging
logging
logging
Post-Encapsulation df -k Command
The VxVM software volumes in the following example of the df -k
command are displayed as the file system for fs1 through fs4.
bash-2.03# df -k
Filesystem
kbytes
used
avail capacity
/dev/vx/dsk/rootvol 7670973 1646146 5948118
22%
/proc
0
0
0
0%
fd
0
0
0
0%
mnttab
0
0
0
0%
swap
1175152
16 1175136
1%
swap
1175160
24 1175136
1%
/dev/vx/dsk/storagedg/fs2
2055705
2073 1991961
1%
2-14
Mounted on
/
/proc
/dev/fd
/etc/mnttab
/var/run
/tmp
/fs2
2073 1991961
1%
/fs1
2073 1991961
1%
/fs3
2073 1991961
1%
/fs4
Mount Directory
2-15
Flag
wm
wm
wu
wm
wm
wm
wu
wu
Cylinders
0
0
0 - 4923
0
0
0
0 - 4923
4923 - 4923
Size
0
0
8.43GB
0
0
0
8.43GB
1.75MB
Blocks
(0/0/0)
0
(0/0/0)
0
(4924/0/0) 17682084
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(4924/0/0) 17682084
(1/0/0)
3591
2-16
DISK
rootdisk
storage01
rootmirror
GROUP
rootdg
storagedg
rootdg
STATUS
online
error
error
online
online
online
error
error
error
error
error
online
online
online
default
default
MINORS
PRIVLEN
STATE
STATE
STATE
STATE
DISKOFFS
NVOLLAYR
GROUP-ID
PUBLEN
PRIMARY
REM_HOST
LENGTH
LENGTH
LENGTH
LENGTH
127000
1019688341.1137.lowtide
STATE
DATAVOLS
REM_DG
READPOL
LAYOUT
[COL/]OFF
[COL/]OFF
SRL
REM_RLNK
PREFPLEX
NCOL/WID
DEVICE
AM/NM
UTYPE
MODE
MODE
MODE
2-17
dm storage01
c1t3d0s2
sliced
v
pl
sd
sd
fs1
fs1-01
fs1-01
ENABLED ACTIVE
4197879
ENABLED ACTIVE
4197879
storage01 17678492 1
storage01 0
4197878
ROUND
CONCAT
0
1
c1t3d0
c1t3d0
gen
RW
ENA
ENA
v fs2
pl fs2-01
fs2
sd storage01-03 fs2-01
ENABLED ACTIVE
4197879
ENABLED ACTIVE
4197879
storage01 4197878 4197879
ROUND
CONCAT
0
c1t3d0
gen
RW
ENA
v fs3
pl fs3-01
fs3
sd storage01-02 fs3-01
ENABLED ACTIVE
4197879
ENABLED ACTIVE
4197879
storage01 8395757 4197879
ROUND
CONCAT
0
c1t3d0
gen
RW
ENA
v fs4
pl fs4-01
fs4
sd storage01-01 fs4-01
ENABLED ACTIVE
4197879 ROUND
ENABLED ACTIVE
4197879 CONCAT
storage01 12593636 4197879 0
c1t3d0
gen
RW
ENA
fs1
fs1-01
storage01-B0
storage01-04
3590
17678493 -
512
512
10
10
1156
7
476
Apr
Apr
Apr
Apr
Apr
Apr
Apr
24
24
24
24
24
24
24
15:29
15:29
15:29
15:29
15:29
15:29
15:29
.
..
dg
dmname
newpart
primary_node
vtoc
The dg File
The dg file in the following example delineates the disk group of which
this encapsulated disk is a member.
2-18
2-19
2-20
For each slice on the disk (excluding slice 2), run the following
command to prepare the disk for encapsulation without a private
region. In this example, only slices 5 and 6 have data on them. Type
the following:
2.
Use the vxdg -g command to add each of the slices of the target disk
to a disk group as though each slice is a disk, assigning the slice a
name. In this example the names NPdisk05 and NPdisk06 are used,
as follows:
3.
On each of the new disks, create a simple volume (not a file system)
that spans the entire disk. Then use the vxdisk list command to
determine the maximum size for the volumes to be created:
4.
public
len=8196096
public
len=9400320
Use the information derived from the vxdisk list command len
value and the vxassist command to create the volumes. The
following example names the volumes NPdisk05vol and
NPdisk06vol.
2-21
Mirror the volumes to a disk that has enough space to mirror both
volumes. In the following example, the volumes are mirrored to a
disk named disk01.
6.
7.
Remove the old disks from the disk group and return them to their
original state:
2-22
Make sure that no volumes from the encapsulated disk were grown
or had their basic structure modified. Use the vxprint command
and the format utility to verify format and condition of the
encapsulated volumes, as follows:
MINORS
PRIVLEN
STATE
STATE
STATE
STATE
DISKOFFS
NVOLLAYR
GROUP-ID
PUBLEN
PRIMARY
REM_HOST
LENGTH
LENGTH
LENGTH
LENGTH
STATE
DATAVOLS
REM_DG
READPOL
LAYOUT
[COL/]OFF
[COL/]OFF
SRL
REM_RLNK
PREFPLEX
NCOL/WID
DEVICE
AM/NM
UTYPE
MODE
MODE
MODE
dg storagedg
default
default
127000
1019688341.1137.lowtide
dm storage01
dm storage02
c1t3d0s2
c1t4d0s2
sliced
sliced
3590
3590
17678493 17674902 -
v
pl
sd
sd
pl
sd
fs1
fs1-01
fs1-01
fs1
fs1-02
ENABLED ACTIVE
4197879
ENABLED ACTIVE
4197879
storage01 17678492 1
storage01 0
4197878
ENABLED ACTIVE
4197879
storage02 0
4197879
ROUND
CONCAT
0
1
CONCAT
0
c1t3d0
c1t3d0
c1t4d0
gen
RW
ENA
ENA
RW
ENA
v fs2
pl fs2-01
fs2
sd storage01-03 fs2-01
ENABLED ACTIVE
4197879
ENABLED ACTIVE
4197879
storage01 4197878 4197879
ROUND
CONCAT
0
c1t3d0
gen
RW
ENA
fs1
fs1-01
storage01-B0
storage01-04
fs1-02
storage02-01
2-23
ENABLED ACTIVE
4197879
storage02 4197879 4197879
CONCAT
0
c1t4d0
RW
ENA
v
pl
sd
pl
sd
ROUND
CONCAT
0
CONCAT
0
c1t3d0
c1t4d0
gen
RW
ENA
RW
ENA
ROUND
CONCAT
0
CONCAT
0
c1t3d0
c1t4d0
gen
RW
ENA
RW
ENA
fs3
fs3-01
storage01-02
fs3-02
storage02-03
fs3
fs3-01
fs3
fs3-02
ENABLED ACTIVE
ENABLED ACTIVE
storage01 8395757
ENABLED ACTIVE
storage02 8395758
4197879
4197879
4197879
4197879
4197879
v fs4
pl fs4-01
sd storage01-01
pl fs4-02
sd storage02-04
bash-2.03#
fs4
fs4-01
fs4
fs4-02
ENABLED ACTIVE
4197879
ENABLED ACTIVE
4197879
storage01 12593636 4197879
ENABLED ACTIVE
4197879
storage02 12593637 4197879
partition> print
Current partition table (original):
Total disk cylinders available: 4924 + 2 (reserved cylinders)
Part
Tag
0 unassigned
1 unassigned
2
backup
3 unassigned
4 unassigned
5 unassigned
6
7
-
Flag
wm
wm
wu
wm
wm
wm
wu
wu
Cylinders
0
0
0 - 4923
0
0
0
0 - 4923
4923 - 4923
2-24
Size
0
0
8.43GB
0
0
0
8.43GB
1.75MB
Blocks
(0/0/0)
0
(0/0/0)
0
(4924/0/0) 17682084
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(4924/0/0) 17682084 <-- Public
(1/0/0)
3591 <-- Private
Flag
wm
wm
wu
wu
wu
wm
wm
wm
2.
bash-2.03#
bash-2.03#
bash-2.03#
bash-2.03#
vxplex
vxplex
vxplex
vxplex
-o
-o
-o
-o
Cylinders
0
0
0 - 4923
0 0
2 - 4923
0
0
0
Size
0
0
8.43GB
1.75MB
8.43GB
0
0
0
Blocks
(0/0/0)
0
(0/0/0)
0
(4924/0/0) 17682084
(1/0/0)
3591 <-- Private
(4922/0/0) 17674902 <-- Public
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
dis
dis
dis
dis
fs1-02
fs2-02
fs3-02
fs4-02
Power user Alternatively, for disks with multiple mirrors, the vxplex
command can be looped:
bash-2.03# for i in 1 2 3 4
> do
> vxplex -o rm dis fs$i-02
> done
3.
bash-2.03#
DG NAME
DM NAME
RV NAME
RL NAME
V NAME
PL NAME
SD NAME
SV NAME
DC NAME
SP NAME
Use the vxprint command to verify that all mirrors are detached:
MINORS
PRIVLEN
STATE
STATE
STATE
STATE
DISKOFFS
NVOLLAYR
GROUP-ID
PUBLEN
PRIMARY
REM_HOST
LENGTH
LENGTH
LENGTH
LENGTH
STATE
DATAVOLS
REM_DG
READPOL
LAYOUT
[COL/]OFF
[COL/]OFF
SRL
REM_RLNK
PREFPLEX
NCOL/WID
DEVICE
AM/NM
dg storagedg
default
default
127000
1019688341.1137.lowtide
dm storage01
dm storage02
c1t3d0s2
c1t4d0s2
sliced
sliced
3590
3590
17678493 17674902 -
v
pl
sd
sd
fs1
fs1-01
fs1-01
ENABLED ACTIVE
4197879
ENABLED ACTIVE
4197879
storage01 17678492 1
storage01 0
4197878
fs1
fs1-01
storage01-B0
storage01-04
ROUND
CONCAT
0
1
c1t3d0
c1t3d0
UTYPE
MODE
MODE
MODE
gen
RW
ENA
ENA
2-25
ENABLED ACTIVE
4197879
ENABLED ACTIVE
4197879
storage01 4197878 4197879
ROUND
CONCAT
0
c1t3d0
gen
RW
ENA
v fs3
pl fs3-01
fs3
sd storage01-02 fs3-01
ENABLED ACTIVE
4197879
ENABLED ACTIVE
4197879
storage01 8395757 4197879
ROUND
CONCAT
0
c1t3d0
gen
RW
ENA
v fs4
pl fs4-01
fs4
sd storage01-01 fs4-01
ENABLED ACTIVE
4197879 ROUND
ENABLED ACTIVE
4197879 CONCAT
storage01 12593636 4197879 0
c1t3d0
gen
RW
ENA
Notice that the -02 plexes are missing from the vxprint output for
these volumes. This is a clear indication that the mirrors no longer
exist. Also, note the subdisk numbers for the surviving plex of each
volume. This information is used in the next step of the
unencapsulation process.
4.
2-26
Flag
wm
wm
wu
wm
wm
wm
wu
wu
Cylinders
0 - 1168
0
0 - 4923
0
0
0
0 - 4923
4923 - 4923
Size
2.00GB
0
8.43GB
0
0
0
8.43GB
1.75MB
Blocks
(1169/0/0) 4197879
(0/0/0)
0
(4924/0/0) 17682084
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(4924/0/0) 17682084
(1/0/0)
3591
Flag
wm
wm
wu
wm
wm
wm
wu
wu
5.
Cylinders
0 - 1168
1169 - 2337
0 - 4923
2338 - 3506
3507 - 4675
0
0 - 4923
4923 - 4923
Size
2.00GB
2.00GB
8.43GB
2.00GB
2.00GB
0
8.43GB
1.75MB
Blocks
(1169/0/0) 4197879
(1169/0/0) 4197879
(4924/0/0) 17682084
(1169/0/0) 4197879
(1169/0/0) 4197879
(0/0/0)
0
(4924/0/0) 17682084
(1/0/0)
3591
bash-2.03# df -k
Filesystem
kbytes
used
avail capacity
/dev/vx/dsk/rootvol 7670973 1646148 5948116
22%
/proc
0
0
0
0%
fd
0
0
0
0%
mnttab
0
0
0
0%
swap
1174480
16 1174464
1%
swap
1174496
32 1174464
1%
/dev/vx/dsk/storagedg/fs2
2055705
2073 1991961
1%
/dev/vx/dsk/storagedg/fs1
2055705
2073 1991961
1%
/dev/vx/dsk/storagedg/fs3
2055705
2073 1991961
1%
/dev/vx/dsk/storagedg/fs4
2055705
2073 1991961
1%
bash-2.03#
bash-2.03#
bash-2.03#
bash-2.03#
umount
umount
umount
umount
Mounted on
/
/proc
/dev/fd
/etc/mnttab
/var/run
/tmp
/fs2
/fs1
/fs3
/fs4
/fs1
/fs2
/fs3
/fs4
2-27
kbytes
used
avail capacity
7670973 1646148 5948116
22%
0
0
0
0%
0
0
0
0%
0
0
0
0%
1176080
16 1176064
1%
1176096
32 1176064
1%
Mounted on
/
/proc
/dev/fd
/etc/mnttab
/var/run
/tmp
6.
7.
#device
device
mount
FS
fsck
#to mount
to fsck
point
type
pass
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr
ufs
1
fd
/dev/fd fd
no
/proc
/proc
proc
no
/dev/vx/dsk/swapvol
swap
no
/dev/vx/dsk/rootvol
/dev/vx/rdsk/rootvol
/
ufs
swap
/tmp
tmpfs
yes
#
# Storage
#
/dev/dsk/c1t3d0s0
/dev/rdsk/c1t3d0s0
/fs1
ufs
/dev/dsk/c1t3d0s1
/dev/rdsk/c1t3d0s1
/fs2
ufs
/dev/dsk/c1t3d0s3
/dev/rdsk/c1t3d0s3
/fs3
ufs
/dev/dsk/c1t3d0s4
/dev/rdsk/c1t3d0s4
/fs4
ufs
#NOTE: volume rootvol (/) encapsulated partition c1t0d0s0
#NOTE: volume swapvol (swap) encapsulated partition c1t0d0s1
8.
mount
mount
at boot options
yes
no
logging
1
1
1
1
yes
yes
yes
yes
logging
logging
logging
logging
bash-2.03# mountall
bash-2.03# df -k
Filesystem
/dev/vx/dsk/rootvol
/proc
fd
mnttab
swap
swap
/dev/dsk/c1t3d0s1
/dev/dsk/c1t3d0s3
/dev/dsk/c1t3d0s4
/dev/dsk/c1t3d0s0
kbytes
used
avail capacity Mounted on
7670973 1646148 5948116
22%
/
0
0
0
0%
/proc
0
0
0
0%
/dev/fd
0
0
0
0%
/etc/mnttab
1174552
16 1174536
1%
/var/run
1174568
32 1174536
1%
/tmp
2055705
2073 1991961
1%
/fs2
2055705
2073 1991961
1%
/fs3
2055705
2073 1991961
1%
/fs4
2055705
2073 1991961
1%
/fs1
2-28
vxedit
vxedit
vxedit
vxedit
-r
-r
-r
-r
rm
rm
rm
rm
fs1
fs2
fs3
fs4
MINORS
PRIVLEN
STATE
STATE
STATE
STATE
DISKOFFS
NVOLLAYR
GROUP-ID
PUBLEN
PRIMARY
REM_HOST
LENGTH
LENGTH
LENGTH
LENGTH
STATE
DATAVOLS
REM_DG
READPOL
LAYOUT
[COL/]OFF
[COL/]OFF
SRL
REM_RLNK
PREFPLEX
NCOL/WID
DEVICE
AM/NM
dg storagedg
default
default
127000
1019688341.1137.lowtide
dm storage01
dm storage02
c1t3d0s2
c1t4d0s2
sliced
sliced
3590
3590
17678493 17674902 -
UTYPE
MODE
MODE
MODE
DISK
rootdisk
storage02
rootmirror
GROUP
rootdg
storagedg
rootdg
STATUS
online
error
error
online
online
error
error
error
error
error
online
online
online
The vxdisk list output shows that c1t3d0 was removed from
VxVM software control.
2-29
Flag
wm
wm
wu
wm
wm
wm
wu
wu
Cylinders
0 - 1168
1169 - 2337
0 - 4923
2338 - 3506
3507 - 4675
0
0
0
Size
2.00GB
2.00GB
8.43GB
2.00GB
2.00GB
0
0
0
Blocks
(1169/0/0) 4197879
(1169/0/0) 4197879
(4924/0/0) 17682084
(1169/0/0) 4197879
(1169/0/0) 4197879
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
2-30
rootvol
Overlay PartitionSlice 0 - /
/ (0)
and
Slice 2
Overlay Partition Slice 1 -
Slice 2
swap
Free Space
swap
(1)
Slice 3
Public Region
swapvol
Mirror Disk
rootvol
Slice 4 Private Region
Slice 3 Public
Overlay Partition -
(0)
Slice 2
Region
Overlay Partition -
swap (1)
Figure 2-2
swapvol
2-31
Boot Disk
Slice 0 -
Slice 1 -
swap
Slice 3 -
/usr
Slice 4 -
/var
Slice 2
Free Space
/(0)
Overlay Partition - swap(1)
Overlay Partition -
/usr(3)
Overlay Partition - /var(4)
Overlay Partition -
rootvol
swapvol
Slice 2
and Slice 6
Public
Region
Mirror Disk
/ (0)
Overlay Partition - swap (1)
Overlay Partition - /usr (6)
Overlay Partition - /var (7)
Overlay Partition -
Slice 4
Public Region
Figure 2-3
rootvol
swapvol
Slice 2
2-32
Volume Restrictions
The rootvol, swapvol, and usr volumes have restrictions that other
encapsulated volumes do not have. These restrictions are:
The rootvol, swapvol, and usr volumes must have the following
specific minor numbers:
rootvol = 0
swapvol = 2
usr = 3
The rootvol, swapvol, usr, and var volumes use restricted mirrors
that have overlay partitions created for them. Overlay partitions
occupy the same disk blocks as the restricted mirror and are used to
boot the system prior to the availability of the vxconfigd daemon.
The rootvol, swapvol, usr, var, and opt volumes cannot be grown,
spanned or occupy a plex that has multiple non-contiguous
subdisks. All data associated with encapsulated system partitions
must reside in contiguous blocks of space.
When mirroring the boot disk, the mirror disk must be large enough
to hold all plexes on that disk or mirroring fails for one or more
volumes on the encapsulated boot disk.
The rootvol, swapvol, and usr volumes cannot have DRL attached
to their volumes.
2-33
2-34
FS
type
fsck
pass
mount
mount
at boot options
ufs
/
-
yes
no
ufs
no
logging
Pre-Encapsulation df -k Command
A df -k command delineates the example systems mounted file systems.
At this time, this server does not have any application or data file system
configured.
bash-2.03# df -k
Filesystem
/dev/dsk/c1t0d0s0
/proc
fd
mnttab
swap
swap
kbytes
used
avail capacity
7670973 1536449 6057815
21%
0
0
0
0%
0
0
0
0%
0
0
0
0%
1209520
16 1209504
1%
1209520
16 1209504
1%
Mounted on
/
/proc
/dev/fd
/etc/mnttab
/var/run
/tmp
2-35
Mount Directory
/
In this example, the space problem was rectified by reducing the size of
the swap partition, leaving sufficient unpartitioned free space for use by
the encapsulation process. Additional swap space can be configured using
swap files to supplement the reduced swap partition size. The corrected
partition map now shows unallocated space.
bash-2.03# prtvtoc /dev/rdsk/c1t0d0s2
* /dev/rdsk/c1t0d0s2 partition map
*
* Dimensions:
*
512 bytes/sector
*
133 sectors/track
*
27 tracks/cylinder
*
3591 sectors/cylinder
*
4926 cylinders
2-36
Last
Sector
15581348
16637102
17682083
Mount Directory
2-37
mount
mount
at boot options
yes
no
logging
Post-Encapsulation df -k Command
The following example of the df -k command shows that / is mounted
using the new encapsulated root volume.
bash-2.03# df -k
Filesystem
/dev/vx/dsk/rootvol
/proc
fd
mnttab
swap
swap
2-38
kbytes
used
avail capacity
7670973 1646089 5948175
22%
0
0
0
0%
0
0
0
0%
0
0
0
0%
1175352
16 1175336
1%
1175360
24 1175336
1%
Mounted on
/
/proc
/dev/fd
/etc/mnttab
/var/run
/tmp
swaplo blocks
free
16 1052144 1052144
2-39
3
5
14
15
01
00
01
01
15584940
0
0
15581349
2097144
17682084
17682084
3591
17682083
17682083
17682083
15584939
<-<-<-<--
Flag
wm
wu
wm
wu
wu
wm
wm
wm
Cylinders
0 - 4338
4340 - 4923
0 - 4923
0 - 4923
4339 - 4339
0
0
0
Size
7.43GB
1024.00MB
8.43GB
8.43GB
1.75MB
0
0
0
Blocks
(4339/0/0) 15581349
(584/0/0)
2097144
(4924/0/0) 17682084
(4924/0/0) 17682084
(1/0/0)
3591
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
<-- Overlay
<-- Overlay
<-- Public
<-- Private
NAME
NAME
NAME
NAME
NAME
NAME
NAME
2-40
NCONFIG
DEVICE
RLINK_CNT
RVG
RVG
VOLUME
PLEX
NLOG
TYPE
KSTATE
KSTATE
KSTATE
KSTATE
DISK
MINORS
PRIVLEN
STATE
STATE
STATE
STATE
DISKOFFS
GROUP-ID
PUBLEN
PRIMARY
REM_HOST
LENGTH
LENGTH
LENGTH
STATE
DATAVOLS
REM_DG
READPOL
LAYOUT
[COL/]OFF
SRL
REM_RLNK
PREFPLEX UTYPE
NCOL/WID MODE
DEVICE
MODE
PLEX
PARENTVOL
SNAPVOL
VOLNAME
LOGVOL
DCO
NVOLLAYR LENGTH
[COL/]OFF AM/NM
dg rootdg
default
default
1019673916.1025.lowtide
dm rootdisk
c1t0d0s2
sliced
3590
17682083 -
MODE
sd rootdiskPriv -
PRIVATE
c1t0d0
ENA
v
pl
sd
sd
ROUND
CONCAT
0
1
c1t0d0
c1t0d0
root
RW
ENA
ENA
ROUND
CONCAT
0
c1t0d0
swap
RW
ENA
rootvol
rootvol-01
rootdisk-B0
rootdisk-02
rootvol
rootvol-01
rootvol-01
ENABLED
ENABLED
rootdisk
rootdisk
ACTIVE
ACTIVE
15581348
0
15581349
15581349
1
15581348
v swapvol
pl swapvol-01
sd rootdisk-01
swapvol
swapvol-01
ENABLED ACTIVE
2097144
ENABLED ACTIVE
2097144
rootdisk 15584939 2097144
default
default
MINORS
PRIVLEN
STATE
STATE
STATE
STATE
DISKOFFS
NVOLLAYR
GROUP-ID
PUBLEN
PRIMARY
REM_HOST
LENGTH
LENGTH
LENGTH
LENGTH
1019673916.1025.lowtide
STATE
DATAVOLS
REM_DG
READPOL
LAYOUT
[COL/]OFF
[COL/]OFF
SRL
REM_RLNK
PREFPLEX
NCOL/WID
DEVICE
AM/NM
UTYPE
MODE
MODE
MODE
2-41
c1t0d0s2
c1t22d0s2
sliced
sliced
3590
3590
17678493 17674902 -
v
pl
sd
sd
pl
sd
rootvol
rootvol-01
rootvol
rootdisk-B0 rootvol-01
rootdisk-02 rootvol-01
rootvol-02
rootvol
rootmirror-01 rootvol-02
ENABLED ACTIVE
ENABLED ACTIVE
rootdisk 17678492
rootdisk 0
ENABLED ACTIVE
rootmirror 0
15581349
15581349
1
15581348
15581349
15581349
ROUND
CONCAT
0
1
CONCAT
0
c1t0d0
c1t0d0
c1t22d0
root
RW
ENA
ENA
RW
ENA
v
pl
sd
pl
sd
swapvol
swapvol-01
swapvol
rootdisk-01 swapvol-01
swapvol-02
swapvol
rootmirror-02 swapvol-02
ENABLED ACTIVE
1052163 ROUND
ENABLED ACTIVE
1052163 CONCAT
rootdisk 15584939 1052163 0
ENABLED ACTIVE
1052163 CONCAT
rootmirror 15581349 1052163 0
c1t0d0
c1t22d0
swap
RW
ENA
RW
ENA
DISK
rootdisk
rootmirror
GROUP
rootdg
rootdg
STATUS
online
error
error
error
error
error
error
error
error
online
online
online
2-42
Last
Sector
15581348
16637102
17682083
17682083
17682083
Mount Directory
2-43
Last
Sector
15588530
16640693
17682083
3590
17682083
Mount Directory
Flag
wm
wu
wm
wu
wu
wm
wm
wm
Cylinders
0 - 4338
4340 - 4632
0 - 4923
0 - 4923
4923 - 4923
0
0
0
Size
7.43GB
513.75MB
8.43GB
8.43GB
1.75MB
0
0
0
Blocks
(4339/0/0) 15581349
(293/0/0)
1052163
(4924/0/0) 17682084
(4924/0/0) 17682084
(1/0/0)
3591
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
partition>
2-44
Tag
root
swap
backup
Flag
wm
wu
wm
Cylinders
2 - 4340
4341 - 4633
0 - 4923
Size
7.43GB
513.75MB
8.43GB
Blocks
(4339/0/0) 15581349
(293/0/0)
1052163
(4924/0/0) 17682084
wu
wu
wm
wm
wm
0 0
2 - 4923
0
0
0
1.75MB
8.43GB
0
0
0
(1/0/0)
3591
(4922/0/0) 17674902
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
File List
A directory list of files specific to c1t0d0 is shown in the following
example.
bash-2.03# pwd
/etc/vx/reconfig.d/disk.d/c1t0d0
bash-2.03# ls -las
total 12
2 drwxr-xr-x
2
2 drwxr-xr-x
4
2 -rw-r--r-1
2 -rw-r--r-1
2 -rw-r--r-1
2 -rw-r--r-1
root
root
root
root
root
root
other
other
other
other
other
other
512
512
9
827
7
452
Apr
Apr
Apr
Apr
Apr
Apr
26
24
26
26
26
26
19:17
15:29
19:17
19:17
19:17
19:17
.
..
dmname
newpart
primary_node
vtoc
2-45
2-46
2-47
Note The Sun Enterprise Services best practices for boot disk
management are based on guidelines from the Sun BluePrints OnLine
document Toward a Reference Configuration for VxVM Managed Boot Disks,
part number 806-6197-10.
2-48
2-49
Ensure that all mirrors of the boot disk are bootable and that a device
alias is present in the OpenBoot programmable read-only memory
(PROM).
/dev/dsk/c0t0d0 rootdisk
/dev/dsk/c1t1d0 rootmirror
/ Slice 0
swap Slice 1
/var Slice 6
Save the boot disks vtoc to a file for later reference, if needed. Type
the following:
# mkdir /var/tmp/sysdocs
# prtvtoc /dev/rdsk/c0t0d0s2 > /var/tmp/sysdocs/rootdisk_prevm.vtoc
2.
2-50
# /etc/vx/bin/vxdisksetup -i c1t1d0
# vxdg -g rootdg adddisk rootmirror=c1t1d0
4.
Attach the mirrors in the order of the slices on the encapsulated boot
disk.
Note If the boot disk was sliced with swap as the first slice, reverse the
order of mirroring for the / and swap slices.
Perform the following steps:
a.
# /etc/vx/bin/vxrootmir rootmirror&
b.
c.
PROGRESS
0/4197879/3542680 PLXATT rootvol rootvol-02
0/4197879/1047304 PLXATT var var-02
PROGRESS
0/4197879/3610384 PLXATT rootvol rootvol-02
0/4197879/1115256 PLXATT var var-02
vxplex
vxplex
vxplex
vxedit
2-51
7.
Initialize the rootdisk and add it back to the rootdg disk group:
# /etc/vx/bin/vxdisksetup -i c0t0d0
# vxdg -g rootdg adddisk rootdisk=c0t0d0
8.
Attach the mirrors in the order of the slices on the encapsulated boot
disk. This is similar to the process outlined in Step 4.
Note If the boot disk was sliced with swap as the first slice, reverse the
order of mirroring for the / and swap slices.
Perform the following steps:
a.
# /etc/vx/bin/vxrootmir rootdisk&
b.
c.
2-52
Flag
0x00
Not Mountable
0x01
0x10
Tag
UNASSIGNED
0x00
BOOT
0x01
ROOT
0x02
SWAP
0x03
USR
0x04
BACKUP
0x05
STAND
0x06
VAR
0x07
HOME
0x08
ALTSCTR
0x09
CACHE
0x0a
0x15
0x14
2-53
default
1023554924.1025.lowtide
dm rootdisk
dm rootmirror
sliced
sliced
3590
3590
17678493 17674902 -
c1t0d0s2
c1t1d0s2
v
pl
sd
sd
pl
sd
rootvol
rootvol-01
rootvol
rootdisk-B0 rootvol-01
rootdisk-02 rootvol-01
rootvol-02
rootvol
rootmirror-01 rootvol-02
ENABLED ACTIVE
ENABLED ACTIVE
rootdisk 17678492
rootdisk 0
ENABLED ACTIVE
rootmirror 0
v
pl
sd
pl
sd
swapvol
swapvol-01
swapvol
rootdisk-01 swapvol-01
swapvol-02
swapvol
rootmirror-02 swapvol-02
ENABLED ACTIVE
1052163
ENABLED ACTIVE
1052163
rootdisk 4197878 1052163
ENABLED ACTIVE
1052163
rootmirror 4197879 1052163
v
pl
sd
pl
sd
var
var-01
var
rootdisk-03 var-01
var-02
var
rootmirror-03 var-02
ENABLED ACTIVE
4197879 ROUND
ENABLED ACTIVE
4197879 CONCAT
rootdisk 9447920 4197879 0
ENABLED ACTIVE
4197879 CONCAT
rootmirror 5250042 4197879 0
#
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
4197879
4197879
1
4197878
4197879
4197879
ROUND
CONCAT
0
1
CONCAT
0
c1t0d0
c1t0d0
c1t1d0
root
RW
ENA
ENA
RW
ENA
ROUND
CONCAT
0
CONCAT
0
c1t0d0
c1t1d0
swap
RW
ENA
RW
ENA
fsgen
RW
c1t0d0
ENA
RW
c1t1d0
ENA
prtvtoc /dev/rdsk/c1t1d0s2
/dev/rdsk/c1t1d0s2 partition map
Dimensions:
512 bytes/sector
133 sectors/track
27 tracks/cylinder
3591 sectors/cylinder
4926 cylinders
4924 accessible cylinders
Flags:
1: unmountable
10: read-only
Unallocated space:
First
Sector
Last
Sector
Count
Sector
3591
3591
7181
4205061 4290769417
7181
17682084 4281490273
4205060
9455103
8226981 17682083
2-54
Tag
2
3
5
15
14
Flags
00
01
00
01
01
First
Sector
Last
Sector
Count
Sector
7182
4197879
4205060
4205061
1052163
5257223
0 17682084 17682083
0
3591
3590
7182 17674902 17682083
Mount Directory
Note In this example, the capture was modified to show the /var slice
as not built. This was done to help show how to use the vxmksdpart
command to create overlay partitions. The VxVM software version 3.2
creates overlay partitions for /, swap and /var, and thus you do not need
to execute any additional commands. If /opt or other non-system
partitions are defined on the boot disk, use vxmksdpart to define those
partitions.
In this example, an overlay partition must be built for the /var slice.
The subdisk information listed in Table 2-3 is needed as input to the
vxmksdpart command.
Table 2-3 Required subdisk Information
Subdisk
Slice
Tag
Flag
rootdisk-03
0x07
0x00
rootmirror-03
0x07
0x00
This example output from the prtctoc command now shows the
/var partition as an overlay partition.
#
*
*
*
*
*
*
*
*
*
*
*
*
*
prtvtoc /dev/rdsk/c1t1d0s2
/dev/rdsk/c1t1d0s2 partition map
Dimensions:
512 bytes/sector
133 sectors/track
27 tracks/cylinder
3591 sectors/cylinder
4926 cylinders
4924 accessible cylinders
Flags:
1: unmountable
10: read-only
2-55
11. Create the OpenBoot PROM device aliases, if needed. Build the
aliases using the eeprom commands nvedit or nvalias at the
OpenBoot PROM prompt.
Note Depending on the version of VxVM software installed, this step
might not be necessary.
2-56
bash-2.03# df -n
/
/proc
/dev/fd
/etc/mnttab
/var/run
/tmp
Unmount all file systems that are under the control of the VxVM
software except the encapsulated boot disk file systems (/, usr, var,
and opt). Type the following:
:
:
:
:
:
:
2.
ufs
proc
fd
mntfs
tmpfs
tmpfs
1019673916.1025.lowtide
2-57
dm rootdisk
dm rootmirror
c1t0d0s2
c1t22d0s2
sliced
sliced
3590
3590
17678493 17674902 -
v
pl
sd
sd
pl
sd
rootvol
rootvol-01
rootvol
rootdisk-B0 rootvol-01
rootdisk-02 rootvol-01
rootvol-02
rootvol
rootmirror-01 rootvol-02
ENABLED ACTIVE
ENABLED ACTIVE
rootdisk 17678492
rootdisk 0
ENABLED ACTIVE
rootmirror 0
ROUND
CONCAT
0
1
CONCAT
0
c1t0d0
c1t0d0
c1t22d0
root
RW
ENA
ENA
RW
ENA
v
pl
sd
pl
sd
swapvol
swapvol-01
swapvol
rootdisk-01 swapvol-01
swapvol-02
swapvol
rootmirror-02 swapvol-02
ENABLED ACTIVE
1052163 ROUND
ENABLED ACTIVE
1052163 CONCAT
rootdisk 15584939 1052163 0
ENABLED ACTIVE
1052163 CONCAT
rootmirror 15581349 1052163 0
c1t0d0
c1t22d0
swap
RW
ENA
RW
ENA
3.
15581349
15581349
1
15581348
15581349
15581349
4.
Detach all plexes associated with the rootmirror disk. Type the
following:
bash-2.03# vxprint -qhtg rootdg -s | grep -i rootmirror | awk {print $3}> /rmsub.plex
bash-2.03# more /rmsub.plex
rootvol-02
swapvol-02
bash-2.03# for i in cat /rmsub.plex
> do
> vxplex -g rootdg dis $i
> vxprint -qhtg rootdg -p $i
> done
pl rootvol-02
sd rootmirror-01 rootvol-02
pl swapvol-02
sd rootmirror-02 swapvol-02
bash-2.03#
c1t22d0
c1t22d0
RW
ENA
RW
ENA
2-58
Verify that all rootmirror plexes were detached. Use the vxprint
command as follows:
1019673916.1025.lowtide
dm rootdisk
dm rootmirror
3590
3590
17678493 17674902 -
c1t0d0s2
c1t22d0s2
sliced
sliced
pl rootvol-02
sd rootmirror-01 rootvol-02
DISABLED rootmirror 0
15581349 CONCAT
15581349 0
c1t22d0
RW
ENA
pl swapvol-02
sd rootmirror-02 swapvol-02
c1t22d0
RW
ENA
v
pl
sd
sd
ROUND
CONCAT
0
1
c1t0d0
c1t0d0
root
RW
ENA
ENA
ROUND
CONCAT
0
c1t0d0
swap
RW
ENA
rootvol
rootvol-01
rootdisk-B0
rootdisk-02
rootvol
rootvol-01
rootvol-01
ENABLED
ENABLED
rootdisk
rootdisk
ACTIVE
ACTIVE
17678492
0
15581349
15581349
1
15581348
v swapvol
pl swapvol-01
sd rootdisk-01
swapvol
swapvol-01
ENABLED ACTIVE
1052163
ENABLED ACTIVE
1052163
rootdisk 15584939 1052163
bash-2.03# /etc/vx/bin/vxunroot
This operation will convert the following file systems from
volumes to regular partitions: root swap usr var opt home
Replace volume rootvol with c1t0d0s0.
This operation will require a system reboot. If you choose to
continue with this operation, system configuration will be updated
to discontinue use of the volume manager for your root and swap
devices.
Do you wish to do this now [y,n,q,?] (default: y) y
Restoring kernel configuration...
A shutdown is now required to install the new kernel.
You can choose to shutdown now, or you can shutdown later, at your
convenience.
Do you wish to shutdown now [y,n,q,?] (default: n) n
Please shutdown before you perform any additional volume manager
or disk reconfiguration. To shutdown your system cd to / and type
shutdown -g0 -y -i6
bash-2.03# init 6
2-59
bash-2.03# df -k
Filesystem
/dev/dsk/c1t0d0s0
/proc
fd
mnttab
swap
swap
bash-2.03# swap -l
swapfile
/dev/dsk/c1t0d0s1
After the reboot completes, check the devices used for the / and
swap partitions. Verify that these partitions use non-VxVM software
objects:
kbytes
used
avail capacity
7670973 1697985 5896279
23%
0
0
0
0%
0
0
0
0%
0
0
0
0%
655784
16 655768
1%
655792
24 655768
1%
Mounted on
/
/proc
/dev/fd
/etc/mnttab
/var/run
/tmp
bash-2.03# df -n
/
/proc
/dev/fd
/etc/mnttab
/var/run
/tmp
Unmount all the file systems that are under the control of the VxVM
software, except the encapsulated boot disk file systems (/, usr, var,
and opt). Type the following:
:
:
:
:
:
:
2.
ufs
proc
fd
mntfs
tmpfs
tmpfs
3.
2-60
Detach all plexes associated with the rootmirror disk. Use the
following script:
bash-2.03# vxprint -qhtg rootdg -s | grep -i rootmirror | awk {print $3}> /rmsub.plex
bash-2.03# for i in cat ./rmsub.plex
> do
> vxplex -g rootdg -o rm dis $i
> done
5.
Verify that all rootmirror plexes were detached using the vxprint
command as follows:
1019673916.1025.lowtide
dm rootdisk
dm rootmirror
c1t0d0s2
c1t22d0s2
sliced
sliced
3590
3590
17678493 17674902 -
v
pl
sd
sd
rootvol
rootvol-01
rootdisk-B0
rootdisk-02
rootvol
rootvol-01
rootvol-01
ENABLED
ENABLED
rootdisk
rootdisk
ACTIVE
ACTIVE
17678492
0
15581349
15581349
1
15581348
v swapvol
pl swapvol-01
sd rootdisk-01
swapvol
swapvol-01
ENABLED ACTIVE
1052163
ENABLED ACTIVE
1052163
rootdisk 15584939 1052163
ROUND
CONCAT
0
1
c1t0d0
c1t0d0
root
RW
ENA
ENA
ROUND
CONCAT
0
c1t0d0
swap
RW
ENA
bash-2.03# rm /etc/vx/reconfig.d/state.d/root-done
Removal of this file tells the VxVM software that the root disk is
no longer encapsulated.
b.
Edit the /etc/system and /etc/vfstab files back to their preencapsulation state. Be sure to back up each file prior to editing.
Perform the following tasks:
2-61
#device
device
mount
#to mount
to fsck
point
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr
fd
/dev/fd fd
no
/proc
/proc
proc
no
/dev/dsk/c1t0d0s1
swap
/dev/dsk/c1t0d0s0
/dev/rdsk/c1t0d0s0
swap
/tmp
tmpfs
yes
c.
FS
type
fsck
pass
mount
mount
at boot options
ufs
/
-
yes
no
ufs
no
logging
Note This process is similar to the one used to restore partitions for data
disk unencapsulation.
7.
8.
9.
1019673916.1025.lowtide
dm rootdisk
dm rootmirror
3590
3590
17678493 17674902 -
c1t0d0s2
c1t22d0s2
sliced
sliced
10. Remove the boot disk from VxVM software control. Type the
following:
bash-2.03# vxdg -g rootdg rmdisk rootdisk
2-62
1019673916.1025.lowtide
dm rootmirror
3590
17674902 -
c1t22d0s2
sliced
12. Delete public and private region partitions by using the format
utility. Type the following:
partition> print
Current partition table (unnamed):
Total disk cylinders available: 4924 + 2 (reserved cylinders)
Part
Tag
0
root
1
swap
2
backup
3 unassigned
4 unassigned
5 unassigned
6 unassigned
7 unassigned
Flag
wm
wu
wm
wu
wu
wm
wm
wm
Cylinders
0 - 4338
4340 - 4632
0 - 4923
0
0
0
0
0
Size
7.43GB
513.75MB
8.43GB
0
0
0
0
0
Blocks
(4339/0/0) 15581349
(293/0/0)
1052163
(4924/0/0) 17682084
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
13. Run the vxdctl enable command to update the VxVM software
view of installed disks. Type the following:
bash-2.03# vxdctl enable
bash-2.03# vxdisk list
DEVICE
TYPE
c1t0d0s2
sliced
c1t1d0s2
sliced
c1t2d0s2
sliced
c1t3d0s2
sliced
c1t4d0s2
sliced
c1t5d0s2
sliced
c1t6d0s2
sliced
c1t16d0s2
sliced
c1t17d0s2
sliced
c1t18d0s2
sliced
c1t19d0s2
sliced
c1t20d0s2
sliced
c1t21d0s2
sliced
c1t22d0s2
sliced
DISK
rootmirror
GROUP
rootdg
STATUS
error
error
error
online
online
online
online invalid
error
error
error
error
online
online
online
2-63
2.
3.
After the system is booted from the CD-ROM, set the terminal type
so that the vi utility works correctly. Type the following:
ok boot cdrom -s
# TERM=vt100;export TERM
# fsck -y /dev/rdsk/c#t#d#s0
5.
6.
# mount /dev/dsk/c#t#d#s0 /a
7.
# cp /a/etc/system /a/etc/system.orig
8.
# vi /a/etc/system
2-64
rootdev:/pseudo/vxio@0:0
set vxio:vol_rootdev_is_volume=1
Note If the disk is re-encapsulated, these lines are added correctly by the
process, so there is no harm done by removing them.
10. Make a backup of /a/etc/vfstab. Type the following:
# cp /a/etc/vfstab /a/etc/vfstab.orig
11. Edit the vfstab file back to its original state, pointing /, swap, /usr,
and /var to hard partitions on the disk, such as /dev/dsk and
/dev/rdsk, rather than to /dev/vx/ entries. Type the following:
# vi /a/etc/vfstab
12. Temporarily comment out all other /dev/vx volumes from the
/a/etc/vfstab file by using the # character. This includes file
systems like /opt and /export, if they exist.
The original /etc/vfstab looks like the following, assuming root is
c0t0d0.
--------------------------------------------------------------------------/dev/vx/dsk/swapvol
swap
no /dev/vx/dsk/rootvol
/dev/vx/rdsk/rootvol /
ufs
1
no /dev/vx/dsk/usr
/dev/vx/rdsk/usr
/usr
ufs
1
no /dev/vx/dsk/var
/dev/vx/rdsk/var
/var
ufs
1
no /dev/vx/dsk/export
/dev/vx/rdsk/export
/export ufs
2
yes swap
/tmp
tmpfs
yes /dev/vx/dsk/datadg/somevol
/dev/vx/rdsk/datadg/somevol
/somevol
ufs
2 yes -
Once edited, the vfstab file should look like the following:
--------------------------------------------------------------------------/dev/dsk/c1t0d0s1
swap
no /dev/dsk/c1t0d0s0
/dev/rdsk/c0t0d0s0
/
ufs
1
no /dev/dsk/c1t0d0s5
/dev/rdsk/c0t0d0s5
/usr
ufs
1
no /dev/dsk/c1t0d0s6
/dev/rdsk/c0t0d0s6
/var
ufs
1
no #/dev/dsk/c1t0d0s7
/dev/rdsk/c0t0d0s7
/export ufs
2
yes swap
/tmp
tmpfs
yes #/dev/vx/dsk/datadg/somevol
/dev/vx/rdsk/datadg/somevol
/somevol
ufs
2 yes -
2-65
13. Make sure that the VxVM software does not start during the next
boot.
# touch /a/etc/vx/reconfig.d/state.d/install-db
This is important because if the root disk contains mirrors, and the
system boots, the mirrors are synced; this corrupts the changes just
made.
14. Remove the flag that tells the VxVM software that the root disk is
encapsulated.
# rm /a/etc/vx/reconfig.d/state.d/root-done
15. Reboot the system for changes to take effect. Type the following:
# reboot
rm /etc/vx/reconfig.d/state.d/install-db
vxiod set 10
vxconfigd -m disable
vxdctl enable
17. Remove the volumes that existed on the encapsulated boot disk.
These are generally rootvol, swapvol, usr, and var. This might also
include home, opt, or other non-standard root partitions. Use the
command vxprint -htg rootdg to list the volumes in rootdg
before removing them.
Then, for each volume, run the following command:
# /usr/sbin/vxedit -rf rm volume_name
18. Remove the rootdisk from the rootdg disk group. The disk name is
usually rootdisk. Type the following:
# /usr/sbin/vxdg -k rmdisk disk_name
2-66
b.
2-67
/dev/rdsk/c0t0d0s0
/
/dev/rdsk/c0t0d0s5
/usr
/dev/rdsk/c0t0d0s6
/var
/dev/rdsk/c0t0d0s7
/export
/tmp
/dev/vx/rdsk/datadg/somevol
swap
no ufs
1
no ufs
1
no ufs
1
no ufs
2
yes tmpfs
yes /somevol ufs 2 yes -
At this point the root disk is completely free of the VxVM software
control. The VxVM software daemons are started, and all system file
systems should be mounted.
2-68
2.
ok boot cdrom -s
3.
After the system is booted from the CD-ROM, set the terminal type
so that the vi utility works correctly.
# TERM=vt100;export TERM
Run the fsck utility on the root file system. Type the following:
# fsck -y /dev/rdsk/c#t#d#s0
5.
6.
# mount /dev/dsk/c#t#d#s0 /a
7.
# cp /a/etc/system /a/etc/system.orig
8.
# vi /a/etc/system
9.
**rootdev:/pseudo/vxio@0:0
**set vxio:vol_rootdev_is_volume=1
11. Edit the vfstab file back to its original state, pointing /, swap, /usr,
and /var to hard partitions on the disk, such as /dev/dsk and
/dev/rdsk, rather than to /dev/vx/ entries. Type the following:
# vi /a/etc/vfstab
12. Temporarily comment out all other /dev/vx volumes from the
/a/etc/vfstab file by using the # character. This includes file
systems like /opt and /export, if they exist.
2-69
/dev/vx/rdsk/datadg/somevol
/somevol
ufs
2 yes -
/dev/vx/rdsk/datadg/somevol
/somevol
ufs
2 yes -
13. Make sure the VxVM software does not start during the next boot.
Type the following:
# touch /a/etc/vx/reconfig.d/state.d/install-db
This is important because if the root disk contains mirrors and the
system boots, the mirrors are synced; this corrupts the changes just
made.
14. Remove the flag that tells the VxVM software that the root disk is
encapsulated.
# rm /a/etc/vx/reconfig.d/state.d/root-done
2-70
touch /etc/vx/reconfig.d/state.d/root-done
rm /etc/vx/reconfig.d/state.d/install-db
cp /a/etc/vfstab.orig /a/etc/vfstab
cp /a/etc/system.orig /a/etc/system
reboot
2-71
Data Disks
Data disks fail unencapsulation if the following is true:
If the data on the disk must be removed from the VxVM software control,
back up the data and restore it to a non-VxVM software disk. Data must
be restored because the encapsulated disks original mapping of partitions
to blocks within the public region changes when the disk is replaced and
synced. This prevents the vxmksdpart command from properly mapping
subdisks within the public region to physical partitions.
Boot Disks
The issues described in this section affect boot disk encapsulation.
2-72
2-73
The /, /usr, /var, and swap partitions plus /opt or /home The
partition scheme can change depending on:
Manual unencapsulation can be confusing if the original (preencapsulation) partition scheme is not known. Determining
where the original /, /usr, /var, and swap partitions were
located is easy. Output from the format utility delineates those
partitions. The confusing part is determining which of the
preserved system partitions (such as /opt and /home) is which
if the encapsulated boot disk has both.
Additionally, manual unencapsulation procedures must be
modified to reflect the following:
Note If the Sun Enterprise Services best practices boot disk management
processes are followed, the partitioning concerns described in
Encapsulated Disk Was Replaced on page 2-73 are eliminated.
2-74
Preparation
To prepare for this exercise:
Identify four disks in addition to the boot disk to use as mirror and
data disks.
Make sure that the boot disk has the /, swap, /usr, /var, and /opt
partitions.
If the boot disk is not configured this way, have the instructor
perform a re-flash installation on your system using the proper boot
disk configuration for this lab.
Ask your instructor for the location of the VxVM software packages,
patches, and supporting Solaris OE software.
2-75
Open a text editor such as vi and capture the following preencapsulation boot disk information:
The df -k output
3.
4.
b.
c.
d.
2-76
1.
2.
5.
6.
The df -k value
Mirror the encapsulated boot disk using Sun Enterprise Services best
practices procedure (see Examining Sun Enterprise Services Best
Practices for VxVM Software-Managed Boot Disks on page 2-48).
Assign the mirror disk a VxVM software disk name of rootmirror.
8.
b.
c.
/etc/vx/reconfig.d/state.d/root-done
_____________________________________________________
_____________________________________________________
/etc/vx/reconfig.d/state.d/install-db
_____________________________________________________
_____________________________________________________
/etc/vfstab.prevm
_____________________________________________________
_____________________________________________________
9.
After the boot disk is mirrored, use vxprint to capture the postmirror configuration. Copy this information to the
/bootdisk_capture file for use later in this lab.
2-77
2.
3.
How do you know, and what commands do you use to verify this?
_____________________________________________________________
_____________________________________________________________
_____________________________________________________________
_____________________________________________________________
4.
2-78
2.
b.
c.
2.
3.
2-79
5.
6.
7.
After the system reboots, re-mirror the boot disk using the Sun
Enterprise Services best practices procedure (see Examining Sun
Enterprise Services Best Practices for VxVM Software-Managed Boot
Disks on page 2-48). Assign the mirror disk a VxVM software disk
name of rootmirror.
Caution Do not continue the lab without re-mirroring the boot disk. The
next task requires that the boot disk be mirrored.
2.
3.
2-80
Create mount points for each of the partitions on the data disk and
verify that the new file systems successfully mounts.
5.
6.
Verify that the file systems mount from the /etc/vfstab file.
7.
8.
9.
10. Mirror the encapsulated data disk using a disk you identified for this
purpose and the vxdiskadm utility.
11. While the data disk is being mirrored, answer the following
questions:
a.
What are the differences between the pre- and postencapsulation partition configuration for this disk?
________________________________________________________
________________________________________________________
________________________________________________________
b.
c.
2-81
12. Wait for the mirror process to complete before proceeding to the next
task.
2.
3.
4.
5.
2-82
Once the unencapsulation successfully completes, contrast the preencapsulation and post-unencapsulation partition scheme of this
disk.
Are there any differences?
_____________________________________________________________
_____________________________________________________________
If yes, list them.
_____________________________________________________________
_____________________________________________________________
_____________________________________________________________
_____________________________________________________________
7.
Unmount and remove all references to the file systems on this disk
from the /etc/vfstab file.
2.
3.
4.
Create mount points for each of the partitions on the data disk, and
verify that the new file systems successfully mount.
5.
6.
Verify that the file systems mount from the /etc/vfstab file.
2-83
8.
Encapsulate this disk using the procedure in Encapsulating a NonConforming Disk on page 2-20.
2.
3.
Mirror the boot disk if it is not already mirrored using the Sun
Enterprise Services best practices procedure (see Examining Sun
Enterprise Services Best Practices for VxVM Software-Managed Boot
Disks on page 2-48).
2-84
Exercise Summary
Exercise Summary
!
?
Experiences
Interpretations
Conclusions
Applications
2-85
Task 1 Solutions
Complete the following steps:
1.
Open a text editor such as vi and capture the following preencapsulation boot disk information:
The df -k output
3.
4.
b.
c.
d.
2-86
1.
2.
5.
6.
The df -k value
7.
Mirror the encapsulated boot disk using Sun Enterprise Services best
practices procedure (see Examining Sun Enterprise Services Best
Practices for VxVM Software-Managed Boot Disks on page 2-48).
Assign the mirror disk a VxVM software disk name of rootmirror.
8.
There are two new disk partitions for the private and public regions. Additionally,
/opt was encapsulated into the disks public region and is no longer visible. The
/, swap, /usr, and /var partitions are still visible as overlay partitions.
b.
/etc/vx/reconfig.d/state.d/root-done
/etc/vx/reconfig.d/state.d/i/etc/vx/reconfig.d/sta
te.d/install-db
This file defines by its presence that vxinstall was not executed. It prevents the
VxVM software daemons from starting.
/etc/vfstab.prevm
This file holds a copy of the pre-boot disk encapsulation /etc/vfstab file
contents.
9.
After the boot disk is mirrored, use vxprint to capture the postmirror configuration. Copy this information to the
/bootdisk_capture file for use later in this lab.
2-87
Task 2 Solutions
Complete the following steps:
1.
2.
It should be.
3.
How do you know, and what commands do you use to verify this?
df -k
vxprint
mount
4.
2-88
Task 3 Solutions
Complete the following steps:
1.
2.
b.
c.
Task 4 Solutions
Complete the following steps:
1.
2.
It should be.
2-89
7.
After the system reboots, re-mirror the boot disk using the Sun
Enterprise Services best practices procedure (see Examining Sun
Enterprise Services Best Practices for VxVM Software-Managed Boot
Disks on page 2-48). Assign the mirror disk a VxVM software disk
name of rootmirror.
Caution Do not continue the lab without re-mirroring the boot disk. The
next task requires that the boot disk be mirrored.
Task 5 Solutions
Complete the following steps:
2-90
1.
2.
3.
4.
Create mount points for each of the partitions on the data disk and
verify that the new file systems successfully mounts.
5.
Verify that the file systems mount from the /etc/vfstab file.
7.
8.
9.
10. Mirror the encapsulated data disk using a disk you identified for this
purpose and the vxdiskadm utility.
11. While the data disk is being mirrored, answer the following
questions:
a.
What are the differences between the pre- and postencapsulation partition configuration for this disk?
The post-encapsulated disk has only partitions 6 and 7. The original partitions
were encapsulated in slice 6, the public region. Slice 7 is the private region.
b.
c.
One.
The /etc/vfstab file now uses the VxVM software volumes as devices to
mount and fsck. The original device information was saved as comments at the
end of the file.
12. Wait for the mirror process to complete before proceeding to the next
task.
2-91
Task 6 Solutions
Complete the following steps:
1.
2.
It should be.
3.
Once the unencapsulation successfully completes, contrast the preencapsulation and post-unencapsulation partition scheme of this
disk.
Are there any differences?
No.
If yes, list them.
There should not be any differences.
7.
2-92
Unmount and remove all references to the file systems on this disk
from the /etc/vfstab file.
Task 7 Solutions
Complete the following steps:
1.
2.
3.
4.
Create mount points for each of the partitions on the data disk, and
verify that the new file systems successfully mount.
5.
6.
Verify that the file systems mount from the /etc/vfstab file.
7.
8.
Encapsulate this disk using the procedure in Encapsulating a NonConforming Disk on page 2-20.
2-93
Module 3
Explain how DMP identifies disks in both pre- and post-version 3.2
of the VxVM software
Relevance
Relevance
!
?
3-2
How does DMP interface with the DDL function introduced in the
VxVM software version 3.2?
How does DMP interface with Sun StorEdge T3 storage arrays, and
how is this different than DMP support of the Sun StorEdge A5000
series of array storage subsystems?
Additional Resources
Additional Resources
Additional resources The following references provide additional
details on the topics discussed in this module:
3-3
I/O
Kernel
File System
VxVM software (vxio)
/dev/vx/dmp/c1t1d0s0
(DMP meta node)
DMP
/dev/dsk/c1t1d0s0
/dev/dsk/c2t1d0s0
Target Disk Driver
Target HBA Driver
Physical
Path 1
Figure 3-1
3-4
SD
H i ta c h i D a t a S y s te m s
Path 2
R E A D YW A R N I N G A L A R MP O W E R
Load Balancing
Load balancing is the function which attempts to maximize I/O
throughput by using the full bandwidth of all paths. Although the goal is
the same, load balancing is implemented differently depending on which
version of the VxVM software is used.
3-5
Conversely, DMP creates one metanode per LUN. That is, DMP identifies
LUNs and creates a metanode for each LUN. The result is that a disk with
multiple paths is seen as a single disk by the VxVM software.
3-6
In the following example, the same disks are managed by DMP, which
arbitrarily chooses one of the two paths and creates a single device entry.
To see the multiple paths to individual disks, use the vxdmpadm command.
bash-2.03# ls -las /dev/vx/rdmp/*t0d0s0
0 crw------1 root
other
74,
The following example shows output from the vxdisk list command to
illustrate how the VxVM software sees the same disk shown in the
previous examples.
bash-2.03# vxdisk list
DEVICE
TYPE
c1t0d0s2
sliced
c1t3d0s2
sliced
c1t4d0s2
sliced
c1t5d0s2
sliced
c1t6d0s2
sliced
c1t16d0s2
sliced
c1t18d0s2
sliced
c1t19d0s2
sliced
c1t22d0s2
sliced
DISK
rootdisk
rootmirror
GROUP
rootdg
rootdg
STATUS
online
error
online
online
error
error
error
error
online
3-7
3-8
grep
75
74
79
vx
1 vxio (VxVM 3.2t_p1.6 I/O driver)
1 vxdmp (VxVM 3.2t_p1.6: DMP Driver)
1 vxspec (VxVM 3.2t control/status driver)
One way to verify that the DMP driver is installed correctly and that it is
not corrupt is to compare the size of the DMP driver file to that of the
driver_OSversion, which is in the same directory. Both drivers should
be the same size as seen in this example. The /kernel/drv file holds the
32-bit drivers and /kernel/drv/sparcv9 holds the 64-bit driver.
bash-2.03# pwd
/kernel/drv
bash-2.03# ls -las vxdmp*
640 -rw-r--r-1 root
608 -rw-r--r-1 root
608 -rw-r--r-1 root
640 -rw-r--r-1 root
4 -rw-r--r-1 root
sys
sys
sys
sys
sys
314156
297920
300980
314156
1026
bash-2.03# pwd
/kernel/drv/sparcv9
bash-2.03# ls -las vxdmp*
800 -rw-r--r-1 root
768 -rw-r--r-1 root
800 -rw-r--r-1 root
sys
sys
sys
393968 Nov 21
380840 Aug 15
393968 Nov 21
Nov
Aug
Aug
Nov
Aug
21
15
15
21
15
2001
2001
2001
2001
2001
vxdmp
vxdmp.SunOS_5.6
vxdmp.SunOS_5.7
vxdmp.SunOS_5.8
vxdmp.conf
2001 vxdmp
2001 vxdmp.SunOS_5.7
2001 vxdmp.SunOS_5.8
3-9
3-10
DMP Terminology
Both vxinstall and vxdiskadm use the following terminology to
describe enabling and disabling DMP on selected devices:
When you are disabling DMP on a device or group of devices, the prevent
operation executes first, and the suppress operation executes second.
When you are enabling DMP, the un-suppress operation occurs first and
the allow operation occurs second.
3-11
If you want to exclude any devices from being seen by VxVM or not be
multipathed by VxDMP then use the Prevent multipathing/Suppress
devices from VxVMs view option, before you choose Custom
Installation
or Quick Installation.
If you do not wish to use some disks with the Volume Manager, or if
you wish to reinitialize some disks, use the Custom Installation
option. Otherwise, we suggest that you use the Quick Installation
option.
Hit RETURN to continue.
3-12
3-13
?
??
q
Use the vxdiskadm utility menu items 17 and 18 to include and exclude
DMP operations. Selecting option 17, Prevent multipathing/Suppress
devices from VxVMs view, produces the following output:
Exclude Devices
Menu: VolumeManager/Disk/ExcludeDevices
This operation might lead to some devices being suppressed from VxVMs view
or prevent them from being multipathed by vxdmp (This operation can be
reversed using the vxdiskadm command).
Do you want to continue ? [y,n,q,?] (default: y)
To use these options, select the menu option for the specific operation and
follow the scripted prompts. A system reboot is required to activate the
changes.
Selecting the vxdiskadm utility menu option 18, Allow
multi-pathing/Unsuppressed devices from VxVMs view, produces the
following output:
Include Devices
Menu: VolumeManager/Disk/IncludeDevices
The devices selected in this operation will become visible to VxVM and/or
will be multipathed by vxdmp again. Only those devices which were previously
excluded can be included again.
3-14
To use these options, select the menu option for the specific operation and
follow the scripted prompts. A system reboot is required to activate the
changes.
3-15
Caution Do not edit these files manually. Use vxdiskadm to make all
updates to these files. If it is necessary to edit these file manually be very
careful and only delete the lines needed to get an inoperable system into
service.
3-16
3-17
GROUP
rootdg
rootdg
STATUS
online
error
online
online
error
error
error
error
online
3-18
3-19
3-20
For the VxVM software version 2.5.x, EMC Corporation disk arrays
require a license.
3-21
Make sure that the operating system can see these disks.
vxdmpinq
vxdmpdebug
3-22
Preparation
To prepare for this exercise:
A second disk group must exist other than rootdg with a configured
volume that is formatted and mounted.
#
>
>
>
>
while true
do
iostat -xcnm
sleep 2
done
Note Re-size the window to fit the output of the iostat display.
3-23
2.
3.
4.
3-24
Use the vxdmpadm utility to list all controllers seen by the Solaris OE.
What format of the vxdmpadm command did you use?
_____________________________________________________________
_____________________________________________________________
_____________________________________________________________
2.
Use the vxdmpadm utility to list all subpaths to a specific node. The
DMP node you select depends on the configuration of your system.
What format of the vxdmpadm command did you use?
_____________________________________________________________
_____________________________________________________________
_____________________________________________________________
3.
3-25
5.
Enable the storage controller you just disabled using the vxdmpadm
utility.
What format of the vxdmpadm command did you use?
_____________________________________________________________
_____________________________________________________________
_____________________________________________________________
6.
3-26
Exercise Summary
Exercise Summary
!
?
Experiences
Interpretations
Conclusions
Applications
3-27
Task 1 Solutions
Complete the following steps:
1.
Reboot.
2.
4.
3-28
Task 2 Solutions
Complete the following steps:
1.
Use the vxdmpadm utility to list all controllers seen by the Solaris OE.
What format of the vxdmpadm command did you use?
Use the vxdmpadm utility to list all subpaths to a specific node. The
DMP node you select depends on the configuration of your system.
What format of the vxdmpadm command did you use?
Enable the storage controller you just disabled using the vxdmpadm
utility.
What format of the vxdmpadm command did you use?
3-29
Task 3 Solutions
Use the vxdmping script to view the serial number of a disk of your
choice.
What command syntax did you use?
Use /etc/vx/diag.d/vxdmpinq /dev/rdsk/c#t#d#s2.
What is the serial number of the disk you selected?
Depends on disk selected.
3-30
Module 4
Enable vxconfigd logging from the command line and the VxVM
software startup scripts
Relevance
Relevance
!
?
4-2
Additional Resources
Additional Resources
Additional resources The following references provide additional
information on the topics described in this module:
4-3
Logging Errors
Logging Errors
The VxVM software provides extensive logging capabilities that include
the following error logging mechanisms:
vxconfigd logging
/var/adm/messages file
root mail
4-4
Logging Errors
Enable maximum logging to the vxconfigd log and the syslog file.
Type the following:
# vxconfigd -x 9 -x log -x syslog
-x
-x
-x
-x
syslog"
log"
logfile=/foo/bar"
timestamp"
#
#
#
#
4-5
Logging Errors
09:01:17:
09:01:17:
09:01:17:
09:01:17:
09:01:17:
09:01:17:
09:01:17:
09:01:17:
DEBUG:
DEBUG:
DEBUG:
DEBUG:
DEBUG:
DEBUG:
DEBUG:
DEBUG:
4-6
Logging Errors
In the previous example, the following error is displayed:
07/03 09:01:17: DEBUG: dmp_get_events: event type = DMP_PATH_DISABLE_EVENT
07/03 09:01:17: DEBUG: dmp_get_events: path 118/48, dmpnode 68/48
2.
The part of the message following the event type defines the disk
device affected. The major and minor number of that device are
listed.
path 118/48
To find the cxtxdx number, do a long list on the /dev/dsk directory
and search for the major and minor number pair listed in the error
message. Use the following form of the ls command:
# ls -laRL /dev/dsk | grep 118, 48
brw-r----- 1 root sys 118, 48 Jun 7 23:47 c2t1d0s0
3.
4.
The remaining part of the message following the event type points to
the DMP metanode. The major and minor number of that device are
listed:
dmpnode 68/48
This device can also be found by using the ls command to list the
/dev/vx/dmp directory:
# ls -laRL /dev/vx/dmp | grep 68, 48
brw------- 1 root other 68, 48 Jun 8 09:41 c1t1d0s0
This clearly defines the DMP metanode device as c1t1d0s0.
Note DMP devices, metanodes, and other information about DMP were
described in Module 3, Managing Dynamic Multi-Pathing.
4-7
Logging Errors
2.
3.
Look up the NOTICE message for the failure listed in the messages
log. The error message description is as follows:
Description: A path under the control of the DMP driver failed. The
failed device major and minor numbers are supplied in the message.
Action: None
Note The action recommendation is None because the error was not
caused by the VxVM software. This is a hardware problem, and there are
no VxVM software commands that can fix the error.
4.
Find the major and minor numbers, and use the following version of
the ls command to find the cxtxdx number:
# ls -laRL /dev/dsk | grep 118, 48
brw-r----- 1 root sys 118, 48 Jun 7 23:47 c2t1d0s0
The failed path is c2t1d0s0. Map this path to a specific piece of
hardware using step 3 of the procedure described on page 4-7.
4-8
Logging Errors
4-9
4-10
pkgs
scripts
support
vr_notes.pdf
vxvm_notes.ps
vr_notes.ps
win32
vxvm_notes.pdf
512
512
512
1444
1024
512
Jul
Jul
Jul
Aug
Jul
Jul
2
2
2
8
2
2
08:19
08:19
08:19
2001
08:19
08:19
.
..
FS
README.VRTSspt
VRTSexplorer
VVR
512
512
512
512
Jul
Jul
Jul
Jul
2
2
2
2
08:19
08:19
08:19
08:19
.
..
MetaSave
VxBench
1024
512
12645
1880
1024
3833
1611
2452
2701
955
343
764
512
6491
809
2658
1692
3192
4022
7349
2078
2960
Jul
Jul
Aug
Aug
Jul
Aug
Aug
Aug
Aug
Aug
Aug
Aug
Jul
Aug
Aug
Aug
Aug
Aug
Aug
Aug
Aug
Aug
2
2
21
21
2
21
21
21
21
21
21
21
2
21
21
21
21
21
21
21
21
21
08:19
08:19
2001
2001
08:19
2001
2001
2001
2001
2001
2001
2001
08:19
2001
2001
2001
2001
2001
2001
2001
2001
2001
.
..
README
VRTSexplorer
bin.SunOS
dbed
dbed1
edition.dro
edition.sybed
fw
gcm
isis
lib
main.SunOS
ndmp
sal
salr
samba
spc
spcs
spnas
sybed1
4-11
root
root
root
root
root
root
root
root
root
root
root
root
root
root
other
other
other
other
other
other
other
other
other
other
other
other
other
other
2834
2384
349
1538
3342
229
1220
663
2355
1584
1434
2250
486
2278
Aug
Aug
Aug
Aug
Aug
Aug
Aug
Aug
Aug
Aug
Aug
Aug
Aug
Aug
21
21
21
21
21
21
21
21
21
21
21
21
21
21
2001
2001
2001
2001
2001
2001
2001
2001
2001
2001
2001
2001
2001
2001
txpt
vcs
vfr
visnC
visnS
vmsa
vnas
vras
vrtsisp
vsap
vvr
vxfs
vxld
vxvm
root
root
root
root
root
root
root
other
other
other
other
other
other
other
512
512
1592
388
1517
512
5081
Jul 2 08:19 .
Jul 2 08:19 ..
Jul 3 2001 Client.pl
Jun 29 2001 README.Client_Server
Jun 29 2001 Server.pl
Jul 2 08:19 VolSig
May 21 2001 vvrmemstat
Note The FS and VVR tools require additional licenses and are not part
of the basic VxVM software. They are not described in this guide.
The VxVM software debugging tools are listed in Table 4-1.
Table 4-1 The VRTSspt Debugging Tools
Tool
Use
Tool License
metasave
FS
vxbench
FS
VRTSexplorer*
VxVM
software
vvrmemstat
VVR
4-12
Use
Tool License
volsig
VVR
Client.pl and
Server.pl
VVR
vxdmpinq
vxdmptp
vxkprint
262172
6788
221192
6808
85396
7356
5932
62472
58164
114640
vxprivutil
512
512
512
512
Jun
Jun
Jun
Jun
512
512
57440
57708
57824
11960
Jun
Jun
Aug
Aug
Aug
Aug
8
8
8
8
09:19
09:31
09:19
09:19
.
..
sparcv7
sparcv9
8 09:19 .
8 09:19 ..
15 2001 vxautoconfig.SunOS_5.6
15 2001 vxautoconfig.SunOS_5.7
15 2001 vxautoconfig.SunOS_5.8
15 2001 vxdevwalk.SunOS_5.6
4-13
1 root
1 root
sys
sys
/etc/vx/diag.d/config.d/sparcv9:
total 348
2 drwxr-xr-x
2 root
sys
2 drwxr-xr-x
4 root
sys
0 -r-xr-xr-x
1 root
sys
140 -r-xr-xr-x
1 root
sys
140 -r-xr-xr-x
1 root
sys
0 -r-xr-xr-x
1 root
sys
32 -r-xr-xr-x
1 root
sys
32 -r-xr-xr-x
1 root
sys
/etc/vx/diag.d/macros.d:
total 58
2 drwxr-xr-x
3 root
2 drwxr-xr-x
5 root
4 -rwxrwxr-x
1 root
2 -rwxrwxr-x
1 root
2 -rwxrwxr-x
1 root
0 -rwxrwxr-x
1 root
2 -rwxrwxr-x
1 root
2 -rwxrwxr-x
1 root
2 -rwxrwxr-x
1 root
2 -rwxrwxr-x
1 root
2 -rwxrwxr-x
1 root
2 -rwxrwxr-x
1 root
2 -rwxrwxr-x
1 root
2 -rwxrwxr-x
1 root
2 -rwxrwxr-x
1 root
2 -rwxrwxr-x
1 root
2 -rwxrwxr-x
1 root
2 -rwxrwxr-x
1 root
2 -rwxrwxr-x
1 root
2 -rwxrwxr-x
1 root
2 -rwxrwxr-x
1 root
2 -rwxrwxr-x
1 root
2 -rwxrwxr-x
1 root
2 -rwxrwxr-x
1 root
2 -rwxrwxr-x
1 root
2 -rwxrwxr-x
1 root
2 -rwxrwxr-x
1 root
2 -rwxrwxr-x
1 root
2 drwxr-xr-x
2 root
other
other
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
other
/etc/vx/diag.d/macros.d/sparcv9:
total 56
2 drwxr-xr-x
2 root
other
2 drwxr-xr-x
3 root
other
4 -rwxrwxr-x
1 root
sys
2 -rwxrwxr-x
1 root
sys
2 -rwxrwxr-x
1 root
sys
4-14
12032 Aug 15
11968 Aug 15
2001 vxdevwalk.SunOS_5.7
2001 vxdevwalk.SunOS_5.8
512
512
0
71408
71560
0
15416
15368
Jun
Jun
Aug
Aug
Aug
Aug
Aug
Aug
8 09:19 .
8 09:19 ..
15 2001 vxautoconfig.SunOS_5.6
15 2001 vxautoconfig.SunOS_5.7
15 2001 vxautoconfig.SunOS_5.8
15 2001 vxdevwalk.SunOS_5.6
15 2001 vxdevwalk.SunOS_5.7
15 2001 vxdevwalk.SunOS_5.8
1024
512
1975
94
99
0
435
69
72
285
82
364
448
78
104
52
63
66
50
150
40
117
582
289
298
193
121
25
1024
Jun
Jun
Aug
Apr
Apr
Apr
Apr
Apr
Apr
Apr
Apr
Apr
Apr
Apr
Apr
Aug
Aug
Aug
Aug
Aug
Aug
Apr
Apr
Apr
Aug
Apr
Apr
Apr
Jun
8
8
15
4
4
4
4
4
4
4
4
4
4
4
4
15
15
15
15
15
15
4
4
4
15
4
4
4
8
1024
1024
1964
97
99
Jun 8 09:31 .
Jun 8 09:31 ..
Aug 15 2001 dmp
Apr 4 19:36 dmp_cpuiocount
Apr 4 19:36 dmp_cpuiocount_next
09:31
09:31
2001
19:36
19:36
19:36
19:36
19:36
19:36
19:36
19:36
19:36
19:36
19:36
19:36
2001
2001
2001
2001
2001
2001
19:36
19:36
19:36
2001
19:36
19:36
19:36
09:31
.
..
dmp
dmp_cpuiocount
dmp_cpuiocount_next
dmp_cpuiocount_zero
dmp_ctlr
dmp_ctlr_list_next
dmp_ctlr_path_next
dmp_dev_list
dmp_dev_list_next_dmpnode
dmp_dmpnode
dmp_dmpnode_next
dmp_dmpnode_next_ptr
dmp_dmpnode_path_next
dmp_dmpopencount
dmp_end_dev_list_ctlrs
dmp_end_dev_list_dmpnodes
dmp_end_dmp_nodes
dmp_errq_buf
dmp_opath_next
dmp_opaths
dmp_path
dmp_print_dev_list_ctlrs
dmp_print_dev_list_dmpnodes
dmp_print_errq
dmp_print_errq_next
dmp_print_errq_null
sparcv9
-rwxrwxr-x
-rwxrwxr-x
-rwxrwxr-x
-rwxrwxr-x
-rwxrwxr-x
-rwxrwxr-x
-rwxrwxr-x
-rwxrwxr-x
-rwxrwxr-x
-rwxrwxr-x
-rwxrwxr-x
-rwxrwxr-x
-rwxrwxr-x
-rwxrwxr-x
-rwxrwxr-x
-rwxrwxr-x
-rwxrwxr-x
-rwxrwxr-x
-rwxrwxr-x
-rwxrwxr-x
-rwxrwxr-x
-rwxrwxr-x
-rwxrwxr-x
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
0
436
69
72
282
84
388
428
81
104
52
63
66
50
150
40
117
590
289
298
195
121
25
Apr
Apr
Apr
Apr
Apr
Apr
Apr
Apr
Apr
Apr
Aug
Aug
Aug
Aug
Aug
Aug
Apr
Apr
Apr
Aug
Apr
Apr
Apr
4
4
4
4
4
4
4
4
4
4
15
15
15
15
15
15
4
4
4
15
4
4
4
sys
other
sys
sys
sys
sys
sys
512
512
512
3541
2382
4897
5409
Jun
Jun
Jun
Aug
Aug
Aug
Aug
8 09:20 .
8 09:31 ..
8 09:20 fix_lib
15 2001 fixmountroot
15 2001 fixsetup
15 2001 fixstartup
15 2001 fixunroot
/etc/vx/diag.d/scripts/fix_lib:
total 16
2 drwxr-xr-x
2 root
sys
2 drwxr-xr-x
3 root
sys
8 -r-xr-xr-x
1 root
sys
4 -r-xr-xr-x
1 root
sys
512
512
3437
1409
Jun 8 09:20 .
Jun 8 09:20 ..
Aug 15 2001 fixdevsetup
Aug 15 2001 fixgetmajor
/etc/vx/diag.d/scripts:
total 42
2 drwxr-xr-x
3 root
2 drwxr-xr-x
5 root
2 drwxr-xr-x
2 root
8 -r-xr-xr-x
1 root
6 -r-xr-xr-x
1 root
10 -r-xr-xr-x
1 root
12 -r-xr-xr-x
1 root
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
19:36
19:36
19:36
19:36
19:36
19:36
19:36
19:36
19:36
19:36
2001
2001
2001
2001
2001
2001
19:36
19:36
19:36
2001
19:36
19:36
19:36
dmp_cpuiocount_zero
dmp_ctlr
dmp_ctlr_list_next
dmp_ctlr_path_next
dmp_dev_list
dmp_dev_list_next_dmpnode
dmp_dmpnode
dmp_dmpnode_next
dmp_dmpnode_next_ptr
dmp_dmpnode_path_next
dmp_dmpopencount
dmp_end_dev_list_ctlrs
dmp_end_dev_list_dmpnodes
dmp_end_dmp_nodes
dmp_errq_buf
dmp_opath_next
dmp_opaths
dmp_path
dmp_print_dev_list_ctlrs
dmp_print_dev_list_dmpnodes
dmp_print_errq
dmp_print_errq_next
dmp_print_errq_null
4-15
4-16
Tool
Use
vxprivutil
vxdevwalk
vxkprint
vxdmpdebug
vxdmpinq
vxautoconfig
vxdmpdbprint
Use
fixmountroot
fixsetup
fixstartup
4-17
Use
fixunroot
4-18
model Prints system model (on systems that do not use SPARC
technology).
ifconfig -a, netstat -in, netstat -rn, arp -a, and lanscan
Lists basic network information.
4-19
DMP Information
The vxexplorer utility options for gathering DMP-specific information
are:
4-20
SCSI inquiry output DMP requires a unique serial number for each
disk on the system. It uses SCSI inquiries to read the serial number.
The vxexplorer utility uses the vxdmpinq command to capture this
information.
SRVM
VxFS
First Watch
VCS
Sybase Edition
Oracle Edition
Sanbox
VFR
4-21
VRAS
SANPoint Control
2.
./VRTSexplorer
VRTSexplorer: Initializing.
VRTSexplorer: Please enter case number, or just hit enter: 12345 <---- note
VRTSexplorer: Please select a destination directory (default: /tmp):
VRTSexplorer: Using /tmp as destination directory.
VRTSexplorer: Collecting system configuration information for SunOS system.
VRTSexplorer: Collecting VERITAS package version information.
VRTSexplorer: Collecting loadable module information.
VRTSexplorer: Collecting VMSA configuration information.
VRTSexplorer: Determining current VxVM operating mode.
VRTSexplorer: Collecting VxVM configuration information.
VRTSexplorer: Collecting DMP configuration information.
NOTICE:
This section will stop and restart the VxVM Configuration Daemon,
vxconfigd. This may cause your VxVA and/or VMSA 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.
4-22
2.
bash-2.03# ls -las
total 1360
16 drwxr-xr-x
9
16 drwxrwxrwt
7
16 -rw-r--r-1
16 drwxr-xr-x
4
16 drwxr-xr-x
3
16 -rw-r--r-1
16 -rw-r--r-1
16 -rw-r--r-1
16 -rw-r--r-1
16 drwxr-xr-x 12
16 -rw-r--r-1
16 -rw-r--r-1
16 -rw-r--r-1
16 drwxr-xr-x
3
16 -rw-r--r-1
16 -rw-r--r-1
16 -rw-r--r-1
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
other
sys
other
sys
other
other
other
other
other
other
other
other
other
other
other
other
other
2294
676
359
309
3308
529
4380
1152
1503
2426
9
477
54
177
7132
1759
542
Jul
Jul
Jul
Jun
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
3
3
3
7
3
3
3
3
3
3
3
3
3
3
3
3
3
06:27
06:27
06:00
23:11
06:01
06:00
06:00
06:00
06:00
06:01
05:59
06:00
05:59
06:00
06:00
06:00
06:00
.
..
arp_a
cron
dev
df_klaV
df_klag
df_klat
eeprom
etc
hostid
ifconfig_a
isainfo_v
kernel
modinfo
mount_v
netstat_i
4-23
-rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r-drwxr-xr-x
drwxr-xr-x
-rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r-drwxr-xr-x
1
1
1
1
1
1
1
1
1
1
1
4
3
1
1
1
1
1
3
4.
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
other
other
other
other
other
other
other
other
other
other
other
other
other
other
other
other
other
other
other
921
1322
29532
292733
51497
1708
4832
580
43673
70
66
302
242
233
834
69
41
240
1953
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
06:00
06:00
05:59
06:00
05:59
05:59
05:59
05:59
06:00
05:59
05:59
06:01
06:00
05:59
05:59
05:59
06:00
06:00
06:01
netstat_r
pkgchk
pkginfo
pkginfo_l
prtconf
prtdiag
ps_elf
reboot
showrev
uname_a
uptime
var
vmsa
vmstat
vmstat_s
vxexplore_version
vxliccheck_vp
vxlicense_p
vxvm
b.
c.
# more ./pkginfo_l
... skipping
PKGINST: VRTSvxvm
NAME: VERITAS Volume Manager, Binaries
CATEGORY: system
ARCH: sparc
VERSION: 3.2,REV=08.15.2001.23.27
BASEDIR: /
VENDOR: VERITAS Software
DESC: Virtual Disk Subsystem
PSTAMP: VERITAS-3.2t_p2.5:23-May-2002
INSTDATE: Jun 08 2002 09:30
HOTLINE: 800-342-0652
EMAIL: support@veritas.com
4-24
completely installed
479 installed pathnames
16 shared pathnames
8 linked files
59 directories
306 executables
1 setuid/setgid executables
116150 blocks used (approx)
Note The ./pkginfo_l file is a long list of all packages installed on the
system. Search through the file to find the VRTS packages.
d.
Verify that all correct modules are loaded for the VRTS
packages installed. If the modules are not loaded, there may
have been problems upgrading the VxVM software, or the
system was not rebooted after the modules were installed. The
following example shows a list of installed modules.
e.
INFO:
INFO:
INFO:
INFO:
INFO:
f.
# more eeprom
.
.
.
use-nvramrc?=true
nvramrc=devalias test2 /sbus@3,0/SUNW,socal@0,0/sf@0,0/ssd@w220000203713df01,0:a
devalias test1 /sbus@3,0/SUNW,socal@0,0/sf@0,0/ssd@w210000203713fc9f,0:a
4-25
Brd
--0
0
CPU
--0
1
Module
------0
1
Run
MHz
----168
168
Ecache
MB
-----1.0
1.0
CPU
Impl.
-----US-I
US-I
CPU
Mask
---4.0
4.0
Brd
--0
Bank
----0
MB
---256
Status
------Active
Condition
---------OK
Speed
----60ns
Intrlv.
Factor
------1-way
Intrlv.
With
-------
Brd
---
Bus
Type
----
Freq
MHz
----
SBus
25
SBus
Slot
----------
Name
--------------------------------
Model
-----------------
SUNW,socal/sf (scsi-3)
501-5266
25
SUNW,hme
SUNW,501-2919
SBus
25
DOLPHIN,sci
SBus
25
SUNW,hme
SBus
25
SUNW,fas/sd (block)
SBus
25
13
SUNW,soc
501-2069
h.
bash-2.03# ls -las
total 880
16 drwxr-xr-x
3
16 drwxr-xr-x
9
64 -rw-r--r-1
4-26
./dev
root
root
root
other
other
other
3308 Jul
2294 Jul
31869 Jul
3 06:01 .
3 06:27 ..
3 06:00 dsk
-rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
other
other
other
other
other
other
other
other
other
other
other
other
other
other
other
other
other
14860
663
367
1779
1779
1779
1779
143
41
930
648
648
648
648
929
481
481
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
06:00
06:00
06:00
06:00
06:00
06:00
06:00
06:00
06:00
06:00
06:00
06:00
06:00
06:00
06:00
06:00
06:00
dsk_device
es
es_device
es_luxadm_display_ses0
es_luxadm_display_ses1
es_luxadm_display_ses2
es_luxadm_display_ses3
es_luxadm_fcal_s_download
prtvtoc_c0t6d0s2
prtvtoc_c1t0d0s2
prtvtoc_c1t16d0s2
prtvtoc_c1t17d0s2
prtvtoc_c1t18d0s2
prtvtoc_c1t19d0s2
prtvtoc_c1t1d0s2
prtvtoc_c1t20d0s2
prtvtoc_c1t21d0s2
.
..
c0t6d0s0 ->
c0t6d0s1 ->
c0t6d0s2 ->
c0t6d0s3 ->
c0t6d0s4 ->
c0t6d0s5 ->
4-27
Tag
5
15
14
Flags
00
01
01
i.
bash-2.03# ls -las
total 640
16 drwxr-xr-x 12
16 drwxr-xr-x
9
16 -rw-r--r-1
16 drwxr-xr-x
2
16 -rw-r--r-1
16 -rw-r--r-1
16 -rw-r--r-1
16 -r--r--r-1
16 drwxr-xr-x
2
32 -rw-r--r-1
16 -rw-r--r-1
16 -rw-r--r-1
16 -rw-r--r-1
16 -r--r--r-1
16 -rwxr--r-1
16 drwxr-xr-x
2
16 -rwxr--r-1
16 drwxr-xr-x
2
16 -rwxr--r-1
16 drwxr-xr-x
2
16 -rwxr--r-1
16 drwxrwxr-x
2
16 -rwxr--r-1
16 -rwxr--r-1
32 -rwxr--r-1
16 drwxr-xr-x
2
16 drwxr-xr-x
3
16 -r--r--r-1
16 -r--r--r-1
16 -rw-r--r-1
16 drwxr-xr-x
2
16 -rw-r--r-1
16 -rw-r--r-1
16 -rw-r--r-1
16 -rw-r--r-1
16 -rw-r--r-1
16 -rw-r--r-1
16 drwxr-xr-x
9
First
Sector
Last
Sector
Count
Sector
0 17682084 17682083
0
3591
3590
7182 17674902 17682083
Mount Directory
./etc
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
other
other
other
sys
other
root
root
sys
sys
other
sys
root
sys
root
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
other
root
root
other
other
root
other
other
2426
2294
12
308
12
8
1
97
1223
12200
1731
8
780
5036
2792
2558
3177
2347
2885
3456
2341
650
2792
2792
9973
3275
181
184
3701
1001
182
2161
2161
2161
2161
728
415
1483
Jul 3 06:01 .
Jul 3 06:27 ..
Jun 8 05:43 defaultrouter
Jun 7 23:12 dfs
Jul 3 06:01 err.out
Jun 7 23:47 hostname.hme0
Jun 7 23:47 hostname6.hme0
Jun 8 05:43 hosts
Jun 8 04:52 inet
Jul 3 06:00 ls_l_rc
Jun 8 09:20 name_to_major
Jun 7 23:47 nodename
Jun 8 07:34 nsswitch.conf
Jun 8 09:28 path_to_inst
Jan 5 2000 rc0
Jun 8 09:32 rc0.d
Jan 5 2000 rc1
Jun 8 09:23 rc1.d
Jan 5 2000 rc2
Jun 8 09:23 rc2.d
Jan 5 2000 rc3
Jun 8 08:11 rc3.d
Jan 5 2000 rc5
Jan 5 2000 rc6
Jan 5 2000 rcS
Jun 8 09:32 rcS.d
Jun 7 23:11 rcm
Dec 18 2001 release
Jun 8 06:50 services
Jun 7 23:12 syslog.conf
Jul 3 06:00 syslog.d
Jun 8 09:49 system
Jun 8 09:49 system.GOOD
Jun 21 17:15 system.sav
Jun 24 14:39 system_06242002
Jun 8 11:23 vfstab
Jun 8 09:41 vfstab.prevm
Jul 3 06:01 vx
4-28
j.
other
other
root
other
other
other
other
other
1483
2426
0
30
1319
17
1261
20
Jul
Jul
Jun
Jul
Jun
Jul
Jun
Jul
sys
root
other
other
sys
root
other
other
sys
other
180
16
22
185
498
201
1101
5
117
22
root
other
other
other
other
512
0
0
59
59
Jun
Jun
Jun
Jun
Jun
3
3
8
3
8
3
8
3
8
8
8
8
8
06:01
06:01
09:48
05:29
09:31
06:27
09:33
06:27
09:48
09:20
09:20
09:41
09:41
.
..
.dumpadm
array.info
aslkey.d
bin -> /usr/lib/vxvm/bin
ddl.support
diag.d ->
volboot
vold_diag
vold_request
vxdmp.exclude
vxvm.exclude
other
other
other
other
sys
302
2294
308
0
180
Jul
Jul
Jul
Jul
Jul
3
3
3
3
3
06:01
06:27
06:00
06:01
05:29
.
..
adm
err.out
vxvm
4-29
./var/vxvm/tempdb
root
root
root
k.
root
sys
root
180 Jul
180 Jul
5120 Jul
3 05:29 .
3 05:29 ..
3 05:29 rootdg
bash-2.03# ls -las
total 464
16 drwxr-xr-x
3
16 drwxr-xr-x
9
16 drwxr-xr-x
2
16 -rw-r--r-1
16 -rw-r--r-1
16 -rw-r--r-1
16 -rw-r--r-1
16 -rw-r--r-1
16 -rw-r--r-1
16 -rw-r--r-1
16 -rw-r--r-1
16 -rw-r--r-1
16 -rw-r--r-1
16 -rw-r--r-1
16 -rw-r--r-1
16 -rw-r--r-1
16 -rw-r--r-1
16 -rw-r--r-1
16 -rw-r--r-1
16 -rw-r--r-1
16 -rw-r--r-1
16 -rw-r--r-1
32 -rw-r--r-1
16 -rw-r--r-1
16 -rw-r--r-1
32 -rw-r--r-1
16 -rw-r--r-1
bash-2.03# ls -las
total 848
16 drwxr-xr-x
2
16 drwxr-xr-x
3
816 -rw-r--r-1
4-30
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
other
other
other
other
other
other
other
other
other
other
other
other
other
other
other
other
other
other
other
other
other
other
other
other
other
other
other
1953
2294
181
14
78
491
841
925
891
889
889
890
927
219
222
222
929
218
883
883
215
2107
13555
1985
2585
15366
432
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
06:01
06:27
06:01
06:00
06:01
06:01
06:00
06:00
06:00
06:00
06:01
06:01
06:00
06:01
06:01
06:01
06:00
06:00
06:00
06:00
06:00
06:00
06:00
06:00
06:00
06:01
06:01
.
..
dmp
vxdctl_mode
vxdg_list
vxdg_list_rootdg
vxdisk_list
vxdisk_list_c1t0d0s2
vxdisk_list_c1t16d0s2
vxdisk_list_c1t17d0s2
vxdisk_list_c1t18d0s2
vxdisk_list_c1t19d0s2
vxdisk_list_c1t1d0s2
vxdisk_list_c1t20d0s2
vxdisk_list_c1t21d0s2
vxdisk_list_c1t22d0s2
vxdisk_list_c1t2d0s2
vxdisk_list_c1t3d0s2
vxdisk_list_c1t4d0s2
vxdisk_list_c1t5d0s2
vxdisk_list_c1t6d0s2
vxdisk_s_list
vxkprint
vxprint
vxprint_ht
vxprint_mpvshr_rootdg
vxstat_g_rootdg
./dmp
root
root
root
other
other
other
181 Jul
1953 Jul
414252 Jul
3 06:01 .
3 06:01 ..
3 06:02 dmp.out
GROUP
rootdg
rootdg
rootdg
-
STATUS
online
online
online spare
error
online
online
error
online
online
online
online
error
error
error
NAME
NAME
NAME
NAME
NAME
NAME
NAME
NAME
NAME
NAME
NCONFIG
DEVICE
RLINK_CNT
RVG
RVG
VOLUME
PLEX
PLEX
PARENTVOL
SNAPVOL
NLOG
TYPE
KSTATE
KSTATE
KSTATE
KSTATE
DISK
VOLNAME
LOGVOL
DCO
MINORS
PRIVLEN
STATE
STATE
STATE
STATE
DISKOFFS
NVOLLAYR
GROUP-ID
PUBLEN
PRIMARY
REM_HOST
LENGTH
LENGTH
LENGTH
LENGTH
dg rootdg
default
default
1023554924.1025.lowtide
dm disk01
dm rootdisk
dm rootmirror
c1t2d0s2
c1t0d0s2
c1t1d0s2
sliced
sliced
sliced
3590
3590
3590
17674902 SPARE
17678493 17678493 -
v
pl
sd
sd
pl
sd
rootvol
rootvol-01
rootvol
rootdisk-B0 rootvol-01
rootdisk-02 rootvol-01
rootvol-02
rootvol
rootmirror-01 rootvol-02
ENABLED ACTIVE
ENABLED ACTIVE
rootdisk 17678492
rootdisk 0
ENABLED ACTIVE
rootmirror 0
4197879
4197879
1
4197878
4197879
4197879
v
pl
sd
pl
sd
swapvol
swapvol-01
swapvol
rootdisk-01 swapvol-01
swapvol-02
swapvol
rootmirror-02 swapvol-02
ENABLED ACTIVE
1052163
ENABLED ACTIVE
1052163
rootdisk 4197878 1052163
ENABLED ACTIVE
1052163
rootmirror 4197879 1052163
STATE
DATAVOLS
REM_DG
READPOL
LAYOUT
[COL/]OFF
[COL/]OFF
SRL
REM_RLNK
PREFPLEX
NCOL/WID
DEVICE
AM/NM
UTYPE
MODE
MODE
MODE
ROUND
CONCAT
0
1
CONCAT
0
c1t0d0
c1t0d0
c1t1d0
root
RW
ENA
ENA
RW
ENA
ROUND
CONCAT
0
CONCAT
0
c1t0d0
c1t1d0
swap
RW
ENA
RW
ENA
4-31
usr
usr-01
usr
rootdisk-04 usr-01
usr-02
usr
rootmirror-03 usr-02
ENABLED ACTIVE
4197879
ENABLED ACTIVE
4197879
rootdisk 5250041 4197879
ENABLED ACTIVE
4197879
rootmirror 5250042 4197879
ROUND
CONCAT
0
CONCAT
0
c1t0d0
c1t1d0
fsgen
RW
ENA
RW
ENA
v
pl
sd
pl
sd
var
var-01
var
rootdisk-03 var-01
var-02
var
rootmirror-04 var-02
ENABLED ACTIVE
4197879
ENABLED ACTIVE
4197879
rootdisk 9447920 4197879
ENABLED ACTIVE
4197879
rootmirror 9447921 4197879
ROUND
CONCAT
0
CONCAT
0
c1t0d0
c1t1d0
fsgen
RW
ENA
RW
ENA
ssd
ssd
ssd
w220000203713f582,0
sf
14
a, ddi_block:wwn
ssd
ssd
ssd
w220000203713f643,0
sf
15
a, ddi_block:wwn
ssd
ssd
ssd
w220000203713e0b9,0
vxdevwalk output
SUNW,Ultra-Enterprise :: id=-268264420
driver properties:
pm-hardware-state value=6e6f2d73 75737065 6e642d72 6573756d 6500
ascii=no-suspend-resume.
system properties:
relative-addressing value=00000001
MMU_PAGEOFFSET value=00001fff
MMU_PAGESIZE value=00002000
PAGESIZE value=00002000
Driver packages :: id=-268251420
Driver packages/terminal-emulator :: id=-268212908
4-32
The dmp.out file is large and contains the output of all DMP debugging
and information gathering l commands executed by vxexplorer. Use
shell commands to parse this file for the information needed to verify the
existence of a DMP problem.
Caution The set option can damage the configuration database (private
region) beyond repair if not used properly. Some of the information
presented in this section is for reference only.
4-33
NAME
NAME
NAME
NAME
NAME
NAME
NAME
NAME
NAME
NAME
NCONFIG
DEVICE
RLINK_CNT
RVG
RVG
VOLUME
PLEX
PLEX
PARENTVOL
SNAPVOL
NLOG
TYPE
KSTATE
KSTATE
KSTATE
KSTATE
DISK
VOLNAME
LOGVOL
DCO
MINORS
PRIVLEN
STATE
STATE
STATE
STATE
DISKOFFS
NVOLLAYR
GROUP-ID
PUBLEN
PRIMARY
REM_HOST
LENGTH
LENGTH
LENGTH
LENGTH
dg rootdg
default
default
1023554924.1025.lowtide
dm disk01
dm rootdisk
dm rootmirror
SPARE
-
4197879
4197879
1
4197878
4197879
4197879
ROUND
CONCAT
0
1
CONCAT
0
root
RW
DIS
DIS
RW
DIS
STATE
DATAVOLS
REM_DG
READPOL
LAYOUT
[COL/]OFF
[COL/]OFF
SRL
REM_RLNK
PREFPLEX
NCOL/WID
DEVICE
AM/NM
UTYPE
MODE
MODE
MODE
v
pl
sd
sd
pl
sd
rootvol
rootvol-01
rootvol
rootdisk-B0 rootvol-01
rootdisk-02 rootvol-01
rootvol-02
rootvol
rootmirror-01 rootvol-02
DISABLED ACTIVE
DISABLED ACTIVE
rootdisk 17678492
rootdisk 0
DISABLED ACTIVE
rootmirror 0
v
pl
sd
pl
sd
swapvol
swapvol-01
swapvol
rootdisk-01 swapvol-01
swapvol-02
swapvol
rootmirror-02 swapvol-02
DISABLED ACTIVE
1052163
DISABLED ACTIVE
1052163
rootdisk 4197878 1052163
DISABLED ACTIVE
1052163
rootmirror 4197879 1052163
ROUND
CONCAT
0
CONCAT
0
swap
RW
DIS
RW
DIS
v
pl
sd
pl
sd
usr
usr-01
usr
rootdisk-04 usr-01
usr-02
usr
rootmirror-03 usr-02
DISABLED ACTIVE
4197879
DISABLED ACTIVE
4197879
rootdisk 5250041 4197879
DISABLED ACTIVE
4197879
rootmirror 5250042 4197879
ROUND
CONCAT
0
CONCAT
0
fsgen
RW
DIS
RW
DIS
v
pl
sd
pl
sd
var
var-01
var
rootdisk-03 var-01
var-02
var
rootmirror-04 var-02
DISABLED ACTIVE
4197879
DISABLED ACTIVE
4197879
rootdisk 9447920 4197879
DISABLED ACTIVE
4197879
rootmirror 9447921 4197879
ROUND
CONCAT
0
CONCAT
0
fsgen
RW
DIS
RW
DIS
4-34
4-35
4-36
4-37
sliced
sliced
sliced
sliced
sliced
sliced
sliced
disk01
disk02
disk03
disk04
m9dg
m9dg
m9dg
m9dg
online
online
online
online
online
online
online
4-38
4-39
4-40
adb
kadb
crash
System administrators use these utilities to analyze panic dump files. The
VxVM software could at some time cause a system panic. It is helpful to
be able to diagnose a panic dump file to determine whether the VxVM
software was responsible for the crash and what component of the VxVM
software failed.
Note Analyzing panic dump files is beyond the scope of this class. Sun
Education provides classes that teach the use of system-level debugging
tools to analyze crash dump files.
4-41
View error messages in the messages log and the vxconfigd log
Preparation
To prepare for this exercise, make sure that the VxVM software is installed
and operational.
2.
3.
4.
5.
4-42
2.
Open a new window, and view the contents of the vxconfigd log in
real time. What command did you use?
_____________________________________________________________
3.
Open a new window, and view the current messages file in real time.
What command did you use?
_____________________________________________________________
4.
5.
6.
View the messages and vxconfigd log as the DMP notices that a
path is missing.
7.
After the logging completes, find the error message logged by DMP
in the messages file, and locate the appropriate message in the
VERITAS Volume Manager 3.2 Troubleshooting Guide.
Answer the following questions:
What error messages from the messages file were you able find
in the VERITAS Volume Manager 3.2 Troubleshooting Guide?
________________________________________________________
________________________________________________________
________________________________________________________
________________________________________________________
________________________________________________________
4-43
Power user The following task is for students who have the skills to
map a device tree entry to a physical hardware slot.
If you have access to SunSolve Online, pull the hardware mapping
for the system used by your lab group and map the physical device
address of the failing path to the cable that was disconnected.
What is the physical Peripheral Component Interconnect (PCI) or
SBus slot of the pulled cable?
_____________________________________________________________
8.
9.
4-44
1.
2.
3.
hostid
uname_a
vxlicense_p
prtdiag
eeprom
4.
5.
6.
7.
4-45
Exercise Summary
Exercise Summary
!
?
4-46
Experiences
Interpretations
Conclusions
Applications
Task 1 Solutions
Complete the following steps:
1.
In /var/vxvm/vxconfigd.log.
3.
4.
Task 2 Solutions
Complete the following steps:
1.
Open a new window, and view the contents of the vxconfigd log in
real time. What command did you use?
# tail -f /var/vxvm/vxconfigd.log
3.
Open a new window and view the current messages file in real time.
What command did you use?
# tail -f /var/adm/messages
4-47
5.
6.
View the messages and vxconfigd log as the DMP notices that a
path is missing.
7.
After the logging completes, find the error message logged by DMP
in the messages file and locate the appropriate message in the
VERITAS Volume Manager 3.2 Troubleshooting Guide.
Answer the following questions:
What error messages from the messages file were you able find
in the VERITAS Volume Manager 3.2 Troubleshooting Guide?
________________________________________________________
________________________________________________________
________________________________________________________
________________________________________________________
________________________________________________________
Power user The following task is for students who have the skills to
map a device tree entry to a physical hardware slot.
If you have access to SunSolve Online, pull the hardware mapping
for the system used by your lab group and map the physical device
address of the failing path to the cable that was disconnected.
What is the physical Peripheral Component Interconnect (PCI) or
SBus slot of the pulled cable?
_____________________________________________________________
8.
4-48
Task 3 Solutions
Complete the following steps:
1.
2.
3.
4.
hostid
uname_a
vxlicense_p
prtdiag
eeprom
4-49
4-50
5.
6.
7.
Module 5
Relevance
Relevance
!
?
5-2
What files are accessed during system boot to initialize the VxVM
software?
What entries in the /etc/system file are necessary for the VxVM
software initialization?
What VxVM software configuration allows multiple rootdgs to coexist on a single system?
Additional Resources
Additional Resources
Additional resources The following references provide additional
information on the topics described in this module:
5-3
Boot process failures that prevent the VxVM software from starting
This module addresses errors that occur in the boot process and the
VxVM software functionality. Storage device errors are addressed in
Module 6, Recovering Disk, Disk Group, and Volume Failures.
5-4
/etc/rcS.d
Single-User Start-Script
Execution
System
Ready
Boot
/etc/rc2.d
Multi-User Start-Script
Execution
Figure 5-1
Boot Scripts
Scripts which execute in single-user mode that affect the VxVM software
initialization are:
/etc/rcS.d/S25vxvm-sysboot
/etc/rcS.d/S35vxvm-startup1
/etc/rcs.d/S40standardmounts
/etc/rcS.d/S50drvconfig
/etc/rcS.d/S60devlinks
/etc/rcS.d/S85vxvm-startup2
/etc/rcS.d/S86vxvm-reconfig
5-5
/etc/rc2.d/S20sysetup
/etc/rc2.d/S94vxnm-host_infod
/etc/rc2.d/S94vxnm-vxnetd
/etc/rc2.d/S95vxvm-recover
/etc/rc2.d/S96vmsa-server
Figure 5-2
5-6
The dev_info tree is a kernel structure that is built from device tree
information in the boot PROM. To view the dev_info tree, use the
/etc/vx/diag.d/vxdevwalk command.
An example shows an excerpt from the execution of vxdevwalk
command. The following example shows the dev_info tree data for device
ssd@w220000203713fc9f.
Driver sbus@3,0/SUNW,socal@0,0/sf@0,0/ssd@w220000203713fc9f,0 :: id=25 instance=18
driver properties:
inquiry-revision-id value=31373745 00
ascii=177E.
inquiry-product-id value=53543139 31373146 4353554e 392e3047 00
ascii=ST19171FCSUN9.0G.
inquiry-vendor-id value=53454147 41544500
ascii=SEAGATE.
pm-hardware-state value=6e656564 732d7375 7370656e 642d7265 73756d65
00
ascii=needs-suspend-resume.
ddi-kernel-ioctl
device nodes:
a :: dev=118,144:block nodetype=ddi_block:wwn
b :: dev=118,145:block nodetype=ddi_block:wwn
c :: dev=118,146:block nodetype=ddi_block:wwn
d :: dev=118,147:block nodetype=ddi_block:wwn
e :: dev=118,148:block nodetype=ddi_block:wwn
f :: dev=118,149:block nodetype=ddi_block:wwn
g :: dev=118,150:block nodetype=ddi_block:wwn
5-7
The entries are matched by the dev_info tree entry, shown in the
following example.
Driver sbus@3,0/SUNW,socal@0,0/sf@0,0/ssd@w220000203713fc9f,0 :: id=25 instance=18
Unmatched Entries
Unmatched entries are given new names, as follows:
5-8
DISK
rootdisk
rootmirror
disk01
-
GROUP
rootdg
rootdg
rootdg
-
STATUS
online
online
online spare
error
online
online
error
online
online
online
online
sliced
sliced
sliced
error
error
error
Note Only disks that are members of imported disk groups have entries
in the DISK and GROUP columns.
Disk Ownership
The /etc/vx/volboot file is used to delineate disk ownership. The
vxdctl process uses this file to manage the state of vxconfigd and to
bootstrap rootdg during the VxVM software initialization. The following
example illustrates a basic volboot file.
volboot 3.1 0.2 30
hostid lowtide
end
###############################################################
###############################################################
###############################################################
###############################################################
###############################################################
###############################################################
###############################################################
#########################
This file must be 512 bytes in length, including padding characters. Do not
edit this file using vi or other text editor. If this file is corrupted, the
VxVM software initialization fails.
5-9
Boot Mode
During this part of the VxVM software initialization, the software is
started in boot mode using the vxconfigd -m boot command. The
following initialization operations occur at this time:
If the boot disk is under the VxVM software control, rootvol and
user volumes are started.
5-10
1.
2.
/etc/vx/reconfig.d/state.d/install-db
Note Although vxconfigd may not be started, the vxdmp and vxspec
modules are started.
/VXVM#.#.#-UPGRADE/.start_runed
This file prevents vxconfigd from starting even if the boot disk
is under the VxVM software control.
5-11
/etc/rcS.d/
S35vxvm-startup1
Figure 5-3
This script executes after the / and /usr volumes are available and makes
other volumes available that are needed early in the Solaris OE boot
sequence.
Special Volumes
The following special volumes, if configured, are started:
swap
/var
5-12
Mirror re-synchronization
Parity re-synchronization
Dump Device
The dump device is used to store core information when the system
panics. Dump device configuration is as follows:
The dump device is registered by adding and then removing the swap
device. The VxVM software does not have hooks for dumping, so the
swap device must be created prior to the creation of the dump
device.
The dump device must be the first swap device listed in the
/etc/vfstab file.
Core file creation and recovery are performed outside of the VxVM
software operations.
The VxVM software treats all file systems with file type swap in the
/etc/vfstab file as swap volumes.
A real partition
In rootdg
5-13
/etc/rcS.d/S50devfsadm
Figure 5-4
5-14
1.
2.
devfsadm
vxdctl enable
drvconfig
disks
devlinks
vxdctl enable
The dev_info
tree is checked for new devices.
All auto-import disk groups are
imported.
/etc/rcS.d/S85vxvm-startup2
All volumes are started.
Figure 5-5
5-15
Starts all volumes that were not started earlier in the boot sequence
New device entries are added, and invalid entries are kept.
/etc/rcS.d/S86vxvm-reconfig
Figure 5-6
5-16
Flag Files
Flag files are queried for reconfiguration and reboot procedures. The
/etc/vx/reconfig.d/state.d file contains flag files set by prior
operations, as follows:
Note The root_done flag tells the VxVM software that the boot disk is
under VxVM software control and that this startup script can exit without
any action.
5-17
5-18
1.
2.
4.
Clean up rootability.
b.
Clean up volumes.
c.
d.
Reconfigure rootability.
e.
5-19
5-20
Note The boot disk device address depends on the system and on which
storage device is configured as the boot disk.
If the boot disk is under VxVM software control, check that the
boot-device is set to the proper VxVM software-generated device alias,
as follows:
boot-file: data not available
boot-device=vx-rootdisk
local-mac-address?=false
Power user If the primary boot device fails and the system must be
rebooted, use the vx-rootmirror device alias to boot the system.
If the primary boot disk fails and a spare was configured in rootdg, after
the spare disk replaces the failed boot disk and the failed volumes are
being hot-relocated, the VxVM software builds an additional device alias
to enable booting from the spare disk, as follows:
vx-rdgspare01
/sbus@3,0/SUNW,socal@0,0/sf@1,0/ssd@w220000203713f96d,0:a
Use this device alias if the system must be booted from the spare disk.
Note The spare disk device address depends on the system and on
which storage device is configured as the spare disk. Also, the spare disk
name is arbitrary and is reflected in the device alias name.
5-21
2.
3.
4.
5.
6.
Unmount /a.
7.
5-22
swap
/dev/vx/rdsk/rootvol
no
ufs
no logging
/usr
/var
ufs
ufs
1
1
no
no
logging
logging
Recovery of this file requires editing the file to correct problems and, in
severe cases, can require booting from the CD-ROM.
Note Additional information on how to recover from problems in the
/etc/vfstab file are found in the VERITAS Volume Manager
Troubleshooting Guide in the section Recovery from Boot Disk Failure.
Startable Volumes
If the boot disk is under the VxVM software control, all system volumes
(/, swap, /usr, and /var) must start. One reason a volume might not start
is the presence of a stale or unusable plex.
A stale plex is defined as a plex that has data which is inconsistent with
other mirrors of that volume. During the boot process, only the plexes on
the boot disk are accessed until the VxVM software is fully initialized and
a complete configuration for the volumes on the boot disk can be
obtained. If the data on the boot disk is stale, then the system must be
rebooted from an alternate boot disk which does not contain stale plexes.
5-23
Binary Files
Each version of the Solaris OE requires different VxVM software daemon
and driver binaries. These binaries are found in /kernel/drv and
/kernel/drv/sparcv9 (for the 64-bit Solaris OE). The binaries are:
5-24
314156 Nov 21
297920 Aug 15
300980 Aug 15
314156 Nov 21
1026 Aug 15
1920316 Nov 21
1860500 Aug 15
1878432 Aug 15
1920316 Nov 21
991 Aug 15
14968 May 5
14060 Aug 15
14388 Aug 15
23:03 ./vxdmp
2001 ./vxdmp.SunOS_5.6
2001 ./vxdmp.SunOS_5.7
23:03 ./vxdmp.SunOS_5.8
2001 ./vxdmp.conf
23:03 ./vxio
2001 ./vxio.SunOS_5.6
2001 ./vxio.SunOS_5.7
23:03 ./vxio.SunOS_5.8
2001 ./vxio.conf
08:32 ./vxspec
2001 ./vxspec.SunOS_5.6
2001 ./vxspec.SunOS_5.7
1 root
1 root
sys
sys
23:03 ./vxdmp
2001 ./vxdmp.SunOS_5.7
23:03 ./vxdmp.SunOS_5.8
23:03 ./vxio
2001 ./vxio.SunOS_5.7
23:03 ./vxio.SunOS_5.8
08:32 ./vxspec
2001 ./vxspec.SunOS_5.7
2001 ./vxspec.SunOS_5.8
Library Files
The following library files must be in the /etc/vx/slib directory:
bash-2.03# ls -las /etc/vx/slib
total 5346
2 drwxr-xr-x
2 root
other
2 drwxr-xr-x
9 root
other
186 -rwxr-xr-x
1 root
other
10 -rwxr-xr-x
1 root
other
2256 -rwxr-xr-x
1 root
other
10 -rwxr-xr-x
1 root
other
46 -rwxr-xr-x
1 root
other
26 -rwxr-xr-x
1 root
other
26 -rwxr-xr-x
1 root
other
172 -rwxr-xr-x
1 root
other
256 -rwxr-xr-x
1 root
other
12 -rwxr-xr-x
1 root
other
50 -rwxr-xr-x
1 root
other
1776 -rwxr-xr-x
1 root
other
48 -rwxr-xr-x
1 root
other
140 -rwxr-xr-x
1 root
other
512
512
95052
4392
1146284
4848
23348
12432
12432
87108
119244
5456
24968
898600
24360
70864
May 11 13:18 .
May 20 07:20 ..
May 5 08:33 liba5k.so.2
May 5 08:33 liba5k_stub.so.2
May 5 08:32 libc.so.1
May 5 08:34 libc_psr.so.1
May 5 08:33 libdevice.so.1
May 5 09:56 libdevid.so
May 5 09:56 libdevid.so.1
May 5 08:33 libdevinfo.so.1
May 5 08:33 libg_fc.so.2
May 5 08:33 libg_fc_stub.so.2
May 5 08:33 libmp.so
May 5 08:33 libnsl.so.1
May 5 08:33 libnvpair.so.1
May 5 08:32 libsocket.so.1
5-25
1 root
1 root
other
sys
If any of these library files are not accessible and the boot disk is
encapsulated, a message similar to the following is displayed:
Starting VxVM restore daemon...
VxVM starting in boot mode...
ld.so.1: vxconfigd: fatal: <missing library file name is displayed>: open failed: No
such file or directory
Killed
Errors were encountered in starting the root disk group, as a result
VxVM is unable to configure the root and/or /usr volumes. If you have
mirrored the root disk, you can try booting from that disk. Please
refer to Appendix C of the Installation Guide for more details.
If you cannot boot from the root disk, you can try to repair the problem
using a network-mounted root file system or some other alternate root
file system. Again, see the Installation Guide for more details.
Would you like a shell prompt right now? [no]
5-26
If two or more servers access the same disks using the same
bus, the VxVM software hostid ensures that the two hosts do
not interfere with each other when they are accessing VxVM
software disks.
If this file is corrupted or deleted, recover the file from backups of the
affected system. If backups are not available, a reinstall may be necessary.
5-27
Power user The recovery from errors resulting from the execution of
these scripts requires reading each individual script and determining
where the failure is within the script. This requires shell programming
expertise and a detailed understanding of the VxVM software commands
and support files. All of the VxVM software startup scripts are hard
linked from the /etc/init.d file.
5-28
/etc/vx/bin
/usr/sbin
/sbin
5-29
Preparation
To prepare for this exercise:
There must be one additional disk group other than rootdg with at
least one configured, started and mounted volume.
The instructor must give you the location and name of the breakand-fix script.
Provides a list of bugs for use by students to inject real world bugs
into the lab systems.
Fixes the injected bug if the lab team desires to proceed to another
bug without resolving the current bug.
1.
2.
3.
4.
5-30
Problem
Problem
Problem
Problem
1
2
3
4
11.
12.
13.
14.
Problem
Problem
Problem
Problem
11
12
13
14
Problem
Problem
Problem
Problem
Problem
Problem
5
6
7
8
9
10
15.
16.
17.
18.
19.
20.
Problem
Problem
Problem
Problem
Problem
Problem
15
16
17
18
19
20
x. Exit
Enter option [x]:
2.
Break it
Solution
Hint
Return to Main Menu
Exit
3.
Notice that the referring SRDB is listed along with hints to help
resolve the problem.
5-31
Tasks
Execute the break-and-fix script, and select bugs 1 through 10. List
problem resolution steps for each bug in the space listed below.
Problem 1:
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
Problem 2:
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
Problem 3:
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
5-32
5-33
5-34
Exercise Summary
Exercise Summary
!
?
Experiences
Interpretations
Conclusions
Applications
5-35
Task Solutions
The solutions for the tasks in the lab exercise are found in the break-andfix script and on SunSolve in the appropriate SRDB and INFODOC files.
5-36
Module 6
Relevance
Relevance
!
?
6-2
Additional Resources
Additional Resources
Additional resources The following references provide additional
information on the topics described in this module:
vxmend
vxvol
vxplex
vxreattach
vxstat
vxrecover
6-3
The disk must have subdisks that belong to an active volume that is
in use by the system.
6-4
/etc/vx/vxconfigd.log
/var/adm/messages
root mail
Use the following commands and utilities to display the operational state
of managed disks:
vxprint
vxdisk
vxdiskadm
vxstat
MINORS
PRIVLE
GROUP-ID
STATE
PRIMARY
DATAVOLS
SRL
6-5
NAME
NAME
NAME
NAME
NAME
NAME
NAME
RVG
RVG
VOLUME
PLEX
PLEX
PARENTVOL
SNAPVOL
KSTATE
KSTATE
KSTATE
DISK
VOLNAME
LOGVOL
DCO
STATE
STATE
STATE
DISKOFFS
NVOLLAYR
REM_HOST
LENGTH
LENGTH
LENGTH
LENGTH
REM_DG
READPOL
LAYOUT
[COL/]OFF
[COL/]OFF
REM_RLNK
PREFPLEX
NCOL/WID
DEVICE
AM/NM
dg rootdg
default
default
1022020746.1025.lowtide
dm rootdisk
dm rootmirror
c1t0d0s2
-
sliced
-
3590
-
17678493 -
UTYPE
MODE
MODE
MODE
NODEVICE
v
pl
sd
pl
sd
rootvol
ENABLED ACTIVE
15581349 ROUND
root
rootvol-01
rootvol
ENABLED ACTIVE
15581349 CONCAT
RW
rootdisk-02 rootvol-01
rootdisk 7181
15581349 0
c1t0d0
ENA
rootvol-02
rootvol
DISABLED NODEVICE 15581349 CONCAT
- RW
rootmirror-01 rootvol-02 rootmirror 0
15581349 0
- RLOC
v
pl
sd
pl
sd
swapvol
ENABLED ACTIVE
1052163 ROUND
swap
swapvol-01
swapvol
ENABLED ACTIVE
1052163 CONCAT
RW
rootdisk-01 swapvol-01
rootdisk 15588530 1052163 0
c1t0d0
ENA
swapvol-02
swapvol
DISABLED NODEVICE 1052163 CONCAT
- RW
rootmirror-02 swapvol-02 rootmirror 15581349 1052163 0
- NDEV
Note in this example that the failed plex for volume rootvol is
rootvol-0. This volume has a failed subdisk named rootmirror-01. The
volume is unaffected because it is enabled and active.
6-6
DISK
rootdisk
rootmirror
GROUP
rootdg
rootdg
STATUS
online
error
online
online
error
error
error
error
online
failed was:c1t22d0s2
6-7
6-8
6-9
Replacing Disks
Replacing Disks
If a disk fails, it must be replaced. Use one of the following two methods
to replace a failed disk:
6-10
Replacing Disks
See disk in
vxdisk list?
Yes
No
No
First time
through flow?
Yes
No
Run devfsadm or
drvconfig; disks
Yes
Run vxdctl initdmp
and vxdctl enable
Yes
No
Hardware or
Solaris OE Problem
Figure 6-1
6-11
Replacing Disks
Perform the following steps to troubleshoot a disk visibility problem:
1.
Does the VxVM software see the disk? If not, check the Solaris OE. If
the Solaris OE cannot see a disk device, then the VxVM software
cannot see it. Use the format or prtvtoc command to verify that the
Solaris OE is able to detect the disk.
2.
3.
If the Solaris OE still cannot see the disk, check again to see if the
Solaris OE can see the disk.
If the Solaris OE can see the disk, proceed to the next step in the flow
diagram and execute the necessary commands that allow the VxVM
software to see the disk.
If the Solaris OE still cannot see the disk, there is a hardware,
software or driver problem that must be corrected before this disk
can be used by the VxVM software.
4.
When these procedures are complete the disk device should be available
for use, unless there is a hardware or functional VxVM software problem.
6-12
6-13
2.
Mark all other plexes as stale if they are not already in the stale state.
# vxmend fix stale plex_name
3.
Recover the other plexes from the plex just placed in the clean state.
# vxvol start volume_name
6-14
Log plex recovery uses the vxplex command. Type the following:
# vxplex att RAID_5_volume_name Log_Plex_name
6-15
6-16
Try to use the vxdg command to complete the move. Type the
following:
# vxdg recover disk_group_name
3.
If the previous step does not work, try to reset the move flag as
follows:
# vxdg -o clean recover disk_group_name
4.
If the previous step does not work, try to remove the move flag. Type
the following:
# vxdg -o remove recover disk_group_name
6-17
Preparation
To prepare for this exercise:
There must be one additional disk group other than rootdg with at
least one configured, started, and mounted volume.
The instructor must give you the location and name of the breakand-fix script.
6-18
Provides a list of bugs for use by students to inject real world bugs
into lab systems.
Fixes the injected bug if the lab team desires to proceed to another
bug without resolving the current bug.
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
Problem
Problem
Problem
Problem
Problem
Problem
Problem
Problem
Problem
Problem
1
2
3
4
5
6
7
8
9
10
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
Problem
Problem
Problem
Problem
Problem
Problem
Problem
Problem
Problem
Problem
11
12
13
14
15
16
17
18
19
20
x. Exit
Enter option [x]:
2.
Break it
Solution
Hint
Return to Main Menu
Exit
6-19
Notice that the referring SRDB is listed along with hints to help
resolve the problem.
Tasks
Execute the break-and-fix script, and select bugs 11 through 20. List
problem resolution steps for each bug in the space provided.
Problem 11:
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
Problem 12:
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
6-20
6-21
6-22
Exercise Summary
Exercise Summary
!
?
Experiences
Interpretations
Conclusions
Applications
6-23
Task Solutions
The solutions for the tasks in the lab exercise are found in the break-andfix script and on SunSolve in the appropriate SRDB and INFODOC files.
6-24
Module 7
Identify bugs, find patches, and apply patches for the release of the
VxVM software installed
Relevance
Relevance
!
?
7-2
What is the upgrade process for the VxVM software when the boot
disk is encapsulated?
What is the upgrade process for the VxVM software when the boot
disk is not encapsulated?
Additional Resources
Additional Resources
Additional resources The following references provide additional
information on the topics described in this module:
7-3
Patches
The scripted, manual, and pkgadd upgrade processes make provisions for
the encapsulated state of the boot disk. These procedures, as applied to
the boot disk, must be executed precisely, or the upgrade fails.
Upgrades to the Solaris OE are also affected if the VxVM software is
installed. Some of the issues faced with this upgrade are:
Patches
7-4
/CD_Path/scripts
/Package_Distribution_Path/scripts
Unmounts volumes
Obtain and install any new license keys needed for the new release
of the VxVM software.
2.
Make sure that any system-level file systems that are under VxVM
software control have at least one plex where they begin on a
cylinder boundary.
3.
4.
5.
6.
7.
7-5
9.
7-6
2.
If the boot disk is under VxVM control and it is mirrored, use the
vxplex command to break off the mirrors.
3.
4.
Completely remove the VMSA software package. Make sure that the
/opt/VRTSvmsa directory is removed.
5.
6.
7.
8.
Apply the latest VxVM and VMSA software patches for the release
installed
9.
10. Re-encapsulate the boot disk using the recommended Sun best
practices.
11. Re-mirror the boot disk.
12. Import the original disk groups. Make sure that they are upgraded, if
necessary, to use any new features provided by the new release of
the VxVM software.
7-7
7-8
1.
2.
Completely remove the VMSA software package. Make sure that the
/opt/VRTSvmsa directory is removed.
3.
4.
5.
Apply the latest VxVM and VMSA software patches for the release
installed.
6.
7.
Import the original disk groups. Make sure that they are upgraded, if
necessary, to use any new features provided by the new release of
the VxVM software.
Advantage
Using pkgadd
1.
2.
VxVM configuration
data is backed up.
3.
4.
The VRTSlic
package can be
deinstalled if there
are no other
packages using it.
7-9
Disadvantage
Using pkgadd
1.
If a system failure
occurs during the
pkgadd process, the
boot disk may
become unbootable.
2.
The VRTSlic
package might not
be able to be
removed if a second
VRTSvxvm package
is using it.
2.
3.
7-10
7-11
Release Notes
All upgrades and patches include release notes. Be sure to read the release
notes prior to performing any upgrade or patch. Release notes contain
valuable installation and operation information specific to the patch or
release of the VxVM software being installed.
Release notes are normally found in the base directory of the patch or
upgrade distribution and contain either release or notes in the file
name.
Licensing
When upgrading the VxVM software, licensing must be taken into
consideration. If upgrading from the VxVM software version 2.x to 3.x, a
version 3.x license key must be installed prior to the upgrade, or the
VxVM software does not start.
Licensing issues are discusses in the following SunSolve INFODOCs:
7-12
7-13
Preparation
To prepare for this exercise:
The VxVM software packages and patches for the new version must
be available either through network file system (NFS) mounts, ftp,
or local access.
You must have access either to all SunSolve and VERITAS Software
Corporation documents referenced in this module.
Tasks
Complete the following steps:
1.
7-14
2.
3.
4.
5.
7-15
Exercise Summary
Exercise Summary
!
?
7-16
Experiences
Interpretations
Conclusions
Applications
Appendix A
SunSolve INFODOCs
This appendix contains the following SunSolveSM Online Free Info Docs
online sources, available at:
http://sunsolve.Sun.COM/pub-cgi/search.pl?mode=advanced
INFODOC 16051
INFODOC 16051
INFODOC ID: 16051
SYNOPSIS: How to 'Encapsulate' Disks With No Free Space Using Volume Manager
DETAIL DESCRIPTION:
To encapsulate a disk into Veritas Volume Manager or Sun Enterprise Volume Manager[TM],
you must have some free space on the disk in order for Volume Manager to write a private
region to the disk. The private region is generally smaller than 2mb.
However, if you absolutely do not have any free space on the disk, and you can't free up
any, and you really want to get this data under Volume Manager control, you can work
around this by TEMPORARILY "encapsulating" one or more slices from a disk into Volume
Manager so that the data may be mirrored to another disk. Once the data is mirrored to
a "real" Volume Manager disk with a private and public region, you can then break the
mirror, leaving the data on the "real" Volume Manager disk.
SOLUTION SUMMARY:
Here is how to do it:
For each slice on the disk (excluding slice 2), run the following command. In this
example, only slices 5 and 6 have data on them.
vxdisk define c#t#d#s5 type=nopriv
vxdisk define c#t#d#s6 type=nopriv
Then add each of these "slices" as a disk in a disk group and give them a name. This
example names them NPdisk05 and NPdisk06.
vxdg -g <diskgroup> adddisk NPdisk05=c#t#d#s5
vxdg -g <diskgroup> adddisk NPdisk06=c#t#d#s6
Next we create a simple volume (not a file system, just a volume) on each of these new
"disks" that spans the entire "disk". To do this we first check to see what the max size
is for the volumes we are about to create. We're looking for the len value to then use
with the vxassist command to create the volumes.
vxdisk list NPdisk05 | grep public
public:
slice=0 offset=0 len=8196096
vxdisk list NPdisk06 | grep public
public:
slice=0 offset=0 len=9400320
With this info we create the volumes, naming them NPdisk05vol and NPdisk06vol:
vxassist -g <diskgroup> make NPdisk05vol 8196096 layout=nostripe alloc="NPdisk05"
vxassist -g <diskgroup> make NPdisk06vol 9400320 layout=nostripe alloc="NPdisk06"
Next step is to mirror the volumes, assuming that we are mirroring the volumes to a disk
named disk01 that has enough space to mirror both volumes to it:
vxassist -g <diskgroup> mirror NPdisk05vol layout=nostripe alloc="disk01"
vxassist -g <diskgroup> mirror NPdisk06vol layout=nostripe alloc="disk01"
Once that is complete we then remove the original side of the mirror.
vxplex -g <diskgroup> -o rm dis NPdisk05vol-01
vxplex -g <diskgroup> -o rm dis NPdisk06vol-01
The final step is to remove the old disks from the disk group and return them to
their original state.
vxdg -g <diskgroup> rmdisk NPdisk05
vxdg -g <diskgroup> rmdisk NPdisk06
vxdisk rm c0t5d10s5
vxdisk rm c0t5d10s6
This leaves us with two concat volumes named NPdisk05vol and NPdisk06vol.
These volumes will contain the data that was orignally located on
c#t#d#s5 and c#t#d#s6.
A-2
INFODOC 16051
Keywords: SEVM, VxVM, Volume Manager, recover, recovery, configure, configured,
configuration
APPLIES TO: Storage/Veritas, Storage/Volume Manager, AFO Vertical Team Docs/Storage
ATTACHMENTS:
A-3
INFODOC 24663
INFODOC 24663
INFODOC ID: 24663
SYNOPSIS: Full and Basic/Functional Unencapsulation of a Volume Manager Encapsulated
Root Disk While Booted CDROM
DETAIL DESCRIPTION:
Overview:
This document explains the steps necessary to unencapsulate the root disk from Volume
Manager control. This document applies to both Sun Enterprise Volume Manager[TM] (SEVM)
2.x and Veritas Volume Manager (VxVM) 3.x.
This document is divided into two distinct sections. The first section describes full
unencapsulation while booted from a Solaris CDROM. This procedure should be used any
time it is necessary to completely remove the root disk from Volume Manager control and
bring the disk back to a pre-encapsulation state including all partitions such as
/export, and /opt.
The second section explains the steps to perform a Basic/Functional (BF) unencapsulation
while booted from a Solaris CDROM. Basic/Functional unencapsulation temporarily
unencapsulates the root disk so that troubleshooting of booting issues or other issues
can be done. BF unencapsulation gives you access to an unencapsulated /, swap, /usr, and
/var but no access to non "big-4" partitions.
SOLUTION SUMMARY:
Notes for Full Unencapsulation:
Under normal circumstances, if the system can be booted to at least single user mode, it
is recommended that the vxunroot command be used to unencapsulate root. A full
unencapsulation should be performed if the vxunroot command is not working for some
reason, or if the system cannot be booted and we want to completely remove Volume
Manager from having any control over the root disk.
You cannot perform a full unencapsulation and still maintain Volume Manager
functionality if the root disk is the ONLY disk in the rootdg diskgroup. If the root
disk is the only disk in rootdg, you can still unencapsulate, but Volume Manager will
not work until another disk is initialized into rootdg using vxinstall after the system
has been fully unencapsulated. Normally if root it is encapsulated, it is also mirrored
which gives us another disk in rootdg, however it should always be verified that there
is at least one other disk in rootdg before following this procedure so that we know
what to expect once root is unencapsulated.
Also note that Volume Manager will allow you to create volumes using free space on the
root disk, after the root disk has been encapsulated. Volumes created post-encapsulation
like this do not have underlying hard partitions and therefore are not recoverable with
this procedure. If at all possible, make backups of any volumes created on the rootdisk
post-encapsulation before following this procedure. Once you are unencapsulated, if you
have free space and a free partition, you could newfs that partition and restore to it
from your backup.
Steps for Full Unencapsulation:
Bring the system to the OK prompt and insert a Solaris CD into the CDROM drive.
Then issue:
boot cdrom -s
Once booted to the cdrom, set your terminal type so that vi will work correctly.
If TERM=sun doesn't work, often times TERM=vt100 will.
TERM=sun;export TERM
Fsck your root filesystem:
fsck -y /dev/rdsk/c#t#d#s0
A-4
INFODOC 24663
If fsck comes back cleanly, mount slice 0 to /a. If fsck cannot repair the root file
system, there are obviously a number of possibilities. This procedure does not attempt
to explain file system corruption or how to repair it beyond fsck. Fsck must come back
cleanly to continue and mount root.
mount /dev/dsk/c#t#d#s0 /a
Make a backup of /a/etc/system and then edit it:
cp /a/etc/system /a/etc/system.orig
vi /a/etc/system
Completely remove the following lines from the system file. If you re-encapsulate in the
future, these lines will be added back correctly so there is nothing to be lost by
removing them.
rootdev:/pseudo/vxio@0:0
set vxio:vol_rootdev_is_volume=1
Make a backup of /a/etc/vfstab and then edit it:
cp /a/etc/vfstab /a/etc/vfstab.orig
vi /a/etc/vfstab
Edit the vfstab file back to it's original state, pointing /, swap, /usr, and /var to
hard partitions on the disk like /dev/dsk and /dev/rdsk rather than /dev/vx/ entries.
Temporarily comment out all other /dev/vx volumes from the /a/etc/vfstab file using the
# character. This includes filesystems like /opt and /export, if they exist.
The original /etc/vfstab will look something like this, assuming root is c0t0d0:
Note: Columns have been aligned and spaces added for clarity.
--------------------------------------------------------------------------/dev/vx/dsk/swapvol
swap
no /dev/vx/dsk/rootvol
/dev/vx/rdsk/rootvol /
ufs
1
no /dev/vx/dsk/usr
/dev/vx/rdsk/usr
/usr
ufs
1
no /dev/vx/dsk/var
/dev/vx/rdsk/var
/var
ufs
1
no /dev/vx/dsk/export
/dev/vx/rdsk/export
/export ufs
2
yes swap
/tmp
tmpfs
yes /dev/vx/dsk/datadg/somevol
/dev/vx/rdsk/datadg/somevol
/somevol
ufs
2 yes -
volume
volume
volume
volume
volume
/dev/vx/rdsk/datadg/somevol
/somevol
ufs
2 yes -
A-5
INFODOC 24663
--------------------------------------------------------------------------Now make sure Volume Manager does not start on the next boot:
touch /a/etc/vx/reconfig.d/state.d/install-db
This is important because IF the root disk contains mirrors, and the system boots up,
the mirrors will get resynced, corrupting the changes we just made.
Remove the flag that tells Volume Manager that the root disk is encapsulated:
rm /a/etc/vx/reconfig.d/state.d/root-done
Reboot the system for changes to take effect:
reboot
When we reboot we will come up in an partially unencapsulated state with /, /usr, /var,
and swap mounted. Volume Manager will not start but we can start it manually once we
are booted.
To start Volume Manager, run the following commands:
rm /etc/vx/reconfig.d/state.d/install-db
vxiod set 10
vxconfigd -m disable
vxdctl enable
Now we can remove the volumes that existed on the encapsulated boot disk. They will
generally be rootvol, swapvol, usr, and var. They might also include home, opt, or
other non-standard root partitions. Use the command 'vxprint -htg rootdg' to list the
volumes in rootdg before removing them. Then, for each volume, run the command:
/usr/sbin/vxedit -rf rm <volume name>
Remove the rootdisk from rootdg now that it has no volumes, plexes or subdisks: The disk
name is usually 'rootdisk'
/usr/sbin/vxdg rmdisk <disk name>
The final step is to re-write the vtoc of the disk so that hard partitions are again
defined for the root file systems. There are several ways to put the hard partitions
back, including using fmthard on a modified /etc/vx/reconfig.d/disk.d/c#t#d#/vtoc file,
using format to manually repartition the disk, or using the vxmksdpart command. The
simplest method however is to use the vxedvtoc command as explained below.
When Volume Manager encapsulates a disk, it makes a record of the old vtoc of the disk.
This file is stored for each disk in /etc/vx/reconfig.d/disk.d/c#t#d#. This file is
stored in a Volume Manager specific format, so it can't be used as an argument to
fmthard unless it is modified. The 'vxedvtoc' command is similar to fmthard but knows
how to read this vtoc file and write that vtoc to a disk. The command takes the form:
vxedvtoc -f <filename> <devicename>
Assuming that the boot disk is c0t0d0 we would now run the command
/etc/vx/bin/vxedvtoc -f /etc/vx/reconfig.d/disk.d/c0t0d0/vtoc /dev/rdsk/c0t0d0s2
# THE ORIGINAL PARTITIONING IS AS FOLLOWS :
#SLICE
TAG FLAGS
START
SIZE
0
0x0 0x200
0
0
1
0x0 0x200
0
0
2
0x5 0x201
0 8794112
3
0x0 0x200
0
0
4
0x0 0x200
0
0
5
0x0 0x200
0
0
6
0xe 0x201
0 8794112
7
0xf 0x201 8790016
4096
# THE NEW PARTITIONING WILL BE AS FOLLOWS :
#SLICE
TAG FLAGS
START
SIZE
0
0x0 0x200
0 2048000
1
0x0 0x200 2048000 2048000
2
0x5 0x201
0 8794112
3
0x0 0x201 4096000 2048000
A-6
INFODOC 24663
4
0x0 0x201 6144000 2048000
5
0x0 0x200
0
0
6
0x0 0x200
0
0
7
0x0 0x200
0
0
DO YOU WANT TO WRITE THIS TO THE DISK ? [Y/N] :y
WRITING THE NEW VTOC TO THE DISK
This will partition the disk back to a pre-encapsulation state. Now we can uncomment
the entries for any of the non Big-4 root partitions from /etc/vfstab, as well as any
data volumes. In this example we removed comments from /export and the data volume
/somevol.
vi /etc/vfstab
/dev/dsk/c0t0d0s1
/dev/dsk/c0t0d0s0
/dev/dsk/c0t0d0s5
/dev/dsk/c0t0d0s6
/dev/dsk/c0t0d0s7
swap
/dev/rdsk/c0t0d0s0
/dev/rdsk/c0t0d0s5
/dev/rdsk/c0t0d0s6
/dev/rdsk/c0t0d0s7
-
/
/usr
/var
/export
/tmp
swap
ufs
ufs
ufs
ufs
tmpfs
1
1
1
2
-
no
no
no
no
yes
yes
/dev/vx/dsk/datadg/somevol /dev/vx/rdsk/datadg/somevol /somevol ufs 2 yes Just to make sure, start all volumes
/usr/sbin/vxvol startall
Now issue a mountall to mount the now uncommented volumes
mountall
At this point the root disk is completely free of Volume Manager control, Volume Manager
daemons are started, and all file systems / volumes should be mounted.
Notes for Basic/Functional Unencapsulation:
This section explains the steps necessary to temporarily unencapsulate the root disk
from Volume Manager control. BF unencapsulation allows the system to be booted from the
raw Solaris partitions while still leaving the root disk under Volume Manager control.
This is a good method for troubleshooting boot issues that appear to be due to the disk
being encapsulated because it can be undone by reversing the steps. This procedure can
be used even if the root disk is the only disk in the rootdg diskgroup because,
throughout the procedure, root will keep it's private and public region. This procedure
will only allow you to mount /, /usr, /var, and swap. Any non "Big-4" partitions will
not be mounted. If you must have non "Big-4" partitions available, you should perform a
full unencapsulation as outlined above.
Steps for Basic/Functional Unencapsulation:
Bring the system to the OK prompt and insert a Solaris CD into the cdrom drive. Then
issue:
boot cdrom -s
Once booted to the cdrom, set your terminal type so that vi will work correctly. If
TERM=sun doesn't work, often times TERM=vt100 will.
TERM=sun;export TERM
Fsck your root filesystem:
fsck -y /dev/rdsk/c#t#d#s0
If fsck comes back cleanly, mount slice 0 to /a. If fsck cannot repair the root file
system, there are obviously a number of possibilities. This procedure does not attempt
to explain file system corruption or how to repair it. fsck must come back cleanly to
continue and mount root.
mount /dev/dsk/c#t#d#s0 /a
Make a backup of /a/etc/system and then edit it:
cp /a/etc/system /a/etc/system.orig
vi /a/etc/system
A-7
INFODOC 24663
Comment out the following lines using double asterisks **.
**rootdev:/pseudo/vxio@0:0
**set vxio:vol_rootdev_is_volume=1
Make a backup of /a/etc/vfstab and then edit it:
cp /a/etc/vfstab /a/etc/vfstab.orig
vi /a/etc/vfstab
Edit the vfstab file back to it's original state, pointing /, swap, /usr, and /var to
hard partitions on the disk like /dev/dsk and /dev/rdsk rather than /dev/vx/ entries.
Temporarily comment out all other /dev/vx volumes from the /a/etc/vfstab file using the
# character. This includes filesystems like /opt and /export, if they exist.
The original /etc/vfstab will look something like this, assuming root is c0t0d0: Note:
Columns have been aligned and spaces added for clarity.
--------------------------------------------------------------------------/dev/vx/dsk/swapvol
swap
no /dev/vx/dsk/rootvol
/dev/vx/rdsk/rootvol /
ufs
1
no /dev/vx/dsk/usr
/dev/vx/rdsk/usr
/usr
ufs
1
no /dev/vx/dsk/var
/dev/vx/rdsk/var
/var
ufs
1
no /dev/vx/dsk/export
/dev/vx/rdsk/export
/export ufs
2
yes swap
/tmp
tmpfs
yes /dev/vx/dsk/datadg/somevol
/dev/vx/rdsk/datadg/somevol
/somevol
ufs
2 yes -
A-8
INFODOC 24663
When we reboot we will come up in an unencapsulated state with /, /usr, /var, and swap
mounted.
At this point we have performed a Basic/Functional unencapsulation. This is a not a
state that they system should be left in permanently. It is a state that is useful for
troubleshooting and system maintenance.
If problems with the system are resolved and you are ready to re-encapsulate, perform
the following:
touch /etc/vx/reconfig.d/state.d/root-done
rm /etc/vx/reconfig.d/state.d/install-db
cp /a/etc/vfstab.orig /a/etc/vfstab
cp /a/etc/system.orig /a/etc/system
reboot
Keywords: SEVM, VxVM, Volume Manager, encapsulation
APPLIES TO: Operating Systems/Solaris/Solaris 8, Operating Systems/Solaris/Solaris 7,
Operating Systems/Solaris/Solaris 2.6, Operating Systems/Solaris/Solaris 2.5.1,
Storage/Veritas, Storage/Volume Manager, AFO Vertical Team Docs/Storage
ATTACHMENTS:
A-9
Appendix B
Start
Encapsulate?
Yes
Boot Disk?
Yes
Page 10 of 26
No
No
Unencapsulate?
No
Yes
Page 2 of 26
Boot Disk?
Yes
Page 11 of 26
No
Page 7 of 26
End
B-2
07/18/2002
Select disk to
encapsulate.
join
If encapsulating the boot
disk, do not use default
disk name.
No
partitions for
If a default disk
name was not
to 31 characters in
length.
previously
encapsulation?
selected, enter
If encapsulating the boot
an arbitrary
name now
rootdisk.
Page 3
Yes
;AI
of 26
is the normal
vxdiskadm
# vxdiskadm
question. If
changing default
Use default
No
private region
utility.
size?
region size.
Yes
utility.
Exit
Encapsulate
additional disks?
Select disk to
encapsulate
No
vxdiskadm
c#t#d#
the system.
End
Answer yes
continue
to
operation
Disk Encapsulation Flowchart
Rev-B
07/18/2002
Page 2 of 26
Yes
B-3
This flow has been selected because a disk with existing data
vxdisk
to bring
under VxVM
softwar control
Yes
Configure
additional slices?
No
Add each of these
"slices" as a disk to
an existing disk
group
Yes
Configure
additional slices?
No
Rev-B
Page 3 of 26
B-4
07/18/2002
Document the
maximum size of
the "disks" just
created. This
information shall
be used to create
Example
volumes
Yes
public
len=8196096
public
len=9400320
Document
additional slices?
<size> \
volumes.
Example
Yes
Create additional
volumes?
No
Page 5 of 26
Disk Encapsulation Flowchart
Rev-B
07/18/2002
Page 4 of 26
B-5
Yes
Example
Mirror additional
volumes?
No
No
Mirroring process
complete?
Yes
Yes
Remove additional
mirrors?
No
B-6
07/18/2002
Yes
Remove additional
disks?
No
End
07/18/2002
Page 6 of 26
B-7
Any grown
Disk is unable to be
Yes
volumes?
unencapsulated.
No
Any volumes
structurally
Yes
modified?
Disk is unable to be
unencapsulated.
No
Original
disk
Yes
replaced?
Disk is unable to be
unencapsulated.
No
Encapsulated disks use slices six and
seven for public and private regions.
Identify disk to be
unencapsulated.
vxprint
format / prtvtoc
No
End
Volumes
Review content of
/etc/vfstab file
backed-up?
to define
pre-encapsulation
Yes
configuration
Disk Encapsulation Flowchart
B-8
Page 8 of 26
Rev-B
07/18/2002
Page 7 of 26
Yes
Remove additional
mirrors?
No
Yes
Additional
partitions to
restore?
No
No
Restored?
End
Yes
Page 9 of 26
07/18/2002
Page 8 of 26
B-9
Yes
Unmount
additional
volumes?
No
Re mount filesystems
vxedit -r -f rm <volume>
Example
#vxedit -r -f rm fs1
#vxedit -r -f rm fs2
Yes
Remove additional
volumes?
No
End
07/18/2002
Page 9 of 26
B-10
Encapsulate
and mirror using
Yes
Sun ES
Page 24 of 26
No
s o f t wa r e . T o e n c a p s u l a t e t h e b o o t
Yes
disk, answer
OAI
Boot Disk"
to the
prompt
"Encapsulate
and
answer
No
End
Page 2 of 26
07/18/2002
Page 10 of 26
B-11
vxunroot?
Yes
Yes
Page 12 of 26
No
Manual?
Page 15 of 26
No
Booted
from
Yes
Page 19 of 26
Page 22 of 26
CDROM?
No
Basic
Functionality?
No
Yes
End
B-12
07/18/2002
No
Current boot
starting.
disk backup?
Yes
/, /usr,
software except (
rootdg
rootmirror" disk.
rootmirror "
removed.
All
rootmirror"
"
plexes detached
and removed?
Yes
vxunroot
will fail.
07/18/2002
Page 12 of 26
B-13
vxunroot
/etc/vx/bin/vxunroot
command.
Successful?
No
Page 14 of 26
Yes
Reboot system
Reboot
successful?
No
Page 14 of 26
No
Page 14 of 26
Yes
Verify system
file system mounts.
Using non
VxVM software
objects
Yes
End
07/18/2002
Page 13 of 26
B-14
vxunroot
1st
time through
Go to manual
still
No
flow?
fails?
process.
No
Yes
vxunroot
command
Go to CDROM
Reboot
No
unencapsulation
Yes
failed?
failed?
unencapsulation
Yes
process.
No
Execute
Yes
vxunroot
Still using
unencapsulation
VxVM software
system volumes
process again.
Yes
objects?
Follow
instructions
unmounted.
exactly as written
No
Verify all volumes
on this disk have
Other
modified.
Yes
problem?
No
Call support.
End
Verify all
rootmirror"
"
System
bootable?
Still using
Yes
VxVM software
objects?
No
Other
No
problem?
removed.
End
No
Execute
vxunroot
unencapsulation
process again.
Yes
Go to CDROM
Go to manual
unencapsulation
unencapsulation
process.
process.
Yes
Call support.
Rev-B
07/18/2002
Page 14 of 26
B-15
No
The following procedure requires a reboot of the
system. Terminate all production applications
Current boot
disk backup?
starting.
Yes
Unmount all file systems
under the control of VxVM
/ /usr, /
software except ( ,
boot disk.
rootdg
configuration.
rootmirror" disk.
rootmirror"
removed.
All
rootmirror"
"
plexes detached
and removed?
Yes
B-16
Rev-B
07/18/2002
Page 15 of 26
Remove rootability
using the following
processes:
rm /etc/vx/reconfig.d/state.d/
root-done
Remove the
root-done file.
Edit the
system
cp /etc/system /etc/system.orig
vi /etc/system
/etc/
file and
rootdev"
remove "
lines:
statements.
/
swap, /usr, /var) partitions
If there are non system ( ,
Edit the
rootdev:/pseudo/vxio@0:0
set vxio:vol_rootdev_is_volume=1
/etc/
vfstab
restore to it's
could include
encapsulation state.
/opt, /home or
/etc/
vfstab.prevm to restore the original
file and
encapsulated.
"system" partitions on
vxmksdpart -g <diskgroup> \
<plexname> <partition#> tags
flags
vxmksdpart
command to restore.
Example
#/etc/vx/bin/vxmksdpart -g
datadg \
datadg01-04 5 0x00 0x00
Reboot
No
successful?
Yes
Page 18 of 26
Page 17 of 26
07/18/2002
Page 16 of 26
B-17
All boot
disk file systems
mounted?
/etc/vfstab
vfstab
entries.
Yes
Recursively remove
boot volumes from
rootdg
Verify volume
No
removal
vxedit -r -f rm rootvol
vxedit -r -f swapvol
Volumes
removed?
Yes
control.
No
Disk
removed?
Yes
Update the VxVM
software's view of
vxdctl enable
installed disks.
End
Rev-B
Page 17 of 26
B-18
07/18/2002
System
bootable?
End
Yes
No
Manual
Go to CDROM
unencapsulation
failed. First time
unencapsulation
Yes
process.
through flow?
No
CDROM
unencapsulation failed
No
leaving an unbootable
Other
Yes
problem?
Call support.
system?
No
End
Yes
Boot disk
backup
No
available?
Reinstall Solaris
Operating Environment
End
Yes
Rebuild boot disk from
backups. Once restored, boot
Pre
encapsulation
backup?
No
Yes
End
07/18/2002
Page 18 of 26
B-19
No
starting.
disk backup?
Yes
Bring system to boot
prom and boot to single
user mode from
CDROM.
vt100 so vi will
work.
/a
vt100 so vi will
work.
Edit the
system
cp /a/etc/system /a/etc/system.orig
vi /a/etc/system
/etc/
file and
rootdev"
remove "
statements.
rootdev:/pseudo/vxio@0:0
set vxio:vol_rootdev_is_volume=1
/a/etc/vfstab
B-20
Rev-B
Page 20 of 26
07/18/2002
Page 19 of 26
encapsulation state.
was encapsulated.
touch /a/etc/vx/reconfig.d/state.d/ \
install-db
Prevent Volume
Manager from starting on
the next boot.
Remove
rm /a/etc/vx/reconfig.d/state.d/ \
root-done
boot disk
encapsulation flag.
Page 18 of 26
No
Reboot
successfull?
The system will reboot in a partially unencapsulated
state with /, swap, /usr and /var mounted.
Yes
rm /etc/vx/reconfig.d/state.d/ \
install-db
vxiod set 10
vxconfigd -m disable
vxdctl enable
later.
Rev-B
07/18/2002
Page 21 of 26
Page 20 of 26
B-21
encapsulated disk.
Example
/usr/sbin/vxedit
/usr/sbin/vxedit
/usr/sbin/vxedit
/usr/sbin/vxedit
/usr/sbin/vxedit
Remove the boot disk
from
rootdg
-rf
-rf
-rf
-rf
-rf
rm
rm
rm
rm
rm
rootvol
swapvol
usr
var
opt
vtoc
to it's pre
vxedvtoc
vtoc
/etc/vx/bin/vxedvtoc -f /etc/vx/reconfig.d/disk.d/ \
<bootdisk c#t#d#>/vtoc /dev/rdsk/<bootdisk c#t#d#s2
Example
/etc/vx/bin/vxedvtoc -f /etc/vx/reconfig.d/disk.d/ \
c0t0d0/vtoc /dev/rdsk/c0t0d0s2
CAUTION:
c#t#d#
home /export
,
/opt /
,
and others.
Rev-B
End
B-22
Page 21 of 26
07/18/2002
No
The following procedure requires a reboot of the
system. Terminate all production applications
Current boot
disk backup?
starting.
Yes
Bring system to boot
prom and boot to single
user mode from
CDROM.
/a
vt100
so vi will
work.
Edit the
/etc/
cp /a/etc/system /a/etc/system.orig
vi /a/etc/system
**rootdev:/pseudo/vxio@0:0
**set vxio:vol_rootdev_is_volume=1
Do not skip this step. This copy is used to
restore the system back to it's original state
once system maintenance or troublrshooting
has been completed.
/a/etc/vfstab
cp /a/etc/vfstab /a/etc/vfstab.orig
Page 23 of 26
Rev-B
07/18/2002
Page 22 of 26
B-23
/etc/vfsta
/, swap, /
usr and /var
Edit the
b file
and restore
to their pre
/etc/vfstab
/dev/vx
/ swap /usr
/var
encapsulation physical
file
devices commented
and
should be
vx...
/export
(/dev/
/opt
devices.
). This includes
and
if they exist.
Remove
boot disk
encapsulation flag.
touch /a/etc/vx/reconfig.d/state.d/ \
install-db
rm /a/etc/vx/reconfig.d/state.d/ \
root-done
unencapsulated
maintenance.
with /,
/var
state
swap /usr
,
m ounted.
software
and
VxVM
stopped.
No
Maintenance
finished?
Yes
touch /etc/vx/revconfig.d/state.d/root-done
rm /etc/vx/reconfig.d/state.d/install-db
cp /etc/vfstab.orig /etc/vfstab
cp /etc/system.orig /etc/system
reboot
Rev-B
End
B-24
Page 23 of 26
07/18/2002
Recommended Guidelines:
1. Use a maximum of three slices 2. Never configure
/usr
/, swap
and
/var
(optional).
as a separate slice.
vxdiskadm
vxdiskadm
builds and
are present.
4. Replace the encapsulated boot disk with an initialized disk. Replacing the
encapsulated disk with an initialized disk insures that the boot disk and the mirror disk
are identical. This reduces the complexity of the mirrored boot disk configuration.
/,
5. Map the core system volumes to slices/partitions. This should not be necessary if
swap
and
/var
are the only slices on the boot disk and you are using VxVM 3.x or
higher.
6. Ensure that all boot disk mirrors are bootable and have a devalias built in the
OpenBoot Prom.
7. Create a clone disk. This disk must be able to be booted from slices (not under VxVM
control, non encapsulated copy of the boot disk) and be able to run VxVM software
utilities (VxVM installed). This disk is used if there is a complete failure of the VxVM
managed boot disk making the system un-bootable.
vtoc
# mkdir /var/tmp/sysdocs
# prtvtoc /dev/dsk/c#t#d#s2 > \
/var/tmp/sysdocs/rootdisk_prevm.vtoc
for
reference if
needed.
vxdiskadm
vxinstall
or
rootmirror
rootdg.
for
# /etc/vx/bin/vxdisksetup -i c#t#d#
# vxdg -g rootdg adddisk rootmirror=c#t#d#
Page 25 of 26
Disk Encapsulation Flowchart
Rev-B
07/18/2002
Page 24 of 26
B-25
# /etc/vx/bin/vxrootmir rootmir
# vxassist -g rootdg mirror swapvol rootmirror&
# vxassist -g rootdg mirror var rootmirror&
Note: If the original boot disk was configured only using
and
/var
vxdiskadm
/, swap
is acceptable.
while true
> do
> vxtask list
> sleep 15
> echo "#####################"
> done
W ait for the mirroring
process to complete
No
Mirroring
Process
Complete?
Yes
Dissociate the
rootdisk plexes
vxplex
vxples
vxplex
vxedit
Page 26 of
26
07/18/2002
Page 25 of 26
B-26
Remove the
rootdisk
rootdg
from
Initialize the
/etc/vx/bin/vxdisksetup -i c#t#d#
vxdg -g rootdg adddisk rootdisk=c#t#d#
/etc/vx/bin/cxrootmir rootmir
vxassist -g rootdg mirror swapvol rootmirror&
vxassist -g rootdg mirror var rootmirror&
vxmksdpart.
/, swap
and
/var
boot disk, vxdiskadm can be used to create the new mirror and
vxdiskadm will build all the overlay partitions making this step
unnecessary.
vxprint -qhtg
rootdg prior to executing the
vxmksdpart command to get the subdisk names for the overlay
Note: Run
# dumpadm -d /dev/dsk/c#t#d#s#
available.
Create the
OBP
device aliases if
necessary.
07/18/2002
Page 26 of 26
B-27
Appendix C
Figure C-1 illustrates an example partitioning scheme of a complex, fiveslice boot disk.
Boot Disk
Slice 2
Slice 0 - /
Slice 1 - swap
Slice 3 - /usr
Slice 4 - /var
Slice 5 - /opt
Slice7
Private Region
Free Space
swapvol
Slice 2 and
Slice 6
(Public Region)
Overlaps
Full Disk.
/opt is
Encapsulated
in Public Region
Mirror Disk
rootvol
Preserved
/opt
Slice 2
Overlay Partition - swap (1)
Overlay Partition - /usr (6)
Overlay Partition - /var (7)
Figure C-1
C-2
Mount Directory
/
/usr
/var
/opt
C-3
Flag
wm
wu
wm
wm
wm
wm
wm
wm
Cylinders
0 - 584
585 - 1169
0 - 4923
1170 - 2338
2339 - 3507
3508 - 4676
0
0
Size
1.00GB
1.00GB
8.43GB
2.00GB
2.00GB
2.00GB
0
0
Blocks
(585/0/0)
2100735
(585/0/0)
2100735
(4924/0/0) 17682084
(1169/0/0) 4197879
(1169/0/0) 4197879
(1169/0/0) 4197879
(0/0/0)
0
(0/0/0)
0
Pre-Encapsulation df -k Command
Example output from the df -k command delineates the physical devices
supporting currently mounted file systems.
bash-2.03# df -k
Filesystem
/dev/dsk/c1t2d0s0
/dev/dsk/c1t2d0s3
/proc
fd
mnttab
/dev/dsk/c1t2d0s4
swap
swap
/dev/dsk/c1t2d0s5
kbytes
1018382
2055705
0
0
0
2055705
1222104
1222104
2055705
used
avail capacity
47206 910074
5%
772430 1221604
39%
0
0
0%
0
0
0%
0
0
0%
956248 1037786
48%
16 1222088
1%
16 1222088
1%
2133 1991901
1%
Mounted on
/
/usr
/proc
/dev/fd
/etc/mnttab
/var
/var/run
/tmp
/opt
C-4
Last
Sector
2100734
4201469
17682083
8399348
12597227
17682083
17682083
Mount Directory
C-5
Flag
wm
wu
wm
wm
wm
wm
wu
wu
Cylinders
0 - 584
585 - 1169
0 - 4923
1170 - 2338
2339 - 3507
0
0 - 4923
4923 - 4923
Size
1.00GB
1.00GB
8.43GB
2.00GB
2.00GB
0
8.43GB
1.75MB
Blocks
(585/0/0)
2100735
(585/0/0)
2100735
(4924/0/0) 17682084
(1169/0/0) 4197879
(1169/0/0) 4197879
(0/0/0)
0
(4924/0/0) 17682084
(1/0/0)
3591
Post-Encapsulation df -k Command
The following example of output from the df -k command shows that
the VxVM software volumes are used for the file systems provided by the
boot disk.
bash-2.03# df -k
Filesystem
/dev/vx/dsk/rootvol
/dev/vx/dsk/usr
/proc
fd
mnttab
/dev/vx/dsk/var
swap
swap
/dev/vx/dsk/opt
kbytes
1018382
2055705
0
0
0
2055705
1180368
1180424
2055705
used
75398
805992
0
0
0
974276
16
72
53686
avail capacity
881882
8%
1188042
41%
0
0%
0
0%
0
0%
1019758
49%
1180352
1%
1180352
1%
1940348
3%
Mounted on
/
/usr
/proc
/dev/fd
/etc/mnttab
/var
/var/run
/tmp
/opt
C-6
1020469848.1025.lowtide5
dm rootdisk
dm rootmirror
3590
3590
17678493 17678493 -
c1t2d0s2
c1t20d0s2
sliced
sliced
v
pl
sd
pl
sd
opt
opt-01
opt
rootdisk-03 opt-01
opt-02
opt
rootmirror-01 opt-02
ENABLED ACTIVE
ENABLED ACTIVE
rootdisk 12597227
ENABLED ACTIVE
rootmirror 0
v
pl
sd
sd
pl
sd
rootvol
rootvol-01
rootvol
rootdisk-B0 rootvol-01
rootdisk-02 rootvol-01
rootvol-02
rootvol
rootmirror-02 rootvol-02
v
pl
sd
pl
sd
4197879
4197879
4197879
4197879
4197879
ROUND
CONCAT
0
CONCAT
0
c1t2d0
c1t20d0
gen
RW
ENA
RW
ENA
ENABLED ACTIVE
2100735
ENABLED ACTIVE
2100735
rootdisk 17678492 1
rootdisk 0
2100734
ENABLED ACTIVE
2100735
rootmirror 4197879 2100735
ROUND
CONCAT
0
1
CONCAT
0
c1t2d0
c1t2d0
c1t20d0
root
RW
ENA
ENA
RW
ENA
swapvol
swapvol-01
swapvol
rootdisk-01 swapvol-01
swapvol-02
swapvol
rootmirror-03 swapvol-02
ENABLED ACTIVE
2100735
ENABLED ACTIVE
2100735
rootdisk 2100734 2100735
ENABLED ACTIVE
2100735
rootmirror 6298614 2100735
ROUND
CONCAT
0
CONCAT
0
c1t2d0
c1t20d0
swap
RW
ENA
RW
ENA
v
pl
sd
pl
sd
usr
usr-01
usr
rootdisk-05 usr-01
usr-02
usr
rootmirror-04 usr-02
ENABLED ACTIVE
4197879
ENABLED ACTIVE
4197879
rootdisk 4201469 4197879
ENABLED ACTIVE
4197879
rootmirror 8399349 4197879
ROUND
CONCAT
0
CONCAT
0
c1t2d0
c1t20d0
gen
RW
ENA
RW
ENA
v
pl
sd
pl
sd
var
var-01
var
rootdisk-04 var-01
var-02
var
rootmirror-05 var-02
ENABLED ACTIVE
4197879 ROUND
ENABLED ACTIVE
4197879 CONCAT
rootdisk 8399348 4197879 0
ENABLED ACTIVE
4197879 CONCAT
rootmirror 12597228 4197879 0
c1t2d0
c1t20d0
gen
RW
ENA
RW
ENA
no
no
swap
FS
type
fsck
pass
mount
mount
at boot options
ufs
-
yes
no
C-7
1
no
no
yes
no
-
C-8
Last
Sector Mount Directory
6302204 <-- /
8402939 <-- swap
17682083 <-- overlap/backup
3590 <-- Private
17682083 <-- Public
4201469 <-- /opt
12600818 <-- /usr
16798697 <-- /var
Flag
wm
wu
wu
wu
wu
wm
wm
wm
Cylinders
1170 - 1754
1755 - 2339
0 - 4923
0 0
1 - 4923
1 - 1169
2340 - 3508
3509 - 4677
Size
1.00GB
1.00GB
8.43GB
1.75MB
8.43GB
2.00GB
2.00GB
2.00GB
Blocks
(585/0/0)
2100735
(585/0/0)
2100735
(4924/0/0) 17682084
(1/0/0)
3591
(4923/0/0) 17678493
(1169/0/0) 4197879 <-- /opt
(1169/0/0) 4197879
(1169/0/0) 4197879
C-9
Manually Unencapsulating
The manual unencapsulation process for a five-slice disk is similar to the
manual procedure described in Manually Unencapsulating a Boot Disk
on page 2-60. The one difference in the process of unencapsulating a fiveslice boot disk is the recovery of the /opt partition; this procedure is
covered as part of the manual unencapsulation procedure.
Additionally, the procedures in Unencapsulating When Booted From the
CD-ROM on page 2-64, and Performing a Basic or Functional
Unencapsulation on page 2-68 are similar for a five-slice boot disk.
Execute these procedures as written in the referenced sections. Be sure to
recover the /opt partition using the instructions for one of the following
commands:
C-10
Appendix D
D-2
D-3
D-4
slot
SBus
slot
SBus
Please wait.
D-5
D-6
Appendix E
Relevance
Relevance
!
?
E-2
Additional Resources
Additional Resources
Additional resources The following references provide additional
details on the topics discussed in this module:
E-3
Layered Volumes
Prior to version 3.2, the VxVM software applied default rules to assign
disks using the vxassist command. The default rules essentially created
the RAID stripe and then the mirror. The VxVM software version 3.0
introduced layered volumes, allowing for RAID 1 + RAID 0 (mirror and
striping) configurations. This feature is now fully implemented in VxVM
software version 3.2 through the vxassist command -o ordered option.
Concatenate disks
2.
Form columns
3.
Form mirrors
E-4
Plex States
Plex state information reflects consistent or inconsistent configurations
and the state of those configurations.
Valid plex states are described in detail in Module 1, Introducing the
VERITAS Volume Manager Software Architecture, in the section Plex
State Descriptions on page 1-34.
Volume States
Volume states consist of the following:
Clean Volume is not started; kernel state is disabled, but plexes are
synchronized.
E-5
Disk States
The following example shows output of the vxdisk list command:
DEVICE
c0t0d0s2
c0t2d0s2
c1t0d0s2
c2t0d0s2
c3t0d1s2
c3t0d4s2
c3t1d1s2
c3t2d0s2
c3t2d1s2
c3t2d2s2
c3t3d0s2
c3t3d2s2
c3t3d3s2
c3t4d0s2
c3t4d3s2
c3t5d2s2
-
TYPE
DISK
GROUP
STATUS
sliced disk06
online
sliced error
sliced rootdisk rootdg online
sliced error
sliced online
sliced rootmir rootdg online
sliced newdg01 newdg
online spare
sliced newdg02 newdg
online spare
sliced disk01
rootdg online
sliced newdg04 newdg
online reserved
sliced newdg05 newdg
online nohotuse
sliced newdg07 newdg
online invalid
sliced error
sliced newdg09 newdg
online failing
sliced newdg12 newdg
online altused
sliced newdg15 newdg
online
newdg03 newdg removed was:c3t2d1s2
newdg08 newdg removed was:c3t3d3s2
newdg11 newdg failed was:c3t4d2s2
E-6
Failing (VxVM software version 2.x and 3.x) This disk incurred a
hardware error in the past.
Nohotuse (VxVM software version 3.x) This disk is not used for
relocated data.
Dgname (VxVM software version 3.x) The disk group name, shown
only when using the -o alldgs option.
MINORS
PRIVLEN
STATE
STATE
STATE
STATE
DISKOFFS
NVOLLAYR
GROUP-ID
PUBLEN
PRIMARY
REM_HOST
LENGTH
LENGTH
LENGTH
LENGTH
STATE
DATAVOLS
REM_DG
READPOL
LAYOUT
[COL/]OFF
[COL/]OFF
SRL
REM_RLNK
PREFPLEX
NCOL/WID
DEVICE
AM/NM
dg rootdg
default
default
1023554924.1025.lowtide
dm rootdisk
dm rootmirror
c1t0d0s2
c1t1d0s2
sliced
sliced
3590
3590
17678493 17674902 -
v
pl
sd
sd
pl
sd
rootvol
rootvol-01
rootvol
rootdisk-B0 rootvol-01
rootdisk-02 rootvol-01
rootvol-02
rootvol
rootmirror-01 rootvol-02
ENABLED ACTIVE
ENABLED ACTIVE
rootdisk 17678492
rootdisk 0
ENABLED ACTIVE
rootmirror 0
4197879
4197879
1
4197878
4197879
4197879
ROUND
CONCAT
0
1
CONCAT
0
c1t0d0
c1t0d0
c1t1d0
UTYPE
MODE
MODE
MODE
root
RW
ENA
ENA
RW
ENA
E-7
Field Descriptions
This section contains an explanation of the fields in the vxprint output.
For additional information about the vxprint command, see the vxprint
man page.
E-8
Disk ID
Record name
Record name
Record name.
Record name.
E-9
RW Read-Write
WO Write only
RO Read only
For volumes, the output consists of the following fields, from left to right:
E-10
Record type v:
Record name
Record name
Record name
Record name
Record name
E-11
RAID 0+1
Volume
RAID1+0
Plex
Stripe Volumes
Mirror
Plex
Volume
Plex
Mirror
Subplex
sd
Stripe
Stripe
Figure E-1
Subplex
sd
Stripe Volumes
mirror
Mirror
subplex
subplex
sd
sd
sd
sd
The layout in Figure E-1 is referred to as layer volumes or a VERITAS stripepro or VERITAS concat-pro layout. This layout enhances redundancy and
reduces recovery time in case of an error. In a mirror-stripe layout, if a
disk fails, the entire plex is detached, thereby losing redundancy on the
entire volume. When the disk is replaced, the entire plex must be brought
up to date. Recovering the entire plex can take a substantial amount of
time.
E-12
Stripe
vol01-S02
Figure E-2
E-13
Subvolume vol01-S01
Subvolume vol01-S02
These objects provide the stripe. Notice that even though mirroring is
implemented, it is not visible to the single upper layer plex. In essence, this
configuration is a single stripe that is mirrored.
There are two subvolumes with a total of four subdisks in the plex. From
the perspective of the plex, the capacity is equal to two subdisks. The
other subdisks provide the data redundancy. Underneath the plex, logical
subvolumes provide the mirroring as shown in Figure E-3.
Plex
vol01-S01
vol01-L01
vol01-P01 vol01-P02
Disk 04
Disk 01
Mirror
vol01-S02
vol01-L02
vol01-P03 vol01-P04
Disk 02
Disk 03
Mirror
Figure E-3
E-14
ACTIVE 2097152
ACTIVE 2097152
1
1048576
ACTIVE 1048576
ACTIVE 1048576
0
1048576
ACTIVE 1048576
0
1048576
1
1048576
ACTIVE 1048576
ACTIVE 1048576
0
1048576
ACTIVE 1048576
0
1048576
SELECT
STRIPE
0/0
SELECT
CONCAT
0
CONCAT
0
1/0
SELECT
CONCAT
0
CONCAT
0
vol01-03
2/128
2/2
c0t1d0
c1t9d0
2/2
c1t8d0
c1t10d0
fsgen
RW
ENA
fsgen
RW
ENA
RW
ENA
ENA
fsgen
RW
ENA
RW
ENA
E-15
Column 2
Column 3
disk01-01
disk03-01
disk05-01
disk02-01
disk04-01
disk06-01
Mirror
Mirror
Mirror
Column 1
Column 2
Column 3
disk07-01
disk09-01
disk11-01
disk08-01
disk10-01
disk12-01
Striped Plex
Figure E-4
This command allocates space for column 1 from disks on controllers c1,
for column 2 from disks on controller c2, and so on.
E-16
In this example, the disks in one plex are all attached to controller c1, and
the disks in the other plex are all attached to controller c2. If a controller
fails, only one side of the mirror is lost.
E-17
Start simple.
Start with a simple disk layout; then add complexity. Learn the
layout needed to identify the tool set requirements, and start further
tuning.
E-18
RAID 5 Parity disks are used at the hardware level only or on readonly oriented file systems.
Large file systems (8 gigabytes and above) are usually striped over
four to eight disks.
E-19
Striping Considerations
The question of how to perform striping is a subject of hot debate with no
correct answer. This is partly due to the fact that striping can either help
or hurt performance, depending on the workload, the number of stripes
per disk, concurrent access, and how well the application uses I/O.
Striping Characteristics
The objective of striping is to reduce head contention. Potentially,
especially with high capacity disks, striping can increase head contention
by increasing concurrent access, resulting in inconsistent allocation of the
stripe or poor data layouts (multiple heavy I/O stripes on the same
disks).
After striping is set up, it can be more difficult to reconfigure than
unstriped environments. This can result in additional time the system
administrator needs to set up and maintain the striped environment.
Another consideration is the human overhead associated with configuring
and managing a striped I/O subsystem. This impact is far higher on a
busy system than on an idle one. Operators and administrators must be
trained on the striping setup and the impact each disk has on the system
performance.
The primary goal for striping is to identify large file systems which
require striping. Large file systems with high-intensity sequential
reads or writes require striping.
Place those file systems which do not require striping in a single disk
volume.
E-20
E-21
Online Re-Layout
Online re-layout allows reconfiguration of RAID layouts on currently
configured volumes. A volume can be re-laid out or converted to another
layout.
Online re-layout is supported for the following operations:
RAID 5 to mirror
Mirror to RAID 5
Mirror to Concat
Concat to RAID 5
RAID 5 to Concat
Only one plex is used if you are re-laying out to RAID 5. See the
vxassist man pages for additional information.
E-22
2.
STATE
ACTIVE
LENGTH
40960
READPOL
SELECT
PREFPLEX
-
The number after size is the size of the file system, in kilobytes. To
translate to sectors, multiply by 2.
b.
nau 3
E-23
If you do not specify the disks, the vxassist command uses the
disks in the diskgroup.
4.
This command only grows the volume. Remember to grow the file
system as well, if needed.
Note The vxassist command also has a growby option. See the
vxassist man pages for more information.
2.
STATE LENGTH
READPOL
ACTIVE 10639360 SELECT
PREFPLEX
-
The mkfs command has an option to grow a file system instead of making
one. To use this option, the file system must be mounted. You must also
use the full path to the mkfs program; do not use /usr/sbin/mkfs.
Note The above process is described in detail by Sun Solve INFODOC
14881.
E-24
NAME
USETYPE
NAME
VOLUME
NAME
PLEX
vol04
fsgen
vol04-01 vol04
newdg01-01vol04-01
newdg03-01vol04-01
newdg05-01vol04-01
newdg07-01vol04-01
KSTATE
KSTATE
DISK
ENABLED
ENABLED
newdg01
newdg03
newdg05
newdg07
STATE
STATE
DISKOFFS
ACTIVE
ACTIVE
0
0
0
0
LENGTH
LENGTH
LENGTH
154224
154224
51408
51408
51408
51408
READPOL
LAYOUT
[COL/]OFF
SELECT
STRIPE
0/0
1/0
2/0
3/0
PREFPLEX
NCOL/WID
DEVICE
vol04-01
4/128
c4t0d0
c4t2d0
c4t4d0
c4t0d1
MODE
MODE
RW
ENA
ENA
ENA
ENA
NAME
NAME
NAME
USETYPE
VOLUME
PLEX
v
pl
sd
sd
sd
sd
sd
sd
sd
sd
vol04
fsgen
vol04-01 vol04
newdg01-01vol04-01
newdg02-01vol04-01
newdg03-01vol04-01
newdg04-01vol04-01
newdg05-01vol04-01
newdg06-01vol04-01
newdg07-01vol04-01
newdg08-01vol04-01
KSTATE
KSTATE
DISK
STATE
LENGTH
STATE
LENGTH
DISKOFFS LENGTH
READPOL
PREFPLEX
LAYOUT
NCOL/WID
[COL/]OFF DEVICE
MODE
MODE
ENABLED
ENABLED
newdg01
newdg02
newdg03
newdg04
newdg05
newdg06
newdg07
newdg08
ACTIVE
ACTIVE
0
0
0
0
0
0
0
0
SELECT
STRIPE
0/0
0/51408
1/0
1/51408
2/0
2/51408
3/0
3/51408
RW
ENA
ENA
ENA
ENA
ENA
ENA
ENA
ENA
614400
616944
51408
102816
51408
102816
51408
102816
51408
102816
vol04-01
4/128
c4t0d0
c4t1d0
c4t2d0
c4t3d0
c4t4d0
c4t5d0
c4t0d1
c4t1d1
STATE
LENGTH
STATE
LENGTH
DISKOFFS LENGTH
READPOL
PREFPLEX
LAYOUT
NCOL/WID
[COL/]OFF DEVICE
MODE
MODE
v
pl
ACTIVE
ACTIVE
SELECT
STRIPE
RW
vol04
fsgen
vol04-01 vol04
ENABLED
ENABLED
205632
205632
vol04-01
4/128
E-25
newdg12-01vol04-01
newdg13-01vol04-01
newdg08-01vol04-01
newdg02-01vol04-01
newdg12
newdg13
newdg08
newdg02
0
0
0
0
51408
51408
51408
51408
1/0
2/0
3/0
0/0
c4t0d1
c4t2d4
c4t3d1
c4t0d0
ENA
ENA
ENA
ENA
STATE
LENGTH
STATE
LENGTH
DISKOFFS LENGTH
READPOL
PREFPLEX
LAYOUT
NCOL/WID
[COL/]OFF DEVICE
v
pl
sd
sd
sd
sd
sd
sd
ACTIVE
ACTIVE
0
358848
0
0
358848
0
SELECT
STRIPE
0/0
0/51408
1/0
2/0
2/51408
3/0
E-26
vol04
fsgen
vol04-01 vol04
newdg12-01vol04-01
newdg12-01vol04-01
newdg13-01vol04-01
newdg08-01vol04-01
newdg08-03vol04-01
newdg02-01vol04-01
ENABLED
ENABLED
newdg12
newdg12
newdg13
newdg08
newdg08
newdg02
409600
411552
51408
51408
102816
51408
51408
102816
vol04-01
4/128
c4t0d0
c4t0d0
c4t0d1
c4t2d4
c4t2d4
c4t3d1
MODE
MODE
RW
ENA
ENA
ENA
ENA
ENA
ENA
Caution Using the same target name as an existing deported disk group
destroys that group.
To join disk groups, use the following syntax:
vxdg [-o expand] join sourcedg targetdg [object ...]
To move objects from one imported disk group to another, use the
following syntax:
vxdg [-o expand] move sourcedg targetdg [object ...]
For each of these vxdg commands, the option -o expand includes all
disks from volumes sharing subdisks.
For a complete list of options for the vxdg command, see the man pages.
E-27
The following example commands each split a disk group and then
restart the volumes in the new disk group:
# vxdg split old-dg new-dg disk01 disk02 disk03
# vxrecover -g new-dg -m vol01
# vxvol -g new-dg start vol01
# vxprint -h new-dg
Disk group: newdg
TY
dg
E-28
3.
If the recovery fails, check to see if the disk group was imported onto
another host. If it was imported, deport it from that host, and import
it onto the current host.
4.
If all the required objects already exist in either the source or target
disk group, use the following command to reset the MOVE flags in
that disk group:
# vxdg -o clean recover new-dg
5.
Use the following command on the other disk group to remove the
objects that have TUTIL0 fields marked as MOVE :
# vxdg -o remove recover old-dg
6.
The PUTIL fields are permanent and stay set even after a reboot. The
TUTIL fields are temporary and do not survive a reboot.
E-29
KSTATE
ENABLED
ENABLED
ENABLED
ENABLED
ENABLED
LENGTH
2050272
2050272
2050272
2050272
2050272
PLOFFS
0
0
STATE
ACTIVE
ACTIVE
TEMPRMSD
-
TUTIL0
ATT1
ATT
-
PUTIL0
-
2.
Reconfiguration Considerations
The disk group move, split, and join features have the following
limitations:
E-30
Data change objects (DCOs) and snap objects that are dissociated by
persistent fast resynchronization cannot be moved between disk
groups.
E-31
Hot-Relocation
Hot-Relocation
Hot-relocation allows a system to relocate data automatically in a
redundant configuration, in the event of a subdisk failure. There are,
however, a number of restrictions for hot-relocation use:
This section discusses the hot-relocation process and how to perform it.
Hot-Relocation Process
To execute relocation, the hot-relocation deamon vxrelocd handles four
distinct operations, in the following order:
1.
Failure detection
2.
Notification
3.
Relocation
4.
Recovery
E-32
Hot-Relocation
.
vxrelocd
vxnotify
failure
detected
vxrelocd
vxrelocd
correct,
action
mailx
vxconfigd
determine
available
space
updates
configuration
vxassist
notify
access
disk
builds
objects
vxrecover
recovers data
Figure E-5
Failure Detection
The vxrelocd deamon is a script running in the background, interacting
with vxnotify, to monitor three types of failure:
E-33
Hot-Relocation
After a failure is detected, the vxrelocd deamon takes object-specific
actions and can include a kernel-initiated change that alters the
configuration. If a configuration change is required, the vxconfigd
deamon is notified with the request update. The vxconfigd deamon, in
turn, writes out the configuration change to the database copies.
Notification
The vxrelocd deamon notifies users (by default, the root user) using the
mailx command, providing information about the failure and the status
of relocation and recovery. The file /etc/rc2.d/s95-vxvm-recover
contains a list of users to notify.
To add users to the notification list, modify the
/etc/rc2.d/s95-vxvm-recover file as follows:
vxrelocd root username1 username2 &
Changes to this file take effect at the next reboot or when the vxrelocd
command is executed from the command line. To execute this command
from the command line, kill the running vxrelocd deamon first, but be
careful not to kill the deamon in the middle of a relocation process.
Error notification takes the following form:
Date: Wed, 6 Feb 2002 12:04:27 GMT
From: root
Subject: Volume Manager failures on host fred
To: root
Volume vol02 Subdisk disk04-02 relocated to disk06-03, but not yet recovered.
E-34
Hot-Relocation
Relocation
The vxrelocd daemon determines available space by looking for the
spare flag in the DM record.
To display the spare flag use either the vxdisk or vxprint command, as
shown in the following example:
# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c0t0d0s2 sliced rootdisk rootdg online
c1t12d0s2 sliced altboot rootdg online
c1t13d0s2 sliced newdg01 newdg online
c1t14d0s2 sliced newdg02 newdg online
c1t15d0s2 sliced newdg03 newdg online spare
If a spare flag is not set then the vxrelocd deamon uses available space in
the disk group to build the VxVM object. To exclude a disk from use in
hot-relocation, set the nohotuse flag as follows:
# /etc/vx/bin/vxedit -g disk_group set nohotuse=on disk_name
If a disk fails, then remove it from space allocation as follows:
# vxedit set failing=on fail_disk
To rejoin space allocation:
# vxedit set failing=off fail_disk
After space is determined, the vxrelocd deamon uses the vxassist
command with the move option to create the new objects, which retain the
existing names.
Recovery
Recovery is the last step in the hot-relocation process. After new objects
are moved, the vxrelocd deamon calls the vxrecovery command to
recover the data. Two fields are added to the DM record to identify the
original location of the object: the orig_dmname= and orig_dmoffset=
fields. These assist in manually restructuring the original object.
E-35
Hot-Relocation
Hot-Relocation Configuration
The vxdiskadm utility has new options which support hot-relocation,
available as of the VxVM software version 3.1.
A sample of the vxdiskadm menu display is as follows:
Volume Manager Support Operations
Menu: VolumeManager/Disk
1 Add or initialize one or more disks
2 Encapsulate one or more disks
3 Remove a disk
4 Remove a disk for replacement
5 Replace a failed or removed disk
6 Mirror volumes on a disk
7 Move volumes from a disk
8 Enable access to (import) a disk group
9 Remove access to (deport) a disk group
10 Enable (online) a disk device
11 Disable (offline) a disk device
12 Mark a disk as a spare for a disk group
13 Turn off the spare flag on a disk
14 Unrelocate subdisks back to a disk
15 Exclude a disk from hot-relocation use
16 Make a disk available for hot-relocation use
17 Prevent multipathing/Suppress devices from VxVMs view
18 Allow multipathing/Unsuppress devices from VxVMs view
19 List currently suppressed/non-multipathed devices
list List disk information
q Exit from menus
Alternatively, use the vxedit command to set the spare flag from the
command line. Use the following command:
# vxedit set spare=on disk_name
E-36
Hot-Relocation
Unrelocating
If you try to manually move a relocated subdisk using the vxsd
command, the following message is displayed:
vxvm:vxsd: ERROR: Relocate trace information in subdisk disk04-01 not empty. Use -r to
retain or -d to discard it
E-37
Hot-Spares
Hot-Spares
The hot-spare process is similar to hot-relocation, but there are significant
differences between the two. The primary functional difference is disk
selection in the event of a failure; hot-relocation is able to relocate
subdisks, whereas the hot-spare process relocates entire disks. With hotrelocation, the event of a failure to a subdisk no longer impacts all
volumes on the physical disk, unless it is the disk that fails. Hot-relocation
is the recovery process available in the VxVM software, starting with
version 2.3.
In the hot-spare process, the /etc/vol/sparelist file is maintained to
determine locations of available spare disks. In the hot-relocation process,
inherent policies determine where subdisks are relocated. The primary
policy for both the hot-spare and hot-relocation processes is to locate
recovered data based on the spare flag and drive locality. The closer the
drive is to the failed drive, the greater the preference.
E-38
Hot-Spares
E-39