Tips & Tricks for Using LVM Effectively / Intro to VxVM Renay Gaye Hewlett-Packard

Slides:



Advertisements
Similar presentations
Storage Management Lecture 7.
Advertisements

Va-scanCopyright 2002, Marchany Unit 8 – Solaris File Systems Randy Marchany VA Tech Computing Center.
By Rashid Khan Lesson 6-A Place for Everything: Storage Management.
Working with Disks and Devices
File Management Chapter 12. File Management File management system is considered part of the operating system Input to applications is by means of a file.
Chapter 10: File-System Interface
L V M A Logical Volume Manager for Linux by Heinz Mauelshagen Sistina, Inc.
Chapter 11: File System Implementation
1 File Management in Representative Operating Systems.
MIS 431 Chapter 61 Chapter 6 – Managing Disk and Data Storage MIS 431 Created Spring 2006.
Chapter 12 File Management Systems
1 I/O Management in Representative Operating Systems.
Section 3 : Business Continuity Lecture 29. After completing this chapter you will be able to:  Discuss local replication and the possible uses of local.
70-270, MCSE/MCSA Guide to Installing and Managing Microsoft Windows XP Professional and Windows Server 2003 Chapter Five Managing Disks and Data.
Session 3 Windows Platform Dina Alkhoudari. Learning Objectives Understanding Server Storage Technologies Direct Attached Storage DAS Network-Attached.
1. Preventing Disasters Chapter 11 covers the processes to take to prevent a disaster. The most prudent actions include Implement redundant hardware Implement.
Simplify your Job – Automatic Storage Management Angelo Session id:
LAN / WAN Business Proposal. What is a LAN or WAN? A LAN is a Local Area Network it usually connects all computers in one building or several building.
Storage and NT File System INFO333 – Lecture Mariusz Nowostawski Noria Foukia.
Hands-On Microsoft Windows Server 2008
File Management Chapter 12. File Management File management system is considered part of the operating system Input to applications is by means of a file.
1 Chapter 12 File Management Systems. 2 Systems Architecture Chapter 12.
Guide to Linux Installation and Administration, 2e 1 Chapter 9 Preparing for Emergencies.
Chapter 2 Installation Overview. Planning the Installation Questions: –Size of partitions –Where to put partitions –Which software packages to install.
INSTALLING MICROSOFT EXCHANGE SERVER 2003 CLUSTERS AND FRONT-END AND BACK ‑ END SERVERS Chapter 4.
Module 9: Configuring Storage
Chapter 8 Implementing Disaster Recovery and High Availability Hands-On Virtual Computing.
70-294: MCSE Guide to Microsoft Windows Server 2003 Active Directory, Enhanced Chapter 4: Active Directory Architecture.
Page 110/12/2015 CSE 30341: Operating Systems Principles Network-Attached Storage  Network-attached storage (NAS) is storage made available over a network.
C HAPTER 7 Managing Disk and File System. I NTRODUCING DISK MANAGEMENT 2 types of hard disk storage supported by Windows XP are: basic hard disk & dynamic.
4.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 4: Organizing a Disk for Data.
MCTS Guide to Microsoft Windows Vista Chapter 4 Managing Disks.
Hp education services education.hp.com 50 LVM Problems Version C.00 H4264S Module 6 Slides.
Managing Disks and Drives Chapter 13 powered by dj.
Chapter 1 Managing Storage. Contents Understanding Partitioning Understanding LVM Understanding RAID Understanding Clustering and GFS Using Access Control.
MCTS Guide to Microsoft Windows 7
UNIX File and Directory Caching How UNIX Optimizes File System Performance and Presents Data to User Processes Using a Virtual File System.
Veritas Volume Manager Conversion Tim Clemens Training and Consulting Louisville, KY
Windows Server 2003 硬碟管理與磁碟機陣列 林寶森
Configuring Disk Devices. Module 4 – Configuring Disk Devices ♦ Overview This module deals with making partitions using fdisk, implementing RAID and Logical.
Week #3 Objectives Partition Disks in Windows® 7 Manage Disk Volumes Maintain Disks in Windows 7 Install and Configure Device Drivers.
"1"1 Introduction to Managing Data " Describe problems associated with managing large numbers of disks " List requirements for easily managing large amounts.
Windows Vista Inside Out Chapter 28 - Chapter 28 - Managing Disks and Drives Last modified
LVM & Mirror 中国惠普有限公司支持服务事业部 QIAN Yun Elements of LVM (逻辑卷管理器) physical Volumes 物理卷 volume Group 卷组 logical Volumes 逻辑卷 VG01 lvol1 /dev/rdsk/c0t0d0.
File Storage Organization The majority of space on a device is reserved for the storage of files. When files are created and modified physical blocks are.
Chapter 10 Chapter 10: Managing the Distributed File System, Disk Quotas, and Software Installation.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 12: File System Implementation File System Structure File System Implementation.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 11: File System Implementation.
Technical Support Group Bangalore1. 2 What is Veritas Volume Manager Veritas Volume Manager is an Online Storage Management Tool that provide a logical.
Peter Mattei HP Storage Consultant 16. May 2013
Lesson 20: Managing Local Storage MOAC : Configuring Windows 8.1.
Storage Management: MirrorDisk/UX, Online JFS Introduction LVM Striping Mirror Disk / UX – Basics Online Backups (lvsplit) Mirror Disk / UX – Advanced.
WINDOWS SERVER 2003 Genetic Computer School Lesson 12 Fault Tolerance.
© 2006 EMC Corporation. All rights reserved. The Host Environment Module 2.1.

