Professional Documents
Culture Documents
100002353A
COURSE
DEVELOPERS
Gail Ade~
AND
REVIEWERS
Jade ArrinJ,(lolI
:\Iargy
BilJ,(e Gerrits
lECHNICAL
CONTRIBUTORS
Copyright'
Cassid~
Ro~' Freeman
Joe Gallagher
Bruce Garner
Tomer G urantz
OF THIS PUIlLlCAIION.
Bill Havev
H!:RUN
Geue Henriksen
Gerald Jackson
Haymond
TH~. INFOR\IATION
ro CHANtiE
WITHOUT
CONTAINLD
NOTICE.
Karns
Bill Lehman
Boh l.ucas
Durivunc
Manikhung
Chr'istlan
Rahanus
Dan Rugers
Kleher Saldanha
Albrecht Scriba
"liehe!
IS SUBJECT
Simoni
Anaudu Sirisena
Pete 'Iuemmes
Table of Contents
Course Introduction
What Is Storage Virtualization?.
Introducing VERITAS Storage Foundation
VERITAS Storage Foundation Curriculum ..
Lesson
1: Virtual
Intro-2
Intro-6
Intro-11
Objects
1-3
1-10
1-13
1-15
Lesson
2: Installation
and Interfaces
Installation Prerequisites
.
Adding License Keys..
.
VERITAS Software Packages ..
Installing Storage Foundation.
Storage Foundation User Interfaces.
Managing the VEA Software
Lesson
3: Creating
2-3
.... 2-5
. 2-7
2-10
2-16
2-21
3-12
318
3-21
3-24
3-30
Volume
Layouts
.
.
.
Changes
Table of Contents
Copyrigtlt
,( 2006
4-3
4-9
4-18
.425
Svmantec
Corporation
All rights
reserved
5-3
5-10
5-16
5-21
5-23
Lesson
6: Administering
Comparing
Using VERITAS
Controlling
File Systems
the Allocation
6-9
7: Resolving
,
Hardware
6-15
Problems
,...
7-3
7-8
7-12
7-22
,..,..,
A-3
A-7
,
,..,
A: Lab Exercises
,..,..,
,
Changes
6-3
6-5
Logging in VxFS
Lesson
File Systems
A-21
,
..
,..,
,..,
....,
A-15
A-29
A-37
A-47
B: Lab Solutions
,..,
,
,
,
,..,
Changes
File Systems
Hardware Problems
"
"......................
,
,..,
B-3
B-7
B-21
B-33
,.."
B-47
"
B-67
B-85
Glossary
Index
Corporation
All nqhts
reserved.
Course Introduction
symantec
10%
E-mail
Server
50% Full
I'
r ,
Customer Order
Database
90% F
Problem: Customer
order database cannot
access unutilized
storage.
Multiple-vendor hardware
Explosive data growth
Different application needs
Management pressure to
increase efficiency
Multiple operating systems
Rapid change
Budgetary constraints
increasingly
Multiple
data growth
applications
Management
vendors
with different
operating systems
constraints
Intro-2
VERITAS
Storage
Foundation
consistent and
,S}lnamcc.
Virtualizatlon:
The logical
representation of
physical storage
across the entire
enterprise
Consumer
Consumer
sliildeM"
fIiIiiIrIIi"m''fl
.MimkM4
Consumer
m'
&
'f
Throughput
Responsiveness
Growth otential
Ca acit
Failure
resistance
Recovery time
Performance
Availabilit
Disk size
MTBF
Number of disks!
path
Path
redundanc
include:
Course
Intro-3
Introduction
Copyright
t: 20U6
Symanter;
Corporation
All riqh'~
.eservco
syrnantec
Storage Virtualization:
Storage-Based
Types
Host-Based
JfIfIJ'AIiI'AY
Servers
Network-Based
AiIII1'
AYAYAY
Servers
Server
~j,~
Storage
Storage
~s.,",
Storage
VERITAS
Inlro-4
Copynghl
,C ;':OOb Svmantec
Storage Foundation
Conioranon
AU flghls
reserved
Additional servers do not need to access the data assigned to a particular host.
Maturity of technology is a highly important factor to you in making IT
decisions.
Note: By combining VERITAS Storage Foundation with clustering technologies.
such as VERITAS Cluster Volume Manager. storage can be virtualized to multiple
hosts ofthe same operating system.
Network-Based Storage Virtualization
Network-basedstorage virtualization refers to disks from multiple arrays and
multiple vendors that arc presented virtually to multiple servers. Network-based
storage virtualization is useful under these conditions:
You need 10 have data accessible across heterogeneous servers and storage
devices.
You require central administration of storage across all Network Attached
Storage (NAS) systems or Storage Area Network (SAN) devices.
You want to ensure that replacing or upgrading storage does not disrupt data
access.
Course Introduction
Intro-5
Copyright ,~,2006 Svmantec Corporation. All nnhts reserved
syrnarucc
Introducing
Intro-6
VERITAS
Cnpyllght , 2006 Syroantec
Storage
Corporation
Foundation
All r,ghts
reserved
Users
\/ Applications\/
Databases \
....................................................................................................
VERITAS
Volume
Manager
(VxVM)
00.0
00
.0..(?v!2!J.t.1
"
....,,\
\
'.',
Intro-7
Course Introduction
Copyright
os 2006
svrnaruec
Benefits
Manageability
- Manage storage and file systems from one interface.
- Configure storage online across Solaris, HP-UX, AIX, and
Linux.
- Provide additional benefits for array environments, such as
inter-array mirroring.
Availability
- Features are implemented to protect against data loss.
- Online operations lessen planned downtime.
Performance
- 1/0 throughput can be maximized using volume layouts.
- Performance bottlenecks can be located and eliminated
using analysis tools.
Scalability
- VxVM and VxFS run on 32-bit and 64-bit operating systems.
- Storage can be deported to larger enterprise platforms.
AlX, Linux,
VxFS command operations are consistent across Solaris, HP-UX, AlX, and
Linux platforms.
Storage Foundation provides additional benefits for array environments, such
as inter-array mirroring.
Availability
Through software RAID techniques, storage remains available in the event of
hardware fai lure.
Intro-8
[10
Scalability
YxYM runs over a 32-bit and M-hit operating system.
Ilosts can be replaced without modifying storage.
Hosts with different operating systems can access the same storage.
Storage devices can be spanned.
YxYM is fully integrated with YxFS so that modifying the volume layout
automatically modi lies the file system internals.
With YxFS. several add-on products are available for maximizing performance
in a database environment.
Intro-9
Course Introduction
Copyright;;; 2006 Symalll~r. Corporation All rights .esorveo
symantec
VERITAS
tntro-10
Copyngtll'
Storage
Foundation
,S}11Hlntt'C
VERITAS Storage
Foundation for
UNIX:
Fundamentals
~------------
VERITAS Storage
Foundation for
UNIX:
Maintenance
---v--------------~
for UNIX
10
Inlro-11
Course Introduction
Cor-yriqht 2006 Symantec Corporauon. All
rights
reserved
syrnantcc
Storage Foundation
Fundamentals:
Overview
Lesson 6: Administering
Lesson 7: Resolving
Problems
File Systems
Hardware
Overview
This training provides comprehensive instruction un operating the file and disk
management foundation products: VERITAS Volume Manager (VxVM) and
VERITAS File System (VxFS). In this training. you learn how to combine file
system and disk management technology to ensure easy management of all storage
and maximum availability of essential data.
Objectives
After completing this training. you will be able to:
Identify VxVM virtual storage objects and volume layouts.
Install and configure Storage Foundation.
Configure and manage disks and disk groups.
Create concatenated. striped, mirrored. RAID-5, and layered volumes.
Configure volumes by adding mirrors and logs and resizing volumes and tile
systems.
Perform tile system administration.
Resolve basic hardware problems.
Intro-12
Course
S)111<1ntt'(
Resources
(Appendix B)
Glossary
Glossary
For your reference. this course includes a glossary ofterms
Storage Foundation.
related to V[RITAS
tntro-13
Course Introduction
Copyrigtllf'
2006
Symanter
Corporation
All rights
reserved
Typographic
Conventions
The following
Element
Examples
Courier Nell.
bold
Command input.
both syntax and
examples
vxdisk
Courier New.
plain
lu the output:
Command
names. directory
names. tile
names. path
names. user
protocol
protocol
protocol
passwords. URLs
when used within
regular text
paragraphs.
Variables in
command syntax,
and examples:
Variables in
command input
are Italic. plain.
Variables in
command output
are ltulic. bold.
alldgs
-0
Command output
names.
Courier New.
Italic. bold or
plain
-d
40
60
0
- mlnlmum:
- maximum:
-current:
directory.
/ /www.symantec.com.
-name
lor a disk:
vxdisk
-g
disk - name
list
disk_group
Element
Examples
Arrow
Initial
capitalization
Intro-14
AU fights reserved
Lesson 1
Virtual Objects
symantcc
Lesson Introduction
Lesson 1: VirtU!!L9_bl~~ts
Lesson 2: Installation
and Interfaces
Lesson 6: Administering
Lesson 7: Resolving
Problems
File Systems
Hardware
svmantec
Topic
1-2
COPYlIgl1l.~
2006
Symanter.
Ccq-orauon
All fights
rnservoc
Physical
S)11Jan\,'(
Disk Structure
Solaris
HP-UX
AIX
Linux
Disk Structure
Solaris
A physical disk under Solaris contains the partition table of the disk and the volume Table
of contents (VTOC) in the first sector 151~ bytes) of the disk. The VTOC has at least an
entry lor the backup partition on the II hole disk (partition tag 5, normally partition number
2), so the OS may work correctly with the disk. The VTOC is always a part of the backup
partition and may be part ota standard data partition. You can destroy the VTOC using the
raw device driver on that partition making the disk immediately unusable.
Partitions
(Slices)
~1\US'
1'. 2006
Symaruec
Corporation
All nqtus
reserved
If the disk contains the partition fur the rout file system mounted on / (partition tag 2), lor
example of an OS disk, this root partition contains the bootblock for the first boot stage
after the Open Bout Prom within sector I - 15. Sector 0 is skipped, so there is no
overlapping
between VTOe and boorblock. if the root partition starts at the beginning of
the disk.
The li"t sector ofa file system un Soluris cannut start before sector 16 of the partition.
Sector 16 contains the main super block of the file system. Using the block device driver
of the file system prevents VTOC and boot block from being overwritten by applicuuon
data.
Note: 011 Solaris. VxVM 4. I and later support EFI disks. EFI disks are an lntcl-based
technology that allows disks to retain BIOS code.
HP-lJX
On an HP-UX system. the physical disk is traditionally
disk approach or Logical Volume Manager (LVM).
HP-UX Disk
cOtld4
partitioned
LVM Disk
cOtld4
The whole disk approach enables you tu partition a disk in five ways: the whole disk is
used by a single file system: the whole disk is used as swap area: the whole disk is
used as a raw partition: a portion of the disk contains a file system, and the rest is used
as swap: or the boot disk contains a 2-MB special boot are". the root file system, and a
swap area.
An LVM data disk consists of four areas: Physical Volume Reserved Area (PVRA):
Volume Group Reserved Area (VGRA): user data area: and Bad Block Relocation
Area I BBRA).
AIX
A native AIX disk docs not have a partition table "I' the kind familiar on many other
operating systems. such as Solaris, Linux, and Windows. An application could use the
entire unstructured raw physical device. but the lirst 5 I 2-byte sector normally contains
intunn.uion, including a physical volume identifier (pvid) to support recognition of the
disk by AIX. An AIX disk is managed by IBM's Logical Volume Manager (LVM) by
defuult. A disk managed by LVM is called a physical volume (PV). A physical volume
consists of:
PV reserved area: A physical volume begins with a reserved area of 128 sectors
containing I'V metadatu. including the pvid.
1-4
VERITAS
COPYright
Storage
Corporauon
Foundation
All [lgtHS
reserveo
Physical volume
reserved area
(128 sectors)
,Raw
device
,hdisk3
Volume Group
Descriptor Areas
Physical partitions
(equal size,
defined in VGDA)
The term partition is used differently in different operating systems. In many kinds of
UNiX. Linux, and Windows. a partition is a variable sized portion of contiguous disk
space that can be formatted to contain a file system. in LVM. a PI' is mapped to a logical
partition 11..1'). and one or more LPs from any location throughout the V(j can be
combined to define a logical volume (LV). A logical \'0IU111eis the entity that can be
formatted to contain a file system (by default either .IFS or .IFS2), So a physical partition
compares in concept more closely to a disk allocation cluster in some other operating
systems. and a logical volume plays the role that a partition does in some other operating
systems.
Linux
On Linux. a nonboot disk can be divided into one to lour primary partitions. One of these
primary partitions can be used to contain logical partitions. and it is called the extended
partition. The extended partition can have lip to I ~ logical partitions on a SCSi disk and lip
to 60 logical partitions on an IDE disk, You can use fdisk to set up partitions on a Linux
disk,
1-5
Primary Partition 1
/dev/sdal or/dev/hdal
Primary Partition 2
/dev/sda2or /dev/hda2
Primary Partition 3
/dev/sda3or /dev/hda3
Primary Partition 4
(Extended Partition)
/dev/sda4
/dev/hda4
On a l.inux boot disk. the boot partition must be a primary partition and is typically
located within the first 1024 cylinders of the drive. On the boot disk. you must also have a
dedicated swap partition. The swap part ition can be a primary or a logical partition. and it
can be located anywhere on the disk.
Logical partitions must be contiguous. but they do not need to take up all of the space of
the extended partition. Only one primary partition can be extended. The extended partition
docs not take up any space until it is subdivided into logical partitions.
VERITAS Volume Manager 4.0 for Linux does not support most hardware RAID
controllers currently unless they present SCSI device interfaces with names of the
form / dev / sdx.
The following controllers are supported:
PERC, on the Dell 1650
MegaRAID. on the Dell 1650
ScrvcRAID.
on x440 systems
Compaq array controllers that require the Smart I and CCISS drivers (w hich present
device paths. such as I dev I idal c #d#p # and I dev I cc i ssl c #d#p#) arc supported
lor normal use and for rootnbiliry.
16
Cupynqht
All fights
rcserveo
,S)l1HHlh'(
Solaris
/dev/[rJdsk/c1t9dOs2
HP-UX
/dev/
AIX
/dev/hdisk2
[rJ dak/c3t2dO
Linux
SCSI disks:
(no slice)
(no slice)
You locate and access the data on a physical disk by using a device name that
specifies the controller, target ID. and disk number. A typical device name uses the
format: c#t#d#.
c# is the controller number.
t# is the target !D.
d# is the logical unit number (LUN) of the drive attached to the target.
Ira disk is divided into partitions. you also specify the partition number in the
device name:
s# is the partition
(slice) number,
For example. the device name cOtOdOsl is connected to controller number 0 ill
the system. with a target ID oro. physical disk number O. and partition number I
011 the disk.
HP-liX
You locate and access the data on a physical disk by using a device name that
specifies the controller. target ID, and disk number. A typical device name uses the
format: c#t#d#.
c# is the controller number.
t#
d# is the logical unit number (LUN) of the drive attached to the target.
1-7
Copyright
.~.. 2006
Svmanter
Corporauon
All fights
reserved
For example, the cOt OdO device name is connected to the controller number
the system, with a target 10 of 0, and the physical disk number O.
in
AIX
Every device in AIX is assigned a location code that describes its connection to the
system. The general format of this identifier isAB-CD-EF-GH,
where the letters
represent decimal digits or uppercase letters. The first two characters represent the
bus. the second pair identify the adapter, the third pair represent the connector, and
the tinal pair uniquely represent the device. For example, a SCSI disk drive might
have a location identifier of 04 - 01- 00 - 6, O. In this example, 04 means the PCI
bus, 01 is the slot number on the PCI bus occupied by the SCSI adapter, 00 means
the only or internal connector, and the 6,0 means SCSIID 6, LUN o.
However, this data is used internally by AIX to locate a device. The device name
that a system administrator or software uses to identify a device is less hardware
dependant. The system maintains a special database called the Object Data
Manager (ODM) that contains essential definitions for most objects in the system,
including devices. Through the ODM. a device name is mapped to the location
identifier. The device names are referred to by special files found in the / dev
directory. For example, the SCSI disk identified previously might have the device
name hdisk3 (the fourth hard disk identified by the system). The device named
hdisk3 is accessed by the file name /dev/hdisk3.
If a device is moved so that it has a different location identifier, the ODM is
updated so that it retains the same device name. and the move is transparent to
users. This is facilitated by the physical volume identifier stored in the first sector
of a physical volume. This unique 128-bit number is used by the system to
recognize the physical volume wherever it may be attached because it is also
associated with the device name in the ODM.
Linux
sdx [N]
hdx [N]
In the syntax:
sd refers to a SCSI disk, and hd refers to an EIDE disk.
x is a letter that indicates the order of disks detected by the operating system.
For example, sda refers to the first SCSI disk, sdb refers to the second SCSI
disk. and so on.
N is an optional parameter that represents a partition number in the range I
through 16. For example. sda 7 references partition 7 on the first SCSI disk.
Primary partitions on a disk are I. 2, .~.4: logical partitions have numbers 5 and up.
If the partition number is omitted, the device name indicates the entire disk.
1-8
\I Applications\!
Users
00
PhYSi!1[!LUNS
Databases \
00
Disk Arrays
Reads and writes on unmanaged physical disks can be a relatively slow process,
because disks are physical devices that require time to move the heads to the
correct position on the disk before reading or writing. If all of the read and write
operations are performed to individual disks. one at a time. the read-write time can
become unmanageable.
1/1"'(11' is a collection of physical disks. Performing 110 operations on
multiple disks in a disk array can improve 1/0 speed and throughput.
A disk
Hardware arrays present disk storage to the host operating system as LUNs.
Multipathed Disk Arrays
Some disk arrays provide multiple ports to access disk devices. These ports.
coupled with the host bus adaptor (IIBA) controller and any data bus or 110
processor local to the array. compose multiple hardware paths to access the disk
devices. This type of disk array is called a muttipathed disk aI'I'O\'.
You can connect rnultipathed disk arrays to host systems in many different
configurations. such as:
Connecting multiple ports to different controllers on a single host
Chaining ports through a single controller on a host
Connecting ports to di tferent hosts simultaneously
1-9
Cop'r'riglll'(~
2006
Symantec
Corporation
All
rights. roservoo
symarucc
Multidisk
configurations:
Concatenation
Volume Manager
volumes appear to
applications
to be physical disk
partitions.
Mirroring
Striping
RAIDS
High Availability:
Volumes have
block and character
device nodes in the
Zdev tree:
Idev/vxl
lr l dsk/ ...
Disk group
import and deport
Hot relocation
Dynamic
multipathing
LoadBalancing
Disk Spanning
1-10
VERITAS
Copynght
'6 2006
Symantec
Storage
Comor
auon
Foundation
All fights
reserved
When you place a disk under VxVM control, a cross-platform data sharing (CDS)
disk layout is used, which ensures that the disk is accessible on different
platforms, regardless of the platform on which the disk was initialized.
-------.L~_~
I- ..
lOS-reserved areas
that contain:
I " Platform blocks
I " VxVM 10 blocks
" AIX and HP-UX
I. coexistence labels
Public
Region
Volume Manager-Controlled
Disks
With Volume Manager. you enable virtual data storage by bringing a disk under
Volume Manager control. By default in VxVM 4.0 and later. Volume Manager
uses a cross-platform data sharing (CDS) disk layout. A CDS disk is consistently
recognized by all VxVM-supported
UNIX platforms and consists of:
Ox-reserved area: To accommodate plat tonn-spcci fie disk usage. f 2RK is
reserved for disk labels. platform blocks. and platform-coexistence
labels.
Private region: The private region stores information. such as disk headers.
configuration copies. and kernel logs. in addition to other platform-specific
management areas that VxVM uses to manage virtual objects. The private
region represents a small management overhead:
Operating System
Solaris
512 bytes
HI'-UX
1024 bytes
AIX
512 bytes
Linux
512 bytes
Public region: The public region consists of the remainder of the space on the
disk. The public region represents the available space that Volume Manager
can LIseto assign to volumes and is where an application stores data. Volume
Manager never overwrites this area unless specifically instructed to do so.
Lesson
1-11
1 Virtual Objects
Copvriqht 'I' 2006 svoteotec Corporation
syrnantec.
Comparing
CDS Disk
Sliced Disk
(>4.x Default)
Simple Disk
(Pre .x HP-UX
Default)
Private region
(metadata) and
public region (user
data) are created on
a single partition.
Comparing
The pre-t.v
utilities.
VERITAS
1-12
Cupyrlght
L 200t)
Symantec
Storage Foundation
Corporation
All
f,gtl1s
reserved
Ploxes
acctdg
Disk Group
payvol
expvol
acctd
01-01
acctdgO~ - O~
llcctdg03-02
expvol-Ol
VxVM Disks
acctdg01-02
acctdg02-01
llcctdg03-01
payvol-Ol
payvol-02
acctdg03
Subdisks
Physical Disks
Lesson
Virtual Objects
1-13
Copyright
~~.2Un6
Svmantec
Corporanon
All rights
reserved
You can supply the disk media name or allow Volume Manager to assign a default
name. The disk media name is stored with a unique disk ID to avoid name
collision. After a VxVM disk is assigned a disk media name, the disk is no longer
referred 10 by its physical address. The physical address (for example, clltlldll or
hdiskll) becomes known <IS the disk access record.
Subdisks
A VxVM disk can be divided into one or more subdisks. A subdisk is a set of
contiguous disk blocks that represent a specific portion ofa VxVM disk, which is
mapped to a specific region of a physical disk. A subdisk is a subsection of a disk's
public region. A subdisk is the smallest unit of storage in Volume Manager.
Therefore, subdisks are the building blocks for Volume Manager objects.
A subdisk is defined by an offset and a length in sectors on a VxVM disk.
Default subdisk name: DMname-1l1l
A Vx VM disk can contain multiple subdisks, but subdisks cannot overlap or share
the same portions ofa VxVM disk. Any VxVM disk space that is not reserved or
that is not part of a subdisk is free space. You can use free space to create new
subdisks.
Conceptually, a subdisk is similar to <I partition. Both a subdisk and a partition
divide a disk into pieces defined by an offset address and length. Each of those
pieces represent a reservation of contiguous space on the physical disk. However,
while the maximum number of partitions to a disk is limited by some operating
systems, there is no theoretical limit to the number of subdisks that can be attached
to a single plex. This number has been limited by default to <I value 01'4090. If
required, this default can be changed, using the vo1_ subdisk _ num tunable
parameter. For more information on tunable parameters, see the I'ERITAS Volume
.Mal/agerAdministrator '.1 Guide.
Plexes
Volume Manager uses subdisks to build virtual objects called plexes. A plex is a
structured or ordered collection of subdisks that represents one copy of the data in
a volume. A plex consists of one or more subdisks located on one or more physical
disks. The length of a plex is determined by the last block that can be read or
written on the last subdisk in the plex.
Default plcx name: volume_name-Il#
Volumes
A volume is a virtual storage device that is used by applications in a manner
similar to <I physical disk. Due 10 its virtual nature, a volume is not restricted by the
physical size constraints that apply to a physical disk. A VxVM volume can be as
large as the total of available. unreserved free physical disk space in the disk
group. A volume consists of one or more plcxes.
Default volume name: vol ul1le name##
1-14
~
Volume
S)111'1I1t('(
Layouts
[--R-~-;;i~;~~;1
.....
Di~~~U
Layered
Striped
Concatenated
RAID-O
Data Redundancy
Mirrored
RAID-5
Striped and
RAl0-O+1
RAl0-5
Lesson
1 Virtual
Objects
1-15
Copyright!':
2006
Symantec
Corporation
All rights
reserved
1-16
CopYrlyhl
'&
2006
Symantec
Corporauon
AU nqhts
reserved
Lesson
syrnanrec
Summary
Key Points
This lesson described the virtual storage objects
that VERITAS Volume Manager uses to manage
physical disk storage, including disk groups,
VxVM disks, subdisks, plexes, and volumes.
Reference Materials
VERITAS Volume Manager Administrator's Guide
'symantl'C
Lab 1
Lab 1: Introducing the Lab Environment
In this lab, you are introduced to the lab
environment, system, and disks that you will use
throughout this course.
see Appendix
see Appendix
Labs and solutions for this lesson arc located on the following
Appendix
A.
B,
pages:
Lnvironmctu."
Appendix
1,llrodliCIII;2
Lesson
1-17
1 Virtual Objects
Copyright'~ 2006 Svmantec Corporation All rights reserved
1-18
VERITAS
Copynghi .~ 2006 Svmantec
Storage Foundation
Corporation. AlIlIghl!'i resorvec
Lesson 2
Installation and Interfaces
syrnantec
Lesson Introduction
~_Lesson~'!..sta~lation
andInterface.s_~"
"~,
Lesson 3: Creating
System
Lesson 4: Selecting
Lesson 6: Administering
Lesson 7: Resolving
Problems
.AS:,
#'lli~1[ii-Jl
Volume
Layouts
File Systems
Hardware
svmantcc
After completing
be able to:
Topic 1: Installation
Prerequisites
by
user
VERITAS
2-2
Copynyhl:-
2006
Svmantec
Storage Foundation
Corporaucn.
All fights
reserveu
and
'''l!t ..,~.
as
..
",
,,,
~[
S}ll1;!n1CC.
Compatibility
Solaris
Version
HP-UX
Version
Linux
Version
AIX
Version
11i.v2 (0904)
5.2,5.3
RHEL 4 Update 3,
SLES 9 SP3
11i.v2 (0904)
No release
7,8,9
No release
2.6,7,8
11.11i (0902)
No release
5.0
8,9,10
4.1
8,9,10,
4.0
3.5.x
x86
No release*
Installation
Prerequisites
OS Version Compatibility
Before installing Storage Foundation. ensure that the version of Storage
Foundation that you are installing is compatible with the version of the operating
system that you are running. You may need to upgrade your operating system
before you install the latest Storage Foundation version.
VERITAS StorageFoundation 5.0 operates on the following operating systems:
Solaris
HP-UX
AIX
Llnux
Check the /'F:R1TAS Storag Foundation Release No/es Ior additional operating
system requirements.
Lesson
2 Installation
and Interfaces
Copyright b 2006 svoantcc
2-3
Corporation All nqhts reserved.
symantec.
Support Resources
Il;'l,q!
Search
Products
for Technotes
I Support
services
~~E:~~,~""""
~
1Wf'l'tIttlfUialln.
.,~,.'"'At.~~'""~
'>'\'
~1'''fl''t'"F''''''''~\I'r.-~,t>.U'
':l'""c.- ..
"'!! .......
I"*"""~-~,~ 'w,'<q- .
"""'~r.j'f'
".""' ...
","
~" It ,"',.,.I!
,,-
F<.'\A>u<III._
( . "-1)'
(',ur4''''',IIa",I.il<''''I''"'
"
~~:
..,_'''
,'''~
l01 ,.,..,
http://support.veritas.com
"'"'".;>
....
., .,~
r"" .'"
+"" ,~._.
that
about contacting
a searchable knowledge
base of
http://support.veritas.com/viewcase
You can access your case by entering the e-mail address associated with your case
and the case number.
2-4
VERITAS
Storage
Foundation
,S)111illllt'L
2-5
C 2006
Symamec
Corporation.
All
nqhts
reserved
symaruec
To add a license
I. Access automatic
, license key generation
and delivery.
I Manage and track
license key inventory
and usage.
I
key:
vxlicinst
License
in:
/etc/vx/licenses/lic
To view installed
information:
license
key
vxlicrep
Displayed
information
includes:
- License key number
- Name of the VERIT AS
product that the key enables
- Type of license
- Features enabled by the key
vl.icense (v L icense.
veri
tas.
com) is a self-service
online license
management system.
vl.iccnsc supports production license keys only. Temporary. evaluation. or
demonstration keys must be obtained through your VERITAS sales representative.
Note: The VRTSvl ic package can coexist with previous licensing packages. such
as VRTSIic.
If you have old license keys installed in /etc/vx/eIm.leave
this
directory on your system. The old and new license utilities cun coexist.
VERITAS
2-6
Copvnqht
i;
2006
Svmantec
Storage Foundation
Corporation
An fights
reserved
,S)11Hlnt.?( .
VERITAS Software
Packages
When you install a product suite. the component product packages are installed
automatically. When installing Storage Foundation. be sure to follow the
instructions in the product release notes and installation guides.
Package Space Requirements
Before you install any of the packages. confirm that your system has enough free
disk space to accommodate the installation. Storage Foundation programs and files
are installed in the /. /usr. and / opt tile systems. Refer to the product
installation guides for a detailed list of package space requirements.
Solaris Note
VxFS often requires more than the default RK kernel stack size. so entries are
added to the jete/system
file. This increases the kernel thread stack size of the
system to 24K. The original / ete/ system file is copied to
/ete/fs/vxfs/system.preinstall.
2-7
symantec
Optional Features
VERITAS FlashSnap
- Enables point-in-time copies of data with minimal
performance overhead
Features are
Included In the
VxVM package,
but they require a
separate license.
Features
are
Included In the
VxFS package,
but they require a
separate license.
VxFS files
2-8
2006
Syrn;'Jnlt:r.:
Corporation.
All fights
reserveu
Membership and Atomic Broadcast (GAB) package. LLT provides nodeto-node communications and monitors network communications. GAB
provides cluster state. configuration. and membership service. and it
monitors the heartbeat links between systems to ensure that they are active.
VERIT AS Cluster File System (CFS): CFS is a shared file system that
enables multiple hosts to mount and perform II le operations concurrently
on the same file.
VERITAS Cluster Volume Manager (CVM): CVM creates the cluster
volumes necessary for mounting cluster file systems.
VERIT AS Quick 1/0 for Databases: VERITAS Quick 1/0 for Databases
(referred to as Quick 1;0) enables applications to access preallocated VxFS
tiles as raw character devices. This provides the administrative benefits of
running databases on file systems without the performance degradation usually
associated with databases created on file systems.
Dynamic Storage Tiering (DST): DST enables the support for multivolume
file systems by managing the placement of files through policies that control
both initial tile location and the circumstances under which existing files are
relocated.
2-9
It
200{J Svmentec
Corporation.
All
nqtus
reserved.
syrnantec
Installation Menu
Storage
Foundation
and High
Version
SYMANTEC Product
Veritas
Veritas
Veritas
Veri tas
Veritas
Veritas
Veri tas
Veritas
Veri tas
Veritas
Task
Solutions
Installed
for Oracle
for DB2
for Sybase
Cluster File System
for Oracle RAe
5.0
Licensed
no
no
Cluster
Server
File System
Volume Manager
Volume Replicator
Storage Foundation
Storage Foundation
Storage Foundation
Storage Foundation
Storage Foundation
Storage Foundation
no
no
no
no
no
no
no
no
no
no
no
no
no
no
Menu:
[2>
Install/Upgrade
a Product
L) License a Product
U) Uninstall
a Product
Q) Quit
Enter
Availability
a Selection:
C) Configure an Installed
Product
P) Perform a Preinstallation
Check
0) View a Product Description
?) Help
[I,C,L,P,U,D,Q,?]
Log on as supcruscr.
utility:
./installer
If the licensing utilities are installed. the product status page is displayed. This
list displays the VERITAS products on the CD-ROM and the installation and
licensing status of each product. If the licensing utilities are not installed, you
receive a message indicating that the installation utility could not cletermine
product status.
2-10
&
2006
Svrnaotoc
Corporation
All flyhls
reserved
Type I to install a product. Follow the instructions to select the product that
you want to install. Installation begins automatically.
When you add Storage Foundation packages by using the installer utility. all
packages are installed. lfyou want to add a specific package only. for example.
only the VRTSvrndoc package. then you must add the package manually from the
command line.
After installation. the installer creates three text files that can be used for auditing
or debugging. The names and locations or each file are displayed at the end or the
installation and are located in / opt/VRTS/
install
/ logs:
File
Description
Responsefile
Summary file
Packages
Command
Notes
VLRITAS
Installation Menu
installer
Product installation
scripts
installvm
installfs
installsf
use.
Native operating
pkgadd
system package
installation
commands
swinstall
installp
(Solaris)
(iIP-UX)
0\\'11
(AIX)
rpm (Linux )
Then. to configure SF:
vxinstall
2-11
"( 2006
Svmanter.
Corporation
All rights
reserved
symaru,
Enclosure-Based
Naming
HostJ
"-
cl
Disk
Enclosures
,.
II
'c'
. ~.I.
enc
-;;ncl
encO
j'
Configuring
Storage Foundation
When you install Storage Foundation, you are asked if you want to configure it
during installation. This includes deciding whether to use enclosure-based naming
and a default disk group.
What Is Enclosure-Based Naming'!
An enclosure.or disk enclosure,is an intelligent disk array. which permits hotswapping of disks. With Storage Foundation. disk devices can be named for
enclosures rather than for the controllers through which they are accessed as with
standard disk device naming (for example. eOtOdO or hdisk2).
Enclosure-based naming allows Storage Foundation to access enclosures as
separate physical entities. By configuring redundant copies of your data on
separate enclosures, you can safeguard against failure of one or more enclosures.
This is especially useful in a storage area network (SAN) that uses Fibre Channel
hubs or fabric switches and when managing the dynamic multipathing (DMP)
feature of Storage Foundation. For example, if two paths (el t 99dO and
e2t99dO) exist to a single disk in an enclosure, VxVM can use a single DMP
metanode, such as eneO 0, to access the disk.
What Is a Default Disk Group'!
The main benefit of creating a default disk group is that Storage Foundation
commands default to that disk group if you do not specify a disk group on the
command line. defaul tdg specifies the default disk group and is an alias for the
disk group name that should be assumed if a disk group is not specified ill a
command.
VERITAS
2-12
COp,'!v;)ht
G" 2()06
Svmantec
Storage Foundation
COIl-'or<lIlOI1.
All flI)t1ls
reservcc
Storage Foundation
Management
Server
Note: This course does not cover SFMS and managed hosts.
2-13
symantec
-1 VRTSvxvm
HP-UX:
sw1ist
-1 product
AIX:
lslpp
VRTSvxvm
-1 VRTSvxvm
Linux:
rpm -qa
Verifying
use OS-specific
VRTSvxvm
Package Installation
llyou are not sure whether VERITAS packagesare installed, or if you want to
verify which packagesare installed on the system, you can view information about
installed packagesby using Ox-specific commands to list package information.
Sularis
I grep
VRTS
-1 VRTSvxvm
HP-UX
-1 product
-1 product
I grep
VRTS
-1 product
2-14
VRTSvxvm
VERITAS
Cqpyngtll
(,. 2006
Symautec
Storage
Corporauon
Foundation
All nqhts
reserved
AIX
-1
'VRTS*'
To verify that a particular Iileset has heen installed, use its name, for example:
lslpp
-1 VRTSvxvrn
Linux
I grep
VRTS
package_name
Lesson 2 Installation
and Interfaces
Copyrighi ~ 2006 Svrnantec Corporation All rigl1\;; reserved
2-15
svmantec
Foundation
supports
2-16
Copyuqtu
'c 2(1)6
Syn.autec
Corporauon
All fights
reserved
syrnaruec.
; Toolbar
<_l
;::""ot.,,.._.!
t_'f-"'W""
,,:
Quick
Access
Bar
~"'br-'"
,..,,,,,-.,.,-.l~<C"'><
0
""cO._"",,"
_.,._.,n
~
..
loi,-,q
~ u;
">.
'>
ll"''''
,-
.."
Three ways to
:: t,.i:.,,;~~'
access tasks:
.'_
1. Menu bar
.....
2. Toolbar
3. Context menu
(right-click)
""
'_==":;":'-':'...1 ~';':"'"d,.'.'.
'" '~..,~
include:
Remote Administration
Security
Multiple Host Support
Multiple Views of Objects
Setting VE!\ Preferences
You can customize general VEA environment auributes through the Preferences
window (Select Tools - --Prcfcrcncev).
Lesson 2 Installation
2-17
and Interfaces
CopYllght ttl2006 Symanter. Corporation. All
rights
resetveo
symaruec
" , 'I" ~
,.__"
'-'--""';"--+-1 ~;;~~
i':::J~~;~'~
fr<l
flnlC"
l!<;.u,t.H~"
t>O!\k!'lIillIll
('jU! r~ltr
O<.IP
T,"~1."l
(1"~t<i.uU!<)o~
."
OI$tUi.
'oWN
,",!Jg eso
'I'+!
1(!)t;rrr", ~fnOl
~.I"!I"'I(iK<:,.,~::.'l'
UU(
kl'~-":-:O''''''''''----'--'-----'
i~~lr4"~\IIfll
Clearing the Task History: Tasks are persistent in the Task History window.
To remove completed tasks from the window, right-click a task and select
Clear All Finished Tasks.
Viewing
ell Commands:
double-click a task. The Task Log Details window is displayed tor the task.
The CLI commands issued are displayed in the Commands Executed field of
the Task Details section.
2-18
VERITAS
Storage Foundation
S)111.1I1lt'l.
Command-Line Interface
You can administer
prompt.
CLI commands
or combined
CLI commands
include:
vxassist
vxprint
vxdg
vxdisk
Interface
Detailed descriptions ofVxVM and VxFS commands. the options for each utility.
and details on how to use them are located in VxVM and VxFS manual pages.
Manual pages are installed by default in / opt/VRTS/man. Add this directory to
the MANPATI I environment variable. if it is not already added.
To access a manual page. type man command name.
Examples:
man vxassist
man mount vxfs
Linux
Note
Lesson
MANSECT
and
~1ANPATH
2-19
variables.
l~,
symantcc
The
vxdi
Interface
skadm
vxdiskadm
Volume Manager Support
Menu: volumeManager/Disk
1
Add or
Encapsulate
Remove a disk
initialize
Remove a disk
Replace
List
list
Operations
for
a failed
disk
replacement
or
removed
information
Display
help
about
menu
??
Display
help
about
the
Exit
from
menuing
The vxdiskadm
Volume Manager
Manager Support
perform common
10 managing disk
VxVM objects.
system
menus
disk
The options
may be
Interface
The vxdiskadm main menu contains a selection of main tasks that you can use to
manipulate Volume Manager objects. Each entry in the main menu leads you
through a particular task by providing you with information and prompts. Default
answers arc provided for many questions, so you can select common answers.
The menu also contains options for listing disk information, displaying help
information. and quilling the menu interface.
The tasks listed in the main menu are covered throughout this training. Options
available in the menu differ somewhat by platform. See the vxdiskadm (1m)
manual page for more details on how to use vxdiskadm.
Note: vxdiskadm
can be run only once per host. A lock file prevents multiple
instances from running: /var / spool / locks/ . Dr SKADO. LOCK.
2-20
VERITAS
Storage Foundation
Installing VEA
--_. __._---_._-server on a UNIX
I.
II
,I
Server packages:
VRTSob
..-
machine running
Storage Foundation.
Install the VEA
client on any
machine that
supports the Java
1.4 Runtime
Environment (or
later).
VRTSobc33
VRTSaa
VRTSdsa
VRTSvail
VRTSvmpro
VRTSfspro
VRTSccg
Windows
Installation
administration
file (Solaris only):
'UN/X
VRTSddlpr
Client packages:
VRTSobgui, VRTSat, VRTSpbx,
VRTSicsco (UNIX)
VRTSobadmin
windows/VRTSobgui
.rosi
(Windows)
2-21
syrnanrec
/opt/VRTSob/bin/vxsvcctrl
(on Linux)
AS->
/etc/rc2.d/S73isisd
start
~IP-LJX
/sbin/rc2.d/S700isisd
start
The YEA client call provide simultaneous access to multiple host machines. Each
host machine must be running the VEA server.
Note: Entries for your user name and password must exist in the password file or
corresponding Network Information Name Service table on the machine to be
administered. Your user name must also be included in the YERITAS
administration group (v r t s adm, by default) in the group tile or NIS group table.
If the vrtsadm entry does not exist. only root can run YEA.
You can contigure YEA to connect automatically to hosts when you start the YEA
client. In the YEA main window. the Favorite Hosts node can contain a list of
hosts that arc reconnected by default at the startup of the YEA client.
VERITAS
2-22
Copyright
.; 2006
Svrnantec
Storage
Corpcrahon.
AU
Foundation
nqnts
reserved
symanrec.
Managing VEA
The VEA server program is:
/opt/VRTSob/bin/vxsvc
(Solaris and HP-UX)
/opt/VRTSob/bin/vxsvcctrl
(Linux)
status
(Linux)
restart
(HP-UX)
stop
(Linux)
-v
vxsvcctrl
(Linux)
2-23
symantcc
Lesson
Summary
Key Points
In this lesson, you learned guidelines for a firsttime installation of VERITAS Storage Foundation,
as well as an introduction to the three interfaces
used to manage VERITAS Storage Foundation.
Reference Materials
- VERITAS Volume Manager Administrator's Guide
- VERITAS Storage Foundation Installation Guide
- VERITAS Storage Foundation Release Notes
- Storage Foundation Management Server
Administrator's Guide
Lab 2
Lab 2: Installation
and Interfaces
Labs and solutions for this lesson are located on the following pages:
Appendix A provides complete lab instructions, "lab ::: lnstatl.uiou and
hucrruccs." I'a~l' ,\ ..7
Appendix B provides complete lab instructions and solutions, "Lab 2 Solutiuns:
lnstullation and lnrcriucc-." page n 7
2-24
Lesson 3
Creating a Volume and File System
svmantec
Lesson Introduction
Lesson 2: Installation
and Interfaces
Lesson 4: Selecting
Lesson 6: Administering
Lesson 7: Resolving
~~'"
"",',
Volume Layouts
File Systems
Hardware Problems
,~,"';'~;i!1I
..
symantcc
Topic
Topic 1: Preparing Disks and
Disk Groups for Volume
Creation
and
3-2
Cop;lfIyhl'~
2006
Svrnantec
COrpOI(ltloll
All rights
reserved
."-*..,,.
,.dt~., d"U1I;:M
and based on
Enclosure-based
naming: OS-independent,
based on the
logical name of the enclosure, and customizable
Using vxdiskadm,
Enclosure-based
categories:
Foundation
"Change
installation
scripts
scheme"
Enclosures: enclosurenarne #
Disks: Disk #
Others: Disks that do not return a path-independent identifier
to VxVM are displayed in the traditional OS-based format.
Preparing Disks and Disk Groups for Volume CreationHere are some examples of naming schemes:
Naming Scheme
Example
Traditional
Enclosure-based
Enclosure-based Customized
englab2.hrl.boston3
3-3
symantec
Stage 1:
;
Initialize disk. J
Stage 2:
Uninitialized
Disk
disk
! Assign
to disk group.
:
;
Before Configuring
In order to use the space ofa physical disk to build VxVM volumes, you must
place the disk under Volume Manager control. Before a disk can be placed under
volume Manager control, the disk media must be formatted outside ofVxVM
using standard operating system formatting methods. SCSI disks arc usually
prcformaued. After a disk is formatted. the disk can be initialized for use by
Volume Manager. In other words. disks must be detected by the operating system,
before VxVM can detect the disks.
Stage One: Initialize a Disk
A formatted physical disk is considered un initialized until it is initialized for use
by VxVM. When a disk is initialized. the public and private regions are created.
and VM disk header information is written to the private region. Any data or
partitions that may have existed on the disk are removed.
These disks are under Volume Manager control but cannot be used by Volume
Manager until they are added to a disk group.
Note: Encapsulation is another method of placing a disk under VxVM control in
which existing data on the disk is preserved. This method is covered in a later
lesson.
Changing the Disk Layout
To display or change the default values that are used for initializing disks, select
the "Change/display the default disk layouts" option in vxdiskadm:
3-4
COPYright
,~, 2006
Svmantec
Cornorauon
All fights
reserved
For disk initialization. you can change the default format and the default length
of the private region. If the attribute settings for initializing disks are stored in
the user-created tile. / etc/ defaul t /vxdi s k, they apply to all disks to be
initialized
On Solaris for disk encapsulation. you can additionally change the offset
values for both the private and public regions. To make encapsulation
parameters different from the default VxVM values. create the user-detined
/ etc/ defaul t /vxencap tile and place the parameters in this tile.
On HP-UX when converting LVM disks. you can change the default format
and the default private region length. The attribute settings are stored in the
/etc/default/vxencap
file.
Stage Two: Assign a Disk to a Disk Group
When you add a disk to a disk group. VxVM assigns a disk media name to the disk
and maps this name to the disk access name.
Disk media name: A disk media name is the logical disk name assigned to a
drive by VxVM. VxVM uses this name to identify the disk for volume
operations. such as volume creation and mirroring.
Disk access name: A disk access name represents all UNIX paths to the
device. A disk access record maps the physical location to the logical name
and represents the link between the disk media name and the disk access name.
Disk access records arc dynamic and can be re-created when vxdctl enable
is run.
The disk media name and disk access name. in addition to the host name. are
written to the private region of the disk. Space in the public region is made
available for assignment to volumes. Volume Manager has full control of the disk.
and the disk can be used to allocate space tor volumes. Whenever the VxVM
configuration daemon is started (or vxdctl enable is run). the system reads the
private region on every disk and establishes the connections between disk access
names and disk media names.
A tier disks are placed under Volume Manager control. storage is managed in terms
of the logical configuration. File systems mount to logical volumes. not to physical
partitions. Logical names. such as
/dev/vx/ l r l dsk/diskgroup/volume_name.
replace physical locations.
such as /dev/ [rl dsk/ device_name.
The free space in a disk group refers to the space on all disks within the disk group
that has not been allocated as subdisks, When you place a disk into a disk group.
its space becomes part or the tree space pool of the disk group.
Stage Three: Assign Disk Space to Volumes
When you create volumes. space in the public region of a disk is assigned to the
volumes. Some operations. such as removal of a disk from a disk group. are
restricted itspace on a disk is ill use by a volume.
Lesson
3 Creating
3-5
c 2006
Symantcc
Corporation
All rignls
reserved
sym.uuec
sysdg
L[~~r
LiJgill
:~=:Ifqfi
VM disks
[j[j[j[j
VM disks
[j [j
[j [j [j [j
[j [j
VM disks
VM disks
Ease administration of
high availability
environments through
deport and import
operations.
3-6
System-Wide
Reserved
names:
bootdg
defaultdg
nodg
[iJ LEi8J
acc~
bootdg sysdg
defaultdg
acctdg
mJ[j
EJEH"HJI
1::---'1
I System B
bootdg nodg
defaultdg
nodg
noc1g
1s the default value tor
bootdg
and defaultdg.
and defaul
tdg
Notes
The definitions ofbootdg
The definition ofbootdg
in /dev/vx/dsk
and defaul
tdg are written to the volboot
file.
results in a symbolic link from the named bootdg
and /dev/vx/rdsk.
The rootdg
disk group name is no longer a reserved name for VxVM
versions after 4.0. If you arc upgrading from a version ofVolume Manager
earlier than 4.0 where the system disk is encapsulated in the rootdg
disk
group, the bootdg
is assigned the value of rootdg
automatically.
2006
Symantec
3-7
Corporation
All rights
reserved
syrnantcc
disks.
3-8
-i
device_tag
vxdisksetup
vxdisksetup
vxdisksetup
vxdisksetup
-i
-i
-i
-i
[attributes)
init
vxdg init
diskgroup
disk_name=device_tag
datadg datadgOl=Disk_l
adddisk
disk_name=device_tag
datadg02=Disk_2
list.
When you add a disk to a disk group, the disk group configuration is copied onto
the disk, and the disk is stamped with the system host !D.
,~ 2006
Symantec
3-9
Corporation.
All rights
reserved
svrnantcc
Ei1
.5iiI~
.11
.-~====~-------,
Av~iIabIe disks:
'3 Qts~_O
<3Dtsk_,
Gi DIS'_S
. oJ:;i Dts,_6
~Olsk
Actions->Add
Add >
..!.l
Add AI
..:..I
ir":~'~:~~:~""
11
Remo'w'e AI
Navigatlun path:
Input:
in a SAN environment.
or any environment
in which
3-10
Copynght':;.
All rights
reserved
multiple hosts may share access to disks. it is recommended that you perform a
rescan operation to update the YEA view of the disk status before allocating any
disks. From the command line, you can run vxdctl enable.
Adding a Disk: VEA
A free or unuutinlized disk
Select:
Navlgation path:
Aclions->AJd
Input:
Disk
10
Disk Group
10
Select the disk to add: You can move disks between the Selected
disks and Available disks fields by using the Add and Remove
buttons.
When the disk is placed under YxYM control. the Type property changes to
Dynamic. and the Status property changes to Imported.
Lesson
3 Creating
3-11
syrnantec
Creating
a Volume:
CLI
To create a volume:
vxassist
length
-g
diskgroup
make
volume
name
[attributes]
For example:
vxassist
-g
datadg
make
datavol
100m
-g
diskgroup
help
showattrs
Creating a Volume
Creating a Volume
When you create a volume using VEA or ell
volume characteristics, and VxVM creates the underlying plexcs and subdisks
automatically. The VxVM interfaces require minimal input if you use default
settings. For experienced users, the interfaces also enable you to enter more
detailed specifications
command.
In
the syntax:
Use the -g option to specify the disk group in which to create the volume.
make is the keyword
volume_name
length
name.
specifies the number of sectors in the volume, You can specify the
3-12
Copynqbt
: 2(106
Symal118C:couorauon.
All fights
resorvec
synuuucc
! Actions->New
Volume
Name
..J Controllers
iil.9 0:3
,.j
UIS'S
c3t2 .. ,
16.9 ..
c:3tJ .. ,
16.9 ..
--=:..J
Excluded:
~ Enclosures
...... 31 DISk
r Mirror Across:
::J
1 .
A disk group
path:
Actions->:--Jcw
Volume
Input:
Wizard
Step I: Assigning
By default. VxVM locates available space on all disks in the disk group and
assigns the space to a volume automatically
based on the layout you choose.
Alternatively.
you can choose specific disks. mirror or stripe across controllers.
trays. targets. or enclosures. or implement ordered allocation. Ordered allocation
a method of allocating disk space to volumes based on a specific set "fVxVM
rules.
1'. 2006
Svmantec
is
3-13
Corporation
All rigtlts
reserved
svmuntcc
.J
~
Si<e:
:: . . ... _
_i. GB
Layout
.1 I
Ma~ Size:
Mlrrorln!o
n Mirrored
I!..Concatenatell
o ~triped
C; BAlO-S
n Enable
'..1
() Strined Mirrored
[astResl'11c
jnnialtze zero
Attributes
Volume name: Assign a meaningful name to the volume that describes the data
stored in the volume.
Size: Specify a size for the volume. The default unit is GB. If you click the Max
Size button, YxYM determines the largest size possible for the volume based on
the layout selected and the disks to which the volume is assigned.
Select a size for the volume based on the volume layout and the space available
in the disk group. The size of the volume must be less than or equal to the
available tree space on the disks.
The size specified in the Size field is the usable space in the volume. For a
volume with redundancy (RAID-5, mirrored), YxYM allocates additional tree
space for the volume's parity information (RAID-5) or additional plexcs
(mirrored).
The free space available for constructing a volume of a specific layout is
generally less than the total free space in the disk group unless the layout is
concatenated or striped with no mirroring or logging.
Layout: Select a layout type from the group of options. The default layout is
concatenated.
Concatenated: The volume is created using one or more regions of specified
disks.
Striped: The volume is striped across two or mort: disks. The default number
uf columns across which the volume is striped is two. and the default stripc
unit size is 128 sectors (64K) on Solaris, AIX. and l.inux: 128 sectors (128K)
on HP-UX. You can specify different values,
VERITAS Storage Foundation 5.0 for UNIX: Fundamentals
3-14
Copynqbt
Concatenated Mirrored
Info:
Enable logging: To enable logging. mark the Enable logging check box. If you
enable logging. a log is created that tracks regions of the volume that are currently
being changed by writes. In case ofa system failure. the log is used to recover only
those regions identified in the log.
YxYM creates a dirty region log or a RA\D-5 log. depending on the volume
layout. If the layout is RAID-5. logging is enabled by default. and YxYM adds an
appropriate number of logs to the volume.
Enable Fastltesync: To enable FastResync. mark the Enable FastResync check
box. This option is displayed only if you have licensed the FastResync option.
Initialize zero: To clear the volume before enabling it for general use. mark the
Initialize zero check box. For security purposes. you can use the Initialize Zero
option to overwrite all existing data in the volume area. However, this is time
consuming due to all the space that has to be written.
No layered volumes: To prevent the creation of a layered volume, mark the No
layered volumes check box. This option ensures that the volume has a nonlaycred
layout. I f a layered layout is selected. this option is ignored.
Lesson 3 Creating
3-15
ts" 2006
Symilntec: Corporanoo
AI;
right., rcsprvcri
symantec
~--------~------~~
Create OptIons
'-1,,'-;-' ".,-"
6Iockslze:
-::J'~
::J
IDefault (I "
MountOptions
Mountp ... r:11-rnn-w-' 1-----
r Read only
P Honor setuid
P i\<M=t9f;;;;:~g~lrit~
r Mountat boot
fsck pess:
Now F'. System Det ...
New Volume
Wizard
Step 3: Creating
a Snapshot
Cache Volume
A storage cache may be named and shared among several volumes in the same
disk group, This is used only for point-in-time copies.
New Volume
Wizard
Step 4: Creating
When you create a volume, you can place a file system on the volume and specify
options for mounting
licenses,
Create Options:
Compress: If your platform supports tile compression. this option
compresses the files on your tile system (not available on Solaris/HP-UX).
Allocation
unit or Block size: Select an allocation unit size (for OSsupported tile system types): or a block size (for VxFS tile systems).
New File System Details: Click this button to specify additional tilesystem-specific mkf s options. For VxFS, the only explicitly available
additional options are large file support and log size. You can specify other
options in the Extra Options field,
3-16
Mount Options:
Mount point: Specify the mount point directory on which to mount the file
system. The new file system is mounted immediately after it is created.
Leave this field empty if you do not want to mount the tile system.
Create mount point: Mark this check box to create the directory il' it does
not exist. The mount point must be specified.
Read only: Mark this check box to mount the file system as read only.
Honor setuid: Mark this check box to mount the file system with the suid
mount option. This option is marked by default.
Add to tile system table: Mark this check box to include the file system in
the /etc/vfstab
file (Solaris). the /etc/fstab
file (IIP-UX. Linux).
or the /etc/filesystems
tile (AIX).
Mount at boot: Mark this check box to mount the file system
automatically whenever the system boots. This option is not displayed on
IIP-UX.
fack pass: Specify how many fsck passes will be run if the file system is
not clean at mount time.
Mount File System Details: Click this button to specify additional mount
options. For YxFS. the explicitly available additional options include
disabling Quick 110. setting directory permissions and owner. and setting
caching policy options. You can specify other options. such as quota. in
the Extra options field.
Lesson
3 Creating
3-17
syrnanicc.
System->New
File System
on which to mount
HP-UX
~I~.J.
LinuxJ
When fsck is run on the file system. the raw device tile is checked:
/ dev/vx/ rdsk/ disk _group/
-F vxfs
mkdir
/data
mount
-F vxfs
/dev/vx/rdsk/datadg/datavol
/dev/vx/dsk/datadg/datavol
/data
/dev/vx/rdsk/datadg/datavol
mkdir
Idata
VERITAS
3-18
COpyflglll~
2006
Symantec
Storage
Corporation
Foundation
All rights
ro servoo
mount
/dev/vx/dsk/datadg/datavol
/data
HI'-lIX
-F
vxfs
mkdir
/data
mount
-F vxfs
/dev/vx/rdsk/datadg/datavol
/dev!vx/dsk/datadg/datavol
/data
-F
mkdir
/data
hfs
mount
-F hfs
/dev/vx/rdsk/datadg/datavol
/dev/vx/dsk/datadg/datavol
/data
AIX
-v
vxfs
mkdir
/data
mount
-v
vxfs
/dev/vx/rdsk/datadg/datavol
/dev/vx/dsk/datadg/datavol
/data
-v
vxfs
-d
/dev/vx/rdsk/datadg/datavol
-m /data
-A
Notes:
An uppercase V is used with mkfs: a lowercase v is used with crfs (to avoid
conflict with another crfs option).
crfs creates the file system. creates the mount point. and updates the file
systems file (/etc/filesystems).
The -A yes option requests mount at
boot.
If the file system already exists in /etc/filesystems.
you can mount the
file system by simply using the syntax: mount
mount_point.
Linux
Lesson
-t
vxfs
mkdir
/data
mount
-t
3 Creating
vxfs
/dev/vx/rdsk/datadg/datavol
/dev/vx/dsk/datadg/datavol
/data
3-19
syrnarucc.
information,
Device to mount:
such as:
/dev/vx/dsk/datadg/datavol
Device to f sck:
/dev/vx/rdsk/datadg/datavol
Mount point:
/data
vxfs
fsck
Mount at boot:
pass:
Mount Options
Mount pOlnt,"C":Jd-cala---f
yes
Mount options:
C Read
'"
only
Honor setujd
Sularis
/etc/vfstab
HI'-UX
/etc/fstab
AIX
letc/filesystems
l.inux
/etc/fstab
AIX
In AIX, you can use the following
table tile, /etc/filesystems:
To \ Jew entnes lsfs
mount po i nt:
To change details of an entry, use chf s. For example. to turn off mount at
boot chfs -A no mount po i nt:
111 YEA. in the Mount File System dialog. mark the "Add to tile system table" and
"Mount at boot" (not on HP-UX) check boxes. the entry is made in the file system
table tile automatically. Ifthe volume is later removed through YEA. its
corresponding tile system table tile entry is also removed automatically.
3-20
S)111'l!1t('(
vxprint
-g diskgroup
[options]
-vpsd
-h
-r
-t
-1
-a
-A
-e pattern
Information
The vxprint
Command
You can use the vxpr int command to display information about how a volume is
configured. This command displays records from the VxVM configuration
database.
vxprint
-g diskgroup
[options]
The vxpr int command can display information about disk groups. disk media.
volumes. plcxes, and subdisks. You can specify a variety of options with the
command to expand or restrict the information displayed. Only some of the
options are presented in this training. For more information about additional
options. see the vxprint (Lm) manual page.
Lesson
3 Creating
3-21
Displaying
Volume Information: ell
- - - ----.--~--.--.-- - -- - -~-.------.
...
...
.. ...
vxprint
.. ....
-9 datad9
.. ..
-ht
more
OG
NAME
NCONFlG
NLOG
MINORS
ST
OM
NAME
NAME
STATE
DEVICE
DM CNT
TYPE
SPARE CNT
PRIVLEN
PUBLEN
RV
NAME
I<STATE
RL
CO
NAME
RLINK_CNT
RVG
CACHEVOL
KSTATE
KSTATE
STATE
STATE
STATE
SD NAME
SV NAME
PLEX
PLEX
DISI<
VOLNAME
DISKOFFSLENGTH
NVOLLAYRLENGTH
SC NAME
PLEX
CACHE
DISKOFFS
[COLI
DC
NAME
P.ARENTVOL
LOGVOL
SP
NAME
SNAPVOL
OCO
NAME
GROUP-ID
PRIMARY
APPVOL_ CNT
STATE
DATAVOLS
SRL
REM..HOSTREM_DG
LENGTH
dg
datadg
default
default
91000
1000753077.1117.
dm
c1tlOdOs2
dID
datadg01
datadg02
c1 tlldOs2
auto
auto
2048
2048
4191264
4191264
dm
dm
datadg03
datadg04
clt14dOs2
auto
2048
c1tl5dOs2
auto
2048
4191264
4191264
ENABLED
AC"TIVE-
"2
21168
1 datadgOl
ii~
REM_RLNI<
J OFF
DEVICE
MODE
MODE
HODE
train12
-I To
interpret the
output, match header
-j lines with output lines.
-I
CONCAi~N~"~~.
0
..~M~~
clt10dO
RW
ENA
vxprint
-g diskgroup
-ht
In the output, the top few lines indicate the headers that match each type of output
line that follows. Each volume is listed along with its associated plexes and
subdisks and other VxVM objects.
dg is a disk group.
st is a storage pool (used in Intelligent
Storage Provisioning).
dm is a disk.
rv is a replicated volume group (used in VERITAS
rl
is an rlink
Volume Rcplicator).
eo is a cache object.
vt is a volume template (used in Intelligent
Storage Provisioning).
v is a volume.
p L is a plcx.
sd is a subdisk.
sv is a subvolumc.
se is a storage cache.
de is a data change object.
sp is a snap object.
For more information,
3-22
:.,;,:!(Jr)f:; Svmantec
Corpor auon
All nghts
reserved
S)111iHlI(,(
!!!I Logs
SIZe
d~t.;dan~
rl ~t~rlgOl
c!~lcH!CI
(I.;jt~dll
If(rrnr1p(1
III ported
1('1:'8':8
I q:~ (,8
CDS
I',=
'''t?s
t: 2006
Symantec corcoreuoo
3-23
All nqh(s reserved
symantcc.
-0
alldgs
DEVICE
TYPE
cltlOdOs2
ell
list
VxVM
DISK
GROUP
STATUS
datadgOl
datadg
datadg02
datadg
online
online
online
online
online
invalid
invalid
Disks
..J
cl t14dOs2
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:none
auto:none
cl tlSdOs2
auto:none
online
invalid
clt16dOs2
auto:none
clt17dOs2
auto:none
online
online
invalid
invalid
cl tlldOs2
cl tl2dOs2
cltl3dOs2
Free
Disk
Uninitialized
Disks
ell
You use the vxdisk list command to display basic information about all disks
attached to the system. The vxdisk list command displays the:
Device names for all recognized disks
Type of disk, that is. how a disk is placed under VxVM control
Disk names
Disk group names associated with each disk
Status of each disk
In the output:
A status of onl ine. in addition to entries in the Disk and Group columns
indicates that the disk has been initialized or encapsulated, assigned a disk
media name, and added to a disk group. The disk is under Volume Manager
control and is available for creating volumes.
A status of onl ine without entries in the Disk and Group columns indicates
that the drive has been initialized or encapsulated but is not currently assigned
to a disk group.
A status of onl ine inval id indicates that the disk has neither been
initialized nor encapsulated by VxVM. The disk is not under VxVM control.
Note: On the HP-UX platform, LVM disks have a type of auto: LVM and a status
ofLVM.
3-24
J~ -<\
,
S)111i1l1t('(
vxdisk
vxdisk
-g
datadg
list
datadgOl
cltlOdOs2
cltlOdO
auto
train12
name=datadgOl
name=datadg
Device:
devicetag:
type:
hostid:
disk:
group:
id=l000753057.1114.train12
id=l000753077.1117.train12
-s
list
To display detailed information about a disk. you use the vxdisk list
command with the name of the disk group and disk:
vxdisk
-g
diskgroup
disk
list
name
In the output:
Device
device
type
for
hos t id is the name of the system that currently manages the disk group to
which the disk belongs: ifblank. no host is currently controlling this group.
is the YM disk media name and internal ID.
group is the disk group name and internal !D.
disk
Note: The disk name and the disk group name are changeable. The disk ID and
disk group !D are never changed as long as the disk group exists or the disk is
initialized.
Note: The detailed information displayed by this command will be discussed later
in the course
Lesson
C'"
2006
Symantor;
3-25
Corporation.
All nqhts
reserved
svmantcc
cap_'t;
d,jt,JlJ!)OI
iht"d<J
disk information.
and
added to a disk group, verify the changes that you make to disks, and keep track of
the status and configuration
of your disks.
Free: The disk is initialized by YxYM but is not in a disk group. You cannot
place a disk in this state using YEA, but YEA recognizes disks that have been
initialized
3-26
,S)11mll1tx.
General
CDS:
v~
Efl:
No
5t~tus'
Ilfl)OI'ted
Capacity:
';j"%"i
i Select
'I
Unalocatedsp.!Jce: ~95!
a unit to
display capacity and
unallocated space in
other units.
UDIO'
No
see-e:
Reserved:
Hot use:
Yes
AlocatOl'Dlsk:
cowrent:
Lesson
3-27
'r;; 2006
Svmantec
Corporation
All rights
reserved
symantec
STATE
datadg
newdg
enabled,cds
enabled, cds
ID
9695836l3.l025.cassius
971216408.l133.cassius
-0
alldgs
list
DISK
datadgOl
TYPE
auto:cdsdisk
auto:cdsdisk
GROUP
datadg
(acctdg)
STATUS
online
online
3-28
Copynoht
:. 2006
Svmaulec
Corporation
All rights
ruserveo
ditadg
Imported
Stalus
Id
11~)094318 25.~oulsecl>lV9
CDS
"es
Disks:
Volumes
Yes
ColTtlnt'l9!iion
Version
140
EtlBblM
'tag
JlLl/V.ftlo"ornooe-
01""
uetacn pOll
Ol$kgroupfail
POlicy
Olobal
Dgdlsabl~
.AJlo!pd snes
911a ConSIstency
O.
sne:
3 ~-':f,
,-.p
rree eper e
1 :::~:I:,
,.,[3
3-29
syrnantec
Removing a Volume
When a volume is removed, the space used by the
volume is freed and can be used elsewhere.
Unmount the file system before removing the
volume.
VEA:
vxassist
vxassist
vxassist
remove
volume:
-g diskgroup
remove volume volume
-g datadg remove volume datavol
name
vxedit:
vxedit
vxedit
-g diskgrollp
-rf rm volume
-g datadg
-rf rm datavol
name
3-30
Cupyllghl'f:
20(}6
S,.rn<l!lIU.
Corporauon
All fights
reserved
symaruec
Select Actions->Evacuate
Disk.
vxdiskadm:
"Move
volumes
from
a disk"
ell:
vxevac
-g
d i ek qr oiip
vxevac
-g
datadg
from
datadgOl
disk
[to_disk]
datadg02
-g
datadg
datadg02
!datadg03
Evacuating a Disk
Evacuating a disk moves the contents of the volumes on a disk to another disk. The
contents of a disk can be evacuated only to disks in the same disk group that hale
sufficient free space.
Lesson
'[~ 2006
Syrnantec
3-31
Corporation
All rights
reserved
symnntrc
roup
VEA:
Select Actions->Remove
vxdiskadm:
"Remove
a disk"
ell:
vxdg
-g diskgroup
rmdisk
disk_name
vxdiskunsetup
[-CJ device_tag
Example:
vxdg
-g
datadg
vxdiskunsetup
rmdisk
Disk
datadg02
Removing a Disk
I f you select all disks for removal from the disk group, the disk group is destroyed
automatically.
You can verify the removal by using the vxdisk
list
and no
Command
After the disk has been removed from its disk group. you can remove it from
Volume Manager control completely by using the vxdiskunsetup
command.
This command reverses the configuration of a disk by removing the public and
private regions that were created by the vxdisksetup
command. The
vxdiskunsetup
detected.
3-32
Ccrporanoo
olddg
Destroying
DO
DO
a disk group:
___L _
VEA: Actions->Destroy
ell:
vxdg
destroy
Disk Group
diskgroup
destroy
olddg
Select:
Navigation
Input:
path:
3-33
=:
2006
Symantec
Corporauoo
All rights
reserved
Key Points
In this lesson, you learned how to create a volume with a
file system. This lesson also described device-naming
schemes and how to add a disk to a disk group, in
addition to how to view configuration
information for
volumes, disk groups, and disks, In addition, you learned
how to remove a volume, disk, and disk group.
Reference Materials
- VERITAS Volume Manager Administrator's
- VERITAS Storage Foundation
Installation
Guide
Guide
svmantec.
Lab 3
Lab 3: Creating a Volume and File System
In this lab, you create new disk groups, simple
volumes, and file systems, mount and
unmount the file systems, and observe the
volume and disk properties.
The first exercise uses the VEA interface. The
second exercise uses the command-line
interface.
Labs and solutions for this lesson are located on the following pages:
Appendix A provides complete lab instructions. "Lab :;.
(I,';IIIII>!
a V,)IIIlile' .uul
3-34
VERITAS
Copynqnt',
2006
Svrnanu,c
Storage
Corporatron.
Foundation
AUuqtus
reserved
Lesson 4
Selecting Volume Layouts
Lesson Introduction
"
"
Lesson 2: Installation
and Interfaces
" ..~(!!>!>()Il~~:~E!'.(!<:tiny'~~o~~~E!_~~r~~!!>_.
"
"
Lesson 6: Administering
"
Lesson 7: Resolving
Problems
File Systems
Hardware
Will
ant t'(
After completing
will be able to:
Topic 1: Comparing
Volume Layouts
Topic 3: Creating a
Layered Volume
Topic 4: Allocating
Storage for Volumes
4-2
:- 2006
Symanter
Cbrporauon
All fights
reservou
---'S)~il;~tt'(
~V1if.~-
Concatenated Layout
Disk Group
datadg
Volume
datavol
Plex
Subdisks
VxVM Disks
Subdisks
Concatenated Layout
A concatenated volume layout maps data in a linear manner onto one or more
subdisks in a plcx. Subdisks do not have to be physically contiguous and can
belong to more than one VM disk. Storage is allocated completely from one
subdisk before using the next subdisk in the span. Data is accessed in the
remaining subdisks sequentially until the end of the last subdisk.
For example. if you have 14 GB of data then a concatenated volume can logically
map the volume address space across subdisks on di fferent disks. The addresses
o GB to 8 (iB of volume address space map to the first 8-gigabytc subdisk. and
addresses 9 GB to 14 (iB map to the second 6-gigabyte subdisk. An address offset
of 12 GB. therefore. maps to an address onset of4 GB in the second subdisk.
4-3
All riqhts rcserveo
Striped Layout
Disk Group
datadg
datavol
Volume
datavol-Ol
Plex
Subdisks
.,c
(.)
o"
VxVM Disks
Subdisks
Striped Layout
A striped volume layout maps data so that the data is interleaved, or allocated in
stripes, among two or more subdisks on two or more physical disks. Data is
allocated alternately and evenly to the subdisks of a striped plex.
The subdisks are grouped into "columns." Each column contains one or more
subdisks and can be derived from one or more physical disks. To obtain the
maximum performance benefits of striping, you should not use a single disk to
provide space for more than one column.
All columns must be the same size. The minimum size of a column should equal
the size of the volume divided by the number of columns. The default number of
columns in a striped volume is based on the number of disks in the disk group.
Data is allocated in equal-sized units, called stripe 1111 its. that are interleaved
between the columns. Each stripe unit is a set of contiguous blocks on a disk. The
stripe unit size can be in units of sectors, kilobytes. megabytes, or gigabytes. The
default stripe unit size is 64K, which provides adequate performance for most
general purpose volumes. Performance of an individual volume may be improved
by matching the stripe unit size to the 110 characteristics of the application using
the volume.
4-4
VERITAS
Storage
Foundation
All fights reserved
~-~"'~.
~~ ..' ";'.r&~;11[~-------'~11a;lIt~~
Mirrored Layout
r+:
--;
Disk Group
datadg
Volume
Plex
datavol-Ol
Subdisks
:=::
datavol
datadgOl-02
datadg03-01
datadgO~-02
Subdisks
----..J!L
r-datadg02--
datadgOl
datadgOl-02
datavol-02
...!.
VxVM Disks
r-datadg03--
dat4c",;;;
;;].
datadg02..02
d~tadg')?
J&.tadti'.!;'
...
J,"lt.il~i~~t)_~~ 0
:;.~
datadg03-01
02
Mirrored Layout
By adding a mirror to a concatenated or striped volume, you create a mirrored
layout. A mirrored volume layout consists of more than one plcx that duplicate the
information contained in a volume. Each plcx in a mirrored layout contains an
identical copy of the volume data. In the event of a physical disk failure and when
the plex on the failed disk becomes unavailable, the system can continue to operate
using the unaffected mirrors.
Although a volume can have a single plcx. at least 111'0 plexes are required 10
provide redundancy of data. Each of these plcxes must contain disk space trom
di tlcrcnt disks to achieve redundancy.
Volume Manager uses true mirrors. which means that all copies of the data are the
same at all rimes. When a write occurs to a volume. all plexcs must receive the
write before the write is considered complete.
Distribute mirrors across controllers to eliminate the controller as a single point of
failure.
Lesson
4-5
f
2006
Symantcc.
Corporation
All rights
reserved
RAID-5 Layout
Disk Group
Volume
Plex
Subdisks
1---------------'
RAIO-5 Layout
A RAID-5 volume layout has the same attributes as a striped plex, but it includes
one additional column of data that is used for parity. Parity provides redundancy.
Parity is a calculated value used to reconstruct data after a failure. While data is
being written to a RAID-5 volume. parity is calculated by performing an exclusive
OR (XOR) procedure on the data. The resulting parity is then written to the
volume. If a portion ofa RAIO-5 volume fails, the data that was on that portion of
the failed volume can be re-created from the remaining data and parity
information.
RAID-5 volumes keep a copy of the data and calculated parity in a plex that is
striped across multiple disks. Parity is spread equally across columns. Given a
five-column RAID-5 where each column is I GB in size, the RAID-5 volume size
is 4 GB, One column of space is devoted to parity, and the remaining four I-G8
columns arc used tor data.
The default stripe unit size for a RAID-5 volume is 16K. Each column must be the
same length but may be made from multiple subdisks of variable length. Subdisks
used in different columns must nut be located on the same physical disk.
RAIO-5 requires a minimum of three disks for data and parity. When implemented
as recommended. an additional disk is required for the log.
RAIO-5 cannot be mirrored.
4-6
COPYJlghl
: 2()06
Syrl1antec
Cnrporauon
AU fights
reserved
,S)111<1ntt'(
Concatenation
.,
CIl
01
~c
10
>
"0
0(
.,
CIl
01
s
e
10
>
Removessize
restrictions
Parallel data
transfer
Better
utilization of
free space
Load-balanclng
Simplified
administration
Improved
performance
(if properly
configured)
Mirroring
RAID5
Improved
reliability and
availability
Redundanc
through panty
Improved read
performance
Fast recovery
through
logging
No redundancy No redundancy
Single disk
Single disk
failure causes
failure causes
volume failure.
volume failure.
"0
.,
10
Requires more
disk space
Slightly
slower write
performance
Requires less
space than
mirroring
Improved read
performance
Fast recovery
through logging
Slower write
performance
than mirroring
Poor
performance
after a disk
failure
Disadvantages
No protection against disk failure: Concatenation does not protect against disk
failure. A single disk failure results in the failure of the entire volume.
Striping:
Advantages
4-7
'. 20(16 Syrnantec
Corporation
All dgtlls
reserved
Striping:
Disadvantages
No redundancy:
Disk failure: Striping a volume increases the chance that a disk failure results
in failure of that volume, For example, if you have three volumes striped
across two disks, and one of the disks is used by two of the volumes, then if
that one disk goes down, both volumes go down.
Mirroring:
Advantages
Improved
of anyone
reliability
and availability:
With concatenation or striping, failure
disk makes the entire plex unusable. With mirroring, data is
places
Disadvantages
Requires more disk space: Mirroring requires twice as much disk space,
which can be costly for large configurations. Each mirrored plex requires
enough space for a complete copy of the volume's data.
Slightly slower write performance:
Writing to volumes is slightly slower,
because multiple copies have to be written in parallel. The overall time the
write operation takes is determined
disk involved
in the operation.
enough to decide against its use. The benefit of the resilience that mirrored
volumes provide outweighs the performance reduction.
RAIO-5:
Advantages
Redundancy through parity: With a RAID-5 volume layout data can be recreated from remaining data and parity in case ofthe failure of one disk.
Requires less space than mirroring:
than a complete copy of the data.
Improved
read performance:
performance
Fast recovery
RAIO-5
RAID-5
rather
in read
logging:
RAID-5
logging minimizes
recovery time in
Disadvantages
4-8
effect on performance.
Selecting
Specify
volume attributes.
Minor Info
Layout
.~. Concatenatel!
~!
Qtrlped
-:' fiAID-5
C;
CQn(atenatE'd
C..StrlQed
r:-JEna~le [astResync
Mirrored
f] !nltiallze zero
Mirrored
Layout: Select a layout type from the group of options. The default layout is
concatenated.
Striped: The volume is striped across two or more disks. The default
number of columns across which the volume is striped is two. and the
default stripe unit size is 12X sectors (64K) on Solaris. i\IX. and Linux:
128 sectors (128K) on I II'-UX. You can specify different values.
Concatenated Mirrored
and Striped
Mirror Info:
Mirrored: Mirroring
Total mirrors: Type the total number of mirrors for the volume. i\ volume
can have up to 32 plexcs: however. the practical limit is 31. One plex is
reserved by VxVM to perform restructuring or relocation operations.
4-9
'~~.2006
Svmantoc
Corporation
Ail right~
reserved
svrnantec
109
For example:
vxassist
-g datadg
make datavol
109 layout=nostripe
If you want the volume to reside on specific disks. you can designate the disks by
adding the disk media names to the end of the command. More than one disk can
he specified.
vxassist
[disks ...
4-10
[-g
J
diskgroupJ
make
volume
name length
diskgroup
[ncol=n]
make volume_name
[stripeunit=size]
length
...
Examples:
vxassist
-g
layout=stripe
vxassist
make payvol
ncol=3
-g
layout=stripe
acctdgOl
acctdg
acctdg
make
ncol=3
acctdg02
2g \
!acctdg04
expvol
2g \
stripeunit=256k
acctdg03
To stripe the volume across specific disks. you can specify the disk media
names at the end of the command. The order in which disks are listed on the
command line does not imply any ordering of disks within the volume layout.
To exclude a disk or list of disks. add an exclamation point ( ! ) before the disk
media names. For example. ! datadgOl specifies that the disk datadgOl
should not be used to create the volume.
Lesson
4 Setecting
4-11
Volume Layouts
Cop yeiqht ;;; 2006 Swnantec
Corporation
All rights
r"!S(,lIIed
syrnarucc.
name
,Ex~,!,plel!:
! Concatenated
i and
i Specify
t
vxassist
-g datadg
layout;mirror
make datavol
Sg \
vxassist
-g datadg
layout=stripe,mirror
make datavol
nmirror=3
Sg \
vxassist
-g datadg
Sg layout=stripe,mirror
-b make datavol
nmirror=3
mirrored
three
mirrors.
; Run process in
l background.
attribute.
d r I attribute:
vxassist
-g diskgroup
[-b] make volume_name length
layout=mirror
logtype=drl
[nlog=n]
Specify Loqr.ype d r I to enable dirty region logging. A log plex that consists
e
vxassist
-g datadg
logtype=drl
make datavol
Sm layout=mirror
4-12
Copynght
,; ~006
Symantec
Corporauoo
All fights
reserved
~synlilnti'(.
-g
diskgroup
-g
datadg
maxsize
attributes
Example:
vxassist
Maximum
volume
maxsize
size:
layout=raid5
376832
(184Mb)
vxassist
maxgrow
volume
name
Example:
vxassist
-g
Volume
datavo1
1677312
datadg
can
maxgrow
be
datavol
extended
by
366592
to
(819Mb)
No volume
can
be
created
The maxgrow command docs not rcsizc the volume but returns an estimate or
how much an existing volume can be expanded. The output indicates the amount
by which the volume can be increased and the total size to which the volume can
grow. The output is displayed in sectors, by default.
Lesson 4 Selecting
4-13
Volume Layouts
Copynqht
'h- 2006
Svmanter.
Corporauon
All !lgnts
reservec
symantcc
(j~tav(lI02
Size
#(:01
2097152
c
ptex ciatavol(l201
Type ~::tripeli
~:ttlpe(i
Sul)(Jlsk
Size
State
Healthy
#1\!1irrors
1
~;tripe Sz
#Col: 2
(latadgO"102
"1048576
Colurnnl
Offset
20~1T152
Plex Offset (I
Usage.
Strlpeci
128
Stripe Sz.1 28
Subdlsk
datadg(l2-01
t:izel(l48576
Column
0
Offset
0
F'lex Offset (I
Usage
Sltiped
I SelectVieW->Hori~~;:;t~I~~----I'
View->Verticalto changethe
orientationof the diagram.
VERITAS
4-14
Copyright
~ 2006
Svmantec
Storage Foundation
Corporation
AlIllghls
reserveo
S)111ill1ltX .
Click a triangle
hide subdisks.
j~..!.~_.
to
iii
Volumes
Click a dot to
highlight an
intersecting
row
and column.
;' idatadg01
dol_'-01
dol
(0: 2(97152)
102(2097152: 1048576)
',I
datodg02.01(0: 1048576)
4-15
symarucc
1:.id:EX~~J'-""
AddatavoI01!"':'!TYPe:
View.
..
Concat
"'-1
..............
1 Logged: No
.:I3t3dg01.(l'1
IJJ I
LJdatavoI02!'
jJ
1.(100 G8
II
IIType. Striped
1 Logged. No
datadg0201
dal.ldg01-02
512 000 MB
512.000
columnO
cctvmrr
M8
1
4-16
Copyright
Coenor.auon
All fights
reserved
,S)111iHllt'( .
I~
Expand
I~
Vol Details
Volume Overview
1000
<38 of 1 000 G8
Q datadgldatadg02.c1
datavol02
t2d7s2
;,1 av ,,102(SI';p,d)
Size' 4 961 GB
D( Projection
5-12.000 MB of 1.000 GB
He attbv
Health\,
512000
Subdisk Details
Size: 4.961 G8
@datadgldatadg01:t1t2d6s2
datavcln t (Concatenated)
View.
3061GB
(Stnpe d)
M8
of
1.000 08
14061 GB
Health.,
4-17
r.
Volumes are
constructed from
subvolumes .
The top-level volume
is accessible to
applications.
Volume
Volume
Subvolumes
ISUbdIS,
FUbdiSkl
Plex
Plex
ISUbdiS1
Plex
Advantages
Improved
redundancy
Faster recovery
times
Disadvantages
Requires more
VxVM objects
Underlying
Disks
4-18
VERITAS
Storage
Foundation
vxmake
4-19
2006
Symantec
Corporation.
All rights
reservoc
Traditional Mirroring
Plex
i sd = subdisk
diskOl disk02 disk03 disk04
Volume Status
Down
u
Down
VERITAS
4-20
C0IJynyhi
ic 2006 Svmantec
Storage
Corporauon.
Foundation
All
nqhts
reserved
--'~)~l;;;;l-(~'~'
Layered Volumes
disk01
disk02
X
X
X
disk03
disk04
Volume Status
= su
IS
IS
Down
X
Up
Up
Up
Up
X
X
X
X
X
X
X
X = failed disk
Down
Layered Volumes
The example illustrates a layered volume layout called a stripe-mirror layout. In
this layout, VxVM creates underlying volumes that mirror each subdisk. These
underlying volumes are used as subvolumes to create a top-level volume that
contains a striped plex of the data.
If two drives fail. the volume survives 4 out of6 (2/3) times. In other words, the
use of layered volumes reduces the risk of failure rate by 50 percent without the
need for additional hardware. As more subvolumes are added. the odds of a
volume surviving a two-disk failure approach 100 percent. For volume failure to
occur, both subdisks that compose a subvolume must tail. If a disk tails. only ihe
failing subdisk must be detached, and only thai pori ion of the volume loses
redundancy. When the disk is replaced, only a portion ofthe volume needs 10 be
recovered, which takes less time.
Failed
Subdisks
Volume Status
Stripe-Mirror
(Layered)
Mirror-Stripe
(Nontavered)
I and 2
Down
J)own
I and J
Up
Up
I and 4
Up
Down
2 and J
Up
Down
2 and 4
Up
Up
3 and 4
Down
Down
4-21
~: 2006
Svrnantec
Corporation
All rigtlls
reserved
symantcc
stripe: This layout mirrors data across striped plexes. The striped
plexes can consist of different numbers of subdisks.
mirror-
concat -mirror: This volume layout contains a single plcx consisting ofone
or more concatenated subvolurnes. Each subvolume consists of two
concatenated plexes (mirrors), which consist of one ur more subdisks. I I' you
have two subdisks in the top-level plex, a second subvolumc is created, which
is used as the second concatenated subdisk of the plex. In the VEA interface,
the Gl.ll tcrm used for a layered. concatenated layout is Concatenated
Mirrored. These volumes require at least two disks.
stripe-mirror:
This volume layout stripes data across mirrored volumes.
The difference between stripe-mirror and concat-mirror is that the top-level
plex is striped rather than concatenated. Each mirrored subvolumc must have
the same number of disks. In the VEA interface. the GUI term used for a
layered. striped layout is Striped M inured. Striped Mirrored volumes require at
least four disks.
4-22
VERITAS
Copy
light
,~: ;!Ullti
Syruauter.
Storage Foundation
CorPOfil!IOJL
AlIlIght<;
reserved
symurnec
Mirrored
vxassist
Wizard,
select Concatenated
as the volume
Mirrored
or
layout.
make:
vxassist
-g datadg
layout=stripe-mirror
make
datavol
109
vxassist
-g datadg
layout=concat-mirror
make
datavol
109
Note:
To create simple
mirrored
layout=mirror-concat
layout=mirror-stripe
volumes
(nonlayered),
volume.
following
layout
Lesson
4-23
syrnantec
-rt
volOl
Top-level
volume and plex
volOl
ENABLED
ACTIVE
...
pl
volOl-03
volOl
ENABLED
ACTIVE
...
Subvolume,
second-level
volume, plex,
and subvolume
sv
volOl-SOl
volOl-03
volOl-LOl
1. ..
v2
volOl-LOl
ENABLED
ACTIVE
...
p2
volOl-POl
volOl-LOl
ENABLED
ACTIVE
...
s2
datadg05-02
volOl-POl
datadg05
0 ...
p2
volOl-P02
volOl-LOl
ENABLED
ACTIVE
s2
datadg03-02
volOl-P02
datadg03
O ...
sv
volOl-S02
vol01-03
volOl-L02
1. ..
...
4-24
VERITAS
Copyright
,::.
200fi Svmautec
Storage
Corporation
Foundation
All nqhts
reserved
'S)111ilI1hX.
4-25
20:)6
Symaruer.
Corporation
All nqtus
reserved
syrnantec
Storage Attributes:
Methods
make:
vxassist
-g diskgroup
make volume_name length
[layout=layoutJ
[mirror=ctlr
I enclr I target]
[I] [storage_attributes
.~Exclude.
.. J
Disks: datadg02
C t II
E~:I~:U~::~ ctlr:
c2
enclr:emcl
Targets: target:
c2t4
Trays: c2 tray2
-g datadg
make datavol
5g !ctlr:c2
VEA
You can specify that the volume is to be mirrored or striped across controllers.
enclosures. targets, or trays .
.-J M!rrorAcross:
~
~IrJpe Across:
.-J Qrdered
(.QnlrCi!ff
,co';;trOlier
I (I
r (J
CQl11rolier
-J'
Tray
1-~---~-ITarget
Enclosure
Note: A tray is a set of disks within certain Sun arrays, Note that this option may
not be available
011
other platforms.
To exclude a disk. controller. enclosure. target. or tray. you add the exclusion
symbol ( I ) before the storage attribute. For example. to exclude datadg02 from
volume creation. yuu use the format: ! datadg02.
For example. to create a volume on specific disks by creating a 5-GB volume
called datavol on datadg03 and datadg04:
vxassist
-g datadg
4-26
make datavol
5g datadg03
200b
Symantec
Corporation,
All nqtus
reservec
datadg04
syrnanrec
Ordered Allocation
Ordered allocation enables you to control how columns
and mirrors are laid out when creating a volume.
With ordered allocation, storage administrators can
override the built-in allocation defaults.
VEA:
In the New Volume wizard, select "Manually select disks for use by
this volume." Select the disks and the storage allocation policy and
mark the Ordered check box.
'" go""'''
CLl:
Add the
vxassist
volume
-0
ordered option:
-9 diskgrotlp[-o
name length
ordered]
[layout=layout]
make
...
igd selects subdisks for a striped plcx from disks already associated
into striped plcxes rather than disks associated into concat plcxcs.
vxconf
vxconf
igd selects a disk with an existing log plex for the log plcx of another
volume.
YxYM has default methods for space allocation. as indicated by the f sgen
UTYPEin the vxprint
output. Storage administrators can override the built-in
defaults:
First, YxYM concatenates subdisks in columns.
Secondly. YxVM groups columns in striped plcxcs.
Finally. YxYM forms mirrors.
Use the
-0
ordered
make command.
4-27
20U6
Syrnantec
Corporation.
All rights
reserved
symantec
Ordered Allocation:
Example
-g
datadg
-0
ordered
make datavol
2g layout=stripe
\
neol=3
datadg03
datadg02
datadgOl
vxassist
-g datadg
\
make datavol
2g layout=stripe
\
neol=3
datadg03
datadg02
datadgOl
datadg
neol=3
-0
ordered
datadg03
make datavol
109
datadg02
datadgOl
so on.
datadg
-0 ordered
make
datadg04
datadg02
datavol
109
4-28
Copyright
,c
2006
Svmautec
Corporation
AlllIghls
reservec
sym.uuec.
Lesson Summary
Key Points
This lesson described the advantages and
disadvantages of volume layouts supported by
VxVM. You learned how to create concatenated,
striped, mirrored, and layered volumes. In addition,
you learned how to allocate storage for a volume
by specifying storage attributes and ordered
allocation.
Reference Materials
- VERITAS Volume Manager Administrator's
- VERITAS Storage Foundation
Guide
Release Notes
'symantct:,
Lab 4
Lab 4: Selecting Volume Layouts
In this lab, you create simple concatenated
volumes, striped volumes, and mirrored
volumes.
You also practice creating a layered volume and
using ordered allocation while creating volumes.
see Appendix
see Appendix
Labs and solutions tor this lesson arc located on the following
Appendix A provides complete lab instructions,
lavoutv." P;I1!C ,\21
A.
B.
pages:
\',,:UI11<:
4-29
c: 2006
Syrnantec
Corporation.
Ali right"
rc serveo
4-30
VERITAS
CopyJlytl1
~ 20Dti
Storage
Svrnantec Corporatron.
Foundation
All flotlls
reservoc
Lesson 5
Making Basic Configuration Changes
symantcc
Lesson Introduction
Lesson 1: Virtual Objects
Lesson 2: Installation and Interfaces
Lesson 3: Creating a Volume and File
System
Lesson 4: Selecting Volume Layouts
Lesson 5: Making Basic Configuration ~
gfJi:lrJ{1f!~W""""W"_~
.Ab'l[dl! .
~~'.%~'k&
l($;tl!c.
'symanlLT
Topic
5-2
Topic 1: Administering
Mirrored Volumes
Example
Array Structure
~it~~UU
U U U U 00 ;~'::~'~'
10 0 [j 0 [j [1
r",,,
~;:a~~D groups
Administering
-.
Mirrored Volumes
Lesson
Changes
5-3
syrn.mtec
To add redundancy if it is
not provided at the
hardware
level.
Old Array
disk
point
by
arrays.
I"
J
SAN
(/1
LJ"~I,..!ew.
N
..
~._
To eliminate the
array as a single
of failure (SPOF)
mirroring across
Array.
To provide disaster
Original Data
Mirror of Data
recovery across sites when
there is a SAN connecting two
I Migrating Data
or more sites.
When
to Add a Mirror
by adding
to a Volume
Without Storage Foundation, moving data from one array to another requires
downtime. Using Storage Foundation. you can mirror 10 a new array, ensure it is
stable, and then remove the plexes from the old array, No downtime is necessary,
These are the steps for migrating data using Storage Foundation:
1
This is useful in many situations, for example, if a company purchases a new array.
With Storage Foundation, yuu:
1
Add the LUNs from the new array to the disk group.
Remove the LUNS that are on the old array from the disk group.
5-4
VERITAS
Storage Foundation
Only concatenated
or striped
volumes
Each mirror
Adding
A volume
can be mirrored.
disks.
~~
a mirror requires
plex synchronization.
Removing a Mirror:
When a mirror is removed, the space
occupied by that mirror can be used
elsewhere.
Lesson
Changes
5-5
symantec
Adding/Removing
Mirrors
VEA:
SelectActions->Mirror->Add.
SelectActions->Mirror->Remove.
vxassist
mirror:
vxassist
-g
diskgroup
mirror
volume
name
[layout=layout~_
type]
[di sk _ name]
vxassist
-g datadg
mirror
datavol
vxassist
remove
vxassist
mirror:
remove mirror
-g cti ekoroup
vxassist
remove
vojume name
a subdisk
mirror
L! l dm~nal1le
datavol
!datadg02
vxassist
remove
mirror
datavol
datadg02
Navigation path:
Actions- ~>Mirror->;\dd
Number of mirrors
Input:
-g
datadg
mirror
datavol
datadg03
-9 diskgroup
vxassist
remove mirror:
remove
mirror
rm dis
plex_name
volume
name
5-6
-g
diskgroup
-0
VERITAS
Storage Foundation
~.
symarue
-g diskgroup
{nlo9:::on)
[attributes)
addleg
volume
vxassist
-9 diskgroup
vxassist
-9
datadg
addlog
datavol
vxassist
-9
datadg
remove
log
Adding
remove log
name [logtype=drl]
vol ume
logtype~drl
nlog=2
datavol
a Log to a Volume
Logging
in VxVM
Logging
Dirty region logging (DRL) is used with mirrored volume layouts. DRL keeps
track of the regions that have changed due to JlO writes to a mirrored volume.
Prior to every write. a bit is set in a log to record the area of the disk that is being
changed. In case of system failure. DRL uses this information to recover only the
portions of the volume that need to be recovered.
IfDRL is not used and a system failure occurs, all mirrors of the volumes must be
restored to a consistent state by copying the full contents of the volume between its
mirrors. This process can be lengthy and I/O intensive.
When you enable logging on a mirrored volume. one log plex is created by default.
The log plex uses space from disks already used for that volume, or you can
specify which disk to use. To enhance performance. you should consider placing
the log plex on a disk that is not already in use by the volume.
To create a volume that is mirrored and logged:
vxassist
logtype=drl
-g
datadg
make
datavol
Sm layout=mirror
5-7
svrnantcc.
Round Robin
I Preferred
Plex
Olume
Read
110
Rea
110
..
. ..
Read
I/O
Selected Plex
Read
110
Is there a
striped plex?
Default Method
Siteread
r-,
Volume...,
Read I/O , ....
1'-'
from host:
at Site A
.~
"-
.-'
I
.G~~~~~~
.....
,
R~
H
Site
A
!.... ~
t=J f; t::::j
Site
B
.....
:
:
YOIl
VxVM
reads preferentially
This is the default policy for volumes in disk groups where site consistency has
been enabled.
5-8
CUPYrlght
20% Svmantec
Corporation
All n91'16reserved
symamec.
Actions->Set
vxvol
vxvol
Volume
Usage
Round robin, or Preferred.
rdpol:
diskgroup
-g
rdpol
policy
Examples:
plex:
vxvol
datavol-02
vxvol
-g
-g
datadg
datadg
rdpol
rdpol
round
datavol
prefer
datavol
-g
datadg
rdpol
select
datavol
A volume
Navigation path:
Actions->Set
Input:
Volume Usage
Lesson
diskgroup
rdpol
round
vxvol
-9 diskgroup
preferred_plex
-9
rdpol
prefer
volume
name
vxvol
rdpol
select
volume
name
-9 diskgroup
volume
5-9
Changes
name
symantec
Resizing a Volume
To resize a volume, you can:
g-
L_
~
t.....__..-J
supports
resizing.
Resizing a Volume
Resizing a Volume
I f users require more space on a volume. you can increase the size of the volume.
Ifa volume contains unused space that you need to use elsewhere, you can shrink
the volume.
When the volume size is increased. sufficient disk space must be available in the
disk group. When increasing the size of a volume. VxVM assigns the necessary
new space from available disks. By default, VxVM uses space from any disk in the
disk group, unless you define specific disks.
VERITAS
5-10
Copyright
;: 2006
Svmantec
Storage Foundation
Corporauon
AU lights
reserved
symamec
Method
What Is Reslzed?
VEA
vxresize
vxassist
Volume only
fsadm
When using vx a s s i s t , you must resize the tile system separately by using the
f sadm command.
When you expand a volume. both commands automatically locate mailable disk
space unless you designate specific disks to use. When you shrink a volume, the
unused space becomes free space in the disk group.
When you resizc a volume. you can speci fy the length of a new volume in sectors.
kilobytes. megabytes. or gigabytes. The unit of measure is added as a suffix to the
length (s, k, m, or g). Ifno unit is specified, the default unit is sectors.
Lesson
5-11
Changes
2006
Symantec
Corporation
All rights
reserved
syruantcc
Resizing a Volume:
I Highlight
VEA
Volume name:
Current volume size:
Add by:
5ubtract by:
New volume size;
datavoiOI
1500
1
I
I
Volume.
fMB-::J
fMB-::J
fMB-::J
Max Size
r.
Let Volume Manager decide what disks to use for this volume [If. desired, specify
J disks
to be used
for the additional
space.
Navigation path:
Input:
Max Size: To determine the largest possible size. click Max Size.
Select disks for use by this volume: You can select specific
disks to use and specify mirroring and striping options.
Force: You can force the rcsize if the size is being reduced and
is active.
the volume
Notes: When you resize a volume. if a YERITAS file system (YxFS) is mounted
on the volume. the file system is also rcsized. The tile system is not resized if it is
unmounted.
5-12
VERITAS
Storage
Foundation
,S)111ank'C.
I-J
Original
[-bJ
fs_tlpe
-g diskgroup
volume
narne
new_length
volume
size: 10 MB
vxresize
-g
mydg
myvol
SOm
vxresize
-g
mydg
myvol
+lOm
vxresize
-g
mydg
myvol
40m
vxresize
-g
mydg
myvol
-10m
Mounted FS
Unmounted FS
VxFS
'101 allowed
UFS (Solaris)
Expand only
Expand only
HFS (llP-UX)
\/01 allowed
Expand only
Example: The size of the volume myvol is 10MB. To extend myvol to 50 MB:
vxresize
-g mydg myvol
50m
-g mydg myvol
+10m
-g mydg myvol
40m
Lesson
-g mydg myvol
-10m
Changes
5-13
syrnantec
diskgrollp
-g
{growtolgrowbylshrinktol
volume_name
shrinkby}
size
CD
~
vxassist
-g
datadg
growto
datavol
40m
vxassist
-g
datadg
growby
datavol
10m
vxassist
-g
datadg
shrinkto
datavol
30m
vxassist
-g
datadg
shr
datavol
10m
nkby
Increases volume
growby
shrinkto
Reduces volume
shrinkby
(0
specified length
specified length
(0
a change in use-for
example, when there is an increased need for space in the file system. You may
also need to resize a tile system as part of a general reorganization of disk
usage-for
example, when a large tile system is subdivided into several smaller
file systems. You can resize a VxFS tile system while the tile system remains
mounted by using the f sadm command:
fsadm
[-b
newsizel
[-r
rawdevl
mount
point
Using fsadm to resizc a tile system does not automatically resize the underlying
volume. When you expand a tile system. the underlying device must be large
enough to contain the new larger file system.
VERITAS
5-14
CCP'i'flght:,
,nn6 Symantcc
Storage
Corporation
All
Foundation
fights reserved
S}11liHH.X
Intended
for devices
resize the
are updated
to
disk group.
VEA:
Select Actions->Resize
Disk.
ell:
vxdisk
[-fJ
-g
diskgrollp
resize
dm nAme
Example:
vxdisk
-g
datadg
resize
datadgOl
Lesson
5-15
Changes
tt'
2006
Symantec
Corpo-auon
All riqhts
reserved
, Computer A
r: Computer
,------;-----,
acctdg
engdg
l'CJJ
, Additional
Disks
environment.
In the example, Computer A and Computer B each have their own bootdg on
their own private SCSI bus. The two hosts are also on a shared SCSI bus. On the
shared bus, each host has a disk group, and each disk group has a set of VxVM
disks and volumes. There are additional disks on the shared SCSI bus that have not
been added to a disk group.
If Computer A fails. then Computer B. which is on the same SCSI bus as disk
group acctdg. can take ownership or control of the disk group and all of its
components.
5-16
VERITAS
Storage Foundation
All
flghls reserved
~lk
..
"
&i
,~wP .)~
Before deporting
Unmount
Stop volumes.
are
be removed.
be accessed
a disk group:
file systems.
A new host
Lesson
Changes
5-17
symaruec
. Select Actions->Deport
Disk Group.
: Disk group to
be deported
datadg
lid
Dellor! options
New name: r+:
r-
N8/hOst:
~I
vxdiskadm: "Remove access to (deport) a disk group"
vxdg
[-n
new_name]
[-h
hostname]
deport
diskgroup
mount
-g
po~nt
diskgroup
5-18
stopa11
VERITAS
Copyngt1\
C' 21106
Svmautec
Storage Foundation
Corporauon
All nqbts
rescrveo
Importing
a Deported
Import as temporary.
Force an import.
Disk Group
Importing As Temporary
A temporary import does not persist across reboots. A temporary import can be
useful, for example. if you need to perform administrative operations on the
temporarily imported disk group. VEA docs not support temporary import.
Forcing an Import
A disk group import fails if the VxVM configuration daemon cannot rind all ofthe
disks in the disk group. If the import tails because a disk has failed. you can force
the disk group to be imported. Forcing an import should always be performed with
caution.
rs 20u6
5-19
symantec
Disk Group.
=cc"-----
SileName
Options include:
[] Clear hosllD
[] Eorce
Forcing an import
Starting all volumes
(import)
a disk group"
vxdg [-ftCl
[-n nelv_namelimport dJskgroup
vxvol -g diskgroup
startall
5-20
-0
alldgs
list
DEVICE
TYPE
DISK
GROUP
STATUS
clt2:iOs2
auto:cdsdisk
datadgOl
datadg
online
clt2dls2
auto:cdsdisk
(acctdg)
VERITAS
Storage
Foundation
online
Fundamentals
VEA:
o
o
o
vxedit
vxedit
rename:
-g diskgroup
rename
old
name
new
name
Example:
vxedit
-g
datadg
rename
datadgOl
datadg03
Notes:
o
o
The new disk name must be unique within the disk group.
Renaming a disk does not automatically rename subdisks on
that disk.
5-21
AII'iqlm. reserved
symantcc.
Host A
Deport
"
vxdg
-n new~nafile
vxdg
import
deport
new name
"~
vxdg deport
old
vxdg -n new_name
name
import
-n mktdg
vxdg
import
vxvol
deport
10
datadg
mktdg
-g mktdg
startall
or
vxdg
deport
vxdg
-n mktdg
vxvol
datadg
-g mktdg
import
datadg
startall
From the command line, you must restart all volumes in the disk group:
vxvol
5-22
'symantt'(
20-90
20-110
20-120
20-140
90
110
120
140
[-T
version]
upgrade
diskgroup
release supports a
specific set of disk group versions and can import and perform tasks on disk
groups with those versions. Some new features and tasks only work on disk groups
with the current disk group version. so you must upgrade existing disk groups in
order to perform those tasks.
Once you upgrade a disk group. the disk group becomes incompatible with earlier
releases ofVxVM
that do not support the new version. Upgrading the disk group
version is an online operation. You cannot downgrade a disk group version.
version:
list
newdg
newdg
97121640B.1133.cassius
140
5-23
symantcc
~~~~
datadg
II DG version:
Requirements
Thc CDS attribute indicates that the disk group can be shared across platforms.
CDS disk groups have fields indicating which platform-type created the disk group
and which platform-type last imported the disk group, in addition to device quotas.
5-24
'symanl('(
Converting a Non-CDS Disk Group to a CDS Disk Group
The disk group must be in good condition .
Disk groups can be converted while online or offline.
Use the CDS conversion utility vxcdsconvert
to convert a
VxVM non-CDS disk group to a CDS disk group:
vxcdsconvert
[-A]
[-d defaultsfile]
-g diskgroup
[-0 novolstop]
alignmentlalldisksldisk
namelgroup
[attribute]
For example, to convert the disk group olddg to a CDS
disk group while its volumes are still online, type:
vxcdsconvert
Converting
-g
a Non-CDS
olddg
-0
novolstop
group
upgrade
command).
I I' the non-CDS disk group has one or more disks that are not CDS disks. these
disks are converted to CDS disks.
If the non-CDS disk group does not have a CDS-compatible disk group
alignment. the objects go through relayout so that they are CDS-compatible.
Applications using disks that require format conversion are terminated for the
duration of the disk conversion process (unless novol stop is used).
Using novolstop
Changes
e. 2006
5-25
symantec
Lesson Summary
Key Points
This lesson described how to add a mirror to and
remove a mirror from an existing volume, change
the volume read policy, and resize an existing
volume. You also learned how to rename disks
and disk groups, upgrade disk groups, and
convert non-CDS disk groups to CDS.
Reference Materials
- VERITAS Volume Manager Administrator's
- VERITAS Storage Foundation
Guide
Release Notes
svmantec
Lab 5
Lab 5: Making Basic Configuration Changes
This lab provides practice in making basic
configuration changes.
In this lab, you add mirrors and logs to
existing volumes, and change the volume
read policy. You also resize volumes, rename
disk groups, and move data between systems.
Basic
l!
Appendix
('unfi"ULlli()l1
5-26
CuPyrlght:::
7000
Svmantec
COfP(;f;;j(I(JI)
All rlyht5
reserved
Lesson 6
Administering File Systems
symantec
Lesson Introduction
Lesson 2: Installation
and Interfaces
Lesson 4: Selecting
Volume Layouts
Lesson 6: Adm;nister;nflEil~~y~~e,!,~'"
Lesson 7: Resolving
Problems
Hardware
'~~r:_~~~
~~%.,.#k.,
symautcc
Topic
VERITAS
6-2
Copyright
I~;2006
Storage Foundation
rl~l'lh,'
.erved
S)11!antC<':
.
Traditional
Block-Based
Allocation
Block-based allocation:
Allocates space to the next
rotationally adjacent block
n+8
n+13
n+20
n+21
Both VxFS and traditional UNIX file systems, such as UFS. use index tables to
store information and location information about blocks used for tiles. However.
VxFS allocation is extent-based, while other file systems are block-based.
Block-based allocation: File systems that
disk space to a file one block at a time.
US!!
Allocation
UFS allocates space for files one block at a time. When allocating space to a tile.
UFS uses the next rotationally adjacent block until the file is stored.
UFS can perform at a level similar to an extent-based file system on scquential l/O
by using a technique called block clustering. In UFS, the maxcontig file system
tunable parameter can be used to cluster reads and writes together into groups of
multiple blocks. Through block clustering. writes are delayed so that several small
writes are processed as one large write. Sequential read requests can be processed
as one large read through read-ahead techniques.
Block-based allocation requires extra disk 1/0 to write file system block structure
information, or metadata. Metadata is always written synchronously to disk. which
can significantly slow overall file system performance. Over time, block-based
allocation produces a fragmented file system with random file access.
Lesson
6 Administering
File Systems
Copyright ,r;:,2006 Symantec Corporation. All rights reservC(1
6-3
symantec
Extent: A set
of contiguous
blocks
Extent-based allocation
drivers.
VxFS attempts to allocate each tile in one extent of blocks. If this is not possible.
VxFS attempts to allocate all extents for a tile close to each other.
Each file is associated with an index block. called an inode. In an inode, an extent
is represented as an address-length pair, which identifies the starting block address
and the length of the extent in logical blocks. This enables the tile system to
directly
VxFS automatically selects an extent size by using a default allocation policy that
is based on the size of I/O write requests. The default allocation policy attempts to
balance two goals:
Optimum
Minimal
1/0 performance
through allocation
6-4
VERITAS
C()Py'l~lh
Storage Foundation
[generic
opt.iOIlS]
[specialTmount_poillr]
Solaris
HP-UX
A1X
I Linu~1
and /opt.
Journaled File System (.IFS) and Enhanced Journalcd File System (JFS1) on
AJX, except for root and /usr.
Extended File System Version 2 (EXT1) and Version 3 (EXT3) on Linux,
except for root, /boot,
/ e t c, /1 .i b, /var, and /usr.
Location of VxFS Commands
Platform
Solaris
/opt/VRTSvxfs/sbin,/usr/lib/fs/vxfs,/etc/fs/vxfs.
HP-UX
/opt/VRTS/bi~/sbin/fs,/usr/lbin/fs
AIX
/opt/VRTSvxfs/sbin,/usr/lib/fs/vxfs./etc/fs/vxfs
Linux
/sbin./usr/lib/fs/vxfs
'opl/VRTS/bin
Lesson 6 Administering
PATH
environment variable.
6-5
File Systems
Cop ynqht
i: 2006
Syrnantec.
Corporation.
All rights
reserved
Soluris
-F
vxfs
HI'-UX
-F
vxfs
AIX
-v vxfs
l.inux
-t
(or-v
s)
vxfs
Solaris
/ete/default/fs
HI'-UX
/ete/default/fs
AIX
/ete/vfs
Linux
/ete/default/fs
1--
6-6
'synlilntt?c.
-0
[fs_type]
[-0
specific_options]
special
bsize_n
Sets logical block size
Default: 1024 bytes (lK) for most
Cannot be changed after creation
In most cases, the default is best.
Resizing the file system does not
change the block size.
-0
-0
version-n
Specifies layout version
Valid values are 4, 5, 6,
and 7.
Default: Version 7
-0
logsize_n
Sets size of logging area
Default depends on file system size.
Default is sufficient for most
workloads.
Log size can be changed after
creation using fsadm.
-0
file
I
Lesson
6 Administering
6-7
File Systems
Copyright if; 2006 Svmantec Corporauon. All
rights
reserved
symantec
-r
mount
-v
mount
-p
mount
-a
...
Unmount options:
umount
Imydata
umount
-a
umount
-0
force
Forces an unmount
Irnydata
-v
Idev/vx/dsk/datadg/datavol
-F vxfs
Identifying
/mydata
If you do not know the tile system type of a particular tile system. you can
determine the tile system type by using the fstyp command. You can use the
fstyp command to describe either a mounted or unmounted tile system.
In YEA, right-dick a tile system in the object tree, and select Properties. The tile
system type is displayed in the File System Properties window.
Identifying
Free Space
To report the number of free disk blocks and inodcs fur a YxFS File System, you
use the d f command. The d f command displays the number of free blocks and
free inodes in a tile system or directory by examining thc counts kept in the
superblocks. Extents smaller than XK may not be usable for all types of allocation,
so the df command docs not count tree blocks in extents below 8K when reporting
the total number of free blocks.
In YEA. right-click
usage information.
6-8
VERITAS
COpy light
't: 2006
Svmautnc
Storage
Corporation All
Foundation
rights
reserved
,S)ll1<lntt'l
~~
..
Fragmentation
Degree of fragmentation depends on:
File system usage
File system activity patterns
a...
I Initial
I ~~
Allocation
I Defragmented I
..0
II
... _
0 00
II
--.080.--.
00..
00000
..000
00000
Fragmentation types:
Directory
Extent
Controlling
In a VERITAS file system, when free resources are initially allocated to files, they
are aligned in the most efficient order possible to provide optimal performance. On
an active file system, the original order is lost over time as files are created,
removed, and resized. As space is allocated and deallocated from f les, the
available free space becomes broken up into fragments. This means that space has
to be assigned to files in smaller and smaller extents. This process is known as
fragmentation. Fragmentation leads to degraded performance and availability.
VxFS provides online reporting and optimization utilities to enable you to monitor
and defragment a mounted tile system. These utilities are accessible through the
file system administration command, f sadm.
Types of Fragmentation
VxFS addresses two types of fragmentation:
Directory fragmentation: As files are created and removed, gaps are left in
directory inodes. This is known as directory fragmentation. Directory
fragmentation causes directory lookups to become slower.
Extent fragmentation: As files are created and removed, the free extent map
for an allocation unit changes from having one large tree area to having many
smaller free areas. Extent fragmentation occurs when files cannot be allocated
in contiguous chunks and more extents must be referenced to access a file. III a
case of extreme fragmentation, a file system may have free space, none or
which can be allocated.
Lesson
6 Administering
6-9
Fife Systems
Copyligh!
<S.2006
Syrnantec
Corporation.
All nghts
reserved
Monitoring
Fragmentation
To monitor
fsadm
directory
Dirs
total
fragmentation:
-D frontl
Total
Searched Blocks
486
99
Immed Immeds
Dirs
Dirs
Reduce
to
388
Add
to
Blocks
to
Reduce
fsadm
extent fragmentation:
-E fhome
% Free blocks
in
extents
smaller
than
64 blks:
8.35
% Free
blocks
in
extents
smaller
than
8 blks:
4.16
% blks
allocated
larger:
45.81
to
extents
64 blks
or
Running Fragmentation
Reports
You can monitor fragmentation in a VERITAS file system by running reports that
describe fragmentation levels, You use the f sadm command to run reports on
both directory and extent fragmentation. The d f command, which reports on tile
system tree space. also provides information
Interpreting
Fragmentation
useful in monitoring
fragmentation.
Reports
In general. for optimum performance. the percentage of tree space in a tile system
should not fall below 10 percent. A tile system with 10 percent or more free space
has less fragmentation
A badly fragmented
characteristics:
Greater than 5 percent of tree space in extents of less than 8 blocks in length
More than 50 percent of tree space in extents of less than 64 blocks in length
Less than 5 percent of the total tile system size available as free extents ill
lengths of 64 or more blocks
6-10
S}'ma!HC
Corporation
All
rights
reserved
symaruec
(';I1I'.1##J;
.....'-'.
..
~
I-d]
I-D]
I-e]
I-E]
I-t
Example:
fsadm
-e
passes]
I-p
time]
During directory
mount point
reorganization:
Example:
-E
-s
/mntl
fsadm
-d
-D
/mntl
File System,
VxFS Defragmentation
You can use the oniinc administration utility fsadm to defragment. or reorganize.
file system directories and extents. The f sadm utility detragmcnts a file system
mounted for read/write access by:
Removing unused space from directories
Making all small files contiguous
Consolidating free blocks for file system use
Only a privileged user can reorganize a file system.
Defragmenting Extents
Entries are sorted by the time of last access.
Other f sadm Defragmentation Options
If you specify both -d and -e. directory reorganization is always completed
before extent reorganization.
I I' you use the - D and - E with the - d and - e options. fragmentation reports are
produced both before and after the reorganization.
You can use the - t and - p options to control the amount of work performed by
f sadm. either in a speci ficd time or by a number of passes. By default. f sadm
runs five passes. I f both - t and - p are specified. f sadm exits if either of the
terminating conditions is reached.
Lesson 6 Administering
6-11
File Systems
Copynqtn,; 2006 Svrnantcc ccrro.auoo
symantec
Scheduling Defragmentation
The frequency of defragmentation depends on
usage, activity patterns, and the importance of
performance.
Run defragmentation
-
Daily or weekly
Monthly
for frequently
for infrequently
Adjust defragmentation
Scheduling Defragmentation
The best way to ensure that fragmentation does not become a problem is to
defragment the file system on a regular basis. The frequency of dcfragmeruation
depends on file system usage. activity patterns. and the importance of file system
performance. In general, follow these guidelines:
Schedule dctragmeruarion
For frequently used tile systems. you should schedule dctrugmentauon daily or
weekly.
For infrequently used file systems. you should schedule dcfragmenration at
least monthly,
Full tile systems tend to fragment and are difficult
consider expanding the tile system.
To determine the dcfragmcniation schedule that is best for your system, select
what you think is an appropriate interval for running extent reorganization and run
the fragmentation reports both before and after the reorganization, If the degreeof
tragmcruation is approaching the bad fragmentation figures. then the interval
between fsadm runs should be reduced. If the degree offragmentation is low, then
the interval between f sadm runs can be increased.
You should schedule directory reorganization for file systems when the extent
reorganization is scheduled. The fsadm utility call run on demand and can be
scheduled regularly as a cronjob.
The dcfragmcutation process can take some time. You receive an alert when the
process is complete.
6-12
'synmn1t'C
.dl1
Example:
-w
Sequential
0.560
Bee
[options)
file
name
write
vxbench_placform
/mnt/testfileOl
total:
workload
-w write
14623.53
-i
KB/s
iosize-8,iocount-131072
cpu:
0.10
sys
0.01
user
Example:
Random
write
vxbench_platform
-w rand_write
iocount=131072,maxfilesize=1048576
/mnt/testfileOl
Note: Separate suboptions
-i iosize=8,
\
Lesson 6 Administering
File Systems
Copynght
If' 2006
6-13
Symantec
Corporation
All rights
reserved
The vxbenchyl
a t form Command
In the syntax, you specify the command followed by a type of workload. Valid
workloads are:
Performs a sequential read of the test tiles
read
write
read
rand
write
rand
mixed
rand
mmap read
mmap_write
After specifying the type of workload. you can add specific options that
characterize the test that you want to perform.
Finally. you specify the name of the tile on which to run the test. If you specify
multiple filenames, vxbench_platform
runs tests in parallel to each tile,
which simulates multiple simultaneous users. If you use the option that specifies
multiple threads. then each simulated user runs multiple threads. The total number
of 110 threads is the number of users multiplied by the number of threads.
Command Options
By adding options to the vxbench _pl a tform command. you can simulate a
wide variety of I/O environments. The following table describes some of these
options and their uses. You can display a complete list ofvxbenchylatform
command options by typing vxbenchylatform
-h.
Option
Use
-h
-p
-p
-t
110
-m
-v
For multithreaded
-k
-M
[suboptions]
vxbench
6-14
I/O
-s
-i
1,'0
SPCCitlCSsuboprions
SYI11~-I!l!eC
Corporation
---- -'~)~;~~mlt:;
The intent log records
pending file system
changes before metadata
is changed.
Structural
Files
Intent Lo
If the system
crashes, the
intent log is
replayed by
VxFS fsck.
Logging in VxFS
Role of the Intent Log
A file system may be left in an inconsistent state after a system failure. Recovery
of structural consistency requires examination of file system metadara
structures.VERITAS File System provides fast file system recovery after a system
failure by using a tracking feature called ill/em /oggillg or journaling. Intent
logging is the process by which intended changes to file system metadata are
written to a log before changes are made to the file system structure. Once the
intent log has been written. the other updates to the tile system can be written in
any order. In the event of a system failure. the VxFS f sck utility replays the intent
log to nullify or complete file system operations that were active when the system
failed.
Traditionally. the length oftime taken for recovery using fsck was proportional to
the size of the file system. For large disk configurations. running f sck is a timeconsuming process that checks. verities. and corrects the entire file system.
The VxFS version of the fsck utility performs an intent log replay to recover a
file system without completing a full structural check of the entire tile system. The
time required for log replay is proportional to the log size. not the file system size.
Therefore. the file system can be recovered and mounted seconds after a system
failure. Intent log recovery is not readily apparent to users or administrators. and
the intent log can be replayed multiple times with no adverse effects.
Note: Replaying the intent log may not completely recover the damaged file
system structure if the disk suffers a hardware failure. Such situations may require
a complete system check using the VxFS fsck utility.
Lesson 6 Administering File Systems
Copyright
~i;:2006 Symarrtec
6-15
Corporation
All nqtus
reserved
svmarucc
Maintaining
VxFS Consistency
Maintaining
File System.
You use the YxFS-specitic version of the fsck command to check the consistency
of and repair a Y xFS file system. The f sck utility replays the intent log by
default, instead of performing a full structural tile system check. which is usually
sufficient to set the tile system state to CLEAN. You can also use the f sck utility to
perform a full structural recovery in the unl ikcly event that the log is unusable.
The syntax for the f sck command is:
fsck
[fs_type]
full,nolog]
[-0
[genenc
opUons]
[-yl-Y]
[-nl-N]
special
f sck (1m)
Option
Description
-m
-niN
-v
Echoes the expanded command line but does not execute the
command
-yly
-0
p can only be run with log f sck. not with full f sck.
6-16
Copyright::
211Ot; Syroante..
Comoraunn
All
notus
rvserveo
syrnanrcc.
mount_point
using fsadm:
size
[,logvol_vol_namel
Specify a
Place log on a
separate device.
to get detailed
for intensive
.
..
"
Jmnt!
I Not
on HP-UX
Default maximum
4 and 5 layout)
to 64 MB
With the Version 6 disk layout. you can dynamically increase or decrease the intent
lug size using the log option of the f sadmcommand. The allocation can be
directed to a specified intent logging device, as long as the device exists and
belongs to the same volume set as the file system.
Increasing the size of the intent log (an improve system performance because it
reduces the number of times the log wraps around. However, increasing the intent
log size can lead to greater times required for a log replay if there is a system
failure. /\ large log provides better performance on metadata-intensive workloads.
Memory requirements for log maintenance increase as the log size grows. The log
size should not be more than 50 percent of the physical memory size otthc system.
/\ small log uses less space on the disk and leaves more room for file data. For
example. selling a log size smaller than the default log size may be appropriate for
a small floppy device. On small systems, you should ensure that the log size is not
greater than half the available swap space.
Note: The Loqvo I. option 10 place the intent log on a separate volume can only
be used with multi-volume file systems (file systems on volume sets).
6-17
~ 2006
Svmantec
Corporation
All nqhts
reserveo
symantec
-F
vxfs
[-0
specific_options]
Most logging delayed; great
performance improvement,
but changes could be lost
All structural
changes logged
-0
I Integrity
-0
log
tmplog
Performance
-0
delaylog
vxfs]
[generic_options]
mount_point
[-0 specific_options]
[-F
-0
log
-0
delaylog
-0
tmplog
6-18
,0
:!006
SYJT1W'lec
co-ooreuoo
All r!gh!<;
reserved
symanrec.
performed
results.
in addition to
logiosize=size
I
Lesson 6 Administering
File Systems
Copyright If, 2006 Symaruec Corporation
6-19
All nqnts, reserved
syrnantec
Olprint
x mount_point
inode
number
mount_point
The intent log is used to speed recovery of the tile system after a crash. The FCL
has no such role. Instead. the FCL is used to improve the performance of
applications. For example: your IT department mandates that all systems undergo
a virus scan once a week. The virus scan takes some time and your system takes a
performance hit during the scan. To improve this situation, an FCL. could be used
with the virus scanner. The virus scanner. if using an FCL, could read the log, find
all tiles on your system that arc either new or that have been modified, and scan
only those files.
FCL is used with NctBackup to greatly improve the speed of incremental backups.
6-20
IIgl11
21)06
Svmantec
CorPOIi:lIIOIl
All rights
reserveo
Lesson
symaruec
Summary
Key Points
This lesson describes how to administer file
systems using VERITAS File System (VxFS). You
learned how to defragment a file system and use
the logging capabilities in VxFS.
Reference Materials
- VERITAS File System Administrator's
Guide
Guide
'symalltec
Lab 6: Administering
File Systems
L~
Lab Exercises,
Lab Solutions,
see Appendix
see Appendix
A.
B.
Labs and solutions for this lesson arc located on the following pages:
Appendix A provides complete lab instructions. "l.ab (,: :\dlllilli:':lcril1)! File>
SY'ilCIli'." I':;:,:C /\-.17
Lesson
,\dllllllislCring
Fik S\,knl"c."
6 Administering
File Systems
j1ag~ B-(,7
6-21
6-22
Copyright
':
20()6
Svmantec Corporauon.
Lesson 7
Resolving Hardware Problems
syrnantcc.
Lesson Introduction
Lesson 2: Installation
Lesson 4: Selecting
Lesson 6: Administering
and Interfaces
Volume Layouts
File Systems
svrnantec
7-2
I Temporary Failures I
Disk
Arrays
m'.",''
j ~
"
"
r: A (i, f~
/'
~
(+~(~ (j
JBOD
Power cut
Fibre connection
failure
Complete SAN failure
SAN switch failure
HBA card/port failure
i :-LUNlDisk fail~;;--"l
,_ _...1 ,
: Can be Permanent
L~ Temporary _
I
Lesson 7 ResolvingHardwareProblems
Copyngtl! ,~~2006 Symanter; Corporation
7-3
All
nqbts reserved
syrnarucc
vs. FAILED
Disks
FAILED: IfVxVM
cannot access the private region or the public region. the
disk is marked as FAILED.
The condition
course.
7-4
,S)11mmC(_
records
r;:;-xdlsk-iist-------------------------------------------------iDEVICE
TYPE
auto:cdsdisk
auto:cdsdisk
auto:none
IdiSkO_l
l dd ak O-- 2
!diskO 3
list
ivxdg
!NAME
IdiSkO 1
idiskO - 2
idiskO=3
:-;xdg
list
!NAME
Idatadg
GROUP
datadg
datadg
STATE
jdatadg
jvxdisk
IDEVICE
DISK
datadgOl
datadg02
STATUS
online
online
online
invalid
ID
11S0193039.S8_trainl
enabled. cds
list
TYPE
DISK
GROUP
STATUS
auto: cdsdisk
datadgOl
auto:cdsdisk
datadg02
datadg
datadg
online
online
auto
dgdisabled
dgdisabled
error
STATE
disabled
ID
11S0193039.S8.trainl
I
Lesson
(~';2nO!)
7-5
Symanter.
Corporanor,
All rights
reserved
syrnantec
STATUS
online
online
online
vxdisk
list
DEVICE
diskO - 0
diskO - 1
diskO 2
diskO - 3
diskO 4
TYPE
sliced
auto:cdsdisk
auto
auto
auto
DISK
rootdisk
datadgOl
GROUP
sysdg
datadg
datadg02
datadg
STATUS
online
online
error
error
error
failed
was:diskO
vxdctl
list
displays the tailed drive as online
until the
daemon is forced to reread all the drives in the system and to
configuration
enable
After you run this command, the drive status changes to error
for the failed
drive, and the disk media record changes to fai led. The disk is immediately
marked as error state, when the public region is not accessible.
7-6
symamec
Permanent Failure
- The data on the LUN/disk is completely
destroyed.
- If the volumes were not redundant, data needs
to be restored from backup.
- However, the VxVM objects and the disk group
configuration information can be restored.
Temporary
I
Lesson
7 Resolving
Hardware
Problems
Copyright
(["':;2006
7-7
Syrnantec
Corporation.
All right"
reserved
syrnantec ,
Device Recovery
As soon as the hardware problem is resolved, the OS
recognizes the disk array and the disks.
DMP automatically detects the change, adds the disk
array to the configuration, and enables the DMP paths.
This may take up to 300 seconds. If you want to make it
faster, you can execute the vxdctl enable command
immediately
problem.
13 12':06:25
train1
VxVM vxdmp V-5-0-34
HDS9500-ALUA
June 13 12:06:25
train1
VxVM vxdmp V-5-0-148
dmpnode 253/0x10
June 13 12:06:25
train1
VxVM vxdmp V-5-0-147
Recovering
vxdmp:
[10 803759 kern.notice]
NOTICB:
added disk
array
D60JODDA. datype
=
vxdmp:
enabled
NOTICE:
to the
vxdmp:
enabled
Device Recovery
As soon as the hardware problem is resolved. the OS recognizes the disk array and
the disks, DMP automatically detects the change. adds the disk array to the
configuration. and enables the DMP paths,
Relevant messages arc logged to the system log.
7-8
VERITAS
Storage
Foundation
All flgnl" reserved
3.
4.
5.
6.
7.
I
Lesson 7 Resolving
Hardware
Problems
Copyrigtll 'G 2006 Symaetec Corporation. All rights reserved
7-9
Recovering
3.
4.
5.
7-10
symamec .
engdg
Back Up
Precommit
I
vxconfigbackup
Jiskgroup
vxconfigrestore
1
-p
diskgroup
Commit
-c diskgroup
/etc/vx/cbr/bk/diskgroup.dgid/dgid.dginfo
/etc/vx/cbr/bk/diskgroup.dgid/dgid.diskinfo
/etc/vx/cbr/bk/diskgroup.dgid/dgid.binconfig
/etc/vx/cbr/bk/diskgroup.dgid/dgid.cfgrec
Configuration data from a backup enables you 10 reinstall private region headers of
YxYM disks in a disk group, re-create a corrupted disk group configuration, or recreate a disk group and the YxYM objects within it.
This process is handled automatically by the vxconf igbackupd daemon.
Lesson
7 Resolving
Hardware
Problems
Copyright K: 2006 Symauter. Corporation, All rrghts -ese-veo
7-11
symantcc.
: datadg02
-ht
OM NAME
RV NAME
RL NAME
DEVICE
TYPE
RLINK_CNT
KSTATE
RVG
KSTATE
STATE
NLOG
MINORS
GROUP-IO
PRIVLEN
PUBLEN
STATE
STATE
PRIMARY
DATAVOLS
SRL
REM HOST REM __DG
REM RLNK
NAME
RVG
LENGTH
READPOL
PL
NAME
VOLUME
KSTATE
STATE
LENGTH
LAYOUT
NeOL/WID
MODE
so
NAME
FLEX
DISK
DISKOFFS
LENGTH
[COLI]
OFF
DEVICE
MODE
SV
NAME
[COLIl
OFF
AM/NM
MODE
KSTATE
STATE
PREFPLEX
PLEX
VOLNAME
NVQLLAYR
LENGTH
dg datadg
default
default
64000
954250803.2005. train06
dm datadgOl
dm datadg02
diskO 1
volOl
volOl
sd datadgOl-Ol volOl-Ol
p I volOl-02
volOl
sd datadg02-0l
volOl 02
p L volOl-Ol
i v vel02
! pl vel02-0l
sd datadg02-02
datadg
NCONFIG
iv
1
-g
DG NAME
vol02
velO2-0l
auto:cdsdiak
1519
UTYPE
4152640
NODEVICi:
ENABLED
ACTIVE
ENABLED
ACTIVE
datadgOl 0
DISABLED
NODKVICE
datadg02
DISABLED
ACTIV1i
DISABLRD
NODBVICE
datadg02
205200
204800
205200
205200
205200
205200
204800
205200
205200
SELECT
fagen
CONCAT
RW
diskO
ENA
CONCAT
RW
RLOC
SELECT
CONCAT
fsgen
RW
NDliV
7-12
CDPhys;c.,
Replace
a new disk.
0L09;C.' Repl.cemen,
Replace
disk With
'~m.
volumes.
Resynchronize
corrupt
8~:
Start disabled
Replacement
redundant
~
volumes.
Sf!!]
I
Lesson
7 Resolving
Hardware
7-13
Problems
Copvnqht
'.i;:;
All rights
reserved
system recognizes
the disk.
the disk:
Platform
devfsadm
Soluris
prtvtoc
HP-UX
insf
;\IX
-fC
cfgmgr
Linux
blockdev
-C
-1 device
--rereadpt
name
/dev/xxx
disk
-e
lsdev
name
/dev/dsk/device_
ioscan
enable
list
After the operating system and YxYM recognize the new disk, you can then use
the disk as a replacement disk.
Note: In YEA. use the Actions=-c-Rcscun option to run disk setup commands
appropriate for the operating system. This option ensures that YxYM recognizes
newly attached hardware.
7-14
$L,
symanrec
Select Actions->Replace
Disk.
vxdiskadm:
"Replace
a failed
or
removed
disk"
adddisk
disk_name=device_name
CLl:
vxdg
-k
-g
diskgroup
The -k option
Example:
vxdg
-k
-g
datadg
adddisk
datadgOl=cltldO
Note: You may need to initialize the disk prior to running the vxdg
adddisk command: vxdisksetup -i device name
Navigation path:
Acuons=-c-Replacc Disk
Input:
disk.
-k
-g
datadg
adddisk
datadgOl=cltldO
Note: I f the disk failure was temporary. the disk still has the private region that
would enable YxYM to recognize it. In this case you can use the vxreat tach
command instead of the vxdg - k adddi sk command to reattach the failed
disk.
7-15
rc' 20U6
Symantec
Corporation
All rights
reserved
svmaruec
Recovering a Volume
VEA:
Select Actions->Recover
CLl:
vxreattaeh
[-ber]
Volume.
[device_tag]
vxreeover
vxreeover
Recovering
t-s
[-bnpsvV]
diskgroup]
I disk_name]
[volume_name
-b -g datadg
datavol
a Volume
vxreeover
-bs
-g datadg
datavol
To recover. in the background, any detached subdisks or plexes that resulted trom
replacement of the disk datadgOl in the datadg disk group:
vxrecover
-b
-g datadg
datadgOl
7-16
Cupyflght
'C,
.~
.;~~~~
~
Resolving Disk Failures - Summary
Permanent
Disk Failure
Temporary
SYIl1:lI1h'( .
Disk Failure
1. Fix the hardware problem. (Replace disks, re-cable, change HBA, ... j
2 Ensure that the OS recognizes the device
3. Force VxVM to scan for added devices: vxdctl
enable
vxdg
I
Lesson
if;
7-17
syrnantec
-g datadg
DG NAME
NCONFIG
DM NAME
RV
RL
NAME
NAME
DEVICE
RLINK
RVG
NAME
RVG
eNT
-ht
NLOG
MINORS
GRQUP- 10
TYPE
KSTATE
KSTATE
PRIVLEN
STATE
STATE
PUBLEN
PRIMARY
REM _ HOST
STATE
DATAVOLS
REM DG
KSTATE
STATE
LENGTH
READPOL
SRL
REM RLNK
PREFPLEX
PL
NAME
VOLUME
KSTATE
STATE
LENGTH
LAYOUT
SD
NAME
PLEX
DISK
DISKOFFS
LENGTH
[COLI]
SV
NAME
NVOLLAYR
LENGTH
[COLI
64000
PLEX
VOLNAME
dg datadg
default
defaul
dm datadgOl
dm datadg02
diskO 1
di.:kO_2
volOl
pl volOI-O!
ad datadgO1- 01
p I volOl-02
ad datadg02- 01
volOI
voIOI-O!
volOI
volOl-02
auto: cdsdisk
auto:cdadiak
4152640
4152640
1519
1519
ENABLED
ACTIVE
204900
SELECT
ENABLED
ACTIVE
205200
CONCAT
205200
205200
205200
0
CONCAT
DISABLBD
ACTIVE
pL
DISABLlID
RECOV2R
204900
205200
205200
CONCAT
datadg02 205200
MODE
DEVICE
MODE
OFF
AM/NM
MODE
datadgOl 0
DlSABLRD IOPAIL
datadg02 0
vol02
vo102-01
vol02
ad datadg02- 02 vo102-01
fsgen
RW
diskO _1
ENA
diskO 2
KNA
diskO -2
ENA
RW
fsgen
SELECT
UTYPE
NeOL/WID
OFF
RW
7-18
All
nqt-ts reserved
synuuuec
I vxprint
I DG
-g datadg
-ht
NCONFIG
NLOG
DM
NAME
NAME
DEVICE
TYPE
RV
NAME
RLINK
RVG
I RL
V
I PL
NAME
NAME
GROUP-ID
MINORS
PRIVLEN
PUSLEN
_CNT KSTATE
KSTATE
STATE
STATE
PRIMARY
DATAVOLS
REM HOS T REM DG
SRL
REM
KSTATE
STATE
LENGTH
READPOL
PREFPLEX
UTYPE
RVG
STATE
RLNK
NAME
NAME
VOLUME
KSTATE
STATE
LENGTH
LAYOUT
NeOL/WID
MODE
SD
FLEX
DISK
DISROFFS
LENGTH
(COLI]
OFF
DEVICE
MODE
I SV
NAME
PLEX
VOLNAME
NVOLLAYR
LENGTH
[COLli
OFF
AM/NM
MODE
default
default
64000
95425 08 03.2005.
I .,: d~tadg
I dm datadgOl
I
i
elm
datadg02
volOl
pl
volOl-Ol
sd datadgOl-
I pi
, sd
vo101-02
datadg02
v
vol02
p L voI02
j sd
auto:cdsdisk
1519
4152640
auto: cdsdisk
1519
4152640
volOl
ENABLED
ACTIVE
204800
SELECT
ENABLED
ACTIVE
205200
CONCAT
01 volDl-Ol
datadgOl
volOl
- 01 volOl-02
ENABLED
STALE
datadg02
205200
DISABLED
ACTIVE
204900
SELECT
voI02
DISABLBD
RECOVER
205200
CONCAT
vol02-01
datadg02
205200
205200
-01
datadg02-
diskO
diskO
train06
02
205200
205200
fsgen
RW
diskO
diskO
_2
diskO
ENA
WO
CONCAT
ENA
fsgen
RW
ENA
Redundant Volumes
When you start the recovery on redundant volumes. the plcx that is not
synchronized with the mirrored volume has a state of ENABLED and STALE.
During the period of synchronization. the stale plex is write-only (WO). Aller the
synchronization is complete. the plcx state changes to ENABLED and ACTIVE.
and it becomes read-write (RW).
I
Lesson
7 Resolving
Hardware
Problems
Copyright
'1: 2006
7-19
Symautec
Coero-auon.
All rights
reserved
symantec
failures but
,~.----.
I~~~~~~
list
TYPE
DISK
GROUP
STATUS
datadg
datadg
online
online
1 . .-
idiskO 1
auto:cdsdisk
datadgOl
IdiskO:2_ .._.. au~o.:".<::'.<:Ii.."~
..~~.".~dg02
Disks marked as failing are not used for any new volume space.
To resolve intermittent disk failure problems:
- If any volumes on the failing disk are not redundant, attempt to
mirror those volumes:
If you can mirror the volumes, continue with the procedure for
redundant volumes.
If you cannot mirror the volume, prepare for backup and restore.
Intermittent
Disk Failure
Intermittent disk failures are failures that occur off and on and involve problems
that cannot be consistently reproduced. Therefore, these types of failures are the
most difficult for the operating system to handle and can cause the system to slow
down considerably while the operating system attempts to determine the nature of
the problem. If you encounter intcrmiucnt failures, you should move data offofthe
disk and remove the disk from the system to avoid an unexpected failure later.
The method that you use to resolve intermittent disk failure depends on whether
the associated volumes are redundant or nonrcdundanl.
7-20
symaruec.
Forced Removal
To forcibly
-k
-g
vxdisksetup
diskgroup
-i
rmdisk
Inew_device_namel
diskgroup
adddisk
Idisk_namel:lnew_device_namel
vxdg
-k
Idisk_namel
-g
Forced Removal
Ifvolumes are performing writes and each write is taking a long time to succeed
because of the intermittent failures, then the system may slow down significantly
and fall behind in its work, I I' this scenario occurs, you may need to forcibly
remove the disk and not evacuate the data:
Use the vxdiskadm option. "Remove a disk for replacement."
option, VxVM treats the drive as though it has already failed.
With this
The problem with using this command is that all volumes that have only two
mirrors (or that have a RAID-5 layout for redundancy) and that are using this
drive are no longer redundant until you replace the drive. During this period, if
a bad block occurs on the remaining disk, you cannot easily recover and may
have to restore from backup. You must also restore allnonredundant volumes
using the drive from backup.
2
you remove the drive. you must replace the drive in the same way as
when a drive completely fails. To replace a drive. you can use the vxdiskadm
option, "Replace a failed or removed disk."
After
Note: The state uf the disk is set to REMOVED when you use the vxdiskadm
option "Remove a disk for replacement." In terms of fixing the drive, the
REMOVED state is the same as NODEVICE.
You must use the vxdiskadm option,
"Replace a failed or removed disk," to replace the drive.
7-21
symantec
7-22
VERITAS
Storage
Foundation
~--a;:.'~-----'S}l1~lnll'l.
Hot-Relocation
Process
Volumes
VM Disks
1.
2.
3.
4.
vxrelocd
detects disk failure.
Administrator
is notified bye-mail.
Subdisks are relocated to a spare.
Volume recovery is attempted.
The argument to vxrelocd is the list of people to e-mail notice ofa relocation
(default is root). To disable vxrelocd, you can place a "W' in front of the line in
the corresponding start-up file.
1\
Failure detection:
7-23
~ 2006
Symantec
Corporation
All rights
reserved
symantec
Attempt
Attempts
Potentially
to relocate to a different
device
controller
disks
spare destination
disk. if possible.
li'OI11
is not used.
In all cases, hot relocation attempts to relocate subdisks to a spare in the same disk
group, which is physically closest to the failing or failed disk.
When hot relocation occurs, the failed subdisk is removed from the configuration
database. The disk space used by the failed subdisk is not recycled as free space.
7-24
VERITAS
Storage
Foundation
symnruec.
ell:
To designate a disk as a spare:
vxedit
-g
diskCiroup
set
spare=onloff
disk
name
-g
diskgroup
set
nohotuse=onloff
disk
name
I
Lesson 7 ResolvingHardwareProblems
Copyright 2006 Svmantec Ccrporauon. All rights reserved
7-25
symantec
Unreloeating a Disk
VEA:
Select Actions->Undo
Hot Relocation.
vxdiskadm:
"Unrelocate
subdisks
back
to
a disk"
ell:
[-fl
vxunreloc
[-n
disk_namel
[-g diskgroupl
orig_disk_name
[-t
tasktagl
orig_disk_Ilal1le
-n disk
-f
name
Unrelocating a Disk
The vxunreloc Utility
The hot-relocation feature detects I/O failures in a subdisk, relocates the subdisk.
and recovers the plex associated with the subdisk.
YxYM also provides a utility that unrelocatcs a disk-that
is, moves relocated
subdisks back to their original disk. After hot relocation moves subdisks tj'OI11 a
failed disk to other disks. you can return the relocated subdisks to their original
disk locations after the original disk is repaired or replaced.
Unrelocaiion
relocated.
7-26
AU fights
reserved
,S}11Janti'l
Lesson Summary
Key Points
This lesson described how to interpret failures in
hardware, recover disabled disk groups, resolve
disk failures, and manage hot relocation at the host
level.
Reference Materials
- VERITAS
Guide
Release Notes
,syrnalltl"
Lab 7
Lab 7: Resolving Hardware Problems
In this lab, you practice recovering from a
variety of hardware failure scenarios, resulting
in disabled disk groups and failed disks.
First you recover a temporarily disabled disk
group, and then you use a set of interactive
lab scripts to investigate and practice
recovery techniques.
IFor
~r
A.
B.
Labs and solutions for this lesson are located on the following pages:
Appendix A provides complete lab instructions. "l.uh 7: [{c',)hill~.
Problems." l)<lgl' :\ -~ 7
l lurdv arc
[{C,,,l,'lllg
Solutions
(i;;, 2006
7-27
Symanter;
Corporation
All rights
reserved
VERITAS
7-28
Copyright
_ 2006
Svmautec
Storage Foundation
Corporation
Appendix A
Lab Exercises
A-2
VERITAS
Storage Foundation
~ sym.uu;
Lab 1
see Appendix
see Appendix
A.
B.
Lab 1: Introducing
A-3
1-"-,2006
Symantcc
Corporation.
All rights
reserved
Lab Prerequisites
Record the following
information
Object
Sample Value
root password
veritas
Host name
trainl
Domain name
classrooml.
trainl.classrooml
.int
train2
Your Value
int
HP-UX: clt15dO
AIX: hdiskO
l.inux: hda
2nd Internal
Disk:
Solaris: cOt2dO
HP-UX: c3t15dO
AIX: hdiskl
l.inux: hdb
Liuux: sda
A-4
VERITAS
Copynght .; ?()06 Svmantec
sdf
Storage
Copornnon
Foundation
AU rights reserveu
Location of Storage
Foundation 5.0
Software:
/student/
software/sf/sf50
/student/labs/sf/
sf 50
Location of the fp
program:
/student/labs/sf/
sf50/bin
Location of VERITAS
Storage Foundation
license keys:
Istudent/
software/license/
sf 50 - entr - lic.txt
Lab 1: Introducing
A-5
C 2006
Symantec
Corporation.
All
rights te
servr-rt
Use coursesetup
script:
Select Classroom.
(Setup scripts are all included in Classroom SAN configuration
Select
Function
- Select
Zoning
by Zone Name
by Course
Name
Version 2).
To Perform:
2 - Select
Zoning and Hostgroup
Configuration
3 - Select/Check
Hostgroup
Configuration
HDS Hostgroup
1 path
and 2
Configuration
Zoning
Configuration
Required:
A-6
script.
VERITAS
Copyrlght'~
2006
Symautec
- - - r.
Storage
Corpor
anon
Foundation
All riglil'>
ies.uvoa
'symam('(.
Lab 2
Lab 2: Installation
see APpendix-A:!
see Appendix
~~
and Interfaces
In this exercise. you install VERITAS Storage Foundation S.Uon yuur lab system.
You also explore the VxVM user interfaces, including the VERITAS Enterprise
Administrator interlace. the vxdiskadm menu interface. and the command line
interface.
The Lal.' S"llIilUlh
"Lab 2
S"luilOIl<
Oil
the
1(11Iu\\IIH2 rage:
P:lg,' H'
:Illd Illll'llucl'."
Prerequisite Setup
To perform this lab. you need a lab system with the appropriate operating system
and patch sets pre-installed. At this point there should be no Storage Foundation
software installed on the lab system. The lab steps assume that the system has
access to the Storage Foundation S.O software and thai you have a Storage
Foundation S.OEnterprise demo license key that can be used during installation.
Lab 2: Installation
A-7
and Interfaces
Copyright <l'.2006 Syrnantec Corporation
All
nqtus rese-veo
Object
Sample Value
root password
veritas
Host name
trainl
Domain name
c La s s room t . int
trainl.classrooml
.int
My Boot Disk:
Solaris: cOtOdO
Your Value
HPUX: clt15dO
AIX:hdiskO
Linux: hda
A-8
Location of Storage
Foundation 5.0
Software:
/student/
software/sf/sf50
Location of VERITAS
Storage Foundation
license keys:
/student/
software/license/
sf50 - entr - lic.txt
/student/labs/sf/
sf50
VERITAS
Storage
Foundation
Preinstallation
Determine if there are any VRTS or
system.
SYMC
Are any VERITAS license keys installed on your system'! Check for installed
licenses.
jete/hosts
192.168.xxx.yyy
tlain#.domain
train#
into
I f the fully quali ficd hostname is not in the / et e/hos t s file. add it as an
alias to hostname.
b
prepare_ns
Lab 2 Installation
A-9
and Interfaces
Copyright <h 20(10 Symantec cc.roreuoo
script.
Obtain a license key from your instructor and record it here. Type the
license key when prompted.
License Key:
Enter n when you are asked if you want to enter another license key.
Select to install All Veritas Storage Foundation packages when prompted.
IIP-lIX
Do not set
lip
VERITAS
A-10
Copvnqbt
('0
;.1006
Symantec
Storage
Corporation.
Foundation
All rights
reserved
Obtain the domain name from your instructor and type the fully qualified
host name of your system when prompted. For example:
train5.classrooml.int
m Do not enable Storage Foundation Management Server Management. The
system will he a standalone host.
n
When the installation script completes. you will be asked to reboot your
system. Perform the next lab step (lab step 3) to modify the root profile
before rebooting your system.
This step is only for North American Mobile Academy lab environment. If
you are working in a different lab environment. skip this step.
If you are working in a North American Mobile Academy lab environment
with iSCSI disk devices. change to the directory containing the lab scripts
and execute the iscsi_setup lab script. This script disables DMP
support for iSCS[ disks so that they can be recognized correctly by Volume
Manager.
Only if you are working in a North American Mobile Academy lab
environment:
cd /location_of_lab_scripts
./iscsi
3
setup
Lab 2: Installation
and Interfaces
Ccpyrigl11 ~ 2006 Symantec Corporation. All riqhts reserved
A-11
the
In the Select Protile window. click Manage Profiles button and contigure YEA
to always start with the Default profile.
On the left pane (object tree) view. drill down the system and observe the
various categories ofYxYM objects.
Select the Assistant perspective on the quick access bar and view tasks for
systemname/StorageAgent.
Using the System perspective find out what disks are available to the OS.
Execute the Disk Scan command and observe the messages on the console
view. Click on a message to see the details.
A-12
equivalent administrative
VERITAS
Cop~nght ,~ 2006 Svmantec
Storage
CDJpOnllOIl
Foundation
All rights resorvco
for use of
12 Test the new account. After you have tested the new account, exit VEA.
Exploring vxdiskadm
From the command line. invoke the text-based VxVM menu interface.
2
Lab 2: Installation
interface.
and Interfaces
Copyright 'E 2006 Svmantec Corporation All riglll" reserved
A-13
What vxassist
volume?
From the command line, invoke the Vx VM manual pages and read about the
vxdg command.
license expire?
What is the version and revision number of the installed version of V x VM'.'
Which daemons are running after the system boots under VxVM
A-14
VERITAS
C[)pynf~hlc
lOOA
Svrnantec
Storage Foundation
Cornoranon
All
nqhls
.r-sorvco
control?
'synmntc(.
Lab 3
SlsICIH."
page H-.:'I
If you use object names other than the ones provided. substitute the names
accordingly in the commands.
Caution:
In this lab. do not include the boot disk in any of the tasks.
Prerequisite Setup
To perform this lab. you need a lab system with Storage Foundation pre-installed.
configured and licensed. In addition to this. you also need four empty and unused
external disks to be used during the labs.
Note: Although you should not have to perform disk labeling. here are some tips
that may help if your disks are not properly formatted:
On Solaris, use the forma t command to place a label on any disks that are not
properly labeled for use under Solaris, Ask the instructor for details.
On Linux, if you have problems initializing a disk. you may need to run this
command: fdisk /dev/disk.
Use options - 0 and -w to write a new DOS partition table. (The disk may have
previously been used with Solaris.)
Lab 3: Creating
A-15
Object
Sample Value
root password
veritas
Host name
trainl
Solaris: c lt #dO
Your Value
clt#d5
HP-UX: c4 t OdO c4tOd5
AIX: hdisk21hdisk26
l.inux: sda - sdf
Prefix to be used with
object names
A-16
name
VERITAS
Storage
Foundation
All flghlS reserved
View all the disk devices on the system. What is the status of the disks assigned
to you for the labs?
Select an uninitializcd disk and initialize it using the VEA. Observe the change
in the Status column. What is the status of the disk now')
Create a new disk group using the disk you initialized in the previous step.
Name the new disk group namedgl.Observe the change in the disk status.
Note: I f you arc sharing a disk array. make sure that the prefix you are using
for the disk group names is unique.
Using VEA create a new volume of size I gin namedgl.Name the new
volume namevoll. Create a fi Ie system on it and make sure that the file
system is mounted at boot time to / name1 directory.
Check if the file system is mounted and verify that there is an entry for this file
system in the file system table.
View the properties of the disk in the namedgl disk group and note the
Capacity and the Unallocated space fields.
10 Create the same volume. namevo12.in the namedgl disk group using the
Ensure that thc lile system is not mounted at boot time. Check if the /name2
file system is currently mounted and verify that it has not been added to the file
system table.
Lab 3: Creating
A-17
2006 Symanlec
Corporation
13 Observe the commands that were executed by VEA during this section of the
lab.
Select an uninitializcd disk and initialize it using the CLI. Observe the change
in the Status column. What is the status of the disk now'?
Create a new disk group using the disk you initialized in the previous step.
Name the new disk group namedg2. Observe the change in the disk status.
Note: I f you arc sharing a disk array, make sure that the prefix you are using
for the disk group names is unique.
Create a Vcritas file system on thc namevo13 volume, mount the file system
to the / name3 directory.
Make sure that the file system is mounted at boot time.
Unmount the / name3 tile system. verify the unmount, and remount using the
-a command to mount all file systems in the file system table.
mount
7
Identify the amount of free spacein the namedg2 disk group. Try to create a
volume in this disk group named namevo14 with a size slightly larger than
the available free space. lor example 5g on standard Symantec classroom
systems. What happens'!
Note: The disk sizes in Syrnantcc Virtual Academy lab environments are
slightly less than 2g. Ensure that you use the correct value suitable to your
environment instead of the 5g example used here.
A-18
Initialize a new disk and add it to the namedg2 disk group. Observe the
change in tree space.
Create the same volume. namevo14, in the namedg2 disk group using the
same size as in step 7.
02)
Lab 3: Creating
Select the File Systems node in the object tree and select / narnel file
system.
Select Actions->Unmount
File System.
Confirm the unmount and select Yes when prompted to remove it
from the file system table.
Select the /name2 file system. Select Actions->Unmount
File System.
Confirm the unmount.
A-19
Both file systems should disappear from the file system list in VEA. You
can use the command line tu verify the changes as follows:
Solaris
mount
HP-UX.
Linux
mount
cat
cat
/etc/vfstab
/etc/fstab
The / namel and / name2 file systems should nut be among the mounted
fill' systems. and the file system table should nut contain any entries
currespunding tu these tile systems.
2
Select the Volumes node in the object tree and select namevo12
volume.
Select Actiuns->Delete
Select the Disk Groups node in the object tree and observe the disks in the
namedgl disk group. Can you identify which disk is empty'?
The %Used column should show 0% for the unused disk which is the
second disk in the disk gruup (namedgl02).
Remove the disk yuu identified as empty from the namedg1 disk group.
Select the empty disk and select Actions->Remove
Gruup.
Observe all the disks on the system. What is the status of the disk you removed
from the disk group')
Select the Disks node in the object tree and observe the disks in the right
pane view.
The disk removed in step 4 shuuld be in Free state.
Select the Disk Gruups node in the object tree and the namedgl disk
group in the right pane view.
Select Actions->Destroy
Observe all the disks on the system. What is the status of the disks?
Select the Disks node in the object tree and observe the disks in the right
pane view.
If you have followed all the lab steps, you should have 4 disks in Free state;
they are already initialized but nut in a disk group.
A-20
VERITAS
Copyright
20(}6 Symantec
Storage
Corporation
Foundation
AU ".!t'l~
reserveo
symaruec
Lab 4
ihi-,
lab arc
locakd
on the
1()llp\\
ing J1dgc:
Prerequisite Setup
To perform this lab. you need a lab system with Storage Foundation pre-installed.
configured and licensed. In addition to this. you also need four empty and unused
external disks to be used during the labs.
Lab 4: Selecting
Volume
Layouts
Copyng"1 .:; 2006 svroentec Corporation. All fights reserved.
A-21
Object
_._-1'001
password
Sample Value
Your Value
veritas
Host name
trainl
AIX: hdisk21hdisk26
Linux:
Prefix to be used with
object names
A-22
sda
sdf
name
VERITAS
Storage
Foundation
.:.,
reserved
namevoll
Display the volume layout. What names have been assigned to the plex and
subdisks?
Create a 50-MB striped volume on two disks in namedg and specify which
two disks to use in creating the volume. Name the volume namevo12.
What names have been assigned to the plex and subdisks?
Create a 20-MB. two-column striped volume with a mirror in namedg. Set the
stripe unit size to 256K. Name the volume namevo13.
Create a 20-MB. two-column striped volume with a mirror. Set the stripe unit
size to 12RK. Select at least one disk that you should not use. Name the volume
namevo14.
Create a 20-MB 3-column striped volume with a mirror. Specify three disks to
be used during volume creation. Name the volume namevo14.
Was the volume created')
Create the same volume specified in the previous step. but without the mirror.
What names have been assigned to the plcx and subdisks?
Lab 4: Selecting
Volume Layouts
Copyright~' 2U06 Symantec Corporation. All rights rcsorveo
A-23
Add four initialized disks to a disk group called namedg. Verify your action in
the main window.
Create a 50-MB concatenated volume in namedg disk group called
with one drive.
namevoll
Display the volume layout. Notice the naming convention ofthe plex and
subdisk.
Create a 50-MI3 striped volume on two disks in namedg, and specify which
two disks to use in creating the volume. Name the volume namevo12.
View the volume.
Create a 20-MB, two-column striped volume with a mirror in namedg. Set the
stripe unit size to 256K. Name the volume namevo13.
View the volume. Notice that you now have a second plcx.
Create a 20-MI3, two-column striped volume with a mirror. Set the stripe unit
size to 128K. Select at least one disk you should not use. Name the volume
namevo14.
Create a 20-MI3 3-column striped volume with a mirror. Specify three disks to
be used during volume creation. Name the volume namevo14.
Was the volume created'!
10 Create the same volume specified in step 9, but without the mirror.
Note: If yo II did not cancel out of the previous step, then just uncheck the
mirrored option and continue the wizard.
Was the volume created')
11 Delete all volumes in the namedg disk group.
A-24
VERITAS
COPYrighl
Storage
Foundation
12 View the commands executed by VEA during this section of the lab.
volume with
110
namevoll.
3
If you are using VEA. view the commands executed by VEA to create the
Lab 4: Selecting
Volume
A-25
Layouts
Copyright
200(;
Swnanter
Corporation
All rights
reserved
A-26
Display the volume layout. How are the disks allocated in the volume'} Which
disk devices are used'?
Remove the volume you just made. and re-create it by specifying the four disks
in an order different from the original layout. Use the command line to create
the volume in this step.
Display the volume layout. How arc the disks allocated this time')
VERITAS
Storage
Foundation
All nobts reserved
/ete/default/vxassist
/ete/default/alt_vxassist
to create volumes with defaults specified by the user. Note that some of the default
values may nut apply to VEA because VEA uses explicit values for number of
columns. stripe unit size. and number of mirrors while creating striped and
mirrored volumes.
Create two files in lete/default:
a
lh~
Ji)!ldw!ng:
# when
V.1.
mirroring
create
c'a!b!
''::':cIS,::LE;t
three
11;,;[ inc'ludl"
lill'
mirrors
nmirror=3
bUsing
llie
,,1
loll(l\\lllg:
# use
256K
# regular
as the
volumes
default
stripe
unit
size
for
stripeunit:256k
2
-g
namedg -htr.
A-27
A-28
Svmaotec
Corpoeauon
All fights
reserved
'symant('(
Lab 5
Lab 5: Making Basic Configuration
Changes
Changes
This lab provides practice in making basic configuration changes. In this lab. you
add mirrors and logs to existing volumes. and change the volume read policy. You
also resize volumes. rename disk groups. and move data between systems.
Tile:
lab arc
I()c<tkd
PII lil,'
!"II,)\\,lIlg
Ckln;!cs."
I'<lg,':
I"lg(' [\--+7
Prerequisite Setup
To perform this Jab.you need a lab system with Storage Foundation pre- installed.
configured and licensed, In addition to this. you also need fuur external disks to be
used during the labs.
At the beginning ofthis lab. you should have a disk group called namedg that has
four external disks and no volumes in it.
Changes
A-29
Object
Sample Value
root password
veritas
Host name
trainl
train2
My Data Disks:
Solaris: clt#dO
clt#d5
Your Value
HP-UX: c4tOdO
c4tOd5
AIX:hdisk21hdisk26
Linux:
2nd Internal
Disk:
sda
sdf
Soluris: cOt2dO
HP-UX: c3t15dO
AIX: hdiskl
Linux: hdb
Location of Lab Scripts
(if any):
/student/labs/sf/
sf50
name
A-3D
ClJpynghl';
Display the volume layout. "ow are the disks allocated in the volume'! Note
the disk devices used for the volume.
Add a mirror to namevol1.and display the volume layout. What is the layout
of the second plcx? Which disks are used for the second plex?
Add a dirty region log to namevol1 and specify the disk to use lor the DRL.
Display the volume layout.
Add a second dirty region log to namevol1 and speci fy another disk to use
for the DRL. Display the volume layout.
Remove the first dirty region log that you added to the volume. Display the
volume layout. Can you control which log was removed?
Find out what the current volume read policy for namevol1 is. Change the
volume read policy to round robin, and display the volume layout.
Remove the original mirror (namevol1- 01) from namevoll. and display
the volume layout.
10 Remove namevoll.
Resizing a Volume
You can complete this exercise using either the YEA or the ell
Solutions are provided for both.
A-31
Changes
~ 2006
Svmamec
interface.
Corporation
AlIlIgtlls
reserved
I f you have not already done so. remove the volumes created in the previous
lab in namedg.
2
View the layout of the volume and display the size of the tile system.
Add data to the volume by creating a file in the tile system and verify that the
fi le has been added.
Expand the tile system and volume to 100 MB. Observe the volume layout to
see the change in size. Display f lc system size.
Create a Veritas tile system on the volume by using the mkfs command.
Specify the tile system size as 40 MB.
Create a mount point / name2 on which to the mount the tile system. if it does
not already exist.
Mount the newly created tile system on the mount point /name2.
Verify disk space using the df command (or the bdf command on HP-L!X).
Observe that the total size of the tile system is smaller than the size of the
volume.
Expand the tile system to the full size of the underlying volume using the
f sadm - b news i ze option.
Verify disk space using the df command (or the bdf command on HP-UX).
A-32
COPYflgh!
Make a lile on the file system mounted at /name2. so that the tree space is less
than 50 percent of the total file system size.
Shrink the file system to 50 percent of its current size. What happens"
Try to rename the namedg disk group to namedgl while the /namel and
/ name2 file systems are still mounted. Can you do it'!
Observe the contents of the / dev /vx/ rdsk and / dev /vx/ dsk directories
and their subdirectories. What do you see')
Rename the namedg disk group to namedgl. Do not forget to start the
volumes in the disk group after the renaming if you are using the command
line interface.
Observe the contents of the / dev /vx/ rdsk and / dev /vx/ dsk directories
and their subdirectories. What has changed?
Mount the / namel and / name2 file systems. and observe their contents.
A-33
Changes
Copyright
I,,'
All rigl11sreserved
Unmount all file systems in the namedgl disk group and deport the disk
group. Do not give it a new owner. View all the disk devices on the system.
Identify the name of the system that is sharing access to the same disks as your
system. I f you are not sure. check with your instructor. Note the name of the
partner system here.
Partner system hostnamc:
Using the command line interface, perform the following steps on your partner
system:
Note: If you are working on a standalone system, skip step a in the following
and use your own system as the partner system.
a
Import the namedgl disk group on the partner system, start the volumes in
the imported disk group. and view all the disk devices on the system.
While still logged in to the partner system, mount the /namel and
/ name2 tile systems. Note that you will need to create the mount
directories on the partner system before mounting the file systems. Observe
the data in the fi Ie systems.
On your partner system, deport namedg1 and assign your own machine
name, for example. trainS. as the New host.
Exit from the partner system.
On your own system import the disk group and change its name back to
namedg. View all the disk devices on the system.
From the command line display detailed information about one of the disks in
the disk group using the vxdi sk 1 is t device_ tag command. Note the
hos t id field in the output.
A-34
Copynght
~~ LOOf) Symantec
Ccrporauon
All nqhts
reserved
10 Now import namedg and overwrite the disk group lock. What did you have to
Changes
Copyright
i;
A-35
A lab exercise in the next lesson requires that you run a script that sets up files with
different size extents. Because the script can take a long time to run, you may want
to begin running the script now, so that the necessary environment is created by the
next lab time.
Identify
the device tag for the second internal disk on your lab system. If you
do not have a second internal disk or if you cannot use the second internal disk,
use one of the external disks allocated to you.
Second internal disk (or the external disk used in this lab):
Initialize the second internal disk (or the external disk used in this lab) using a
non-CDS disk format.
Create a non-cds disk group called testdg using the disk you initialized
step 2.
In the tes tdg disk group create a I-CiB conca ten atcd volume called
testvol initializing the volume space with zeros using the .i n i t.e z e r o
option to vxassist.
Ask your instructor for the location of the exten t s . sh script. Run the
extents. sh script.
in
A-36
,S)l1mme(.
Lab 6
Lab 6: Administering
File Systems
Lab 6: Administering
File Systems
In this lab. you practice file system administration. including dcfragmcntauon and
administering the file change log.
The Lah Solurion
fpr
Ihis lab
<lr,'
Fill'
SV'iCJllS."
pagc
I'ag.: Bh7
Setup
To perform this lab. you need a lab system with Storage Foundation pre-installed.
configured and licensed. In addition to this, you also need four external disks and
the second internal disk to be used during the labs. If you do not have a second
internal disk ur if you cannot use the second internal disk, you need five external
disks to complete the labs.
At the beginning of this lab. you should have a disk group called namedg that has
four external disks and no volumes in it. The second internal disk should be empty
and unused.
Note: If you are working in a North American Mobile Academy lab environment.
you cannot use the second internal disk during the labs. If thai is the case. select
one of the external disks 10 complete the lab steps.
Lab 6: Administering
A-37
File Systems
Copyright
(f
200G
Symantec
Corporation
All rights
reserved
Object
Sample Value
My Data Disks:
Soluris: clt#dO
clt#d5
Your Value
-
Solaris: cOt2dO
HP-UX: c3t15dO
AIX: hdiskl
Linux: hdb
Location of Lah Scripts
(if any):
/student/labs/sf/
sf50
name
VERITAS
A-38
COl'yrll.jhl
,,;: 2006
Svmantec
Storage Foundation
Corporation
An fights
mservec
Initialize the second internal disk (or the external disk used in this lab) using a
non-CDS disk format
test.
Verify that the VRTSspt software is already installed on your system. If not.
ask your instructor for the location of the software and install it.
Note: Before Storage Foundation 5.0, the VRTSspt software was provided as
a separate support utility that needed to be installed by the user. With 5.0. this
software is installed as part of the product installation.
Ensure that the directory where the vxbench command is located is included
in your PATH definition.
Lab 6: Administering
File Systems
Copyright <h.2006 Svmantec Corporation. All rights reserved
A-39
Defragmenting
to measure throughput
to specific files
process
What is a fragmented
Directory
total
6
Unmount
tile system"
Fragmentation
Dirs
Total
Searched
Blocks
199185
Report
Immed Immeds Dirs to
Dirs to Add Reduce
5473
Blocks
to
Reduce
5655
A--40
VERITAS
Storage
Foundation
Use the Is -Te command to display the extent attributes of the tiles in the
Ifs test file system. Note that on the Solaris platform you need to use the
1 s command provided by the VxFS file system software to be able to use the
-e option.
10 Repeat the same test for an 8Mb file on an 8Mb extent (ILX example. using the
Ifs_test/test58
file). Note that the file system must be remounted
between the tests. Can you explain why"
11 Defragment
throughput'.'
Notes:
You need to use the vxbench utility that is appropriate for the platform
you are working on. for example vxbench_9 on Solaris 9. To idcnti ty the
appropriate vxbench command. use the Is -1 I opt/VRTSsptl Fsi
VxBenchcommand. I f this path is not in your PATH environment
variable. use the fullpaih of the command while running the corresponding
vxbench utility.
The file system must be remounted before each test to clear the read
buffers.
If you have used external shared disks on a disk array used by other
systems for this lab. the performance results may be impacted by the disk
Lab 6: Administering
A-41
File Systems
Copyright ([ 2()06 svmamec Corporation
array cache and may not provide a valid comparison between a fragmented
and defragmented file system.
13 What is the difference between an un fragmented and a fragmented file system')
14 Is anyone environment more prone to needing dcfragmcntatiou
than another'!
How do you know that there have been no changes in the file system yet'?
How do you know that changes have bcen made to the file system')
10 Which files are identified by the inode numbers that are listed in the Create
type'!
11 Unmount the fcl_ test tile system and remove namevoll.
12 The next two lab sections are optional labs on analyzing and dcfragmenting
fragmented tile systems. If you are not planning to carry out the optional labs.
unmount / f s_tes t file system and destroy the tes tdg disk group;
otherwise. skip this step.
A-42
CcpYflgrl't
2006 Symaotec
Corporation
Ask your instructor for the location of the extents. sh script. Run the
extent s . sh script.
in testdg.
Run a series of performance tests for a variety ofI/O types using the vxbench
utility to compare the performance of the tiles with the RKextent size
(/fs_test/test48)
and the ROOOK
extent size (/fs_test/test58)
by
performing the following steps.
Complete the following table when doing the performance tests.
Lab 6: Administering
A-43
File Systems
Copyright
II'; 2006
Symantec
Corporation
Ail rights
reserved.
Test Type
Time (seconds)
Before
llefl'ag
Sequential
reads. XK
Throughput
After Defrag
Before
Defrag
(KB/second)
After Defrag
2.709
.526
2953.22
15202.10
.547
.549
14634.57
14576.20
Random
reads. XK
extent
8.268
6.267
967.54
1276.53
Random
reads. 80()tJK
extent
6.541
6.468
1223.02
1236.91
extent
Sequential
reads. HOOOK
extent
Note: Results can vary depending on the nature of the data and the model of
array used. No performance guarantees are implied by this lab.
3
is located is included in
1/0 Test
Sequential
Note: You must unmount and remount the file system Ifs_test before each
step to dear and initialize the butter cache.
To test the 8K extent size:
Random
I/O Test
A-44
the
If s_test
Defragment
some time.
process takes
When finished comparing the results in the previous step. un mount the
Ifs_test tile system and destroy the testdg disk group.
tile
All
nqhts rr-served
Repeatedly copy a small existing tile system to If s_test using a new target
directory name each time until the target file system is approximately R5
percent full. For example, on the Solaris platform:
for i in 1 2 3
> do
> cp -r lopt
Ifs
test/opt$l
> done
Note: Monitor the file system size using df - k on the Solaris platform and
bdf on the I1P-UX platform, and CTRL-C out of the for loop when the file
system becomes approximately R5 percent full.
Repeat step 2 using values 6 7 for i. Then delete all files that are smaller
than 64K to release a reasonable amount of space.
Defragment the file system and display the results. Run fragmentation reports
both before and after the detragmentation and display summary statistics after
each pass. Compare the f sadmreport from step 4 with the final report from
the last pass in this step.
Unmount the If s test file system and remove the narnevoll volume used
in this lab.
Lab 6: Administering
A-45
File Systems
Copyright
tile system.
Sl 2006
Syrnantec
Corporation
All right:'>
reserved
A-46
2006
Svmautec Corporation
'SY111anttx
Lab 7
Lab 7: Resolving
Hardware Problems
"Lab
"7 SOillli,)!lS:
1111'0
j(,',ol,
,11\
IlL' 1<"lpI\ing
p;ti!\'
page.
B-~)
Prerequisite Setup
To perform this lab. you need a lab system with Storage Foundation pre-installed.
configured and licensed. In addition to this. you also need four external disks to be
used during the labs.
At the beginning of this lab. you should have a disk group called namedg that has
four external disks and no volumes in it.
A-47
It, 2006
Symantec
Corporation.
All rights
reservec
Sample Value
f--c0bject
l\Iy Data Disks:
You,' Value
I-II'-UX: c4tOdO
c4tOd5
AIX: hdisk21hdisk26
l.inux: sda
/student/labs!sf/
sf50
name
sdf
A-48
Copyrl(.lht";:
L006
Symantec
Corporation
All rights
reserved
Start writing to a file in the /namel file system at the background using the
following command:
dd if=/dev/zero
count=500000
of=/namel/testfile
bs=1024 \
&
In one terminal change to the directory containing the script and before the I/O
completes, execute faildg_temp
namedg command.
Notes:
The faildg_temp
script disables the single path to the disk in the disk
group to simulate a hardware failure. This is just a simulation and not a real
failure; therefore, the operating system will still be able to see the disk after
the failure. The script waits until you arc ready with analyzing the failure,
to re-enable the path to the disk in the disk group.
If the 110 you started in step 6 completes before you can simulate the
failure, you can start it again to observe the I/O failure.
Wait lor the (/0 to fail and in another terminal observe the error displayed in
the system log.
commands to
Lab 7: Resolving
Hardware
A-49
Problems
Copyright e:
2006
Svmentec
Corporation
All rights
reserved
Note: In a real failure scenario. after the hardware recovery, you would need to
first verify that the operating system can see the disks and then verify that
Volume Manager has detected the change in status. I f not, you can force
VxVM to scan the disk by executing the vxdctl
will not be necessary for this lab.
12 Assuming that the failure was due to a temporary fiber disconnection and that
the data is still intact. recover the disk group and start the volume. Verify the
disk and disk group status using the vxdisk
-0 alldgs
1 is t and vxdg
1 i st commands.
13 Remount the tile system and verify that the contents are still there. Note that
you will need to perform a tile system check before you mount the tile system.
14 Unmount the file system and remove namevoll. At the end of this section
you should be left with a namedg disk group with a single disk and three
initialized disks that arc free to be used in a new disk group.
scenarios. Your goal is to recover from the problem as described in each scenario.
Use your knowledge ofVxVM
administration. in addition to the VxVM recovery
tools and concepts described in the lesson. to determine which steps to take to
ensure recovery. After you recover the test volumes, the script verities your
solution and provides you with the result. You succeed when you recover the
volumes without corrupting the data.
For most of the recovery problems, you can use any of the VxVM
interfaces: the
Setup
Due to the way in which the lab scripts work, it is important
environment
to set up your
If your system is set to use enclosure-based naming, then you must turn 011'
enclosure-based naming before running thelab scripts.
2
A-50
Create a disk group named tes tdg and add three disks (preferably of the
same size) to the disk group. Assign the following disk media names to the
disks: testdgOl, testdg02, and testdg03.
Note: If you do not have enough disks. you can destroy disk groups created in
other labs (fur example. namedg)in order to create the testdg disk group.
3
Before running the automated lab scripts. set the DGenvironment variable in
your root profile to the name of the test disk group that you are using:
Rerun your profile by logging out and logging back on. or manually running it.
Note: This lab can only be performed on Solaris. HP-UX. and Linux.
From the directory that contains the lab scripts. run the script run_disks. and
select option I. "Turned on' drive (temporary failure)":
This script sets up two volumes:
testl
test2
Note: I I'you receive an error message about the / image file system becoming
full during volume setup. ignore the error message. This error will not have
any impact on further lab steps or lab results.
2
Read the instructions in the lab script window. The script simulates a disk
power-off by saving and overwriting the private region on the drive that is used
by both volumes. Then. when you are ready to power the disk back on. the
script restores the private region as it was before the failure.
Assume that the failure was temporary. In a second terminal window. attempt
to recover the volumes.
After you recover the volumes, type e in the lab script window. The script
veri fics whether your solution is correct.
Lab 7: Resolving
Hardware
A-51
Problems
Cop~rlght
'E: 2006
Symanter;
Corporauon
All rights
reserved
DG="testdg"
export
DG
From the directory that contains the lab scripts, run the script run_disks, and
select option 2, "Power failed drive (permanent failure)":
with a mirrored
layout
Read the instructions in the lab script window. The script simulates a disk
powcr-ortby
saving and overwriting the private region on the drive that is used
by both volumes. The disk is detached by VxVM.
In a second terminal window, replace the permanently failed drive with either a
new disk at the same SCSI location or by another disk at another SCSI
location. Then. recover the volumes.
After you recover the volumes, type e in the lab script window.
The script
When you have completed this exercise. if the disk device that was originally
used during disk failure simulation is in onl ine inval id state, rcinitialize
the disk to prepare for later labs.
A--52
Copynyll\
~ 2l1Uh Svmantec
Corporation.
All fights
r.:,,>crvcd
DG
is set to the
From the directory that contains the lab scripts. run the script run_disks. and
select option 3. "Intermittent Failures (system still ok)":
This script sets up two volumes:
testl
Note: If you receive an error message about the / image tile system becoming
full during volume setup. ignore the error message. This error will not have
any impact on further lab steps or lab results.
2
Read the instructions in the lab script window. You arc informed that the disk
drive used by both volumes is experiencing intermittent failures that must be
addressed.
In a second terminal window. move the data on the failing disk to another disk.
and remove the failing disk.
After you resolve the problem. type e in the lab script window. The script
verities whether your solution is correct.
When you have completed this exercise. add the disk you removed from the
disk group back to the testdg disk group so that you can use it in later labs.
Lab 7: Resolving
Hardware
A-53
Problems
Copyriglll
All rigtHS
reserved
In this optional lab exercise, intermittent disk failures are simulated, and the
system has slowed down significantly, so that it is not possible to evacuate data
from the failing disk. The lab script run_disks sets up the test volume
configuration and validates your solution for resolving the problem. Ask your
instructor for the location of the run _di sks script.
Before You Begin: Check to ensure that the environment variable DG is set to the
name of the testdg disk group:
IfDG is not set, set it before you continue:
DG="testdg"
export
DG
From the directory that contains the lab scripts, run the script run_disks, and
select option 4. "Intcrmirtcnt Failures (system too slow)":
This script sets up two volumes:
tes t 1 with a mirrored layout
tes t2 with a concatenated layout
Note: If you receive an error message about the / image tile system becoming
full during \ olume setup. ignore the error message. This error will not have
any impact on further lab steps or lab results.
2
Read the instructions in the lab script window. You are informed that:
The disk drive used by both volumes is experiencing intermittent failures
that need to be addressed immediately.
The system has slowed down significantly,
the disk before removing it.
A-54
After you resolve the problem. type e in the lab script window. The script
verities whether your solution is correct.
VERITAS
Storage Foundation
From the directory that contains the lab scripts. run the script run_disks. and
select option 5. "Turned off drive with layered volume":
This script sets up two volumes:
tes t 1 with a concat-mirror layout
test2
Note: I I'you receive an error message about the / image file system becoming
full during volume setup. ignore the error message. This error will not have
any impact on further lab steps or lab results.
2
Read the instructions in the lab script window. The script simulates a disk
power-offby saving and overwriting the private region on the drive that is used
by both volumes. Then. when you arc ready to power the disk back on. the
script restores the private region as it was before the failure.
Assume that the failure was temporary. In a second terminal window, attempt
to recover the volumes.
Arter you recover the volumes. type e in the lab script window. The script
veri lies whether your solution is correct.
Lab 7: Resolving
Hardware
A-55
Problems
Copyright
K 2006
Svmantec
Corporancn
All rights
reserved
DG
is set to the
with a concat-mirror
layout
Note: If you receive an error message about the / image tile system becoming
full during volume setup, ignore the error message. This error will not have
any impact on further lab steps or lab results.
2
Read the instructions in the lab script window. The script simulates a disk
power-offby saving and overwriting the private region on the drive that is used
by both volumes. The disk is detached by YxYM.
In a second terminal window, replace the permanently failed drive with either a
new disk at the same SCSI location or by another disk at another SCSI
location. Then. recover the volumes.
The rest of this lab exercise includes optional lab instructions where you perform a
variety of basic recovery operations.
A-56
Display the properties of the volume, In the table. record the device and disk
media name of the disks used in this volume,
Remove one of the disks that is being used by the volume for replacement.
From the command line. check that the state of one of the plexcs is
and REMOVED,
[I' you are not already logged in YEA. start YEA and connect to your local
system. Check the status of the disk that has been removed.
Check the status of the disks. What is the status of the replaced disk')
DISABLED
11 In YEA. what is the status of the replaced disk') What is the status of the
volume')
12 From the command line. recover the volume. During and after recovery. check
Lab 7: Resotving
Hardware
Problems
Copyright
A-57
t:
2006
Symaotec
Corporanon
All rights
reserved
/narne1.
2
Next, simulate disk failure by writing over the private region using the
overwritepr script followed by vxdctl disable and vxdctl
enable commands. Ask your instructor for the location of the script.
While using the script, substitute the appropriate disk device name for one of
the disks in use by narnevoll, lor example on Linux use sbd, on Solaris and
HP-UX
use cltBdO.
When the error occurs, view the status of the disks from the command line.
/opt/VRTSobc/pa133/bin/vxpalctrl
-c restart
7
A-58
-a StorageAgent \
VERITAS
Storage
Foundation
Fundamentals
Recover the disk by replacing the private and public regions on the disk. In the
command. substitute the appropriate disk device name. lor example on Linux,
use sbd:
Note: This step is only necessary when you replace the failed disk with a brand
new one. If it were a temporary failure. this step would not be necessary.
control:
12 Check the status of the disks and the volume to ensure that the disk and volume
are fully recovered.
13 Unmount the / namel
volume.
Attempt to create the same volume again. but this time specify two disks to
use. Do not clear any spare flags on the disks.
Lab 7: Resolving
Hardware
volume.
is running. Ifnot.
start it as
-g
namedg
-thr
Problems
Copyright,
to a file.
A-59
2006
Svmantec
Corporation
All rights
reserved
Display the properties of the spare2vol volume. In the table, record the
device and disk media name of the disks used in this volume. You are going to
simulate disk failure on one of the disks. Decide which disk you are going to
fail.
10 Next, simulate disk failure by writing over the private region using the
overwri tepr script followed by vxdctl
disable and vxdctl
enable commands. Ask your instructor for the location of the script.
While using the script, substitute the appropriate disk device name for one of
the disks in use by spare2voL for example on Linux use sbd, on Solaris
and HP-UX use clt8dO.
11 Run vxprint
Notc: You may need to wait a minute or two for the hot relocation to complete.
12 In YEA, view the disks. Notice that the disk is in the disconnected state.
Notc: On the HP-UX platform. the vxdct 1 disable command may cause
the StorageAgent used by the YEA GUI to hang. If this happens, the YEA GUI
does not detect the changes. Use the following command to restart the agent:
/opt/VRTSobc/pa133/bin/vxpalctrl
-c restart
13 Run vxdisk
-0
alldgs
list.
-a StorageAgent
command, substitute the appropriate disk device name, for example on Linux,
use sbd:
17 Bring the disk back under Yx YM control and into the disk group.
18 In YEA, undo hot relocation for the disk.
19 Wait until the volume is fully recovered before continuing.
Check to ensure
volume.
A-60
Copvnqht
2006 svroeotec
Corporation
All
fights
reserved
How many on-site support visits are included in a Extended Support contract"
l low about with a Business Critical Support"
Hint: In the Support l lundbook. see table on page 4 and explanation on page 5.
Where would you locate the Patch with Maintenance Pack I for VERITAS
Storage Solutions and Cluster File Solutions 4.0 IlH Solaris
Perform this step only if you are working in the Virtual Academy lab
environment. If you have executed the restore_ns script to restore the
name resolution configuration at the beginning of this lab section in step I,
change to the directory containing the lab scripts and execute the
prepare_ns script before you continue.
If necessary:
cd
/script_location
,/prepare
Lab 7: Resotving
Hardware
ns
Problems
Copyright,S: 2006 Svmantec Corporation
A-51
All rights rescrvec
A-62
CGpynght
'f:
2(JI)6
Svmar-tec Cnrporanon
All fights
reserved
Appendix B
Lab Solutions
8-2
2006
Svmantoc
Corporation.
All rights
reserved
symantee_
Lab 1
Lab 1: Introducing the Lab Environment
In this lab, you are introduced to the lab
environment, system, and disks that you will use
throughout this course.
Lab 1 Solutions:
Introducing
8-3
~") 2006
Svnantoc
Corporation
All rights
reserved
Lab Prerequisites
Record the following
information
Ohject
Sample Value
root password
veritas
Host name
trainl
Domain name
classrooml.int
trainl.classrooml
.int
train2
Solaris: cOtOdO
Your Value
HP-UX: clt15dO
AIX:hdiskO
Linux: hda
~~ternal
Disk:
Solaris: cOt2dO
HP-UX: c3t 15dO
AIX: hdiskl
Linux: hdb
Solaris: c 1t #dO clt#d5
HJ>-UX: c4tOdO
c4tOd5
AIX:hdisk21hdisk26
l.inux: sda
8-4
sdf
(:. 2U06
S),Hl31l1CC
Corporation
Location of Storage
Foundation 5.0
Software:
/student/
software/sf/sf50
/student/labs/sf/
sf50
Location of the fp
program:
/student/labs/sf/
sf50/bin
Location or V F: RITAS
Storage Foundation
license keys:
/student/
software/license/
sf50 - entr
lic.txt
Lab 1 Solutions:
Introducing
B-5
Use course_setup
Select Classroom.
script:
Function
Select
Zoning
by Zone Name
2 - Select
Zoning and Hostgroup
Configuration
3 - Select/Check
Hostgroup
Configuration
2
by Course
HDS Hostgroup
and 2
Configuration
Select option
Select
1 path
access
3 - Check active
3
Name
Hostgroup Configuration.
Select
BostGroup
Configuration
to be Configured:
1 - Standard
Mode: 2 or 4 node sharing,
No DMP
2
DMP Mode: 2 node sh~ring,
switch~ble
between
pa th
Version 2).
To Perform:
Zoning
Configuration
Required:
Select option
course_setup
B-6
script.
VERITAS
Copyn!-)ht
~ 20()6
Svrnantec
- - - 1".
Storage Foundation
copo-auoo. AlillyhlS
reserved
symanter
Lab 2
Lab 2: Installation and Interfaces
In this lab, you install VERITAS Storage
Foundation 5.0 on your lab system. You also
explore the Storage Foundation user interfaces,
including the VERITAS Enterprise Administrator
interface, the vxdiskadm menu interface, and the
command-line interface.
Lab 2 Solutions:
Installation
see Appendix
see Appendix
A.
B.
and Interfaces
In this exercise. you install V[RITAS Storage Foundation 5.0 on your lab system.
You also explore the VxVM user interfaces. including the V[RITAS Enterprise
Administrator interface. the vxdiskadm menu interface. and the command line
interface.
The Lab Exercises for this lab are located on the following page:
Prerequisite Setup
To perform this lab. you need a lab system with the appropriate operating system
and patch sets pre-installed. At this point there should be no Storage Foundation
software installed on the lab system. The lab steps assume that the system has
access to the Storage Foundation 5.0 software and that you have a Storage
Foundation 5.0 Enterprise demo license key that can be used during installation.
Lab 2 Solutions
Installation
and Interfaces
COp)'rigt11 r,;:.2006 Syrnaruec Corporation. All righls reserved
B-7
Object
Sample Value
root password
veritas
Host name
trainl
Domain name
classrooml,int
trainl,classrooml
,int
Solaris: cOtOdO
Your Value
HP-UX: clt15dO
AIX: hdiskO
Linux: hda
B-8
Location of Storage
Foundation 5,0
Software:
/student/
soft ware/
Location ofVERITAS
Storage Foundation
license keys:
/student/
software/license/
sf 50 entr - lic,txt
/student/labs/sf/
sf50
sf / sf50
VERITAS
Storage
Foundation
"llnts
reserved
Fundamentals
Preinstallation
Determine if there are any
VRTS
or
SYMC
system.
Solaris
I
I
pkginfo
pkginfo
HP-lJX
grep
-i
VRTS
grep
-i
SYMC
swlist
-1 product
swlist
-1 product
I
I
grep
VRTS
grep
SYMC
AIX
lslpp
lslpp
Linux
-1 'VRTS* '
-1 'SYMC*'
rpm
-qa
rpm
-qa
I
I
grep
VRTS
grep
SYMC
ep fete/system
/ete/system.preVM
ep /ete/vfstab
/ete/vfstab.preVM
prtvtoe
/dev/rdsk/boot
/ete/bootdisk.preVM
IW-lJX
ep /stand/system
ep /ete/fstab
AIX
Linux
device
name > \
/stand/system.preVM
/ete/filesystems.preVM
/ete/vfs.preVM
ep /ete/grub.eonf
ep /ete/modules.eonf
disk
/ete/fstab.preVM
ep /ete/filesystems
ep /ete/vfs
/ete/grub.eonf.preVM
/ete/modules.eonf.preVM
Are any VERlTAS license keys installed on your system'? Check for installed
licenses.
vxlierep
Lab 2 Solutions:
Installation
and Interfaces
Copyligl1t r; 2006 Symantec Corporation All rigtlls reserved
8-9
jete/hosts
cat
jete/hosts
192.168.xxx.yyy
train#.domain
train#
elassrooml. into
If the fully qualified
alias to hostname.
b
containing
tile. add it as an
prepare _ns script. This script ensures that your lab system only uses
local files for name resolution.
cd /location_of_lab_scripts
./prepare
8-10
ns
VERITAS
Storage Foundation
All
nqhb reserved
Select
Obtain a license key from your instructor and record it here. Type the
license key when prompted.
License Key:
Enter n when you are asked if you want to enter another license key.
Select to install All Veritas Storage Foundation packages when prompted.
Lab 2 Solutions:
Installation
and Interfaces
Copynqhtt'. 2006 Symantec Cnrporatioe All rights reserved
8-11
HP-liX
shutdown
Alter
cd
-ry
now
reboot:
/software_location
./installer
-configure
system
Obtain the domain name from your instructor and type the fully qualified
host name of your system when prompted. For example:
train5.classrooml.int
m Do not enable Storage Foundation Management Server Management. The
system will be a standalone host.
n
When the installation script completes, you will be asked to reboot your
system. Perform the next lab step (lab step 3) to modify the root profile
before rebooting your system.
This step is only for North American Mobile Academy lab environment. If
you arc working ill a different lab environment, skip this step.
If you are working in a North American Mobile Academy lab environment
with iSCSI disk devices, change to the directory containing the lab scripts
and execute the iSCSl setup lab script. TIllS SCript disables DMP
support fur iSCSI disks so that they can be recognized correctly by Volume
Manager.
Only if you arc working in a North American
environment:
cd /location_of_lab_scripts
8-12
All
nqnts reserved
./iscsi
3
setup
Check in /. profile
Note: Your lab systems may already be configured with these environment
variable settings. l lowever, in a real-li fe environment you would need to carry
out this step yourself
Solaris.
AIX
PATH=$PATH:/usr/lib/vxvm/bin:/opt/VRTSob/bin:
/usr/sbin:/opt/VRTS/bin:/opt/VRTSvxfs/sbin
MANPATH=$MANPATH:/opt/VRTS/man
export
Linux
PATH MANPATH
PATH=$PATH:/usr/lib/vxvm/bin:/opt/VRTSob/bin:
/usr/sbin:/opt/VRTS/bin:/opt/VRTSvxfs/sbin
MANPATH=$MANPATH:/opt/VRTS/man
PATH MANPATH
export
MANSECT=$MANSECT:lm
IWUX
MANSECT
PATH
export
; export
PATH=/usr/lib/vxvm/bin:/opt/VRTSob/bin:
/opt/VRTS/bin:/usr/sbin:
\
/usr/lbin/fs/vxfs4.1:$PATH
-y -i6
Solaris
shutdown
HI'LJX
-gO
ih
8-13
reserved
Solar-is,
vxsvc
HI'-UX,
AIX
vxsvc
Linux
vxsvcctrl
status
vxsvcctrl
start
vea
DISPLAY=pcl:0
export
DISPLAY
It is also important that the display itself is configured to accept connections
from your client. If you receive permission errors when you try to start YEA,
in a terminal window on the display system, type:
xhost
system or xhost
where system is thc hostname of the client on which you are running the
vea command.
3
In the Select Profile window. click Manage Profiles button and configure YEA
to always start with the Default profile.
Set "Start VEA using profile"
OK to continue.
On the left pane (object tree) view. drill down the system and observe the
various categories of V x YM objects.
Select the Assistant perspective on the quick access bar and view tasks for
systemname/StorageAgent.
7
Using the System perspective find out what disks are available to the OS.
8-14
l;;
200fi
Svmantec
Corporanon
All rights
reserved
In the System perspective object tree, expand your host and the
StorageAgent, then select the Disks node. Examine the Device column in
the grid.
8
Execute the Disk Scan command and observe the messages on the console
view. Click on a message to see the details.
In the VEA System perspective object tree, select your host. Select
Actions->Rescan.
9
Navigate to the Log perspective. Select the Task Log tab in the right pane
and double-click the "Scan for new disks" task.
10 Exit the VEA graphical interface.
Lab 2 Solutions:
Installation
8-15
and Interfaces
Copyright'i"
2006
Symantec
Corporation
All lighTs
resorveo
11 Create a root
YEA.
Solaris,
equivalent
administrative
for use of
Linux
useradd
passwd
adminl
adminl
/ete/group
4. In the tile. move to the location where you want to insert the
vrt sadmentry. change to insert mode by typing .i , then add the line:
vrtsadm::99:root,adminl
5. When you are finished editing. press [Esc] to leave insert mode.
6. Then. save the tile and quit:
:wq
ur-ux
adminl
adminl
/ete/group
4. In the file. move to the location where you want to insert tile
vrtsadm entry. change to insert mode by typing i, then add the
line:
vrtsadm::99:root,adminl
5. When you are finished editing. press [Esc] to leave insert mode.
11. Then, save the tile and quit:
:wq!
AIX
mkgroup
useradd
passwd
-A vrtsadm
-m -G vrtsadm
adminl
adminl
Launch VEA:
vea
8-16
VERITAS
Storage Foundation
c
d
Select the "Connect using a different user account" option and click
Connect.
Enter the username and password for the new user:
User: adminl
Password: (Type the password that you created for adminl.)
After confirming the account, select File->Exit.
Exploring vxdiskadm
From the command line. invoke the text-based Vx YM menu interface.
vxdiskadm
Lab 2 Sotutions:
tnstallation
8-17
and Interfaces
Cnnvnqtu t. 2006 Svrnantec Corporation
All
riqt1f;;
reservort
man vxassist
2
What vxassist
is used in creating
volume?
a volume.
manual pages and read about the
man vxdisk
4
vxdisk
-0
alldgs
list
in the list.
man vxdg
6
vxdg
7
list
man vxprint
B-18
VERITAS
Storage Foundation
Fundamentals
more
What is the version and revision number of the installed version ofVx v'M?
Solaris
pkginfo
-1 VRTSvxvm
look at the Version field.
In the output.
ur-ux
--
sw1ist
grep
The version
AIX
lslpp
Linux
rpm
vxvm
ofthe
output.
-1 VRTSvxvm
In the output.
-i
named Level.
VRTSvxvm
-qi
Which daemons are running after the system boots under Vx VM control"
Solaris
ps
-eflgrep
-i vx
vxconfigd,
vxrelocd,
vxesd,
vxconfigbackupd,
vxsmf.bin
HI'-lJX
ps
-ef
grep
Installation
vxcached,
vxpal,
vxnotify,
vxcached,
vxfsd,
vxiod,
-i vx
vxconfigd,
vxrelocd.
vxesd,
vxconfigbackupd,
vxpal,
vxsmf.bin
Lab 2 Solutions:
vxnotify,
vxsvc,
vxsvc,
and Interfaces
Copvuqht 'f: 2006 Symantec Corporation All rights roservoc
B-19
8-20
'S}111illitCC.
Lab 3
Lab 3: Creating a Volume and File System
In this lab, you create new disk groups, simple
volumes, and file systems, mount and
unmount the file systems, and observe the
volume and disk properties.
Lab 3 Solutions:
In this lab. you create new disk groups. simple volumes. and file systems. mount
and unmount the file systems. and observe the volume and disk properties. The
first exercise uses the VEA interface. The second exercise uses the command line
interface.
The Lab Exercises for this lab are located on the following page:
If you use object names other than the ones provided. substitute the names
accordingly in the commands.
Caution: In this lab. do not include the boot disk in any of the tasks.
Prerequisite Setup
To perform this lab. you need a lab system with Storage Foundation pre-installed.
configured and licensed. In addition to this. you also need four empty and unused
external disks to be used during the labs.
Note: Although you should not have to perform disk labeling. here are some tips
that may help if your disks are not properly formatted:
On Solaris, use the format command to place a label on any disks that are not
properly labeled for use under Solaris. Ask the instructor for details.
On Linux, if you have problems initializing a disk. you may need to run this
command: fdi sk / dev / di sk.
Use options - 0 and -w to write a new DOS partition table. (The disk may have
previously been used with Solaris.)
Lab 3 Solutions:
Creating
8-21
Object
Sample Value
root password
veritas
Host name
trainl
Solaris: c 1t #dO -
B-22
~ '-{)
,"
-'l
clt#d5
HP-UX: c4tOdO c4tOd5
AIX:hdisk21hdisk26
Linux: sda - sdf
name
VERITAS
Copyright
Your Value
.; 2006
Svmar-tec
Storage Foundation
Comoranon
AU nqt-ts
resorvoo
user.
vea &
2
View all the disk deviceson the system.What is the statusolthc disks assigned
to you for the labs"
a lising the system perspective (StorageAgent view), drill down the
object tree, and select the Disks node.
b
Selectan uninitialized disk and initialize it using the YEA, Observethe change
in the Statuscolumn. What is the statusof the disk now
a Select the disk in the grid, and select Actions->Initialize
Disk.
b Verify the selected disk in the Initialize Disk view and click OK.
The status of the disk should change to Free.
Createa new disk group using the disk you initialized in the previous step.
Name the new disk group namedg1. Observethe change in the disk status.
Note: If you are sharing a disk array. make sure that the prefix you are using
for the disk group namesis unique.
a Select the newly initialized disk in the grid, and select Actions->New
Disk Group.
b In the New Disk Group wizard, click Next to skip the Welcome page.
c Type the name of the disk group. Ensure that Enable Cross-platform
Data Sharing (CDS) remains checked. If necessary, make changes to
the selected disks, and click Next.
d
Click Finish.
The status ofthe disk should change to Imported and the disk media name
and the disk group name should be visible in the disk grid.
5
Using YEA createa new volume of size I g in namedg 1. Name the new
volume namevol1. Createa file systemon it and make surethat the file
system is mounted at bout time to / name1 directory.
a Select the Volumes node in the object tree and select Actions->New
Volume.
b In the New Volume Wizard, click Next on the welcome page.
c
Lab 3 Solutions:
Creating
8-23
Let volume manager decide what disks to use for this volume, and
click Next to continue.
e Enter volume name and size, and leave the other options at their
default values. Click Next to continue.
Leave the "Create as a Snapshot Cache Volume" option unchecked
and click Next.
Check if the tile system is mounted and verify that there is an entry for this file
system in the tile system table,
Select the File Systems node in the object tree and observe the list of
mounted me systems in the right pane view. The / narnel me system
should be listed here. Note the "Mounted" and "In File System Table"
columns.
You can also use the command line to verify the changes as follows:
Solaris
mount
cat
HP-lIX,
Linux
/etc/vfstab
mount
cat
/etc/fstab
The / narnel file system should show as mounted and there should be a
line in the me system table to ensure that it is mounted at boot time.
7
View the properties of the disk in the namedgl disk group and note the
Capacity and the Unallocated space fields,
Select Disks in the object tree, right click the disk in the narnedgl disk
group, and select Properties.
8
8-24
Select the Volumes node in the object tree and select Actions->New
Volume.
Let volume manager decide what disks to use for this volume, click
Next to continue.
Enter volume name and size, and leave the other options at their
default values, click Next to continue.
Leave the Create as a Snapshot Cache Volume option unchecked. and
click Next.
9
h
On the Create File System page leave the "No tile system" option
checked and click Next.
Verify the summary information, and click Finish.
a
b
e
d
e
10 Create the same volume. namevo12.in the namedgl disk group using the
same size as in step X. Do not create a tile system.
Select the Volumes node in the object tree and select Actions->Ncw
Volume.
e
d
On the Create File System page leave the "No tile system" option
checked and click Next.
Lab 3 Solutions:
Creating
8-25
System->
Verity that the file system type is vxfs, enter the mount point, uncheck
the "Add to tile system table" option, and click OK.
c Select the File Systems node in the object tree and observe the list of
mounted file systems in the right pane view. The / name2 file system
should be listed here. Note the Mounted and In File System Table
columns.
You can also use the command line to verify the changes as follows:
Solaris
mount
cat /etc/vfstab
BP-lJX,
Linux
mount
cat /etc/fstab
The / name2 file system should show as mounted but there should be no
change in the file system table.
13 Observe the commands that were executed by VEA during this section ofthe
lab.
Observe the commands executed by VEA during this section of the lab
by double clicking the individual tasks and observing the Task Details
view.
vxdisk
-0 alldgs
list
If you completed the first section of this lab, you should have two disks in
namedgl in online
status. The rest of the disks assigned to you should
be in online
invalid
status. If you have a disk in error status,
contact your instructor.
B-26
VERITAS
Copynqht
'<',
Storage
Foundation
All nqhls reserved
Select an uninitialized disk and initialize it using the CLI. Observe the change
in the Status column. What is the status of the disk now'!
vxdisksetup
-i
device_tag
where device_
tag is c#t#d#
and sd# for Linux platforms.
vxdisk
-0
alldgs
for AIX
list
hdisk#
Create a new disk group using the disk you initialized in the previous step.
Name the new disk group namedg2. Observe the change in the disk status.
Note: If you are sharing a disk array. make sure that the prefix you are using
for the disk group names is unique.
vxdg
init
namedg2 namedg20I=device_tag
where devi ce_ tag is c#t #d# for Solaris and HP-UX,
and sd# for Linux platforms.
vxdisk
-0
alldgs
hdisk#
for AIX
list
vxassist
5
Create a Vcritas file system on the namevo13 volume. mount the file system
to the / name3 directory.
mkfs
-F vxfs
/dev/vx/rdsk/namedg2/namevo13
use mkf s - t.
Note: On LiIllIX,
mkdir
mount
/name3
-F vxfs
Note: On Llnux,
Lab 3 Solutions:
Creating
/dev/vx/dsk/namedg2/namevo13
use mount -to
B-27
I[)
2006
Symantec.
Corporation
/name3
vi
Solaris
/etc/vfstab
...
/dev/vx/dsk/namedg2/namevo13
/dev/vx/rdsk/namedg2/namevo13
/name3 vxfs o yes UP-LJX
vi
\
\
/etc/fstab
...
/dev/vx/dsk/namedg2/namevo13
rw,largefiles,delaylog
/name3
vxfs
0 2
Unmount the / name3 tile system, verify the un mount, and remount using the
-a command to mount all tile systems ill the file system table.
mount
umount /name3
mount
mount -a
mount
7
the amount of free space in the namedg2 disk group. TIY to create a
Identity
larger than
the avai lablc free space. for example 5g on standard Symantcc classroom
systems. What happens'?
Note: The disk sizes in Symanicc Virtual Academy lab environments are
slightly less than 2g. Ensure that you use the correct value suitable to your
environment instead of the 5g example used here.
vxdg
-g namedg2 free
vxassist
5g
Initialize
a new disk and add it to the namedg2 disk group. Observe the
vxdisksetup
-i device_tag
vxdg -g namedg2 adddisk
namedg202=device_tag
where device
tag is c#t#d# for Solaris
and HP-UX,
hdisk#
for AIX and sd# for Linux platforms.
vxdg -g namedg2 free
9
Create the same volume. namevo14, in the namedg2 disk group using the
same size as in step 7.
vxassist
8-28
VERITAS
Copyright
_~'200G
S)"IWlO>tE'C
Storage
CorpOf(:l!iuli
5g
Foundation
All
fights
reserved
Note: The 5g volume size is used as an example here. You may need to use
a value more suitable to your lab environment if you arc not working in a
standard Symantec classroom.
This time the volume creation should complete successfully.
10 Display volume information for namedg2 disk group using the
vxprint
-g namedg2 -htr command. Can you identify which disks arc
used for which volumes?
vxprint
-g namedg2 -htr
11 List the disk groups on your system using the vxdg list command.
vxdg list
If you have followed the labs so far, you should have two disk groups listed
namedgl and namedg2.
Lab 3 Solutions:
Creating
B-29
Removing
Volumes,
ell
Unmount the / name3file system and remove it from the file system table.
Solaris
umount /name3
vi /etc/vfstab
Navigate to the line with the entry corresponding to the /name3 lile
system and type dd 10 delete the line.
Type :wq
HP-UX,
Linux
10
umount /name3
vi /etc/fstab
Navigate 10 the line with the entry corresponding to the /name3 file
system and type dd 10 delete the line.
Type :wq
10
Remove the namevo14 volume in the namedg2disk group. Observe the disk
group configuration information using the vxprint
-g namedg2 -htr
command.
vxassist
vxprint
-g namedg2 remove
-g namedg2 -htr
volume
namevol4
namedg202
8-30
state; it is initialized.
destroy
namedg2
VERITAS
Storage
Foundation
Select the File Systems node in the object tree and select / namel file
system.
Select Actions->Unmount
File System.
File System.
Both tile systems should disappear from the file system list in VEA. You
can use the command line to verify the changes as follows:
Solaris
mount
U1'-l'X.
Linux
mount
/etc/vfstab
cat
cat
/etc/fstab
The / namel and / name2 file systems should not be among the mounted
tile systems, and the tile system tahle should not contain any entries
corresponding to these tile systems.
2
Select the Volumes node in the object tree and select namevol2
volume.
Select Actions->Delete Volume. Cnnflrm when prompted.
Select the Disk Groups node in the object tree and observe the disks in the
namedgl disk group. Can you identify which disk is empty')
The %Used column should show 0% for the unused disk which is the
second disk in the disk group (namedgl02).
4
Remove the disk you identified as empty from the namedgl disk group.
Select the empty disk and select Actions->Remove Disk From Disk
Group.
Observe all the disks on the system. What is the status of the disk you removed
from the disk group?
Select the Disks node in the object tree and observe the disks in the right
pane view.
Lab 3 Solutions:
Creating
8-31
Select the Disk Croups node in the object tree and the namedgl disk
group in the right pane view.
Select Actions->Destroy
Observe all the disks on the system. What is the status of the disks?
Select the Disks node in the object tree and observe the disks in the right
pane view.
If you have followed all the lab steps, you should have 4 disks in Free state;
they are already initialized but not in a disk group.
8-32
VERITAS
Copyngtll
Storage
Foundation
A,II flgtlt<: reservert
'symanl<x.
Lab 4
Lab 4: Selecting Volume Layouts
In this lab, you create simple concatenated
volumes, striped volumes, and mirrored
volumes.
Lab 4 Solutions:
see Appendix
see Appendix
A.
B.
In this lab. you create simple concatenated volumes. striped volumes. and mirrored
volumes. You also practice creating a a layered volume and using ordered
allocation while creating volumes.
The Lab Exercises for this lab are located on the following
page:
Prerequisite Setup
To perform this lab. you need a lab system with Storage Foundation pre-installed,
configured and licensed. In addition to this. you also need four empty and unused
external disks to be used during the labs.
Lab 4 Solutions:
Selecting
8-33
Volume Layouts
Copvnqtn b 2006
Symarrter;
Cmpor3MI1
All righlS
reserved
Oh.jeet
Sample Value
root password
veritas
Host name
trainl
My Data Disks:
Sularis: c It #dO -
Your Value
clt#d5
IIP-UX: c4 t OdD
c4tOd5
AIX:hdisk21hdisk26
l.inux: sda
Prefix to be used with
object flames
sdf
name
8-34
Ccpynqnt
';' I'U[}6
Svn.antec
Corporauon
All lights
rcscrveo
If you have completed the Creating a Volume and File System lab (lab
3), you should already have four initialized disks. If not, initialize four
disks for use in Volume Manager:
vxdisksetup
-i
device_tag
for
(Do the above command for anv disks that have not been initialized for
Volume Manager use and that will be used in this lab.)
Create a new disk group and add disks:
vxdg init
namedg namedgOl=devicel_tag
\
namedg02=device2_tag
namedg03=device3_tag
namedg04=dev~ce4
tag
Alternatively, you cau also create the disk ~roup using a single disk device
and then add each additional disk as follows:
vxdg
-g
namedg adddisk
namedg##=device_tag
vxprint
-g
namedg remove
volume
namevoll
Create a 50-MB striped volume on two disks in namedg and specify which
two disks to use in creating the volume. Name the volume namevo12.
vxassist
-g namedg make namevol2
SOm layout=stripe
\
namedgOl
namedg02
Lab 4 Solutions:
-g
Selecting
nallledg
-thr
more
Volume Layouts
Copyright'C 2006 Syrnaruec Corporation, A.IIri9nt>. reserved
8-35
Create a 20-MB, two-column striped volume with a mirror in namedg. Set the
stripe unit size to 256K. Name the volume namevo13.
vxassist
-g namedg make namevol3 20m \
layout=mirror-stripe
neol=2 stripeunit=256k
What do you notice about the plexes?
View the volume using vxprint
-g namedg -thr
I more.
Notice that you now have a second plex.
Create a 20-MB. two-column striped volume with a mirror. Set the stripe unit
size to 128K. Select at least one disk that you should not use. Name the volume
namevo14.
vxassist
-g namedg make namevo14 20m \
layout=mirror-stripe
neol=2 stripeunit=128k
lnamedg03
Create a 20-MB 3-column striped volume with a mirror. Specify three disks to
be used during VOIUlllC creation. Name thc volume namevo14.
vxassist
-g namedg
layout=mirror-stripe
namedg03
Create the same volume specified in the previous step, but without the mirror.
vxassist
neol=3
-g namedg
namedgOl
-g namedg
-thr
more
-g namedg
-g namedg
-g namedg
remove
remove
remove
volume
volume
volume
namevol2
namevol3
namevo14
destroy
namedg
8-36
VERITAS
Copyngllt
t;
Storage Foundation
vea&
2
a
b
e
In the New Disk Group wizard, skip the welcome page, specify the disk
group name, select the disks you want to use from the Available Disks
list, and click Add.
Click Next, confirm your selection, do not select any Organization
Principle, and click Finish.
In the New Volume wizard, let VxVI\1 determine which disks to use.
Type the name of the volume, and specify a size of 50 MB. Verify that
the Concatenated layout is selected in the Layout region.
Volume.
Display the volume layout. Notice the naming convention ofthe plcx and
subdisk.
In the System perspective, drill down to the Disks node in the object
tree.
Select a disk, and select Actions->New Disk Group.
Volume.
Create a 50-MB striped volume on two disks in namedg. and specify which
two disks to use in creating the volume. Name the volume namevo12.
a
b
Lab 4 Solutions:
Volume Layouts
Copyright 2006 Svrnantec Corporation. All nqhts reserved
B-37
Select the Striped option in the Layout region. Verify that the number
of columns is 2.
View.
Create a 20-MI3. two-column striped volume with a mirror in namedg. Set the
stripe unit size to 256K. Name the volume namevo13.
In the New Volume wizard, let VxVM determine which disks to use.
Select the Striped option in the Layout region. Verify that the number
of columns is 2. Set the Stripe unit size to 256K (512 sectors on Solaris,
AIX, and Linux, 256 sectors on HP-lJX).
Volume.
Info region.
View.
size to 128K. Select at least one disk you should nor use. Name the volume
namevo14.
In the New Volume wizard, select "Manually select disks to use for this
volume." Muve one disk into the Excluded box, and then click Next.
Volume.
Select the Striped option in the Layout region. Verify that the number
of columns is 2. Set the Stripe unit size to 256 (sectors), or 12HK.
Info region.
This operation should fail, because there arc not enough disks available in
the disk group. A two-column striped mirror requires at least four disks.
VERITAS
8-38
Ccpvnqtu
~ L006 Symantec
Storage Foundation
Corpcreuon
Createa 20-MB 3-column striped volume with a mirror. Specify three disks to
be usedduring volume creation. Name the volume namevo14.
a Select the namedg disk group, and select Actions->New Volume.
b In the New Volume wizard, let \'xVI\1 determine which disks to use.
e
d
e
You receive an error and are not able to complete the wizard.
Wasthe volume created?
Again, this operation should fail, becausethere arc not enough disks
available in the disk group. At least six disks arc required for this type of
volume configuration.
10 Createthe samevolume specified in step9. but without the mirror.
Note: If you did not cancel out of the previous step. thenjust unchcck the
mirrored option and continue the wizard.
a
In the New Volume wizard, let VxVM determine which disks to use.
Volume.
Select the Striped option in the Layout region. Change the number of
columns to 3.
Select the namedg disk group, then select the Volumes tab.
Select Actions->Delete
Volume.
Lab 4 Solutions:
Selecting
Volume Layouts
Copyright if: 2006 Symantcc Corporation. All rigt!ts reserved
8-39
Creating
Layered Volumes
You can complete this exercise using either the VEA or the CLl interface.
Solutions are provided for both.
Note: In order to perform the tasks in this exercise, you should have at least four
disks in the disk group that you are using.
First, ensure that any volumes created in the previous labs are removed from
the namedgdisk group.
VEA
a
Select the namedg disk group and click the Volumes tab in the right
pane view.
eLl
vxprint
-g namedg -htr
I more
For each volume in the namedg disk group:
vxassist
-g namedg remove volume volume_name
2
Create a I OO-MB Striped Mirrored volume with no logging. Name the volume
namevoll.
VEA
a
b
e
d
e
CLI
vxassist
-g namedg make namevoll
layout=stripe-mirror
nmirror=2
3
8-40
100m \
ncol=2
If you are using VEA, view the commands executed by VEA to create the
namevoll volume during this section of the lab.
Double-click the specific task and observe the Task Details view.
VEA
a
b
e
In the New Volume wizard, let VxVM determine which disks to use.
Type the volume name, an appropriate volume size, and select a
Concatenated Mirrored layout.
Volume.
d
e
Ensure that the Total mirrors field is set to the default value of 2.
Complete the wizard by accepting all remaining defaults to create the
volume.
CLI
vxassist
-g
namedg
-b
layout=concat-mirror
make
namevo12
6g
nmirror=2
I I' you arc using VEA. view the commands executed by VEA to create the
namevo12 volume during this section of the lab.
a
b
Double-click the specific task and observe the Task Details view.
VEA
a
View.
Lab 4 Solutions:
Selecting
8-41
Volume Layouts
Copvnqn
'c
2006
Symantec
Corporation
A11li'lllt<;
reserved
vxprint
-g namedg -htr
more
VEA
a
Select the namedg disk group, and click the Volumes tab in the right
pane view.
e
d
Select Actiuns->Delete
Click Yes To All.
Volume.
eLl
vxassist
vxassist
-g namedg remove
-g namedg remove
volume
volume
namevoll
namevol2
You can complete this exercise using either the VEA or the CLI interface.
Solutions are provided for both.
Note: In order to perform the tasks in this exercise, you should have at least four
disks in the disk group that you arc using.
Create a 20-MB. two-column striped volume with a mirror in the namedgdisk
group. Name the volume namevoll.
VEA
a
In the New Volume wizard, let VxVM determine which disks to use.
Volume.
Select the Striped option in the Layout region. Verify that the number
of columns is 2.
Info region.
B-42
VERITAS
Storage
Foundation
vxassist
-g namedg
layout=mirror-stripe
make
namevoll
ncol=2
20m \
Display the volume layout. l low are the disks allocated in the volume') Which
disk devices are used':'.
VEA
a
in the right
Select Actions->Layout
View. Note the plex number and the column
number for each subdisk on each disk.
eLl
vxprint
-g
namedg
-htr
Notice which two disks are allocated to the first piex and which two disks
are allocated to the second piex and record your observation.
3
Remove the volume you just made. and re-create it by specifying the four disks
in an order different trorn the original layout. Use the command line to create
the volume in this step.
eLl
vxassist
-g
namedg
remove
vxassist
-g namedg
layout=mirror-stripe
namedg02
namedgOl
-0
volume
ordered
ncol=2
namevoll
make namevoll
20m \
namedg04
namedg03
\
Display the volume layout. I low are the disks allocated this time".
VEA
a
in the right
Select Actions->Layout
View. Note the plcx number and the column
number for each subdisk on each disk.
eLl
vxprint
-g
namedg
-htr
The plexes are now allocated in the order specified on the command line.
Lab 4 Solutions:
Selecting
8-43
Volume Layouts
Copyright~;;
2006
Symaruec
Corporation
All rights
teservec
VEA
a
Select the namedg disk group and click the Volumes tab in the right
pane vicw.
c
d
Select Actions->Delctc
Click Yes To All.
Volume.
eLl
vxassist
-g namedg remove
volume
namevoll
lete/default/vxassist
/ete/default/alt
vxassist
to create volumes with defaults specified by the user. Note that some of the default
values may not apply to VEA because VEA uses explicit values for number of
columns, stripe unit size. and number of mirrors while creating striped and
mirrored volumes.
cd fete/default
a
Using the vi
following:
# when mirroring
nmirror=3
b
Using the vi
create
three
mirrors
following:
default
stripe
unit
size
for
B-44
Copynght
'j"
vxassist
-g namedg make namevo11
1ayout=mirror
b
100m \
-d a1t
vxassist
make namevo12
-g
namedg -htr.
The first volume should show three plexes rather than the standard
two.
The second volume should show a stripe size of 256K instead of the
standard 64K.
4
Remove any vxassist default Illes that you created in this optional lab
section. The presence of these files can impact subsequent labs where default
behavior is assumed.
rm /etc/defau1t/vxassist
rm /etc/defau1t/a1t
vxassist
Lab 4 Solutions:
Selecting
8-45
Volume Layouts
Copyri~t1t
(t
2006
Svmantec
Corporation
All rigtlts
reserved.
6-46
VERITAS
COPYright
.~ ;:'006
Svmantec
Storage
Corporation.
Foundation
All fights
reserved
symnnter.
Lab 5
Lab 5: Making Basic Configuration
Changes
A. ]
B.
Changes
This lab provides practice in making basic configuration changes. In this lab, you
add mirrors and logs to existing volumes. and change the volume read policy. You
also rcsize volumes. rename disk groups, and move data between systems.
The Lab Exercises for this lab arc located on the following page:
Prerequisite Setup
To perform this lab. you need a lab system with Storage Foundation pre-installed.
configured and licensed. In addition to this. you also need four external disks to he
used during the labs.
At the beginning of this lab, you should have a disk group called namedg that has
four external disks and no volumes in it.
Lab 5 Solutions:
c. 2006
Changes
B-47
Ohject
Sample Value
root password
veritas
Host name
trainl
train2
Your Value
HP-UX: c4tOdO
c4tOd5
AIX:hdisk21hdisk26
l.inux: sda
2nd Internal Disk:
sdf
Solaris: cOt2dO
HP-UX: c3t15dO
AIX: hdiskl
Linux: hdb
B-48
/student/labs/sf/
sf50
name
All
notus reserved
Administering
Mirrored Volumes
You can complete this exercise using either the VEA or the CLl interlace.
Solutions arc provided lor both.
Note: In order to perform the tasks in this exercise, you should have at least four
disks in the disk group that you are using.
Ensure that you have a disk group called namedg with four disks in it. I f not.
create the disk group using four disks.
Note: I I' you have completed the previous lab steps you should already have
the namedg disk group with four disks and no volumes.
YEA
node in the ohject tree and select namedg.
err
vxdisk
2
-0
alldgs
Create a 50-M8.
list
two-column
in namedg.
VEA
a
Type the volume name, specify a volume size of 50 MR, and select a
Striped layout.
Complete
volume.
the wizard
by accepting
all remaining
Volume.
CLI
vxassist
-g namedg make namevoll
layout=stripe
ncol=2
3
SOm \
Display the volume layout. l low are the disks allocated ill the volume'! Note
the disk devices used for the volume.
YEA
node in the object tree and namevoll
Select Actlons=c-Lavour
in the right
View.
Lab S Solutions:
'Z' 2006
B-49
Changes
Symantec
Corporation
All rights
resorveo
eLl
vxprint
-g namedg -htr
Notice which two disks are allocated to the first plex and record your
observation.
4
Add a mirror to namevo 11. and display the volume layout. What is the layout
of the second plex? Which disks arc used for the second plcx?
VEA
a
Accept the defaults in the Add Mirror dialog box and click OK.
Select namevoll
View.
Note the disk devices used for the second plex. Note that the default layout
used for the second plex is the same as the flrst plex,
CLl
vxassist
-g namedg mirror
Ilamevoll
vxprint
-g namedg -htr
Note the disk devices used for the second plex, Note that the default layout
used for the second plex is the same as the first plex.
5
Add a dirty region log to namevo11 and specify the disk to use tor the DRL.
Display the volume layout.
VEA
a
In the Add Log dialog box, select Manually assign destination disks.
c
d
Select one of the disks and click Add to add it to the Selected disks list.
Click OK to complete.
Highlight the volume under the Volumes node in the object tree and
click the Logs tab.
CLI
vxassist
-g namedg addlog
nallledgOl
vxprint
-g namedg -rth
6-50
VERITAS
Ccpynqht
,t
2006
Syruantec
namevoll
Storage
Corporauon
Foundation
All nqhts
reserved
logtype=drl
Add a second dirty region log to namevoll and speci fy another disk to use
for the DRL. Display the volume layout.
VEA
a
b
c
Click OK to complete.
Highlight the volume under the Volumes node in the object tree and
click the Logs tab.
eLl
vxassist
-g namedg addlog
namedg02
vxprint
-g namedg -rth
7
namevoll
logtype=drl
Remove the first dirty region log that you added to the volume. Display the
volume layout. Can you control which log was removed?
VEA
a
b
c
d
eLl
vxassist
vxprint
8
-g namedg remove
-g namedg -rth
log
namevoll
!namedgOl
Find out what the current volume read policy for namevoll is. Change the
volume read policy to round robin. and display the volume layout.
VEA
a
Lab 5 Solutions:
Right click the namevoll volume in the right pane view, and select
Properties. Observe the existing value of the Read policy lield. It
should indicate the default value of Based on layouts.
B-51
Changes
AlIl1gtlls reserved.
Volume
CLl
vxprint
-g namedg -htr
You should observe that the read policy shows as SELECT which is the
value used for selected based on layouts.
vxvol
-g namedg rdpol
round Ilamevoll
vxprint
-g namedg -rth
The value of the attribute will change to ROUND.
9
and display
VEA
a
III
View.
Note that the DRL log is not removed automatically when you remove the
mirror by specifying the plex name.
CLl
vxassist
-g namedg remove mirror
namevoll
\
! disk_used_by_original_mirror
vxprint
-g namedg -rth
Note that the DRL log will also he removed automatically with this
command because the volume is IIU longer mirrored.
10 Rcmovcnamevoll.
VEA
Highlight the namevoll
8-52
VERITAS
Storage Foundation
eLl
vxassist
namevoll
Resizing a Volume
You can complete this exercise using either the VEA or the ell interface.
Solutions are provided for both.
If you have not already done so. remove the volumes created in the previous
lab in namedg.
\lEA
For each volume in your disk group, highlight the volume, and select
Actions=-c-Dclctc Volume.
eLl
vxassist
2
volume_name
Add a VxFS tile system and set the mount point. Uncheck the Add to
tile system table option.
eLl
vxassist
-g namedg make namevoll
20m layout=mirror
mkfs -F vxfs
/dev/vx/rdsk/namedg/namevoll
Note: On Linux, usemkf s - t.
mkdir
/ namel (if necessary)
mount -F vxfs
/dev/vx/dsk/namedg/namevoll
/namel
Note: On Linux, usemoun t - t.
B-53
View the layout of the volume and display the size of the file system.
VEA
Highlight the volume in the object tree and click each of the tabs in the
right pane to display information about Mirrors, Logs, and Subdisks.
You can also select Actions->Volume
View, click the Expand button, and
compare the information to thc main window.
To view the tile system size, select the File Systems node in the object tree
and observe the Size column for the / namel file system in the right pane
view.
eLl
Solaris,
Linux,
AIX
vxprint
IIP-UX
vxprint
bdf
namedg
-rth
-g
llamedg
-rth
/namel
Add data to the volume by creating a file in the file system and verity that the
tile has been added.
echo
-g
-k /namel
df
"hello
name"
>
/namel/hello
Expand the tile system and volume to 100 MS. Observe the volume layout to
see the change in size. Display tile system size.
VEA
a
In the Resize Volumc dialog box, spcclty 100 M8 in the "New volume
size" field, and click OK.
Right click the volume and select Properties to observe the change in
size.
For thc file system size, select the File Systems node in the object tree
and observe the Size column for the / namel file system.
B-54
VERITAS
CDpynght";
2006
Symantec
Storage
Couiorauor,
Foundation
AlIlIgt1ls
ro servec
Volume.
eLl
Solaris,
Linux,
AIX
vxresize
HP-I.IX
vxresize
df
-k
-g
namedg
namevoll
100m
-rth
/namel
vxprint
bdf
namedg
-g
vxprint
namedg
-g
-g
namedg
namevoll
100m
-rth
/namel
-g
namedg
make
-F
vxfs
/dev/vx/rdsk/namedg/namevo12
40m
-to
Create a mount point /narne2 on which to the mount the file system. ifit does
not already exist.
mkdir
SOm
Create a Veritas file system on the volume by using the mkf s command.
Specify the file system size as 40 MB.
mkfs
namevo12
Mount the newly created file system on the mount point /narne2.
mount
-F
vxfs
/dev/vx/dsk/namedg/namevo12
/name2
- t.
B-55
Verify disk space using the df command (or the bdf command on HP-UX).
Observe that the total size of the file system is smaller than the size of the
volume.
Solaris,
Linux,
df
-k
AIX
B!'-UX
fsadm
7
bdf
-b 50m -r
/name2
/dev/vx/rdsk/namedg/namevol2
Verify disk space using the df command (or the bdf command on HP-UX).
Solaris,
-k
df
Linux,
AIX
UI'-UX
bdf
Make a tile on the tile system mounted at / name2, so that the free space is less
than 50 percent of the total tile system size.
dd if=/dev/zero
9
of=/name2/25_mb
bs=1024k
count=25
Shrink the tile system to 50 percent of its current size. What happens'?
a Disk Group
You can complete this exercise using either the VEA or the CLI interface.
Solutions are provided for both.
1
Try to rename the namedgdisk group to namedgl while the / namel and
/ name2 tile systems are still mounted. Can you do it'?
VEA
a
Disk
You receive an error messageindicating that the volumes in the disk group
are in use.
8-56
Copyright
if
20U6
Svmantec
Corporauor-
Allnghl':'
rcservec
Fundamentals
eLl
vxdg
-n
namedgl
deport
namedg
You receive an error messageindicating that the volumes in the disk group
are in USI'.
2
Observe the contents of the / dev/vx/ rdsk and / dev/vx/ dsk directories
and their subdirectories. What do you see'!
ls
-lR
/dev/vx/rdsk
-lR
/dev/vx/dsk
YEA
a
Select the File Systems node in the object tree and highlight the file
systems you want to unmount in the right pane view.
Select Actions->Unmount
File System.
eLl
umount
/namel
umount
/name2
Rename the narnedg disk group to narnedgl. Do not forget to start the
volumes in the disk group after the renaming if you are using the command
line interface.
YEA
a
Disk
eLl
vxdg
-n
vxdg
import
Lab 5 Solutions
namedgl
deport
namedg
namedgl
'Z: 2006
B-57
Changes
Symantec
Corporation.
All righl~
rcservoc
vxvol
5
-g namedgl
startall
Observe the contents of the / dev/vx/ rdsk and / dev/vx/ dsk directories
and their subdirectories. What has changed'?
Is -lR /dev/vx/rdsk
Is -lR /dev/vx/dsk
The device subdirectories are rebuilt with the new name of the disk group.
6
VEA
Select namedgl
CLl
vxdisk
-0 al1dgs
list
vxprint
-g namedgl
-htr
There should be no change in disk media names.
7
Mount the / narnel and / narne2 file systems, and observe their contents.
VEA
For each volume:
a
System->Mount
File
Type the Mount point and unselect the Add to file system table option.
Click OK to complete.
CLl
mount -F vxfs /dev/vx/dsk/namedgl/namevol1
mount -F vxfs /dev/vx/dsk/namedgl/namevo12
Note: On Linux, usemount - t.
Is -1 /namel
Is -1 /llame2
8-58
VERITAS
Copynghl,:
20[10 S,mantec
Storage
Corpor
auor-
Foundation
All flghls
reserved
/namel
/name2
ep
tete/hosts
/namel
ep
jete/group
/name2
VEA
Select the Disks node in the object tree and observe the disks in the right
pane. Notc thc Status column.
CLI
vxdisk
3
-0
alldgs
list
Unmount all file systems in the namedgl disk group and deport the disk
group. Do not give it a new owner. View all the disk devices on the system.
VEA
a
Select the File Systems node in the object tree and highlight
systems you want to unmount.
Select Actions->Unmount
Confirm
the file
File System.
when prompted.
Disk Group.
Click
OK.
e
Select the Disks node in the object tree and observe the disks in the
right pane. Note the change in the Status column.
CLI
umount
umount
vxdg
/name2
deport
vxdisk
Lab 5 Solutions:
/namel
-0
namedgl
alldgs
list
(f; 2006
B-59
Changes
Symantec
Corporal
Ion
All rights
reserved
Identify the name ofthe system that is sharing access to the same disks as your
system. I f you are not sure, check with your instructor. Note the name of the
partner system here.
Partner system hostname:
the following
Note: If you arc working on a standalone system. skip step a in the following
and use your own system as the partner system.
a
rlogin
b
partner_system_hostname
Import the narnedgl disk group on the partner system. start the volumes in
the imported disk group, and view all the disk devices on the system.
On the partner
vxdg
import
vxvo1
-g
vxdisk
c
system:
namedgl
namedgl
-0
al1dgs
starta11
list
While still logged in to the partner system, mount the / narnel and
/ name2 file systems. Note that you will need to create the mount
directories on the partner system before mounting the file systems. Observe
the data in the tile systems.
On the partner
system:
mkdir
/namel
mkdir
/name2
mount
-F vxfs
/dev/vx/dsk/namedgl/namevo11
/namel
mount
-F vxfs
/dev/vx/dsk/namedgl/namevo12
/name2
Note: On Linux,
Is
-1
/namel
Is
-1
/name2
use moun t
- t.
/namel
umount
/name2
On your partner system. deport narnedgl and assign your own machine
name, tor example, trainS, as the New host.
On the partner
B-60
system:
umount
system:
VERITAS
Storage Foundation
vxdg
-h your_system_name deport
namedgl
Type Exit.
6
On your own system imparl the disk group and change its name back to
View all the disk devices on the system.
namedg.
VEA
a
Select the disk ~roup under the Disk Groups node and select
Actions->Import
Disk Group.
In the Import Disk Group dialog box, type namedg in the New name
field, verify that the "Start all volumes" option is checked, and click
OK.
Select the Disks node in the object tree and observe the disks in the
right pane. The status should change to Imported.
CLI
VA
a
Select the disk group under the Disk Groups node and select
Actions->Deport
Disk Group.
In the Deport Disk Group dialog box, check Deport options, and type
anotherhost
in the New host field.
Click OK and confirm when prompted.
In the list of disks, the status of the disks in the deported disk group is
displayed as Foreign.
You would do this to ensure that the disks are not imported accidentally
by any system other than the one whose name you assigned to the disks.
CLI
vxdg -h anotherhost
deport
vxdisk
-0 alldgs
list
Lab 5 Solutions:
namedg
Changes
B-61
From the command line display detailed information about one of the disks in
the disk group using the vxdisk
list
device_tag command. Note the
hostid field in the output.
vxdisk
list
tag
device
where device_tagis
c#t#d# for Solaris and HP-UX, hdisk#
and sd# for Linux platforms.
9
for AIX
VEA
a
Disk Group.
namedg
VEA
a Selectthe disk group and selectActions->Import
Disk Group.
In the Import Disk Group dialog box, mark the Clear host ID check
box, verify that the "Start all volumes" option is checked, and click
OK.
vxdg
vxvol
-c
import namedg
-g namedg startall
11 From the command line display detailed information about the same disk in the
disk group as you did in step 8 using the vxdi sk 1i s t devi ce_ tag
command. Note the change in the hostid field in the output.
vxdisk list
device
tag
where device_
tag is c#t#d# for Solaris and HP-UX, hdisk#
and sd# for Linux platforms.
B-62
VERITAS
Storage
Foundation
for AIX
VEA
a
b
c
Selectthe namedg disk group and click the Volumestab in the right
pane view.
Highlight all volumesin the window.
SelectActions->Dclcte Volume.
eLl
vxassist
-g
namedg
remove
volume
namevoll
vxassist
-g
namedg
remove
volume
namevo12
Lab 5 Solutions:
B-63
Changes
rights
reserved
A lab exercise in the next lesson requires that you run a script that sets up tiles with
different size extents. Because the script can take a long time to run, you may want
to begin running the script now, so that the necessary environment is created by the
ncx t lab time.
Identify the device tag for the second internal disk on your lab system. If you
do not have a second internal disk or if you cannot use the second internal disk,
use one of the external disks allocated to you.
Second internal disk (or the external disk used in this lab):
2
Initialize the second internal disk (or the external disk used in this lab) using a
non-CDS disk formal.
Solaris,
vxdisksetup
Linux,
AIX
where device_tag
II P-LJX
-i
device_tag
format=sliced
Note: Check the status of the second internal disk using the vxdisk
1 i st command. I f the disk is displayed as an LVM disk. ensure that
it is not used by any active LVM volume groups and take it out of
LVM control using the pvremove command. I r the pvremove
command Jails due to an exported volume group information left on
the disk. re-create an LVM header using the force option
(pvcreate
-f /dev/rdsk/device_name)
before using the
pvremove command to remove it.
vxdisk
list
If necessary:
vgdisplay
pvcreate
pvremove
-v /dev/vgOO
-f /dev/rdsk/device_tag
/dev/rdsk/device
tag
where dev i ce_ tag is the device name of the second internal
disk in the format c#t#d#.
vxdctl
vxdisk
enable
list
vxdisksetup
-i
where device_
tag
format=hpdisk
Create a non-cds disk group called testdg using the disk you initialized
step 2.
vxdg
init
where device_
8-64
device
testdg
tag
testdgOl=device_tag
is c#t#d#
in
cds=off
All nghts
reserved
In the testdg
disk group create a 1-(i8 concatenated volume called
testvol
initializing the volume space with zeros using the Ln i t z e ro
option to vxassist.
e
vxassist
-g
testdg
testvol
-F
vxfs
mkdir
/fs
mount
-F
19
init=zero
/dev/vx/rdsk/testdg/testvo1
Note: On Linux,
usemkfs
-to
test
vxfs
/dev/vx/dsk/testdg/testvol
Note: On Llnux,
make
use mount
/fs_test
-to
Verify that the VRTSspt software is already installed on your system. Ifnot,
ask your instructor for the location of the software and install it.
Note: Before Storage Foundation 5.0. the VRTSspt software was provided as
a separate support utility that needed to be installed by the user. With 5.0. this
software is installed as part of the product installation.
Sularis,
Linux,
AIX
pkginfo
HP-liX
sw1ist
grep
VRTSspt
-1 product
grep
$PATH
grep
-i
VRTSspt
vxbench
If necessary:
export
Lab 5 Solutions:
PATH=$PATH:/opt/VRTSspt/FS/VxBench
2006
B-65
Changes
Syrnantec
Corporation.
All IIghl<;
reserved
B-66
VERITAS
Coovnqht:';
2006
Syrw}i\\'-'C
Storage Foundation
Corporatron.
All rights
roverveo
,S}lmmh'(.
Lab 6
Lab 6: Administering
File Systems
File Systems
In this lab. YOIl practice file system administration. including defrngmentation and
administering the file change log.
The Lab Exercises for this lab are located on the following page:
Setup
To perform this lab. you need a lab system with Storage Foundation pre-installed.
configured and licensed. In addition to this. you also need four external disks and
the second internal disk to be used during the labs. If you do not have a second
internal disk or if you cannot use the second internal disk. you need live external
disks to complete the labs.
At the beginning otthis lab. you should have a disk group called narnedg that has
four external disks and no volumes in it. The second internal disk should be empty
and unused.
Note: If you are working in a North American Mobile Academy lab environment.
you cannot use the second internal disk during the labs. I I' that is the case. select
one or the external disks 10 complete the lab steps.
Lab 6 Solutions:
Administering
8-67
File Systems
Copyriglll
"'; 2006
Symantec
Corporation.
All rights
teservcrt
Object
Sample Value
My Data Disks:
Solaris: clt#dO
clt#d5
Your Value
-
Solaris: cOt2dO
HP-UX:
IIIX:
Linux:
c3t15dO
hdiskl
hdb
Istudent/labs/sf/
sf50
name
B-68
VERITAS
Copynght:;:
Storage Foundation
Initialize
the second internal disk (or the external disk used in this lab) using a
vxdisksetup
-i
device_tag
format=sliced
for Solaris.
Note: Check the status of the second internal disk using the vxdi sk
list
command. lfthe disk is displayed as an LYM disk. ensure that
it is not used by any active LYM volume groups and take it out or
LYM control using the pvremove command. II' the pvremove
command fails due to an exported volume group information left on
the disk. re-create an LYM header using the torce option
(pvcreate
- f / dev /rdsk/
device_name)
before using the
pvremove command to remove it.
HP-UX
vxdisk
list
If necessary:
vgdisplay
pvcreate
pvremove
-v
/dev/vgOO
/dev/rdsk/device_tag
/dev/rdsk/device_tag
-f
enable
list
vxdisksetup
-i
device_tag
Create a non-CDS disk group called testdg using the disk y()U initialized
step 2.
vxdg
init
testdg
where device_
4
format=hpdisk
for .IP-UX.
testdgOl=device_tag
tag is c#t#d#
in
cds=off
8-69
vxassist
5
-g testdg
make testvo1
19 init=zero
and mount
II
on /fs
test.
mkfs -F vxfs
/dev/vx/rdsk/testdg/testvo1
Note: On Linux, usemkfs - t.
mkdir /fs
test
mount -F vxfs /dev/vx/dsk/testdg/testvo1
Note: On Linux, usemount - t.
6
/s
test
Verify that the VRTSspt software is already installed on your system. Ifnot,
ask your instructor for the location of the software and install it.
Note: Before Storage Foundation S.O,the VRTSspt software was provided as
a separate support utility that needed to be installed by the user. With 5.0. this
software is installed as part of the product installation.
I grep VRTSspt
pkginfo
sw1ist
-1 product
I grep VRTSspt
Ensure that the directory where the vxbench command is located is included
in your PATH definition.
echo $PATH I grep
If necessary:
export
-i
vxbench
PATH=$PATH:/opt/VRTSspt/FS/VxBench
B-70
C' 2006
Svmar-tec
Corporation
All rights
reserved
-g
namedg
namevoll
-F
vxfs
-F
19
/dev/vx/rdsk/namedg/namevoll
Note: On Linux,
mount
vxfs
use mkf s
- t..
/dev/vx/dsk/namedg/namevoll
Note: On Linux,
make
use moun t
/namel
- t.
-D
-E
Directory
/namel
Fragmentation
Report
Dirs
Total
Searched
Blocks
2
total
Extent
blocks
Lab 6 Solutions:
Free
Dirs
Fragmentation
Immeds
Dirs
to
Reduce
Add
Average
Files
File
Blks
# Extents
used
Administering
for
in
Blocks
to
Reduce
0
Report
Average
blocks
to
0
Total
0
Immed
indirects:
extents
smaller
than
File Systems
Copyrtqht 2006 Symantec Corporation. All rights reserved
Total
Free
Blks
1030827
64 blks:
0.01
8-71
% Free blocks
in extents
smaller
than
8 blks:
% blks allocated
to extents
64 blks or larger:
Free Extents
By Size
1: 1
2: 1
4:
8: 2
16: 1
32:
64: 1
128: 2
256:
512: 2
1024: 1
2048:
4096: 1
8192: 1
16384:
32768: 1
65536: 1
131072:
262144:
1
524288: 1
1048576:
2097152:
0
4194304:
0
8388608:
16777216 : 0
33554432:
0
67108864:
134217728:
0
268435456:
0
536870912:
1073741824:
0
2147483648:
0
A newly created file system with no files or directories cannot
fragmented.
0.00
0.00
2
2
1
0
0
1
0
0
0
0
be
Percentage
U nfragmented
Badly
Fragmented
< 5'Yo
>50%
< If}O
> 5'Y.
> 5'Yo
<5%
If you were shown the following extent fragmentation report about a file
system. what would you conclude"
Directory
total
8-72
Fragmentation
Dirs
Total
Searched
Blocks
199185
85482
Report
Immed Immeds Dirs to
Dirs to Add Reduce
115118
5407
5473
Blocks
to
Reduce
5655
A high total in the Dirs to Reduce column indicates that the directories are
not optimized. This file system's directories should be optimized by
directory defragmentation.
6
umount Iname1
vxassist
-g namedg remove volume
namevol1
Note: The following steps will use the Ifs_test tile system to analyze the
impact of fragmentation on the tile system performance. Verily that the
extents. sh script has completed before you continue with the rest of this lab.
7 Run a fragmentation report on Ifs test to analyze directory and extent
fragmentation. Is Ifs_test fragmented? Why or why not'! What should be
done')
fsadm -D -E Ifs
test
Directory
Fragmentation
Report
Dirs
Total
Immed Immeds Dirs to Blocks to
Searched
Blocks Dirs to Add Reduce
Reduce
o
o
2
2
1
o
total
Extent
Fragmentation
Report
Average
Total
Total
Average
Free Blks
# Extents
Files
File Blks
641
750037
55
5102
blocks
used for indirects:
640
% Free blocks
in extents
smaller
than 64 blks:
33.44
% Free blocks
in extents
smaller
than
8 blks:
18.89
% blks allocated
to extents
64 blks or larger:
42.07
By Size
Free Extents
1: 16891
2 : 11505
4: 25446
16: 1384
32: 2
8 : 10868
64:
0
128: 0
256: 10
512:
0
1024: 1
2048: 0
4096:
1
8192: 0
16384: 0
131072 : 1
32768:
1
65536: 1
262144:
1
524288: 0
1048576: 0
2097152:
0
4194304: 0
8388608: 0
16777216:
33554432: 0
0
67108864: 0
134217728:
0
268435456:
536870912:
0
0
1073741824:
2147483648 : 0
0
Dirs to Reduce column is O.Therefore, the directories do not need to he
optimized. But the extents need to be optimized. Because:
Lab 6 Solutions:
Administering
8-73
File Systems
Copyright
r{; 2006
SYll13nt0C
Corpo'8110II
All rights
reserved
Lise the Is
-e option.
/usr/lib/fs/vxfs/bin/ls
Is
-Ie
-Ie
/fs
test
/fs_test
-rw-r--r-ext 2
1 root
other
2048000
Jul
14 17:57
test42
ores
-rw-r--r-ext 4
1 root
other
4096000
Jul
14 17:57
test44
ores
-rw-r--r-ext 6
-rw-r--r-ext 8
-rw-r--r--rw-r--r-ext 2
1 root
other
6144000
Jul
14 17:57
test46
ores
1 root
other
8192000
Jul
14 17:57
test48
:res
1 root
1 root
other
other
8192000
2048000
Jul
14 17:57
test 50
Jul 14 17:57
test52
ores
-rw-r--r-ext 4
1 root
other
4096000
Jul
14 17:57
test54
ores
-rw-r--r-ext 6
1 root
other
6144000
Jul
14 17:57
test56
ores
-rw-r--r-ext 8000
1 root
other
8192000
Jul
14 17:57
test58
:res
Two files that will be used in performance tests have been highlighted in
the sample output provided here.
9
8-74
VERITAS
Storage
Foundation
mount -F vxfs
-0 remount
/dev/vx/dsk/testdg/testvol
\
/fs
test
-w read
/opt/VRTSspt/FS/VxBench/vxbench_9
iosize=8k,iocount=1000
/fs - test/test48
HI'-lJX
mount -F vxfs
-0 remount
/dev/vx/dsk/testdg/testvol
\
/fs - test
is provided
total:
sec
7.147
/opt/VRTSspt/FS/VxBench/vxbench_ll.23_pa64
-w read
-i iosize=8k,iocount=1000
/fs .- test/test48
A sample output
-i
here as an example:
1119.40
KB/s
cpu:
0.12
sys
0.00
user
10 Repeat the same test for an 8Mb file on an 8Mb extent (for example. using the
Ifs_test/test58
file). Note that the lile system must be remounted
between the tests. Can you explain why?
The file system must be remounted
Solaris
mount -F vxfs
-0 remount
/dev/vx/dsk/testdg/testvol
\
/fs - test
9 -w read
Ifs - test/test58
lopt/VRTSspt/FS/VxBench/vxbench
iosize=8k,iocount=1000
HI'LJX
mount -F vxfs
-0 remount
/dev/vx/dsk/testdg/testvol
\
Ifs
- test
10pt/VRTSspt/FS/VxBench/vxbench_ll.
-w read
-i iosize=8k,iocount=1000
Ifs - test/test58
A sample output
is provided
total:
sec
0.206
-i
23 _pa64
here as an example:
38911.83
KB/s
cpu:
0.17
sys
0.01
user
-e
-E
-s
Ifs
Fragmentation
Report
Total
Average
Average
Total
Files
File
# Extents
Free
55
Lab 6 Sotutions:
Blks
5102
indirects:
Blks
750037
blocks
used
% Free
% Free
blocks
in
extents
smaller
than
64 blks:
33.44
blocks
in
extents
smaller
than
8 blks:
18.89
Administering
for
641
640
File Systems
Copyright ~ 2006 Symantoc COrporation All rights reserved
8-75
% blks allocated
to extents
64 blks or larger:
42.07
Free Extents
By Size
1: 16891
2: 11505
4:
25446
8: 10868
16: 1384
32:
2
64: 0
128: 0
256:
10
512: 0
1024: 1
2048:
0
4096: 1
8192: 0
16384:
0
32768: 1
65536: 1
131072:
1
262144: 1
524288: 0
1048576:
0
2097152:
0
4194304:
0
8388608:
0
16777216:
0
33554432:
0
67108864:
0
134217728 : 0
268435456:
0
536870912:
0
1073741824:
0
2147483648:
0
Pass 1 Statistics
Extents
Reallocations
Searched
Attempted
total
35210
16151
Pass 2 Statistics
Extents
Reallocations
Searched
Attempted
total
18296
8643
Ioctls
Issued
45
Ioctls
Issued
33
FileBusy
0
Errors
NoSpace Total
0
0
FileBusy
33
Errors
NoSpace Total
0
33
Extent
Fragmentation
Report
Total
Average
Average
Total
Files
File
Blks
# Extents
Free Blks
55
2833
333
744605
blocks
used for indirects:
608
% Free blocks
in extents
smaller
than 64 b1ks: 8.89
% Free blocks
in extents
smaller
than
8 blks:
0.93
% blks allocated
to extents
64 blks or larger:
46.94
Free Extents
By Size
1: 2173
2:
38
4: 1161
8: 1122
16: 1104
32: 1021
64:
994
128:
989
256: 605
512:
2048: 0
5
1024:
3
4096:
0
8192:
0
16384: 0
32768:
1
131072: 0
0
65536:
262144:
1048576: 0
1
524288:
0
2097152 :
0
0
4194304:
8388608: 0
16777216:
67108864 : 0
0
33554432:
0
536870912:
134217728:
0
268435456:
0
0
8-76
VERITAS
C()P~flgtH
~_-200n
Svmantec
Storage Foundation
Corporauon
All fights
wspr'/<:'d
1073741824:
2147483648:
12 Measure the throughput of the untragmented file system using the vxbench
utility on the same files as you did in steps 9 and 10, Is there any change in
throughput"
Notes:
You need to use the vxbench utility that is appropriate for the platform
you are working on. for example vxbench_9 on Solaris 9, To identify the
appropriate vxbench command. use the 1 s -1 / opt /VRTSs pt / FS/
VxBench command. If this path is not in your PATH environment
variable. use the tullpath of the command while running the corresponding
vxbench utility.
The file system must be remounted before each test to clear the read
buffers.
If you have used external shared disks on a disk array used by other
systems for this lab. the performance results may be impacted by the disk
array cache and may not provide a valid comparison between a fragmented
and defragmented file system.
Solaris
-0 remount
mount -F vxfs
/dev/vx/dsk/testdg/testvol
/fs - test
/opt/VRTSspt/FS/VxBeneh/vxbeneh
iosize=8k.ioeount=1000
HP-UX
/fs
9 -w read
-i
test/test48
--
-0 remount
mount -F vxfs
/dev/vx/dsk/testdg/testvol
/fs - test
/opt/VRTSspt/FS/VxBeneh/vxbeneh_11.23_pa64
-w read
-i iosize=8k.ioeount=1000
/fs - test/test48
\
\
0.241
see
33187.31
KB/s
epu:
D 2U06 Symantec
0.13
sys
0.01
user
8-77
Corporation.
Alillghl5
reserved
Solaris
UP-UX
/fs
test
9
-w read -i
-- test/test58
than another'?
test.
/fel
test
feladm
on Ifel
feladm
state
test
Ifel
test
ON
(10
ed Ifel
test/lost+found
Is
ehangelog
4
feladm
5
0 Ifel_test
l low do you know that there have been no changes in the file system yet?
The superblock (fo) and the end of the FCL file (loff)
number.
test.
ed Ifel
test
toueh a b e
rmb
7
0 Ifel
Ilow do you know that changes have been made to the file system"
The superblock (foff)
numbers.
test
10 Which tiles are identified by the inode numbers that are listed in the Create
type?
vxlsino
inode_number
Ifel
test
11 Unmount the fel_test
cd I
umount
Lab 6 Solutions:
Ifcl_test
Administering
8-79
File Systems
Copyrighl.:t 2006 Svmanter; Corporation
vxassist
-g
nallledg
remove
volume
namevoll
12 The next two lab sections are optional labs on analyzing and defragmeming
fragmented file systems. If you are not planning to carry out the optional labs,
unmount Ifs_test tile system ami destroy the testdg disk group:
otherwise. skip this step.
umount
vxdg
Ifs
destroy
test
testdg
B-80
VERITAS
Copyright
if 2006
Symanrac
Storage
Corporation
Foundation
All nqbts
reserved
Ifs
test
file system
test
/fs
test
-to
Run a series of performance tests for a variety of 1i0 types using the vxbench
utility to compare the performance of the Illes with the XK extent size
(/fs_test/test48)
and the ROOOK
extent size (/fs_test/test58)
by
performing the following steps.
Complete the following table when doing the performance tests.
Lab 6 Solutions:
Administering
8-81
File Systems
Copyright
(i;
2006
Symantec
Corporation
All rights
reservec
Test Type
Time (seconds)
Before
Defrag
Sequential
reads.XK
extent
Throughput (KB/second)
After Defrag
Before
Defrag
After Defrag
2.709
.526
2953.22
15202.10
.547
.549
14634.57
14576.20
Random
reads.RK
extent
8.268
6.267
967.54
1276.53
Random
reads.8UOUK
extent
6.541
6.468
1223.02
1236.91
Sequential
reads.8000K
extent
Note: Results can vary depending on the nature of the data and the model of
array used. No performance guarantees arc implied by this lab.
3
Ensure that the directory where the vxbench utility is located is included in
your PATH definition.
export
PATH=$PATH:/opt/VRTSspt/FS/VxBench
before each
-w read
/dev/vx/dsk/testdg/testvol
-to
-i
iosize=8k,iocount=lOOO
-F vxfs
test
-0
remount
-w
read
/dev/vx/dsk/testdg/testvol
- t.
-i
iosize=8k,iocount=lOOO
8-82
20011Svrnantec Corporaurm
mount
-F
/fstest
vxfs
-0
remount
/dev/vx/dsk/testdg/testvol
-to
-w rand_read
-i
iosize=8k,iocount=lOOO,maxfilesize=8000
/fs
test/test48
vxbench_platform
\
\
-F vxfs
-0
remount
/dev/vx/dsk/testdg/testvol
-i
iosize=8k,iocount=lOOO,maxfilesize=8000
/fs
test/test58
test
/opt/VRTSvxfs/sbin/fsadm
BI'-LJX
/usr/lbin/fs/vxfs5.0/fsadm
-E
-e
-e
-d
-E
-D
-d
-s
-D -s
/fs
/s
test
test
Repeat the vxbench performance tests and complete the table with these
performance results.
Compare the results of the defragmenrcd tile system with the fragmented file
system.
When finished comparing the results in the previous step. unmount the
Ifs_test
file system and destroy the testdg disk group.
umount
vxdg
/fs_test
destroy
testdg
Defragmenting
Practice
In this exercise. you monitor and defragment a file system by using the f sadm
command.
Create a new 2-GB striped volume called namevoll in namedg disk group.
Create a VxFS file system on namevoll and mount it on Ifs_test.
vxassist
-g namedg make namevoll
2g layout=stripe
mkfs
Lab 6 Solutions:
-F
vxfs
Administering
Idev/vx/rdsk/namedg/namevoll
File Systems
Copyright 2006 Symantec Coepo.auon All dqtlls recerven
B-83
/ f s _ tes t
mount
-F
vxfs
- t.
Ifs
test
-to
Repeatedly copy a small existing file system to If s_tes t using a new target
directory name each time until the target tile system is approximately 85
percent full. Fur example, 011 the Solaris platform:
for i in 1 2 3
> do
> cp -r lopt
Ifs test/opt$i
> done
Note: Monitor the tile system size using df - k on the Solaris platform and
bdf on the HP-UX platform, and CTRL-C out of the for loop when the file
system becomes approximately 85 percent full.
find
Ifs
test
-size
+20480b
find
Ifs
test
-size
+20480
-D
-E
/fs
-exec
-exec
rm {}
rm {}
\;
\;
file system.
test
Repeat steps 2 and .3 using values 4 5 fur i ill the loop. Fragmentation of
both free space and directories will result.
Repeat step :2 using values 6 7 for i. Then delete all tiles that are smaller
than 6.:1K to release a reasonable amount of space.
find
Ifs
test
-type
-size
-64k
-exec
rm {}
\;
find
Ifs
test
-type
-size
-128
-exec
rm {}
\;
Defragment the file system and display the results. Run fragmentation reports
both before and after the defragmentation and display summary statistics after
each pass. Compare the f sadrn report from step 4 with thc final report from
the last pass in this step.
fsadm
-e
-E
-d
-D
-s
/fs
test
Unmount the If s_test file system and remove the namevoll volume used
ill this lab.
umount
vxassist
B-84
/dev/vx/dsk/namedg/narnevoll
Ifs
test
-g
namedg
remove
VERITAS
volume
Storage
namevol1
Foundation
'S)11U1I1rCC
Lab 7
Lab 7: Resolving Hardware Problems
In this lab, you practice recovering from a
variety of hardware failure scenarios, resulting
in disabled disk groups and failed disks.
Lab 7 Solutions:
see Appendix
see Appendix
A.
B.
In this lab. you practice recovering from a variety of hardware failure scenarios.
resulting in disabled disk groups and railed disks. First you recover a temporarily
disabled disk group and then you use a set of interactive lab scripts to investigate
and practice recovery techniques. Each interactive lab script:
Sets up the required volumes
Simulates and describes a failure scenario
Prompts you to fix the problem
Finally. a set of uptiona I labs are provided to enable you to investigate disk failures
further and to understand the behavior of spare disks and hot relocation.
The Lab Exercises for this lab are located on the following page:
Prerequisite Setup
To perform this lab. you need a lab system with Storage Foundation pre-installed.
configured and licensed. In addition to this. you also need four external disks to be
used during the labs.
At the beginning of this lab. you should have a disk group called namedg that has
four external disks and no volumes in it.
Lab 7 Solutions:
Resolving
Hardware
Copyrtght
Problems
if;
8-85
Object
Sample Value
Your Value
HP-UX: c4tOdO
c4tOd5
AIX:hdisk21hdisk26
Linux:
8-86
sda
!student!labs!sf!
sf50
name
VERITAS
sdf
Storage
Foundation
vxdg
-g
namedg
rmdisk
namedg04
vxdg
vxdg
-g
-g
namedg
namedg
rmdisk
rmdisk
namedg03
namedg02
namedg
make
vxfs
-F
mkdir
/namel
mount
-F vxfs
-r
Is
-IR
disk group.
19
/dev/vx/rdsk/namedg/namevoll
/dev/vx/dsk/namedg/namevoll
jete/default
/namel
t directory to / namel
/namel
-~
...
l ~.
.J
in namedg
C~~\:
namevoll
-g
/~n~a~n~le~ll-
----------
Ask your instructor for the location of the fa i 1 dg_ temp script, and note the
location here:
Script location:
.
_
if=/dev/zero
count=500000
of=/namel/testfile
bs=1024
&
In one terminal change to the directory containing the script and before the I/O
completes. execute faildg_temp
namedg command.
Notes:
The faildg_temp
script disables the single path to the disk in the disk
group to simulate a hardware failure. This is just a simulation and not a real
failure: therefore. the operating system will still be able to see the disk after
the failure. The script waits until you are ready with analyzing the failure.
to re-enablc the path to the disk in the disk group.
I I' the 110 you started in step (, completes before you can simulate the
failure. you can start it again to observe the 110 failure.
ed /script_location
./faildg
Disabling
Lab 7 Solutions:
Resolving
temp
namedg
device_tag
Hardware
Copyright
Problems
It, 2006
Symantec
8-87
Corporation.
All tights
reserved
ready
for
the
disks
to be re-
Wait for the 110to fail and in another terminal observe the error displayed in
the system lug.
Solar-is,
tail
-f
/var/adm/messages
tail
-f
/var/adm/syslog/syslog.log
Linux,
AIX
HP-lIX
commands to
The disk group should show as disabled and the disk status should change
to online
dgdisabled.
10 What happenedto the file system'!
The till:' system is also disabled.
11 When you are done with analyzing the impact of the failure, change to the
terminal where the fa i ldg_ temp script is waiting and enter "e" to correct
the temporary failure.
Note: In a real failure scenario. after the hardware recovery, you would need to
first verify that the operating system can seethe disks and then verity that
Volume Manager has detected the change in status. If nut, you can force
VxVM to scan the disk by executing the vxdctl
enable command. This
will not be necessaryfor this lab.
On the terminal where the faildg_
Enter e when you are ready
enabled:
e
12 Assuming that the failure was due to a temporary fiber disconnection and that
the data is still intact. recover the disk group and start the volume. Verity the
disk and disk group status using the vxdi sk - 0 a Ildgs
1 i stand vxdg
1 i s t commands.
umount /namel
vxdg deport
namedg
vxdg import
namedg
vxvol
-g namedg startall
vxdisk
-0 alldgs
list
vxdg list
8-88
Copynyht'~
200n
Syn:ilIHC',:
Corporation
All rights
reserved
The disk group should now be enabled and the disk status should change
back to online.
13 Remount the file system and verify that the contents arc still there. Note that
you will need to perform a tile system check before you mount the tile system.
fsck
-F
mount
Is
-IR
vxfs
/dev/vx/rdsk/namedg/namevoll
-F vxfs
/dev/vx/dsk/namedg/namevoll
/narnel
/namel
14 Unmount the tile system and remove namevoll. At the end of this section
you should be left with a namedg disk group with a single disk and three
initialized disks that are free to be used in a new disk group.
umount
/namel
vxassist
Preparation
-g
namedg
remove
volume
namevoll
Overview
The following sections use an interactive script to simulate a variety of disk failure
scenarios. Your goal is to recover lrom the problem as described in each scenario.
Use your knowledge of VxVM administration, in addition to the VxVM recovery
tools and concepts described in the lesson. to determine which steps to take to
ensure recovery. Aller you recover the test volumes, the script verifies your
solution and provides you with the result. You succeed when you recover the
volumes without corrupting the data.
For most of the recovery problems, you can use any ofthc VxVM interfaces: the
command line interface, the VERITAS Enterprise Administrator (VEA) graphical
user interface, or the vxdi skadm menu interface. Lab solutions are provided for
only one method. I I' you have questions about recovery using interfaces not
covered in the solutions. see your instructor.
Setup
Due to the way in which the lab scripts work. it is important to set up your
environment as described in this setup section:
I I' your system is set to use enclosure-based naming, then you must turn off
enclosure-based naming before running the lab scripts.
2
Create a disk group named testdg and add three disks (preferably of the
same size) to the disk group. Assign the following disk media names to the
disks: testdgOl. testdg02. and testdg03.
vxdisksetup
-i
device_tag(if"eccssar~')
vxdg
init
testdg
testdgOl=device_tagl
\
testdg02=device_tag2
testdg03=device_tag3
8-89
Note: If you do not have enough disks, you can destroy disk groups created in
other labs (for example, namedg) in order (0 create the testdg disk group.
3
Before running the automated lab scripts. set the DG environment variable in
your root profile to the name of the test disk group that you are using:
Solaris,
HP-liX
vi / .profile
DG=testdg;
export
DG
Linux
vi /root/.bashrc
DG=testdg;
export
DG
Rerun your profile by logging out and logging back on, or manually running it.
4
Note: This lab can only be performed on Solaris, HP-UX, and Linux.
and
./run_disks
1) Lab 1 - Turned off drive
(temporary
failure)
2) Lab 2 - Power failed
drive
(permanent
failure)
3) Lab 3 - Intermittent
Failures
(system still
ok)
4) Optional
Lab 4 - Intermittent
Failures
(system too
slow)
5) Optional
Lab 5 - Turned off drive
with layered
volume
6) Optional
Lab 6 - Power failed
drive
with layered
volume
x) Exit
Your Choice? 1
8-90
All
nqhts reserved
Read the instructions in the lab script window. The script simulates a disk
power-offby saving and overwriting the private region on the drive that is used
by both volumes. Then. when you arc ready to power the disk back on. the
script restores the private region as it was before the failure.
Assume that the failure was temporary. In a second terminal window. attempt
to recover the volumes.
Assume that the drive that was turned off and then back on was cl t2dO
for a Solaris or HP-UX system or sdb for a Linux system (actual device
name will vary by system).
Notc: When performing recovery procedures, run vxprint
and vxdisk
list
oftcn to seewhat is changing after issuing recovery commands:
vxprint
vxdisk
-g
-0
testdg
-htr
alldgs
list
devfsadm
this command
verifies
of the
ig and
disks.
HI'-LJX
insf
Linux
-c disk
ioscan
-e
partprobe
Idev/sdb
prtvtoc
HP-LJX
ioscan
Idev/rdsk/c1t2dOs2
-fnC
disk
Lab 7 Solutions:
Resolving
fdisk
Hardware
-1
CLAIMED
statc.)
Idev/sdb
Problems
B-91
configuration
daemun
vxdctl
enable
Reattach
vxreattach
e
vxrecover
Start the nun redundant
vxvol
4
-g testdg
volume:
- start
test2
After YOIl recover the volumes, type e in the lab script window. The script
verifies whether your solution is correct.
echo
$DG
DG="testdg"
export
DG
From the directory that contains the lab scripts, run the script run_disks,
select option 2, "Power tailed drive (permanent failure r":
and
./run_disks
1) Lab 1 - Turned off drive
(temporary
failure)
2) Lab 2 - Power failed
drive
(permanent
failure)
3) Lab 3 - Intermittent
Failures
(system still
ok)
4) Optional
Lab 4 - Intermittent
Failures
(system too
slow)
5) Optional
Lab 5 - Turned off drive
with layered
volume
8-92
6) Optional
volume
x) Exit
Your
Lab
Choice?
6 -
Power
failed
drive
with
layered
Read the instructions in the lab script window. The script simulates a disk
power-offby saving and overwriting the private region on the drive that is used
by both volumes. The disk is detached by YxYM.
In a second terminal window, replace the permanently failed drive with either a
new disk at the same SCSI location or by another disk at another SCSI
location. Then. recover the volumes.
Assume that the failed disk is testdg02
(clt2dO
for a Solaris or HP-lJX
system or sdb for a Linus system) and the new disk used to replace it is
cl t3dO for a Solaris or H P-lJX system or sdd for a Linux system (actual
device name will vary by system), which is originally uninitialized.
Note: When performing recovery procedures, run vxprint
and vxdisk
list
often to seewhat is changing after issuing recovery commands:
vxprint
vxdisk
-g
-0
testdg
alldgs
-htr
list
Lab 7 Solutions:
Solarts,
Hl'-UX
vxdisksetup
-i
clt3dO
Linux
vxdisksetup
-i
sdd
Solaris.
HP-UX
vxdg
-g
testdg
-k
adddisk
testdg02=clt3dO
Linux
vxdg
-g
testdg
-k
adddisk
testdg02=sdd
Resolving
Hardware
Problems
8-93
vxrecover
d
-g testdg
-f
start
test2
menu interface:
-g testdg
-f
start
test2
After you recover the volumes, type e in the lab script window. The script
verities whether your solution is correct.
When you have completed this exercise, if the disk device that was originally
used during disk failure simulation is in online invalid state, rcinuialize
the disk to prepare tor later labs.
For example:
vxdisksetup
-i
device_tag
In this lab exercise. intermittent disk failures arc simulated. but the system is still
OK. Your goal is to move data from the failing drive and remove the failing disk.
The lab script run_disks sets up the test volume configuration and validates
your solution for resolving the problem. Ask your instructor for the location of the
run_disks script.
$DG
DG="testdg"
export
DG
8-94
From the directory that contains the lab scripts. run the script run_disks.
select option 3. "Intermittent Failures (system still ok I":
and
./run_disks
1) Lab 1 - Turned
off
drive
(temporary
failure)
2) Lab 2 - Power failed
drive
(permanent
failure)
3) Lab 3 - Intermittent
Failures
(system
still
ok)
4) Optional
Lab 4 - Intermittent
Failures
(system
too
slow)
5) Optional
Lab 5 - Turned
off
drive
with
layered
volume
6) Optional
Lab 6 - Power failed
drive
with
layered
volume
x) Exit
Your
Choice?
test2
Note: If you receive an error message about the / image file system becoming
lull during volume setup. ignore the error message. This error will not have
any impact on further lab steps or lab results.
2
Read the instructions in the lab script window. You are in limned that the disk
drive used by both volumes is experiencing intermittent failures that must be
addressed.
In a second terminal window. move the data on the failing disk to another disk.
and remove the failing disk.
Assume that testdg02
(clt2dO
for a Solaris or HP-UX system or sdb
for a Linux system, and with plex tes tl- 0 1 from the mirrored volume
testl)
is the drive experiencing intermittent
problems (actual device
name will vary by system).
Note: When performing
recovery procedures, run vxprint
and vxdisk
list
often to see what is changing after issuing recovery commands:
vxprint
vxdisk
-g
-0
testdg
alldgs
-htr
list
To recover:
a
Set the read policy to read from a preferred plex that is not on the
failing drive before evacuating the disk. This technique prevents
\'xVM from accessing the failing drive during a read, if possible:
vxvol
Lab 7 Solutions:
-g
Resolving
testdg
Hardware
Copyright
rdpol
prefer
testl
8-95
Problems
'9 2006
Symantec
testl-02
Corporation
All fights
reserveo
Evacuate data from the failing drive to one or more other drives by
using the vxdiskadm menu interface. Invoke vxdiskadm:
vxdiskadm
From the vxdiskadm main menu, select the option, "Move volumes
from a disk." Evacuate the volumcs on testdg02 to another disk in
the disk group, such as testdg03.
Set the volume read policy back to the original read policy:
vxvol
-g testdg
rdpol
select
testl
Note: In this exercise, you still succeed even if you do not change the read
policy or you do not remove the failing disk after evacuation.
Warning: If the lab is repeated and a disk that has been used as a
replacement disk in a previous lab is now used as a new disk to replace the
failing disk without moving the volumes, the test results may succeed
although they should fail. If this happens, remove the volume called image
in the testdg disk group and re-run the lab.
4
Atier you resolve the problem. type e in the lab script window. The script
verifies whether your solution is correct.
disk group back to the tes tdg disk group so that you can use it in later labs.
For example:
vxdg -g testdg
8-96
adddisk
VERITAS
testdg02=device_tag
Storage
Foundation
All rig!'>!!'reserved
If
DG
DG
is set to the
$DG
DG="testdg"
export
DG
From the directory that contains the lab scripts, run the script run_disks,
select option 4. "Intermittent Failures (system too slow)":
and
./run_disks
1) Lab 1 - Turned
off
drive
(temporary
failure)
2) Lab 2 - Power failed
drive
(permanent
failure)
3) Lab 3 - Intermittent
Failures
(system
still
ok)
4) Optional
Lab 4 - Intermittent
Failures
(system
too
slow)
5) Optional
Lab 5 - Turned
off
drive
with
layered
volume
6) Optional
Lab 6 - Power failed
drive
with
layered
volume
xl Exit
Your
Choice?
test2
Note: I I'you receive an error message about the / image file system becoming
full during volume setup. ignore the error message. This error will not have
any impact on further lab steps or lab results.
2
Read the instructions in the lab script window. You are informed that:
Lab 7 Solutions:
Resotving
Hardware
8-97
Probtems
-g testdg
-0
-htr
a11dgs list
To recover:
a
From the vxdiskadm main menu, select the option, "Remove a disk
for replacement". Remove the disk testdg02. 00 not use a
replacement disk yet.
Note: If you receive an error while using vxdiskadm about a
operation requiring a disk group, ignore the error.
vxprint
/script
- location/bin/cleandisk
clt2dO
/script
- locat~on/bin/cleandisk
sdb
HP-UX
Linux
Replace the failed disk with a new disk by using the vxdiskadm menu
interface. From the vxdiskadm main menu, select the option,
"Replace a failed or removed disk." Select an uninitialized disk to
replace testdg02.
Note: I f you receive an error while using vxdiskadm about a
8-98
vxprint
-g
-f
testdg
start
test2
After you resolve the problem. type e in the lab script window. The script
verities whether your solution is correct.
$DG
From the directory that contains the lab scripts. run the script run_disks.
select option 5. "Turned off drive with layered volume":
and
./run_disks
1) Lab 1 - Turned
off
drive
(temporary
failure)
2) Lab 2 - Power failed
drive
(permanent
failure)
3) Lab 3 - Intermittent
Failures
(system
still
ok)
4) Optional
Lab 4 - Intermittent
Failures
(system
too
slow)
5) Optional
Lab 5 - Turned
off
drive
with
layered
volume
6) Optional
Lab 6 - Power failed
drive
with
layered
volume
x) Exit
Your
Choice?
test2
Note: I I'you receive an error message about the / image file system becoming
full during volume setup. ignore the error message. This error will not have
any impact on further lab steps or lab results.
Lab 7 Solutions:
Resolving
Hardware
8-99
Problems
Svmantec
Corporation.
All
riqhts
reserved
Read the instructions in the lab script window. The script simulates a disk
power-off by saving and overwriting the private region on the drive that is used
by both volumes, Then. when you are ready to power the disk back on, the
script restores the private region as it was before the failure.
Assume that the failure was temporary. In a second terminal window, attempt
recover the volumes.
to
Assume that the drive that was turned off and thcn back on was cl t2dO
for a Solaris or HP-UX system or sdb for a Linux system (actual dcvicc
namc will vary by system).
Notc: When pcrforming recovery procedures, run vxprint
and vxdisk
list
often to seewhat is changing after issuing recovery commands:
vxprint
vxdisk
-g
-0
testdg
alldgs
-htr
list
devfsadm
1'I\0te: Because you have not changed the SCSI location of the
drive. running devf sadmmay not be necessary. However.
running this command vcruics the existence and validity of the
disk label. Prior to Solaris 7. you can use drvconf ig and
disks.
HP-UX
ioscan
insf
-e
Linux
partprobe
-c
disk
/dev/sdb
prtvtoc
HP-UX
ioscan
/dev/rdsk/clt2dOs2
-fne
disk
8-100
state.)
-1 /dev/sdb
fdisk
enable
-g
volume:
-f
testdg
start
test2
Alter you recover the volumes. type e in the lab script window. The script
verifies whether your solution is correct.
$DG
From the directory that contains the lab scripts, run the script run_disks.
select option 6, "Power failed drive with layered volume":
and
./run_disks
1) Lab 1 - Turned
off
drive
(temporary
failure)
2) Lab 2 - Power failed
drive
(permanent
failure)
3) Lab 3 - Intermittent
Failures
(system
still
ok)
4) Optional
Lab 4 - Intermittent
Failures
(system
too
slow)
5) Optional
Lab 5 - Turned
off
drive
with
layered
volume
6) Optional
Lab 6 - Power failed
drive
with
layered
volume
x) Exit
Your
Choice?
Lab 7 Solutions:
Resolving
Hardware
Copyright
8-101
Problems
i~2006
Symantec
Corporation
All nqhts
reserved
testl
with a concur-mirror
layout
Note: Ifyou receive an error message about the / image file system becoming
full during volume setup, ignore the error message. This error will not have
any impact on further lab steps or lab results.
2
Read the instructions in the lab script window. The script simulates a disk
power-uffby
saving and overwriting the private region on the drive that is used
by buth volumes, The disk is detached by YxYM.
In a second terminal window, replace the permanently jailed drive with either a
new disk at the same SCSI location or by another disk at another SCSI
location. Then, recover the volumes.
list
vxprint
vxdisk
-g
-0
testdg
alldgs
-htr
list
vxdisksetup
-i
clt3dO
Linux
vxdisksetup
-i
sdd
vxdg
-g
testdg
-k
adddisk
testdg02=clt3dO
vxdg
-g
testdg
-k
adddisk
testdg02=sdd
HP-UX
Linux
-g
testdg
-f
start
test2
menu interface:
8-102
COPYright!
2006 Symaruec
Corporation
a
b
Invoke vxdiskadm:
vxdiskadm
From the vxdiskadm main menu, select the option, "Replace a failed
or removed disk." When prompted, select c1t3dO for a Solaris or
HP-liX system or sdd for a Linux system to initialize and replace
testdg02.
Note: If you receive an error while using vxdiskadm about a
vxprint
operation requiring a disk group, ignore the error.
Start the nonredundant volume:
vxvol
-g testdg
-f start
test2
Alter you recover the volumes, type e in the lab script window. The script
verifies whether your solution is correct.
5 When you have completed this exercise, if the disk device that was originally
used during disk failure simulation is in onl ine inval id state, reinitialize
the disk to prepare for later labs.
For example:
vxdisksetup
-i
device_tag
The rest of this lab exercise includes optional lab instructions where you perform a
variety of basic recovery operations.
Optional
Destroy the testdg disk group and add the three disks back to the namedg
disk group. At this point you should have one disk group called namedgwith
four empty disks in it. There should be no volumes in the namedgdisk group.
If you had destroyed the namedgdisk group in previous lab sections, re-create
it.
vxdg
vxdg
destroy
testdg
ini t namedg namedg01=devi
ce_ tagl
not exist)
vxdg
-g namedg adddisk
namedg03=device_tag3
namedg02=device_tag2
namedg04=device_tag4
Lab 7 Solutions:
8-103
mkdir
/namel
Display the properties of the volume. In the table, record the device and disk
media name of the disks used in this volume.
vxprint
-g namedg -thr
For example, the volume namevoll
uses namedg02 and namedg04:
Solaris,
Device Tag
Disk I
clt2dO
namedg02
Disk 2
clt3dO
namedg04
Device Tag
Disk I
sde
namedg02
Disk 2
sdf
namedg04
HP-UX
Linux
Remove one of the disks that is being used by the volume for replacement.
vxdg
-0
alldgs
list
From the command line. check that the state of one of the plexes is DISABLED
and REMOVED.
vxprint
namedg02
-g namedg -k rmdisk
-g namedg -thr
If you are not already logged in VEA, start VEA and connect to your local
system. Check the status of the disk that has been removed.
III VEA, the disk is shown as disconnected, because the disk has been
removed for replacement.
for AIX
Check the status of the disks. What is the status of the replaced disk?
vxdisk
-0 alldgs
list
The status of the disk is ONLINE.
VERITAS
Storage
Foundation
vxprint
-g namedg -thr
The plex using the disk you removed and replaced is marked RECOVER.
11 In YEA. what is the statusof the replaceddisk') What is the statusof the
volume')
The disk is reconnected; its status shows Imported as normal. Select the
volume in the left pane, and click the Mirrors tab in the right pane. The
plex is marked recoverable.
12 From the command line. recover the volume. During and alter recovery.check
ACTIVE.
destroy
vxdg init
exist)
vxdg
testdg
namedg namedgOl=device_tagl(ifthediskgroupdoesnot
-g namedg adddisk
namedg03=device_tag3
namedg02=device_tag2
namedg04=device_tag4
Ensurethat the namedg disk group hasa mirrored volume called namevoll
with a Yeritas tile systemmounted on /namel. If not. createa IO()-MB
mirrored volume called namevoll in the namedg disk group. add a YxFS
file system to the volume. and mount the file systemat the mount point
/namel.
[fnecessary:
vxassist
-g namedg make namevoll
100m layout=mirror
mkfs -F vxfs /dev/vx/rdsk/namedg/namevoll
Note: On Linux, usemkfs -to
mkdir
mount
Lab 7 Solutions:
Resolving
Hardware
8-105
Problems
/namel
- t.
There are two v x r e Loc d processes on the Solaris platform. You must kill
both of them at the same time.
ps -ef I grep vxrelocd
kill
-9 pidl
[pid21
ps -ef I grep vxrelocd
3
Next, simulate disk failure by writing over the private region using the
overwri tepr script followed by vxdctl disable and vxdctl
enabl e commands. Ask your instructor for the location of thc script.
While using the script. substitute the appropriate disk device name for one of
the disks in use by namevoll. lor example on Linux use sbd,on Solaris and
HP-UX use clt8dO.
cd /script_location
./overwritepr
device_tag
vxdctl
disable
vxdctl
enable
When the CITor occurs. view the status of the disks from the command line.
vxdisk
-0 alldgs
list
The physical device is no longer associated with the disk media name and
the disk group.
8-106
vxdctl
enable
Recover the disk by replacing the private and public regions on the disk. In the
command. substitute the appropriate disk device name. for example on l.inux.
use sbd:
vxdisksetup
-i
device_tag
Note: This step is only necessary when you replace the failed disk with a brand
new one. If it were a temporary failure. this step would not be necessary.
9
-g
namedg
-k
adddisk
disk_name=devlce
tag
where disk nameis the disk media name of the failed disk and
devi ce_ tag is the device name of the disk device used to replace the failed
one.
10 Check the status of the disks and the volume.
vxdisk
vxprint
alldgs
-0
list
-thf
alldgs
-0
-g
list
namedg
-thr
volume.
/namel
vxassist
-g
namedg
remove
volume
namevoll
destroy
testdg
vxdg
-g namedg adddisk
namedg03=device_tagJ
namedg02=device_tag2
namedg04=device_tag4
You should have four disks (namedgO1 through namedg04) in the disk group
namedg. Set all disks to have the spare !lag on.
Lab 7 Solutions:
Resolving
Hardware
Copynghl~
8-107
Problems
2006
Syrnantec
Corporation
All rights
reserved
vxedit
vxedit
vxedit
vxedit
2
-g
-g
-g
-g
namedg
namedg
namedg
namedg
Createa IOO-MB
vxassist
set
set
set
set
spare=on
spare=on
spare=on
spare=on
namedgOl
namedg02
namedg03
namedg04
100m layout=mirror
Removethe sparevol
vxassist
volume.
sparevol
is running. 11'1101, start it as
follows:
vxrelocd
6
B-108
spare=off
spare=off
spare=off
namedgOl
namedg02
namedg03
Savetheoutputofvxprint
vxprint
-g namedg set
-g namedg set
-g namedg set
&
root
-g namedg -thr
100m layout=mirror
-g namedg -thrtoafile.
>
/tmp/savedvxprint
uses namedgOl
and namedg02:
Device Tag
Disk I
clt2dO
namedgOl
I>isk 2
clt3dO
namedg02
10 Next, simulate disk failure hy writing over the private region using the
overwri tepr script followed by vxdctl
disable and vxdctl
enabl e commands.
Ask your instructor for the location of the script.
While using the script. substitute the appropriate disk device name for one of
the disks in use by spare2voL for example on Linux use sbd, on Solaris
and HP-UX use clt8dO.
cd
/scr~pt
./overwritepr
l ocst i on
device_tag
vxdctl
disable
vxdctl
enable
11 Run vxprint
- 9 namedg - rth and compare the output to the vxprint
output that you saved earlier. What has occurred')
Note: You may need to wait a minute or two for the hot relocation to complete.
Hot relocation has taken place. The failed disk has a status of NODEVICE.
VxVM has relocated the mirror of the failed disk onto the designated
spare disk.
12 In VEA, view the disks. Notice that the disk is in the disconnected state.
Note: On the IIP-UX platform, the vxdctl
disable commandmay cause
the StorageAgent used by the VEA GUI to hang. If this happens, the VEA GUI
does not detect the changes. Use the following
/opt/VRTSobc/pa133/bin/vxpalctrl
-c restart
13 Run vxdisk
-0
alldgs
list.
as a failed disk.
enable
Lab 7 Solutions:
Resolving
Hardware
8-109
Problems
rigt1\5
reserved
16 Recover the disk by replacing the private and public regions on the disk. In the
command, substitute the appropriate disk device name, for example on Linux,
use sbd:
vxdisksetup
-i
device_tag
17 Bring the disk back under VxVM control and into the disk group.
vxdg -g namedg -k adddisk
namedg##=device_tag
18 In VEA, undo hot relocation for the disk.
Right-click the disk group and select Undo Hot Relocation. In the dialog
box, select the disk for which you want to undo hot relocation and click
OK. After the task completes, the alert on the disk group should be
removed.
Alternatively,
vxunreloc
-g namedg namedg##
where namedg## is the disk media name of the failed and replaced disk.
19 Wait until the volume is fully recovered before continuing. Check to ensure
that the disk and the volume arc fully recovered.
vxdisk
-0 alldgs
list
vxprint
-g namedg -thr
Note: The vxprint
command shows the subdisk with the UR tag.
20 Remove the spare2vol volume.
vxassist
Optional
-g namedg remove
volume
spare2vol
locat~on
ns
8-110
published
link.
This will show you any information
Foundation
2
Handbook
How many on-site support visits are included in a Extended Support contract?
How about with a Business Critical Support?
Hint: In the Support Handbook, see table on page 4 and explanation on page S.
Extended
Support:
Business Critical
4
for Storage
No on-site support
Support:
Resources title.
issues
http://support.veritas.com/docs/282024
5
MCL link.
Where would you locate the Patch with Maintenance Pack I for VERITAS
Storage Solutions and Cluster File Solutions 4.0 fix Solaris?
Select the Software Updates & Downloads
and locate the patch.
bar
Perform this step only if you are working in the Virtual Academy lab
environment. If you have executed the restore_ns script to restore the
Lab 7 Solutions:
Resolving
Hardware
Copyright
8-111
Problems
<12006
Symantcc
Corporation.
All rights
reserveu
cd /script
./prepare_ns
8-112
locat~on
Glossary
A
A list of
users or groups whu have access privileges
to a specified file. A file may have its own
ACL or may share an ACL with other tiles.
ACLs allow detailed access permissions
lor multiple users and groups.
access control list (ACL)
This type of
muliipathed disk array enables you to
access a disk in the disk array through all
the paths to the disk simultaneously.
active/active
disk arrays
This type
of multipathed disk array allows one path
to a disk to be designated as primary and
used to access the disk at any time.
active/passive
disk arrays
AIX coexistence
volume
A volume created
by the intelligent storage provisioning
(lSP) feature of YERITAS Volume
Manager (YxYM).
application
associate
The process of establishing a
relationship between YxYM objects; for
example. a subdisk that has been created
and defined as having a starting point
within a plcx is referred to as being
associated with that plex.
associated
plex
a volume.
associated
subdisk
A subdisk
An operation that
either succeeds completely or Iai Is and
leaves everything as it was before the
operation was started. I f the operation
succeeds. all aspects of the operation take
effect at once and the intermediate states of
change are invisible. If any aspect of the
operation fails, then the operation aborts
without leaving partial changes.
atomic operation
attached
A state in which a YxYM
object is both associated with another
object and enabled lor use,
Gtossary-1
Copyright
Corporation.
All rigtm.
reserved.
attribute
as a manufacturer
or location.
button
A window
capability
block
attributes
for CDS
contrast,
used for
group.
boot disk
disk group)
data
bootdg
CFS
buffered 1/0
YERITAS
children
group.
Glossary-2
VERITAS
Storage
Foundation
.11'.111.'111.
cluster-shareable
disk group
A disk
group in which the disks are shared by
multiple hosts (also referred to as a shared
database
A set of
records containing detailed infonnation on
existing YxYM objects (such as disk and
volume attributes). A single copy of a
configuration database is called a
con figuration copy.
configuration
contiguous
Cross-platform
Data Sharing
(CDS)
CVM
disk group).
D
Blocks that contain the
actual data belonging to files and
directories.
data blocks
A YxYM
object that is used to manage information
about the FastResync maps in the DCO log
volume. Both a DCO object and a DCO
log volume must be associated with a
volume to implement Persistent
FastResync on that volume.
concatenation
A layout style
characterized by subdisks that arc arranged
sequentially and contiguously.
data pool
configuration
copy
configuration database.
A single copy of a
Glossary-3
Copynght ~.2006 Symanter Corporation. All fights reserved
Glossary-4
QLGC,isp@2,lOOOO
This controller (HBA) is connected to the
host.
disk enclosure
An intelligent disk array
that usually has a backplane with a built-in
Fibre Channel loop, and which permits
hot-swapping of disks.
disk group A collection of disks that arc
under VxVM control and share a common
configuration. A disk group configuration
is a set of records containing: detailed
information on existing VxVM objects
(such as disk and volume attributes) and
their relationships. Each disk group has an
administrator-assigned name and an
internally defined unique !D.
A plex dissociated
dissociated subdisk
A subdisk
dissociated from a plex.
distributed lock manager
A lock
manager that runs on different systems and
ensures consistent access to distributed
resources.
dock To separate or attach the main
window and a subwindow,
Dynamic Multipathing (DMP) The
method that VxVM uses to manage two or
more hardware paths directing 1/0 to a
single drive.
Glossary-5
Copyright
t,[, 20G6
Symantec
Corporation.
All nqhts
rcsetvco
E
enabled path A path to a disk that is
available for 110,
encapsulation A process that converts
existing partitions on a specified disk to
volumes, Ifany partitions contain tile
systems, thc tile system table entries are
modi tied so that the file systems are
mounted on volumes instead,
Encapsulation is not applicable on some
systems,
enclosure
A disk array,
enclosure-based naming An
alternative disk naming method, beneficial
in a SAN environment. which forms the
device name by concatenating the name of
the enclosure (such as encO) with the
disk's number within the enclosure,
separated by an underscore (for example,
encO
2),
F
fabric mode disk A disk device that is
accessible on a Storage Area Network
(SAN) through a Fibre Channel switch,
FastResync A fast resynchronization
feature that is used to perform quick and
efficient rcsynchronizution of stale mirrors,
and to increase the efficiency of the
snapshot mechanism.
Glossary-6
VERITAS
Storage
Foundation
All
nghts reserved
G
gap A disk region that does not contain
VxVM objects (subdisks l.
GB
megabytes ).
graphical
view
A window that displays
a graphical view of objects. In VEA. the
graphical views include the Object View
window and the Volume Layout Details
window.
grid
A tabular display of objects and
their properties. The grid lists YxVM
objects. disks. controllers. or file systems.
The grid displays objects that belong to the
group icon that is currently selected in the
object tree. The grid is dynamic and
constantly updates its contents to reflect
changes to objects.
group icon
The icon that represents a
specific object group.
GUI
H
hard limit
The hard limit is an absolute
limit on system resources lor individual
users for lile and data block usage on a file
system. See quotas.
host
hot swap
Refers to devices that can be
removed from. or inserted into. a system
without lirst turning oil the pm\er supply
to the system.
HP-UX coexistence
label
Data on disk
I/O clustering
The grouping of multiple
110 operations to achieve better
performance.
indirect address extent
An extent that
contains references to other extents. as
opposed to tile data itself. i\ single indirect
address extent references indirect data
extents, A double indirect address extent
references single indirect address extents.
indirect data extent
An extent that
contains file data and is referenced through
all indirect address extent.
initiating
node
The node on which the
system administrator is running a uti lity
that requests a change to VxVM objects.
This node initiates a volume
rcconfiguration.
A machine or system.
hostid
inode
A unique identifier lor each file
within a file system. which also contains
metadaia associated with that file.
inode allocation
unit
A group of
consecutive blocks that contain inode
allocation information for a given filesct.
This information is in the form of a
resource summary and a tree inode map.
Intelligent
Storage Provisioning
(ISP)
ISP enables you to organize and
manage your physical storage hy creating
application volumes. ISP creates volumes
lrorn available storage with the required
Gtossary-7
Copyright ((: 2006 Svmantec Corporation. All rights reserved
M
J
JBOe The common name for an
unintelligent disk array which may, or may
not, support the hot-swapping of disks. The
name is derived from "just a bunch of
disks."
K
K
L
large file A tile larger than 2 gigabytes.
VxFS supports files up to two terabytes in
size.
large file system A file system more
than 2 gigabytes in size. VxFS supports
tile systems up to 32 terabytes in size.
latency For tile systems, this typically
refers to the amount of time it takes a given
tile system operation to return to the user.
launch
Glossary-8
VERITAS
Cor."lllt,j
2f}116 Symaotec
Storage
Corporation
Foundation
All
fights
reserveo.
file system
A single file
system that has been created over multiple
volumes. with each volume having its own
properties.
multivolume
N
node
o
An entity that is defined to and
recognized internally by YxYM. The
YxYM objects arc: volume. plex, subdisk,
disk. and disk group. There arc actually
two types of disk objects- -one type for the
physical aspect of the disk and the other for
the logical aspect.
object
The
information needed to locate important file
system structural elements. The OLT is
written to a fixed location on the
underlying media (or disk).
object location table (OLT)
A copy
of the OLT in case ofdata corruption. The
OLT replica is written to a fixed location
on the underlying media (or disk).
A window that
displays a graphical view of the volumes.
disks. and other objects in a particular disk
group. The objects displayed in this
window are automatically updated when
object properties change. This window can
display detailed or basic information about
volumes and disks.
Object View Window
p
page file A fixed-size block of virtual
address space that can he mapped onto any
of the physical addresses available on a
system.
Gtossary-9
Ccpvriqbt
,t
2006
Svmantec
Corporation
All nqtrts
reserved
Glossary-10
All fight"
rcserveo
private region
A region of a physical
disk used to store private, structured
VxVM information. The private region
contains a disk header. a table of contents,
and a configuration database.
R
radio buttons
A set ol'buuons used to
select optional settings. Only one radio
button in the set can be selected at any
given time. These buttons toggle on or ofT.
A window that
displays detailed information about a
selected object.
properties
window
public region
A region of a physical
disk managed by VxVM that contains
available space and is used tor allocating
subdisks.
Q
A regular VxFS file that is
accessed using the : : cdev : vxf s :
extension.
Quick 1'0 is a
VERITAS File System feature that
improves database performance by
minimizing read/write locking and
eliminating double buffering of data. This
allows online transactions to be processed
at speeds equivalent to that of using raw
disk devices. while keeping the
administrative benefits of file systems.
Quick I/O for Databases
read-writeback
mode
A recovery
mode in which each read operation
recovers plex consistency for the region
covered by the read. Plex consistency is
recovered by reading data from blocks of
one plex and writing the data to all other
writable plcxcs.
reservation
An extent attribute
associated with preallocating space for a
file.
Glossary-11
Copyright'L
2006
Symantcr-
Corporanon
All rights
re<;p.rvcri
A disk group in
which the disks are shared by multiple
hosts (also referred to as a clustershareable disk group).
disk that
belongs to a shared disk group.
rootability
shared volume
Shortcut menu
rule A statementwritten
in the VERITAS
ISI' language that specifies how a volume
is to be created.
snapshot
A point-in-time
copy of a
Search window
A file system
whose exact image has been used to create
a snapshot ti Ie system.
SI'stCII/
of the disk is
sector
snapshot,
and quota.
sector size
Glossary-12
spanning
physical disks.
All
JI<JhIS
rcserveu
splitter
;\ bar that separates two panes of
a window (such as the object tree and the
grid). A splitter can be used to adjust the
sizes of the panes.
status area
;\
checkpoint
;\ facility that
pool
;\ policy-based container
stripe unit
width.
striping
/\ layout technique that spreads
data across several physical disks using
stripes. The data is allocated alternately to
the stripes within the suhdisks of each
plex.
fileset
A special filesct that
stores the structural elements of a VxFS
file system in the form of structural files.
These files define the structure or the file
system and arc visible only when using
utilities such as the file system debugger.
structural
synchronous
Glossary-t
Copyright
{. 2006
Svmantec
Corpoeauon
All rights
reserved
T
task properties window A window
that displays detailed information about a
task listed in the Task Request Monitor
window.
Task Request Monitor A window that
displays a history of tasks performed in the
current VEA session. Each task is listed
with the task originator. the task status. and
the start/ finish times for the task.
T8 Terabyte (2~o bytes or 1024
gigabytes ).
template A meaningful collection oflS!'
rules that provide a capability for a
volume. Also known as a volume template.
template set consists of related
capabilities and templates that have been
collected together for convenience to
create IS!' volumes.
throughput For tile systems, this
typically refers to the number of 1/0
operations in a given unit of time,
toolbar A set otbuuons used to access
VEA windows. These include another
main window. a task request monitor. an
alert monitor, a search window, and a
customize window.
transaction A set of configuration
changes that succeed or fail as a group.
rather than individually. Transactions arc
used internally to maintain consistent
configurations.
tree A dynamic hierarchical display of
objects on the system. Each node in the
tree represents a group of objects of the
same type.
u
ufs The UNIX tile system type. Used as
parameter in some commands.
UFS The UNIX tile system; derived from
the 4.2 Berkeley Fast File System.
v
VERITAS Cluster Server.
VCS
VEA
VERITAS Enterprise Administrator
graphical user interface.
VMSA
Glossary-14
CUl>ynght
_ 2001)
Svmautcc
Corporuuon
All nqhts
reserved
volume
The
volume configuration device (/ dev/vx/
conf ig) is the interface through which all
configuration changes to the volume
device driver are performed.
volume configuration
device
The VxVM
configuration daemon, which is
responsible for making changes to the
VxVM configuration. This daemon must
be running before VxVM operations can
be performed.
vxconfigd
vxfs
VxFS
VxVM
V[RITAS
Volume Manager.
A window
that displays a graphical view of a volume
and its components. The objects displayed
in this window are not automatically
updated when the volume's properties
change.
volume set
i\ meaningful
collection of ISP rules that provide a
capability for a volume. Also known as a
template.
volume template
Glossary-15
Copyright
oi.:
2006
Symantec
Corporation.
All rights
reserved
VERITAS
Glossary-16
C()pyrlght;
Storage Foundation
Index
Files and Directories
/dev/vx/dsk 37
cos i-n
/dev/vx/rdsk 3-7
/etcdefauh/ts 6-6
'ctc/default/vxassist a-tu
/ctc/filcsystems 317,319.320
iele/fs/vxf,65
/erc/tstuh
chts 320
3-17, 320
ICle/rc.dirc:2.d/S02vxvm-recover
lelc/rc2.d/S50isisd
723
(,L1 2-16
cu commands
2-22
in VEA 218
/etc/system 27
cluster 2-8
/etc/vfs 66
/ctc/vfsrab
/etc/vxclm
317, 320
cluster management 33
26
InpliVRTS/bin
column 44
65
iopllVRTS/inslall
'logs 2-11
lopliVRTSlman
concatenated 314, 49
219
iopl/VRTSob/bin
2-21
10plIVRTSvxfsisbin
65
/sbin 65
Isbin 'fs 65
'usr/lib/fs.vxfs
116
advantages 47
disadvantages 47
concarcnution
65
configuration
configuration
database 76
controller 17
address-length pair 64
AIX disk 1-4
errs 319
array 19
cron 612
cross-platform
711
D
data change object 322
data redundancy 116
databases on file systems 2-9
delaultdg 212, 37
Index-l
Copyright \G 2006 Svmautec Corporation
defrugmentution
scheduling 6-12
dcfragmcnting
1-9
Index-2
7-4
1-13
3-4
7-13
disk status
Deponed 3-26
Disconnected 3-26
External 326
Free 3-26
Imported 3-26
Not Initialized 3-26
online 3-24
online invalid 3-24
disk structure 1-3
Disk View window 4-17
disks
adding to a disk group 3-8
displaying detailed information
evacuating data 3-31
renarnmg 5-21
uninitialized 3-4
3-25
dynamic lUN
resizing 5-15
dynamic mulripathing 2-12.3-3
ENABLED
stare 7-19
encapsulation 3-4
FlashSnap 28
enclosure 2-12
fragmentation 69
directory 69
extent 69
exclusive OR 4-6
EXT2 6-5
EXT36-5
Extended File System 6-5
extended partition 15
extent 64
611
HI'S 65
l lierarchical
F
r AilED
disks 74
rAILING
disks 74
hostid 325
hot rclocat ion
definition 722
failure detection 723
notification 723
FastResync 315
rct s-zo
fdisk 15
Fibre Channel 212
file change log 620
VERITAS
Storage Foundation
File System 65
lndex-S
process 723
recovery 7-23
selecting space 724
unrclocating a disk 726
JFS265
Joumalcd File System 65
journaling
6-15
K
kernel issues
and VxFS 2-7
I/O failure
identifying
7-4
zero 3-15
inodc 6-4
insf 714
installation
installation
menu 210
installer 2-11
installlS 2-11
licensing 25
generating a license key 26
obtaining a license key 25
vl.icense 2-6
Linux
disk 1-5
installp 211
installs!' 211
logging 315. 57
and VxFS performance 6-19
for mirrored volumes 57
installvm
211
Intelligent
Storage Provisioning
3-10. 322
logging options
intent log
resizing 6-17
lsdcv 7-14
IsIS 320
Islpp 215
ioscan 714
LUN 17
and resizing V"VM
iosize 6-13
LVM
man 2-19
lndex-d
VERITAS
structures 5-15
1-4
Storage Foundation
nodg 37
nostripe 410
maxfilcsize 613
metadara 63
mirror
adding 55
adding in CLI 56
adding in VEA 56
removing 55
mirror-concat
off-host processing 28
online disk status 76
422
mirroring 116
advantages 48
disadvantages 4-8
enhanced 4-18
mirroring a volume 3-15, 4-9
mirrors
adding 412
mirror-stripe
layout 4-20
rnkfs 318
packages
listing 214
space requirements 27
mkfs options 67
parity 1-16,46
mkdir 3-18
mrnap 6-14
partition
PAl1165
permanent disk failure 77
physical disk
naming 17
Physical Volume Reserved Area 14
pkgadd 211
pkginfo
moving a disk
vxdiskadm 515
214
plex 114.45
definition 114
naming 1-14
plcx name
default 114
naming disks
defaults 3-8
primary partition 15
pri vate region 111, 34. 7-4
ncol 4-11
projection 417
NODEVICE
VERITAS
17
state 721
Storage Foundation
prtvtoc 714
2006
Svmantec
Como-anon
All rights
lndex-S
reserved
PVRA 1-4
rliuk
RAID array
benefits with VxVM Intro-10
3-22
S95vx\'Jll-recover 7-23
SAN 2-12
SA N management 3-3
read policy 58
changing in CLI 5-9
changing in VEA 5-9
preferred plcx 58
round robin 5-8
selected pic" 58
recovering a volume
VEA 7-16
software
packages 27
recovering
redundancy 1-16
spare disks
managing 7-25
volumes
and volume states 7-19
storage
allocating lor volumes 4-25
removing a disk
forced 7-21
VEA 3-32
storage attributes
specifying lor volumes 4-25
specifying in VEA 4-26
stripe-mirror 4-22
resilience 1-16
stripeuuit 4-11
lndex-G
VERITAS
Copl/flght G 2006
SYl'1311tCC
Storage Foundation
Corporation All fights reserved
striping 116
advantages 47
disadvantages 48
subdisk 114
definition 114
subdisk name
default 114
418
subvolume
summary fi le 211
support for V x V M 24
swinstall z-t t
swlist 214
T
target 17
Task History window 218
tasks
clearing history 218
technical support for VxVM
24
116
type 325
VERITAS
Cluster Server 28
VLRITAS
Enterprise Administrator
UFS 65
allocation 63
VLRITAS
hie System 65
VERITAS
VFRITAS
versrorung
and disk groups 523
V(JDA 15
VEA 216
adding a disk to a disk group 311
adding a mirror 56
changing volume read policy 59
clearing task history 218
creating a disk group 310
creating a layered volume 423
creating a volume 313
deporting a disk group 518
216.217
VCiRA 14
VERITAS
Storage Foundation
volboot 37
volume 110. 35
accessing 110
adding a tile system 3-16
adding a Ilk system in CLl 318
adding a minor 55
adding a mirror in VEA 56
creating 312
lndex-?
All
rights reserved
2-7
VRTShdoc
2-7
VRTSfspro
2-7
VRTSmuob
2-7
\,RTSob
2-7
VRTSobadmin
VRTSobgui
2-7
2-7
VRTStep 2-7
\'RTSvmdoc
2-7
Vk TSvmman 2-7
Area 1-5
VRTSvxts
vxconfigrestore
Index-8
7-11
7-11
7 -11
vxconligbackupd
volume name
default 1-14
2-7
starting 220
vxdiskunsetup 332
VxFS 65
allocation 63, 64
and logging 619
command locations 65
command syntax 66
dcfragmenting
611
file change log 620
file system switchout mechanisms 66
file system type 68
Iragmentarionreports 610
fragmentation types 69
idenii rying free space 68
intcnt log 615
intent log resizing 617
logging options 618
maintaining consistency 616
resizing 514
resizing in VEA 512
using by default 66
vxinstall 211
vxmake 419
vxprint 321, 424
vxreal1ach 716
vxrecover 716
vxrelocd 723
vxresize 511, 513
vxunreloc
7-26
VxVM
configuration backup 711
user interfaces 2-16
VxVM and RAID arrays lntrc-f O
VxVM configuration
daemon 3-5
x
XOR 116,4-6
VERITAS
Storage Foundation
2006
Symantec
Corporation.
All
Index-9
fignts
reserved
Index-10
VERITAS
Cupyrlgtlt
2006
Sym,H11CC
Storage Foundation
Corporation
All fights
reserved