what is veritas volume manager
DESCRIPTION
What is Veritas Volume Manager. Veritas Volume Manager is an Online Storage Management Tool that provide a logical volume management layer which overcomes the physical restrictions of disk devices by spanning volumes across the - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/1.jpg)
Technical Support Group Bangalore 1
![Page 2: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/2.jpg)
2
What is Veritas Volume Manager
Veritas Volume Manager is an Online Storage Management Tool
that provide a logical volume management layer which overcomes
the physical restrictions of disk devices by spanning volumes across the
spindles. It protects against the Disk and Hardware failure
![Page 3: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/3.jpg)
3
Benefits of Volume Manager
Manageability
You can manage all storages using an intuitive graphical user interface
Provides consistent management across all the platforms ( Solaris, HP-UX, Windows NT/2000, IBM)
Management of storage is performed on-line in real time , eliminatingthe need for downtime.
![Page 4: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/4.jpg)
4
Benefits of Volume Manager
Availability
Integrity of storage is maintained by true mirroring across all writes
Through RAID Techniques, Storage remains available in the event of
Hardware failures Data Redundancy is maintained by hot-relocation, which
protectsAgainst multiple simultaneous disk failures
Recovery Time is minimized, through logging and background mirrorSynchronization.
![Page 5: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/5.jpg)
5
Benefits of Volume Manager
Performance
I/O Throughput is maximized by measuring and modifying volumesLayouts while storage remains on-line.
Performance bottlenecks can be eliminated using the VxVm analysis tool.
![Page 6: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/6.jpg)
6
Benefits of Volume Manager
Scalability
VxVM Runs on both 32 But and 64 Bit Operating systems
Storage can be deported to large enterprise-class platforms
Storage devices can be spanned
VxVM is fully integrated with Veritas File System
![Page 7: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/7.jpg)
7
Describe how physical data storage relates to virtual data storage in Veritas Volume Manager.
Install Veritas Volume Manager
Perform Volume Management Tasks Using GUI and CLI.
Manage Disks and Disk Groups
Create and Manage Virtual Volumes
Veritas Volume Manager Fundamentals
![Page 8: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/8.jpg)
8
Physical Storage Objects
VTOC: Stores Information about Disk structure and Organization. Also Called as Disk LabelPartition: After VTOC, remainder of the Disks are divided ito units called Partitions
![Page 9: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/9.jpg)
Technical Support Group Bangalore 9
How Does Volume Manager Works
You Enable Virtual data storage by bringing the disks under volume manager control.It means that volume manager creates virtual objects and establishes a logical connection between those objects and underlying physical objects.
![Page 10: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/10.jpg)
10
What Happens to a Disk under VxVM Control
Volume Manager removes all the partition table entry from VTOC
Creates two partitions on the physical disk. One is Private region and second is public region.
Private region stores information like configuration database,kernel logs, and disk headers.Minimum size is 1024 Sectors and Maximum is 512000 Sectors ( 512k Sectors)
Public Region consists of the remainder of the Disk.This represents the available space for VxVM to create volumes and assign data to it.
Volume Manager updates the VTOC, with information about the removal of the existing partition and the addition of the new partition during initialization process.
![Page 11: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/11.jpg)
11
Volume Manager-Virtual Objects
Disk Groups
Volume Manager Disks
Sub-Disks
Plex
Volume
![Page 12: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/12.jpg)
Technical Support Group Bangalore 12
Virtual Objects
Volume Manager consists of variety of virtual objects .Volume is one of the variety of the virtual Objects.
![Page 13: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/13.jpg)
13
Disk Group
Disk group is a collection of VxVM disks. You group disks into disk groups for management purpose.
![Page 14: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/14.jpg)
Technical Support Group Bangalore 14
Volume Manager Disks
A Volume Manager Disk is created as soon as a physical disk is brought under VxVM control.
Each VxVM disk corresponds to one physical Disk.
![Page 15: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/15.jpg)
Technical Support Group Bangalore 15
Sub Disks
A VxVM Disk can be divided into one or more sub-disks. A sub-disk is a set of contiguous blocks that represents a specific portion of VxVM disk, which is mapped to specific region of the Disk.
![Page 16: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/16.jpg)
Technical Support Group Bangalore 16
Plex
A Plex is a structured or ordered collection of sub-disks that represents a copy of data. A plex consists of one or more sub-disks located in one or more physical disks.
![Page 17: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/17.jpg)
Technical Support Group Bangalore 17
Volumes
A Volume is a virtual storage device that is used by applications in a manner similar to physical disk. Volume is composed of one or more plexes.
![Page 18: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/18.jpg)
18
Summary Of Virtual Objects
![Page 19: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/19.jpg)
19
Volume Layouts
Volume layout refers to organization of plexes in a volume.
![Page 20: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/20.jpg)
20
Concatenated Volume
In a concatenated volume, sub disks are arranged both sequentially and contiguously Concatenation allows a volume to be created from one or more physical disks, if there is not enough free space to accommodate the volume in a single disk
![Page 21: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/21.jpg)
21
Striped Volume
In a Striped Volume, data is spread evenly across the sub-disks. Stripes are equally sized fragments that are allocated alternately and evenly to the sub-disk inside a single plex. There must be at least two sub-disks inside a plex, each of which must exist on different physical disk
![Page 22: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/22.jpg)
22
Mirrored Volume
Mirrored Volume uses multiple plexes to duplicate the information contained in a volume. At least two plexes are required for a true mirroring.Each of this plexes must exists on different physical disk for redundancy.
![Page 23: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/23.jpg)
23
RAID-5 Volume
A RAID-5 Volume uses striping to spread data and parity evenly across physical disks. Each stripe consists of a parity stripe unit and data stripe unit.Parity can be used to re-construct the data if one disk fails
![Page 24: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/24.jpg)
24
Planning First time VxVM Setup
![Page 25: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/25.jpg)
Technical Support Group Bangalore 25
Which Disks Under VxVM control
The only disks that you should place under VxVM control during installation are the root disk and its mirror.
You can add other disks and disk groups after installation If you do not plan to bring the system disk under VxVM
control, then place one disk under rootdg.
Rootdg is required, so that volume manager daemons can be started in enabled mode.
![Page 26: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/26.jpg)
26
Enclosure based Naming
This allows VxVM to access enclosures as a separate physical entities.Enclosure based naming can be useful while implementing DMP(Dynamic Multipathing).When you install VxVM, You are prompted whether to use enclosure based naming
![Page 27: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/27.jpg)
27
Excluding Disks
If you want any disks to be excluded from volume manager control, then you can specify in the exclusion files
![Page 28: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/28.jpg)
28
Prevent Multi-pathing
With VxVM version 3.1.1 later, DMP Driver must always be present on the system for VxVM to function.However you can prevent VxVM from multipathing some or all devices without removing the DMP layer.
![Page 29: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/29.jpg)
Technical Support Group Bangalore 29
Preserve or eliminate disk data
When you place a disk under volume manager control, either you can preserve the data (Encapsulation) or eliminate the data (initialization)
Encapsulation should contain minimum 2 free partition table entries on the disk to be encapsulated.
![Page 30: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/30.jpg)
30
System Root Disk under VxVM Control
![Page 31: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/31.jpg)
Technical Support Group Bangalore 31
Typical Initial VxVM Setup
![Page 32: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/32.jpg)
32
Volume Manager Installation
Software Packages
VRTSvxvm Drivers and Utilities VRTSlic Licensing Utilities VRTSvmdev Developer Kit VRTSvmman Manual Pages VRTSvmdoc Documentation VRTSvmsa Storage Administration Server and Client
![Page 33: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/33.jpg)
33
The vxinstall Program
This program is used to initialize the volume manager after adding the software package.
Should be run only once in a System
Purpose of this program is to create rootdg disk group
Volume Manager requires rootdg disk group and it should contain at least one disk
This program is an interactive tool.
Example : # vxinstall
![Page 34: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/34.jpg)
Technical Support Group Bangalore 34
The vxinstall program
![Page 35: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/35.jpg)
35
Volume Manager User Interface
Volume Manager Storage Administrator (VMSA- Gui)
Ex: # vmsa & or # vea &
Command Line Interface
Ex: # vxdg list
Volume Manager Support Operations (Menu Driven)
Ex: # vxdiskadm
![Page 36: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/36.jpg)
Technical Support Group Bangalore 36
VMSA Main Window
![Page 37: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/37.jpg)
37
Command Line Interface
Many of the commands can be found in
/etc/vx/bin /usr/sbin /usr/lib/vxvm/bin
Examples :
# vxdisk list# vxdg list# vxprint -ht
![Page 38: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/38.jpg)
Technical Support Group Bangalore 38
Vxdiskadm Interface
![Page 39: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/39.jpg)
39
Adding Disks
Before You Add Disks.
![Page 40: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/40.jpg)
40
Disk Configuration Stages
Prior-VxVM
![Page 41: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/41.jpg)
Technical Support Group Bangalore 41
Disk Configuration Steps
Stage OneAn Initialized Disk is placed under Volume Manager’s Free Disk pool. While initializing it will create private and public region.
![Page 42: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/42.jpg)
Technical Support Group Bangalore 42
Disk Configuration Steps
Stage TwoAn initialized Disk is placed under Disk Group.Disk Media Name is assigned to it.
![Page 43: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/43.jpg)
Technical Support Group Bangalore 43
Disk Configuration Steps
Stage ThreeCreating Volumes . Assigning disk space to volumes.
![Page 44: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/44.jpg)
44
Adding Disk : CLI
The vxdisksetup Command:
# vxdisksetup –i c1t0d0 [ Initialize Disk ]
# vxdg –g oradg adddisk c1t0d0=disk01
The above command add the disk c1t0d0 to diskgroup “oradg” with disk name as disk01. When you add a disk to diskgroup, it is stamped with the system host id. Note: Diskgroup should exist.
![Page 45: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/45.jpg)
Technical Support Group Bangalore 45
Viewing Disk Information
![Page 46: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/46.jpg)
46
Viewing Disk Information
Information on individual disk. # vxdisk list <diskname>
![Page 47: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/47.jpg)
47
Removing a Disk.
Before removing a disk, make sure there is no data on the disk. Else you evacuate the data on the disk onto another disk.
Evacuating a Disk moves the content of the disk onto other disk.
The disk to which data is evacuated should belong to the same disk group.
Example:
# vxevac –g oradg disk01 disk02.
The above command evacuates data from disk01 to disk02 under diskgroup oradg
![Page 48: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/48.jpg)
48
Removing a Disk
# vxdg –g oradg rmdisk disk01
The above command removes the disk “disk01” from diskgroup “oradg” and places the disk in free disk pool.
Once the disk is placed in free pool, it can be completely taken out of volume manager control using the following command
# vxdiskunsetup –C c1t0d0
-C option forces the de-configuration
![Page 49: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/49.jpg)
49
Managing Disk Groups
Why Disk Groups ?
Disk Groups enables grouping of disks into logical collections for a particular set of users or applications.
It can be easily moved from one host machine to another. Enables high availability. This can be shared by two or more
hosts, but only one can access at a time. If one host crashes, other host takes over.
You can never have an empty disk group. Disk group cannot share resources. ( One disk belonging to
Multiple disk group.
![Page 50: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/50.jpg)
Technical Support Group Bangalore 50
Managing Disk group
Disk Media Name: Unique name assigned to a disk, when it is added to the disk group.
Disk Access record: Mapping of physical disk location to Disk media name. This record can be re-created by running # vxdctl enable
![Page 51: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/51.jpg)
Technical Support Group Bangalore 51
Managing Disk Group
Example of Re-configuration Run # vxdctl enable
![Page 52: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/52.jpg)
Technical Support Group Bangalore 52
Managing Disk group
rootdg The rootdg is a special disk group which is created during
vxinstall process. VxVM requires rootdg with atleast one disk, to start volume
manager. If you want your boot disk to be bootable under volume
manager, then boot disk must be in rootdg Rootdg follows different disk naming conventions than other
disk groups ( rootdg disk names: disk01, disk02, ….) Rootdg can not be destroyed or deleted.
![Page 53: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/53.jpg)
53
Managing Disk group
Disk group and High Availability
![Page 54: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/54.jpg)
54
Creating Disk Group (CLI)
To create a disk group from command line use the following command
# vxdg init newdg newdg01=c1t1d0s2
To verify whether disk group is created
![Page 55: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/55.jpg)
55
Setting up Spare Disk
Setting a spare disk inside a Disk group enables the hot-relocation feature of VxVM. If an I/O failure occurs, hot-relocation automatically relocates the redundant subdisks to the spare disk and restores the affected volume manager data and objects.
Example:
# vxedit –g oradg set spare=on oradg01
The above example sets disk “ oradg01” as a spare to the disk group “oradg”
Note: This is applicable only for RAID-1 and RAID-5 Volumes
![Page 56: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/56.jpg)
56
Making Disk group Un-available
Deporting a Disk Group makes the disk group and its volume unavailable. This means that disk group and its objects can not be accessed. To resume management it needs to be imported.
When you deport the disk group you also have the option to rename to the disk group.
You also have the option to specify the new host, to which disk group will be imported next time.
Before deporting you need to unmount all the file systems lying under disk groupExample:
# umount /data# umount /data1# vxdg deport datadg
![Page 57: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/57.jpg)
57
Making Disk Groups Available
Importing a disk group re-enables the access to a deported disk group.
To move a disk group from one system to another system, it needs to deported on first system and then imported on to other system
You can rename the disk group while importing. Importing a disk group
# vxdg import datadg
Importing and rename# vxdg –n newdg import datadg
Import and temporarily rename# vxdg –t –n newdg import datadg
![Page 58: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/58.jpg)
58
Disk group Host-Lock
When a disk group is created, system writes a lock on to the disk group header. This lock is nothing but the value in hostname field of the disk group header.
The lock ensure that, dual-ported disks are not used by both the systems at the same time. If a system crashes, the lock remains on the disk group and it prevents the other machine from being imported.If you are sure that the disk group is not in use by other system, then the host lock can be cleared while importing the disk group.
Example:
# vxdg –Cf import datadg
The above command clear the host lock and forces the import.
![Page 59: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/59.jpg)
59
Moving Disk Group
![Page 60: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/60.jpg)
60
Destroying Disk Group
Destroying a disk group permanently removed the disk group from volume manager, and places all the disks in free disk pool. Volume and configuration information are removed.
Example:
# vxdg destroy olddg
![Page 61: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/61.jpg)
Technical Support Group Bangalore 61
Viewing DiskGroup Information
Vxdisk and vxdg commands Example:
![Page 62: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/62.jpg)
62
Viewing DiskGroup Information
Example:
![Page 63: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/63.jpg)
63
Viewing DiskGroup Information
Viewing Free Space
![Page 64: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/64.jpg)
64
Working With Volumes
What is Volume & Volume layout ?
Volume is made up of portions of one or more physical disks. Volume can provide greater flexibility, availability, and
performance than a single physical disk. Volume layout is based on the way plexes are organized to
remap the volume address space through which I/O is redirected at run time.
Each volume layout has their own advantages and dis-advantages
![Page 65: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/65.jpg)
65
VxVM Supported RAID Levels
RAID 0 - Simple Concatenation or striping
RAID 1 - Mirroring
RAID 5 - Striping with distributed parity.
RAID 0+1 - Adding Mirror to a concatenated / striped layout
RAID 1+0 - Mirroring occurs below the concatenation / striping
![Page 66: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/66.jpg)
66
Concatenated Layouts
![Page 67: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/67.jpg)
67
Striped Layout
![Page 68: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/68.jpg)
68
Mirrored Layout
![Page 69: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/69.jpg)
69
RAID-5 Layout
![Page 70: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/70.jpg)
70
RAID 0+1 ( Mirror-Stripe)
![Page 71: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/71.jpg)
71
RAID 0+1 ( Mirror-Concat)
![Page 72: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/72.jpg)
72
Creating Volumes (CLI)
The “vxassist” Utility
Syntax: vxassist –g <diskgroup> make <volname> length [attributes]
# vxassist –g datadg make vol1 50m # vxassist –g datadg make vol1 50m datadg01 # vxassist –g datadg make vol1 500m layout=stripe # vxassist –g datadg make vol1 500m layout=stripe
stripeunit=64k # vxassist –g datadg make vol1 200m layout=mirror disk01
disk02
![Page 73: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/73.jpg)
73
Estimating Volume Size
Before Creating a volume in a diskgroup, its necessary to estimate the volume size that is going to get created.
Example :
# vxassist –g datadg maxsize layout=raid5The above command estimates the maximum size of an raid5 volume that can be created.
# vxassist –g datadg maxgrow datavolThe above command estimates how much the volume (datavol) can be growed.
![Page 74: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/74.jpg)
74
Viewing Volume Information
Use # vxprint , for volume information
Example:
# vxprint –rht# vxprint –g oradg –ht
Options:-r ---Display layered volume information-h ---List hierarchies below selected records-t ---Print single line output records
![Page 75: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/75.jpg)
75
Vxprint Example
![Page 76: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/76.jpg)
76
Removing a Volume (CLI)
Syntax : vxassist –g <diskgroup> remove volume <volname>
Example One.
# vxassist –g oradg remove volume oravol1
Example Two.
# vxedit –rf rm oravolThe above command will complete remove all the underlying plexes and subdisks of the volume “oravol”
![Page 77: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/77.jpg)
77
Adding a Mirror Volume
Syntax : vxassist –g <diskgroup> mirror <volume name>
Example:# vxassist –g oradg mirror oracleThe above command mirrors the oracle volume
# vxassist –g oradg mirror oracle oradg01The above command mirrors oracle volume on to the disk oradg01
# vxmirror –g oradg –aThe above command mirrors all the unmirrored volumes in oradg
![Page 78: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/78.jpg)
78
Removing a Mirror
For example for the volume “datavol”, to remove the plex that contains the sub disk from datadg01 disk, execute# vxassist –g datadg remove mirror datavol !datadg01
For example, to remove the plex that uses any disk except datadg01# vxassist –g datadg remove mirror datavol datadg01
Other methods:# vxedit –g datadg –rf rm datavol-02 Where datavol-02 is the plex name.
![Page 79: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/79.jpg)
79
Logging In VxVM
Two Types of logging are supported in VxVM:Dirty Region Logging for mirrored volumesRAID-5 logging for RAID-5 volumes
DRL: This is used with mirrored volumes. This keeps track of the regions that have changed due to I/O writes to the volumes.Prior to every write a bit-map is written to a log to record the area of the disk that is being changed. In case of a system failure, DRL uses this information to recover only the portions of the region that has changed.
RAID-5: When you create a RAID-5 volume, a RAID-5 log is created by default. This is used for speedy resync of the volume, in case of a system failure
![Page 80: What is Veritas Volume Manager](https://reader035.vdocument.in/reader035/viewer/2022081417/56813a5b550346895da2527e/html5/thumbnails/80.jpg)
80
Adding a log (CLI)
You can add a log volume to only mirrored and RAID-5 Volumes
Example:To add a log to mirrored volume# vxassist –g datadg addlog datavol logtype=drl
Example:To add a log to RAID-5 volume# vxassist –g oradg addlog oracle
Note: VxVM automatically recognizes the RAID-5 Layout and add the log