MCTS GUIDE TO MICROSOFT WINDOWS 7 Chapter 4 Managing Disks.
NTFS Filing System CHAPTER 9. New Technology File System (NTFS) Started with Window NT in 1993, Windows XP, 2000, Server 2003, 2008, and Window 7 also.
A Case Study Julie J. Smith Wachovia Corporation Superdome Implementation at a Glance.
Adding a Hard Drive. BIOS / UEFI The Unified Extensible Firmware Interface (UEFI) defines a software interface between an operating system and platform.
Page 1 Mass Storage 성능 분석 강사 : 이 경근 대리 HPCS/SDO/MC.
Hands-On Microsoft Windows Server 2008 Chapter 7 Configuring and Managing Data Storage.
Silberschatz, Galvin and Gagne ©2011 Operating System Concepts Essentials – 8 th Edition Chapter 3: Windows7 Part 3.
L V M A Logical Volume Manager for Linux by Heinz Mauelshagen
Linux Software RAID & LVM Patrick Ladd 5/2/2007.
Storage Virtualization
Chapter 3: Windows7 Part 3.
OPS235: Week 5 Lab4: Investigations 1 – 3
Overview Continuation from Monday (File system implementation)
Storage Management Lecture 7.
Presentation transcript:

Tips & Tricks for Using LVM Effectively / Intro to VxVM Renay Gaye Hewlett-Packard

LVM Concepts

LVM Concepts-Physical Volume LVM Managed Disk Each PV is assigned a unique PVID pvid pvcreate /dev/rdsk/cntndn

LVM Concepts-Volume Group One or more physical volumes pool of physical extents pvra vgra pvid vgid extents pvid vgid mkdir /dev/vgname mknod /dev/vgname/group c 64 0xnn0000 vgcreate vgname /dev/dsk/cntndn...

Volume Group Map pvid vgid pvid vgid map ~ ~~ ~ pe 0 pv 0 extent size (-s n) * max extents/pv (-e n) ______________________ max. useable space/disk pv 1 pv 2 pv 15 pe 1 pe 2 pe 3 pe 1016

LVM Device Files /dev dsk c0t5d0 c0t6d0 rdsk c0t5d0 c0t6d0 vg01 group lvol1 lvol2 rlvol1 rlvol2 Block PV device files Raw PV device files VG device file Block LV device files Raw LV device files

/etc/lvmtab /dev/vg00 (vgid) /dev/dsk/c0t6d0 (vgid,pvid) /dev/vg01 (vgid) /dev/dsk/c1t2d1 (vgid,pvid) /dev/dsk/c1t2d2 (vgid,pvid) Non-ascii file Records volume group/physical volume associations Used by many LVM commands for sanity checking example:

pvid vgid Volume Group Activation Done automatically when vg is created automatically at boot (/etc/lvmrc) required in order to access any lvols vgra pvid vgid vgchange -a y vgname vgchange -a r vgname vgra Memory 00 01

LVM Concepts-Quorum pvid vgid pvid vgid vg01 More than 1/2 disks in a vg required to activate the volume group Can override: vgchange -a y -q n vg01 Booting without quorum: ISL> hpux -lq

LVM Concepts-Logical Volume pvid vgid pvid vgid map ~ ~~ ~ pe 0 pv 0 pv 1 pv 2 pv 15 pe 1 pe 2 pe 3 pe pe 4 lvcreate -L n vgname lvcreate -L n -C y vgname lvcreate -l n vgname lvcreate -L n -n name vgname

Placing logical volumes pvid vgid pvid vgid map ~ ~~ ~ pe 0 pv 0 pv 1 pv 2 pv 15 pe 1 pe 2 pe 3 pe pe 4 lvcreate -n datalv vgdata lvextend -L 500 /dev/vgdata/datalv /dev/dsk/c4t2d0 02 ~~

Multi-pathing solutions

Multipathing Solutions with LVM LVM pvlinks –active/passive –no additional software required Auto path –active/active, load balancing –supported for XP and VA arrays –additional cost product Powerpath –active/active, load balancing –supported for EMC arrays –additional cost product

PV links pvid vgid pvid vgid c5t5d0 (p) c7t5d0 (a) c7t5d1 (p) c5t5d1 (a) pvcreate /dev/rdsk/c5t5d0 pvcreate /dev/rdsk/c5t5d1 mkdir /dev/vg01 mknod /dev/vg01/group c 64 0x vgcreate vg01 /dev/dsk/c5t5d0 /dev/dsk/c7t5d0 /dev/dsk/c7t5d1 /dev/dsk/c5t5d1

PV links-switching the order pvid vgid pvid vgid c5t5d0 (p) (a) c7t5d0 (a) (p) c7t5d1 (p) c5t5d1 (a) Temporary Change pvchange -s /dev/dsk/c7t5d0 Permanent Change vgreduce vg01 /dev/dsk/c5t5d0 vgextend vg01 /dev/dsk/c5t5d0

HBA FC Port LDEV Array Server Auto Path HBA FC Port FC Port FC Port FC Port FC Port FC Port FC Port CHIP Board 1CHIP Board 2 Auto Path-Dynamic load balancing Load balancing functionality –Supports up to 8 paths from a server to an end device –Provides dynamic load balancing across all paths to an end device –Choose from 4 load balancing policies, including “no load balancing” –Supports the XP and VA disk arrays –Load balancing supported in clustered environments

A pseudo driver The Auto Path driver is layered between the LVM (Logical Volume Manager) and the SCSI device driver The driver provides the Command Line Interface Auto Path driver Application File System Logical Volume Manager Auto Path Drivers (SCSI device and FC interface) FC HBA Disk Array

Moving Data

Moving Disks Three Step Process Remove definition of volume group Move disk(s) Add definition of volume group Two commands vgexport(1m) vgimport(1m)

Volume Group Definition — Review /etc/lvmtab /dev/dsk/c0t5d0 /dev/vg01 VGRA + PVRA - PV ID - VG ID PE to LE map 64 0x x lvol1 rlvol1 databaselv rdatabaselv group 64 0x /dev/vg01 name of Logical Volumes

Exporting a Volume Group Syntax: vgexport [-p][-v][-m file]VG -p Preview actions only -v verbose -m used to specify a map file for logical volume names Removes volume group definition from the system completely by updating /etc/lvmtab and kernel memory. The volume group must first be deactivated with vgchange(1m). Example: vgchange -a n /dev/vg01 vgexport -v -m /etc/lvmconf/vg01.map /dev/vg01

Importing a Volume Group Syntax: vgimport [-p][-v][-m file] VG PV [PV...] -p Preview actions only -v verbose -m used to specify a map file for logical volume names Example: mkdir /dev/vg01 mknod /dev/vg01/group c 64 0x vgimport -v -m /etc/lvmconf/vg01.map /dev/vg01 /dev/dsk/c0t1d0 vgchange -a y /dev/vg01 vgcfgbackup vg01

Moving LVM Data pvmove -n /dev/vg01/lvol1 /dev/dsk/c0t5d0 /dev/dsk/c0t4d0 c0t5d0 pvmove Volume group Syntax: pvmove [-n lv] from_PV [to_PV] Example: c0t4d0 free

Renaming LVM objects

Renaming Logical Volumes lvol names are not stored in the LVM maps or in /etc/lvmtab Simply rename device files and update /etc/fstab if necessary

Renaming Volume Groups Volume group name is kept in /etc/lvmtab and is used as the directory name to anchor the device files for the group Use vgexport and vgimport to rename volume group

LVM Mirroring

Mirrored Volumes In a mirrored logical volume... Each logical volume consists of one or more Logical Extents (LEs). Each LE maps to two or three Physical Extents (PEs) on disk. The logical volume remains accessible even when one of the disks is unavailable. PE0 PE1 PE2 PE3 PE4 PE5 disk2 PE0 PE1 PE2 PE3 PE4 PE5 disk1 LE0 LE1 LE2 lvol1 LE0 LE1 lvol2

Extending and Reducing Mirrors Create a new, mirrored logical volume: # lvcreate -m 1 -L 16 -n myfs1 vg01 Mirror an existing logical volume: # lvextend -m 1 /dev/vg01/myfs1 Mirror an existing logical volume to a specific disk: # lvextend -m 1 /dev/vg01/myfs1 /dev/dsk/c0t3d0 Add a second mirror: # lvextend -m 2 /dev/vg01/myfs1 Remove a logical volume’s mirrors: # lvreduce -m 0 /dev/vg01/myfs1 /dev/dsk/c0t3d0 Check a mirrored logical volume’s status: # lvdisplay -v /dev/vg01/myfs1

Mirrored I/O Scheduling Read Write Parallel (-d p) Sequential (-d s) Access PV with lowest outstanding I/Os Schedule writes simultaneously to all PVs Read in PV order Schedule writes in PV order

MWC/MCR 0X X LTG Status Write IO MWC PVRA VGRA LTG5 X Writes are recorded in MWC in memory MCR record written to disk when a write is done to a logical track group not already recorded After a crash only "dirty" LTGs need be resynced

Mirror Consistency Recovery Options Runtime overhead to write MCR record No system managed recovery Advantage Disadvantage Fast recovery on a system crash No extra overhead at Application can do necessary recovery runtime Slow recovery on a system crash MWC/MCR -M y NOMWC -M n -c y NONE -M n -c n

LVM Boot Disks

LVM Boot volume structure LIF Directory PVRA BDRA LIF VGRA PEPE ISL,HPUX,AUTO,LABEL Hardware path/device file of disks in volume group boot, root, dump, swap lvols Maintained with the lvlnboot command

Mirroring the LVM Boot Disk Initialize disk for LVM. Leave room for BDRA/LIF pvcreate -B /dev/rdsk/cntndn Add disk to root VG vgextend vg00 /dev/rdsk/cntndn Install boot files in LIF area mkboot /dev/rdsk/cntndn Change the auto file on both the primary and alternate boot disk mkboot -a "hpux -lq" /dev/rdsk/cntndn Mirror each of the lvols in the root vg lvextend -m 1 /dev/vg00/lvoln /dev/dsk/cntndn Add the mirror disk definition to /stand/bootconf

Booting When BDRA is damaged Boot system into maintenance mode ISL> hpux -lm Activate vg00 vgchange -a y vg00 Use lvlnboot to examine/repair BDRA lvlnboot -v lvlnboot -b /dev/vg00/lvol1 lvlnboot -r /dev/vg00/lvol3 lvlnboot -s /dev/vg00/lvol2 lvlnbtoo -d /dev/vg00/lvol2 Reboot the system reboot

Moving the Boot Disk Problem: /etc/lvmtab contains the old device files for the boot disk –Solution: boot into maintenace mode, export and reimport volume group Problem: The BDRA and Label files contain the old device information –Solution: use lvlnboot to fix

Cookbook for moving root disk Boot from new device. Reply Y to interact with IPL ISL> hpux -lm # vgexport -v -m vg00.map vg00 # mkdir /dev/vg00 # mknod /dev/vg00/group c 64 0x # vgimport -v -m vg00.map vg00 /dev/dsk/new_device_file # vgchange -a y vg00 # vgcfgbackup vg00 # lvlnboot -R # lvlnboot -v

Recovering Corrupt LVM Information

Valuable Data? The various lvm data structures are crucial to the continued availability of logical volumes /dev/vg01 /dev/dsk/c0t5d0 /etc/lvmtab vgdisplay - v Active VGs Kernel memory Sanity check PVRA /VGR A Cross reference

Backing up LVM Structures vg01 LVM Structures vgcfgbackup vg01.conf vg00.conf /etc/lvmconf File System File System Done automatically by commands that modify the configuration Syntax: vgcfgbackup [-f file ]VG

vg01 LVM Structures vgcfgrestore vg01.conf vg00.conf /etc/lvmconf Only restores the LVM structures. Contents of logical volumes must be restored separately. Syntax: vgcfgrestore [-n VG|-f file][-o PV]PV vgcfgrestore -l -n VG Recovering LVM Structures

LVM Control File /etc/lvmtab vg00 /dev/dsk/c0t6d0 /dev/dsk/c0t5d0 /dev/dsk/c0t4d0 vg01 /dev/dsk PV ID VG ID PV ID VG ID PV ID VG ID Not ascii data – can use strings (1) to read the ascii part Used primarily at boot up but also used to sanity check commands Can be rebuilt if lost All VG IDs the same - all disks in same vg

Recover or Repair /etc/lvmtab Syntax: vgscan [-v][-p] Semi-intelligent look at every disk to classify it imports those that are known to be on this system recommends the import of "new" disks rebuilds /etc/lvmtab Ways to confuse vgscan redundant group files "old" LVM structures

LVM Performance Tips

Volume Group vg01 PVG1 PVG2 System Use PVGs to Offload Busy Controllers

Volume Group vg01 System 100% Util 60% Util 5% Util 50% Util Volume Group vg01 System 52% Util 60% Util 52% Util 50% Util Without StripingWith Striping Use Striping to Offload Busy Drives

LVM Distributed Allocation LE0 LE1 LE2 LE3 LE4 LE5 LE6 LE7 LE8 LE9 LE10 LE11 Logical Volume PV1PV2PV3PV4 LE0 LE4 LE8 LE1 LE5 LE9 LE2 LE6 LE10 LE3 LE7 LE11 Volume Group vg01 lvcreate -l 12 -s g -D y /dev/vg01 PVG1

Mirroring and Striping LE0 LE1 LE2 LE3 LE4 LE5 LE6 LE7 LE8 LE9 LE10 LE11 Logical Volume Volume Group vg01 lvcreate -l 12 -m 1 -s g -D y /dev/vg01 PV1PV2PV3PV4 LE0 LE4 LE8 LE1 LE5 LE9 LE2 LE6 LE10 LE3 LE7 LE11 PV1PV2PV3PV4 LE0 LE4 LE8 LE1 LE5 LE9 LE2 LE6 LE10 LE3 LE7 LE11 PVG1 PVG2

LVM in an MC/ServiceGuard Environment

Primary Mirror Volume Group Syste m B A MC/ServiceGuard Configuration

Volume Group System A Step 1: Configure Volume Group on First System

Volume Group System A System B Step 2: Import Volume Group to Second System

vgexport -p -s -m create mapfile without removing the VG, and save the VGID for the vgimport command vgimport -s -m scan for disks that have the same VG ID as in the mapfile VG Export and Import -s Option Map File VGID xxxxxxx 1 lvol_name1 2 lvol_name2 3 lvol_name3 Vol Grp System A System B vgexport -p -s -m /tmp/map vg01 vgimport -s -m /tmp/map vg01

LVM Definitions-Both Nodes /etc/lvmtab /dev/vg01 /dev/dsk/c5t5d0 /dev/dsk/c7t5d0 /dev/dsk/c7t5d1 /dev/dsk/c5t5d1 64 0x x lvol1 rlvol1 databaselv rdatabaselv group 64 0x /dev/vg01 pvid vgid pvid vgid Node 1Node 2 /etc/lvmtab 64 0x x lvol1 rlvol1 databaselv rdatabaselv group 64 0x /dev/vg01 /dev/dsk/c5t5d0 /dev/dsk/c7t5d0 /dev/dsk/c7t5d1 /dev/dsk/c5t5d1

Cluster Volume Group Node1 Node2 cluster id vgchange -c y vg01

Volume Group Exclusive Activation Node1 cmlvmd Node2 cmlvmd cluster id Q. Do you have the volume group activated? A. No I do not vgchange -a e vg01

Marking Volume Groups as MC/ServiceGuard Volume Groups Marking Volume Group vgchange -c y VGName for MC/ServiceGuard Marking Volume Group vgchange -c n VGName as non-MC/ServiceGuard Standard Volume Group vgchange -a y VGName Activation Exclusive Volume Group vgchange -a e VGName Activation

Disk Array Data Replication Issues

vgsec(svols) vgprim(pvols) Disk Array Problem-Duplicate vgid vgid c1t3d1 vgid c1t3d2 vgid c2t6d1 vgid c2t6d2

vgsec(svols) vgprim(pvols) Disk Array Solution-vgchgid vgid c1t3d1 vgid c1t3d2 vgid c2t6d1 vgid c2t6d2 vgchgid /dev/rdsk/c2t6d1 /dev/rdsk/c2t6d2 mkdir /dev/vgsec mknod /dev/vgsec/group c 64 0x vgexport -pm mapfile vgprim vgimport -m mapfile vgsec /dev/dsk/c2t6d1 /dev/dsk/c2t6d2 vgchange -a y vgsec vgcfgbackup vgsec

vgsec(svols) vgprim(pvols) Disk Array Problem after a reverse sync vgid c1t3d1 vgid c1t3d2 vgid c2t6d1 vgid c2t6d2 /etc/lvmtab /dev/vgpriv (vgid:12345) /dev/dsk/c1t3d1 /dev/dsk/c1t3d2

vgsec(svols) vgprim(pvols) Disk Array Solution vgid c1t3d1 vgid c1t3d2 vgid c2t6d1 vgid c2t6d2 /etc/lvmtab /dev/vgpriv (vgid:56789) /dev/dsk/c1t3d1 /dev/dsk/c1t3d2 export volume group reimport volume group

VxVM Concepts

VxVM Intro Another Volume Manager Supported on HP- UX platform Can co-exist with LVM Allows flexible disk space management includes vmsa gui as well as cli Available from HP beginning with HP-UX 11i. Available from Veritas for other releases No rootability until 11i Release 1.5 (11.20) Lite & Full versions

VxVM Objects - Disks Physical Disk: Disk initialized for VxVM use cntndn or enclosure based name Free disk pool Disk Group - dgname VMdisks or private region dgname01dgname02dgname03 dgname

VxVM Concepts-Disk Group Similar to an LVM Volume Group One or more VMdisks Pool of space that can then be "partitioned" into volumes Entire group can be moved between systems using import/deport dgname01dgname02dgname03 dgname

VxVM Concepts-Disk Group "activation" There is no /etc/lvmtab file hostid in private region is compared to hostid on system autoimport flag indicates group should be imported at start up deport removes hostid from private region but leaves disks in tact mydg01mydg02mydg03 host1 /etc/vx/volboot

VxVM Concepts-Configuration Database Config Database Describes all objects contained in the disk group Replicated on multiple disks in the disk group (4 by default)

VxVM rootdg Required for VxVM to run Does not necessarily contain the root file system –11i: will not include the root file system –11i 1.5: will include the root file system –future releases will have choice rootdg cannot be moved between systems discourage including customer data

VxVM Concepts-Volume Similar to an LVM logical volume Analogous to a "partition" Can contain a file system, a swap area or raw data Represented by device files: /dev/dsk/dgname/volname /dev/rdsk/dgname/volname

VxVM Concepts-plex vol01 vol01-01 (plex) vol02-01 (plex part1) vol02 vol02-01 (plex part2) vol03-01 (plex) vol03 vol03-02 (plex) vol03-03 (log plex) Data Plex: A copy of the data Non-mirrored volumes will have one data plex, mirrored volumes will have multiple data plexes a plex can span disks log plex: mirrored and raid5 volumes can have a log plex

VxVM Concepts-subdisk Contiguous space on a single vmdisk entire subdisk belongs to a single plex usually created when volume is created mydg03-01 mydg03-02 mydg02-02 mydg01-01 mydg02-01 vol01vol01-01 mydg01-01 vol02vol02-01 mydg02-01 vol02-02 mydg03-01 vol03vol03-01 mydg02-02 mydg03-02 volumeplex(es) subdisk(s) mydg01mydg02 mydg03

VxVM Objects - Review Data vol01 (volume) vol01-01 (plex)vol01-02 (plex) sub-disk dgname01-01dgname02-01dgname03-01 dgname01 (vmdisk) cntndn (physical disk) dgname02 cntndn dgname03 cntndn

Data Plex Layouts Concatenated Striped raid5

Concatenated Plex Examples Simple volume One plex One subdisk Spanned Volume One plex Two subdisks Mirrored Volume Two plexes Two subdisks

Striped Plex Layout d1d4d7d10d2d5d8d11d3d6d9d12

raid5 plex Layout d1d4d7p4d2d5p3d10d3p2d8d11p1d6d9d12

Mixed volumes d1d4d7d10d2d5d8d11d3d6d9d12 plex1 plex2 mixed volume You can combine plex layouts in a single volume By default the striped plex will be preferred over the concatenated pplex You can not mirror raid5 plex layout

Raid 1+0 Mirror-Stripe Mirrored sub- volume 1 Mirrored sub- volume 2 Mirrored sub- volume 3 Striped-Volume Raid 0+1 Stripe-Mirror (Layered Volume) Layered Volumes-Stripe-Mirror

Normal Mirror (spanning multiple disks): 8.9 G 1.6G 8.9 G 1.6G Layered Volume (spanning multiple disks): 8.9 G sub-volume (layout=mirror) 1.6G sub-volume (layout=mirror) volume with layout=concat plex Layered Volumes-Concat-pro

Creating Volumes vxassist (cli) or vmsa (gui) –you create volume –plex, sub-disks automatically created bottom up –manually create sub-disk(s) –specify sub-disk(s) to form plex –specify plex(es) to form volume

Controller(SBA) c2xxxx Dynamic Multi-Pathing /dev/vx/dmp/c2t3d0 /dev/vx/rdmp//c2t3d0 dev/dsk/c7t3d0 /dev/rdsk/c7t3d0/dev/dsk/c2t3d0 /dev/rdsk/c2t3d0 Controller(SBA) c7xxxx /dev/vx/dsk/userdg/myvol /dev/vx/rdsk/userdg/myvol Multiple paths

VxVM-LVM Comparisons LVMVxVM Physical VolumePhysical Disk Physical Volume in a VGVMdisk Volume GroupDisk Group Logical VolumeVolume group of contig. extentssubdisk single mirror copyplex MWC/MCRdirty region log pvra/vgraprivate region extentspublic region

Information Sources H6285S Hands-On with LVM course H6487S Hands-On with MC/ServiceGuard course H5875S HP-UX System and Network Admin for Experienced UNIX System Administrators U1592AAE Intro to VxVM - HP Education Virtual Classroom Seminar Various white papers and cookbooks from the Response Center