Académique Documents
Professionnel Documents
Culture Documents
Draft v 1
Removing disks from the DISKS category .................................................................................... 62 Placing disks under VxVM control ..................................................................................................... 6 Changing the disk-naming scheme ................................................................................................. 64 Discovering the association between enclosure-based disk names and 0s-based disk names......64 Installing and formatting disks....................................................................................................... 65 Displaying and changing default disk layout attributes ................................................................. 6 Adding a disk to VxVM...................................................................................................................... 65 To initialize disks for VxVM use................................................................................................... 66 Reinitializing a disk ........................................................................................................................7 Using vxdiskadd to place a disk under controt of VxVM .............................................................. 72 Encapsulating a disk....................................................................................................................... 73 To prevent the encapsulation failing, make sure that: .................................................................... 73 To encapsulate a disk for use in VxVM ......................................................................................... 7 Rootability ........................................................................................................................................... 77 Booting root volumes ..................................................................................................................... 78 Boot-time volume restrictions ........................................................................................................ 7 Mirroring an encapsulated root disk .................................................................................................... 79 To mirror your root disk onto another disk ................................................................................... 79 Defining alternate boot disks.......................................................................................................... 80 Removing disks................................................................................................................................... 8 To prepare your system for the removal of the disk ....................................................................... 81 To remove the disk from its dish group.......................................................................................... 81 Removing a disk with subdislts ...........................................................................................................82 Renaming a disk .................................................................................................................................. 83 Reserving disks .................................................................................................................................... 84 Displaying disk information ................................................................................................................ 84
.'
,
4 '
..
Module 5: .............................................................................................................................................. Administering dynamic multipathing (DMP).......................................................................................... How DMP works................................................................................................................................. How DMP monitors 110 on paths ................................................................................................... Path failover mechanism ................................................................................................................. 110 throttling ................................................................................................................................... Load balancing ................................................................................................................................ Dynamic Reconfiguration ...............................................................................................................
Booting from DMP devices ............................................................................................................ 90 Disabling and enabling multipathing for specific devices.............................................................. 90 Disabling multipathing and malting devices invisible to VxVM ................................................... 90 Enabling multipathing and making devices visible to VxVM ........................................................ 92 Displaying the paths to a disk ......................................................................................................... 93 Administering DMP using vxdmpadm ................................................................................................ 95 Retrieving information about a DMP node .................................................................................... 95 Specifying the 110 policy ................................................................................................................ 96
99 99
Specifying a disk group to commands .......................................................................................... 100 System-wide reserved disk groups............................................................................................... 100 Rules for determining the default disk group............................................................................... 101
Displaying the system-wide boot disk group................................................................................ 101 Displaying and specifying the system-wide default disk group................................................... 101 Displaying disk group information ............................................................................................... 102 103 Displaying free space in a disk group ........................................................................................... Creating a disk group.................................................................................................................... I04 Adding a disk to a disk group....................................................................................................... 105 Removing a disk from a disk group.............................................................................................. 105 Deporting a disk group................................................................................................................. 107 Importing a disk group................................................................................................................. 109 109 To import a disk group................................................................................................................. Renaming a disk group................................................................................................................. 110 Destroying a disk group................................................................................................................ 111
Module 7:............................................................................................................................................ 12 1 Creating and administering subdisks..................................................................................................... 112 I 12 Creating subdisks .......................................................................................................................... Displaying subdisk information .................................................................................................... 113
Moving subdisks........................................................................................................................... 1 4 Splitting subdisks.......................................................................................................................... 114 Joining subdisks............................................................................................................................ 1 15 Associating subdisks with plexes ................................................................................................. 115 . . Assoclat~ng subdisks............................................................................................................... 117 log Dissociating subdisks from plexes ................................................................................................ 117 Removing subdisks....................................................................................................................... 118
Module 8:............................................................................................................................................ I 19 Creating and administering plexes ......................................................................................................... 1 9 Creating plexes ............................................................................................................................. 1 19 Creating a striped plex.................................................................................................................. 119 Displaying plex information ..................................................................................................... 120 Plex states..................................................................................................................................... 120 Plexes that are associated with a volume have one of the following states: ..................................... 121 ACTIVE plex state....................................................................................................................... 121 CLEAN plex state......................................................................................................................... 121 121 DCOSNP plex state...................................................................................................................... EMPTY plex state......................................................................................................................... 121 IOFAIL plex state........................................................................................................................ 121 122 LOG plex state............................................................................................................................... OF= INE plex state...................................................................................................................... 122 SNAPATT plex state.................................................................................................................... 122 SNAPDIS plex state..................................................................................................................... 122 SNAPDONE plex state ................................................................................................................. 122 SNAPTMP plex state.................................................................................................................... 122 STALE plex state.......................................................................................................................... 122 TEMP plex state........................................................................................................................... 122 TEMPRM plex state..................................................................................................................... 123 TEMPRMSD plex state................................................................................................................123 Plex condition flags........................................................................................................................... 124 IOFAIL plex condition ................................................................................................................. 124 NODAREC plex condition ........................................................................................................... 124
NODEVICE plex condition .......................................................................................................... 124 RECOVER plex condition ............................................................................................................ 124 REMOVED plex condition ........................................................................................................... 124 125 Plex kernel states............................................................................................................................... DETACHED plex kernel state...................................................................................................... I25 DISABLED plex kernel state....................................................................................................... 125 ENABLED plex kernel state........................................................................................................ 125 Attaching and associating pleses...................................................................................................... 126 Taking plexes offline .................................................................................................................... 126 127 Detaching plexes ........................................................................................................................... Reattaching plexes ........................................................................................................................ 127 I28 Moving plexes.............................................................................................................................. Copying plexes ............................................................................................................................. 128 Dissociating and removing plexes................................................................................................ 129
. .. . .
. . ... ..
Module 9:............................................................................................................................................ 130 Creating volumes................................................................................................................................... 130 Types of volume layouts ............................................................................................................... 130 Supported volume logs and maps ................................................................................................. 131 Creating a volume ............................................................................................................................. 132 Advanced approach...................................................................................................................... 132 To create a volume using the advanced approach ....................................................................... 132 Assisted approach ......................................................................................................................... I32 Using vxassist .......................................................................................................................... 133 Setting default values for vxassist ................................................................................................ 134 Discovering the maximum size of a volume ................................................................................ 135 Disk group alignment constraints on volumes .............................................................................. 135 Creating a volume on any disk ..................................................................................................... 3 136 Creating a volume on specific disks...................................................................................... Specifying ordered allocation of storage to volumes................................................................... 138 Creating a mirrored volume.......................................................................................................... 141 Creating a mirrored-concatenated volume .................................................................................... 141 Creating a concatenated-mirror volume ....................................................................................... 142 To create a volume with an attached DCO object and volume ................................................... I42 Creating a striped volume ............................................................................................................. 143 Creating a mirrored-stripe volume ................................................................................................ 144 Creating a striped-mirror volume ................................................................................................. 144 Mirroring across targets, controllers or enclosures....................................................................... 144 Creating a RAID-5 volume ........................................................................................................... 4 Creating tagged volumes.............................................................................................................. 146 Creating a volume using vxmake ................................................................................................. 147 Creating a volume using a vxmake description file...................................................................... 148 Initializing and starting a volume ...................................................................................................... 149 Initializing and starting a volume created using vsmake ............................................................. 150 Accessing a volume ...................................................................................................................... 150 Module 10:......................................................................................................................................... 151 Administering volumes.......................................................................................................................... 151 Displaying volume information .................................................................................................... 151 153 Volume states....................................................................................................................................
. .
.
. .-
ACTIVE volume state.................................................................................................................. 153 CLEAN volume state.................................................................................................................... 153 EMPTY volume state................................................................................................................... 153 INVALID volume state................................................................................................................ 153 NEEDSYNC volume state............................................................................................................ 154 REPLAY volume state ................................................................................................................. 154 SYNC volume state...................................................................................................................... 154 Volume kernel states......................................................................................................................... 154 DETACHED volume kernel state ................................................................................................ 154 DISABLED volumekernel state............................................................................................ 154 ENABLED volume kernel state................................................................................................... 155 Managing tasks with vxtask .............................................................................................................. 155 155 vxtask operations.......................................................................................................................... Using the vxtask command........................................................................................................... 156 Stopping a volume............................................................................................................................. 156 Putting a volume in maintenance mode ............................................................................................ 157 157 Starting a volume ............................................................................................................................... Adding a mirror to a volume ............................................................................................................. 158 Mirroring all volumes ........................................................................................................................ 158 Mirroring volumes on a VM disk...................................................................................................... 159 Additional mirroring considerations ................................................................................................. 160 To create a mirror under any of these scenarios........................................................................... 160 Removing a mirror ............................................................................................................................ 161 Resizing a volume ............................................................................................................................. 162 Resizing volumes using vxresize .................................................................................................. 163 Resizing volumes using vxassist .................................................................................................. 164 164 Extending to a given length .......................................................................................................... Extending by a given length ......................................................................................................... 164 Shrinking to a given length ........................................................................................................... 165 Shrinking by a given length .......................................................................................................... 165 Resizing volumes using vxvol ...................................................................................................... 165 Setting tags on volumes ................................................................................................................ 166 Changing the read policy for mirrored volunes ............................................................................... 167 168 Removing a volume ...........................................................................................................................
Module 11:......................................................................................................................................... Administering hot-relocation ................................................................................................................. How hot-relocation works............................................................................................................ Partial disk failure mail messages................................................................................................. Complete disk failure mail messages ........................................................................................... How space is chosen for relocation ..............................................................................................
169 169 170 173 174 174 Configuring a system for hot-relocation ....................................................................................... 175 Displayingspare disk information ................................................................................................ 175 Marlting a disk as a hot-relocation spare...................................................................................... 176 Removing a disk from use as a hot-relocation spare.............................................................. 177 Excluding a disk from hot-relocation use..................................................................................... 178 179 Making a disk available for hot-relocation use............................................................................. Configuring hot-relocation touse only spare disks.......................................................................180 Moving and unrelocating subdisks ............................................................................................... 180 Moving and unrelocating subdisks using vxdiskadm ................................................................... 181
Moving and unrelocating subdisks using vxassist .................................................................... 182 Moving andunrelocating subdisks usingvxunrcl~ .. ............................................ 182 Moving hot-relocated subdisks back to their o r i g ~ i~ l ~ , ........................................... 183 Moving hot-relocated subdisks back to a different disk .............................................................. 183 Forcing hot-relocated subdisks to accept different offsets.......................................................... 183 Examining which subdisks were hot-relocated from a disk......................................................... 184 Restarting vxunreloc after errors ................................................................................................. 185 vxunreloc moves subdisks in three phases: .................................................................................. 185 Modifying the behavior of hot-relocation ..................................................................................... 185
... ...... .
Module 12:......................................................................................................................................... 186 Recovery From hardware failure............................................................................................................ 186 Listing unstartable volumes.......................................................................................................... 187 Displaying volume and plex states ............................................................................................... 187 188 Understanding the plex state cycle............................................................................................... Recovering an unstartable mirrored volume .................................................................................190 Recovering an unstartable volume with a disabled plex in the RECOVER state........................ 190 Forcibly restarting a disabled volume ........................................................................................... 191 Clearing the failing flag for a disk................................................................................................ 191 Reattaching failed disks................................................................................................................ 192 Failures on RAID-5 volumes ........................................................................................................ I93 System failures.............................................................................................................................. I94 Disk failures.................................................................................................................................. 194 Default startup recovery process for RAID-5........................................................................ 196 Recovering a RAID-5 volume ...................................................................................................... 196 Parity resynchronization ............................................................................................................... 197 Log plex recovery ......................................................................................................................... 198 Stale subdisk recovery .................................................................................................................. 198 Recovery after moving RAID-5 subdisks..................................................................................... 198 Starting RAID-5 volumes............................................................................................................. 199 Unstartable RAID-5 volumes....................................................................................................... 199 200 Forcibly starting RAID-5 volumes............................................................................................... Recovering from incomplete disk group moves........................................................................... 201 Module 13:......................................................................................................................................... 203 203 Recovery from boot disk failure............................................................................................................ Possible root, swap, and usr configurations .................................................................................. 203 Booting from alternate boot disks................................................................................................. 204 The boot process on SPARC systems........................................................................................... 205 Hot-relocation and boot disk failure............................................................................................. 205 Unrelocating subdisks to a replacement boot disk .......................................................................206 Recovery from boot failure........................................................................................................... 206 Boot device cannot be opened ...................................................................................................... 207 Cannot boot from unusable or stale pleses ................................................................................... 207 Invalid UNIX partition ................................................................................................................. 208 Incorrect entries in /etc/vfstab ...................................................................................................... 209 Damaged root (I) entry in Ietclvfstab ............................................................................................ 209 Damaged Iusr entry in Ietclvfstab ................................................................................................. 209 Missing or damaged configuration files....................................................................................... 210 Restoring a copy of Ietclsyste~non the root disk .......................................................................... 210
... ..... . .
Copy of letclsystem is not available on the root disk ................................................................... 211 Repairing root or Iusr file systems on mirrored volumes ............................................................. 212 212 Recovering a root disk and root mirror from backup tape ............................................................ 215 Re-adding and replacing boot disks.............................................................................................. Re-adding a failed boot disk......................................................................................................... 215 Replacing a failed boot disk ......................................................................................................... 216 217 Recovery by reinstallation ............................................................................................................ General reinstallation information ................................................................................................218 Reinstalling the system and recovering VxVM ............................................................................218 Prepare the system for reinstallation ............................................................................................. 219 219 Reinstall the operating system ...................................................................................................... Reinstall VxVM ............................................................................................................................ 219 219 Recover the Veritas Volume Manager configuration ................................................................... 221 Clean up the system configuration ............................................................................................... 221 Clean up Rootability ..................................................................................................................... Clean up Volumes......................................................................................................................... 221 Clean up Disk Configuration ........................................................................................................ 224 Reconfigure Rootability ................................................................................................................ 225 Final Volume Reconfiguration ..................................................................................................... 225 Start up hot-relocation .................................................................................................................. 226
230
(DMP) metade\rice
This guide iutroduces yon to the VxVM colmauds wllic11 are used to cany out the tasks associated with VxVM objects. These c o m ~ u a ~ are s ~ d described on the relevallt ~nauual pages and in the cl~apters of this guide where VxVM tasks are described.
VxVM relies or1 the follo\vh~g coustautly-r~ruuiug daemons and ke111el threads for its operatiou: vxcodgd-The VxVM coifigi~ratioudaemou maiutaius disk and group conf g~~ratious 'aud comtllicates c o u i i g ~ ~ a t i changes to the kernel, and ulodifies coufigirration iufoilnation stored on on disks. vxiod-VxVM 110 kermel threads provide extended I10 operatious tvitltoot blockulg calliug processes. By default, 16 110 threads are started at boot t h e . and at least oue I/O thread most coutiuue to nru at all times.
m vxrelocd-The hot-relocation dae~nou inouutors VxVM for eveuts that affect reduudaucy. aud perfo~vls hot-relocation to restore reduudaucy.
I...
I;hangvr i n path fro^:: !.)MIi s!o(le r,> slor a)?:?art. au:cr~>~aticollv ci~~lcrit~!?~cd :~i~i~~laisrc~:l :i11t; ~
Typical device names are of the foim c#t#d#s#, wbere: c# specifies the controller t# specifies the t a r g t LD d# specifies the disk s# specifies the partition or slice The following figure shows how a physical disk and device name (devname) are illustrated i this n docuineut. For example, device ilallle cOtOdOs2 is the elltire hard disk couuected to controller ui1~7ber 0 in the system, with a target JD of 0, and physical disk number 0. F'k.ysir?i disk exampie
Device discovery
Device discovely is the tenu used to describe the process of discovering the dislts that are attaclied to a host. This feature is importaut for DMP because it needs to suppo~t growing number of disk arrays a from a 1111mberof vendors. III conju~i~ctiou the ability to discover the devices attached to a host, t l ~ e wit11 Device Discovery service euables you to add support dy~~au~icallynew disk arrays. This operation, for which uses a facility called the Device Discovery Layer (DDL). is achieved without tlie ileed for a reboot. This meaus that you can dyllalllically add a new disk array to a host, and rm1 a command which scans the operating systenl's device tree for all the attached disk devices, aild recollfigu~res DMP wit11the new device database.
Enclosure-based naming
Enclosure-based ilalllii~g provides an alternative to the disk device 11a111iilg described in previous pages. This allows disk devices to be uaiued for enclosu~res ralher than for the co~~trollers througl~\vllich they are accessed. Iu a Storage Area Network (SAN) that uses Fibre Channel hubs or fabric switches, infonnatio~~ about disk locatioi~ prolided by the operating systen] 111ay not c o ~ ~ e c tu~dicate ly the physical location of the disks.
u For example, c#t#d#s# 11ami11gassigns controller-based device names to disks i separate enclosures allows VxVM to access that are co1111ectedto the same host controller. Enclosure-based nan~iilg enclosiues as separate pllysical entities. By configu~iing redimdant copies of yoiir data on separate er~closores, yoti c a l safegi~ard against failure of one or more enclosures.
F ~ b rChannel hub r
br switch
MMMM
In such a coufiguration, enclosore-based namiug cau be used to refer to each disk witllin an enclosore. For example, the device llallles for the disks in euclosure encO are nalned enc0-0. encO-I. and so on. The maiu beuefit of this scheme is that it allows you to qidckly dete~lili~le where a disk is physically located in a large SAN configirration. Note: I11 illally advauced disk arrays, you call use hardware-based storage i l ~ a ~ ~ a g e ~tol represent l ei~t several physical disks as one logical disk device to the operatulg system. Iu such cases, VxVM also sees a single logical disk device rather thau its co~llpoueut disks. For this reason, when reference is made to a disk w i t h an enclosirre, this disk may be either a physical or a logical device. Another impoitaiit benefit of et~closure-based naming is that it enables VxVM to avoid placiug reduudant copies of data hl the same enclosure. This is a good t11ing to avoid as each e~~closure be call considered to be a separate fault domain. For example, if a mirrored volume were configured only on the disks in enclosirre encl, the failure of the cable betweell the hub and tlre enclosirre would lllake the entire volml~e unavailable. If required, you car) replace the default llallle that VxVM a s s i p s to an ei~closure with one that is more ~ u e a ~ ~ i ~to g f i i l coufigoratiou. ~ your In High Availability (HA) coufigurations. reduudant-loop access to storage can be implemented by collllectiug iudependent co~~trollers the host to separate hubs with iudepelldeut paths to the on enclosures as show11 iu the followiug figure.
Disk en:lur.r~res
Such a colfig~~ration protects agaiilst the failure of oue of the host con&ollers (cl aud c2), or of the cable between the host md one of the hubs. lu this example, each disk is l i u o w by the same name to VxVM for all of the paths over which it call be accessed. For example, the disk device euc0-0 represents a siugle disk for ~ c two diffel,entpaths are liuowu to the operating system, st~ch h as clt99d0 and c2t99d0. To take accouut of fault domains when collfiguriug data redimdancy, you call coutl.ol how ~ n i r ~ o r e d volumes are laid out across enclosures.
Virtual objects
Vh-hlal objects in VxVM include the following: Disk groups VM disks Subdisks Plexes Volumes The couuectiou betweeu physical objects and VxVM objects is made when yon place a physical disk umder VxVM control. After iustalliug VsVM on a host system, you must briug the contents of physical disks tluder VxVM control by collecting the VM disks iuto disk groups and allocating the disk group space to create logical volumes. B ~ h g i u g contents of physical disks under VxVM control is accomplished ouly if VxVM takes the control of the physical disks and the disk is not tmder control of mother storage manager such as Sun Microsyste~ns Solaris Volt~me Manager sofhvare. VxVM creates vimral objects and makes logical col~uectiolls between the objects. The virtoal objects
are theu used by VxVM to do storage managemeut tasks. Note: The vxpiiut comlllaud displays detailed iufollilation on existu~lg VxVM objects.
Yo101
I I
lV101-01
uolOl -GI
I disk01-01 I
i
i
disk0l-01
diskOl
i Disk grcltlp
~"..""w~.".\.". ,~A"~.,~"*"..." .~".~"~"~"~~A".
devna!:~;
Pl~ysical 1:lisks
The various types of vilhlal objects (disk groups, VM disks, subdisks, plexes and volu~nes) are desc~ibed the followiug sections. Other types of oljects exist in Veritas Volume Manager, such as ~I I data cl~ange objects (DCOs). aud cache objects, to provide extended fumctionality. These objects are discussed later ui this chapter.
Disk groups
A disli g o u p is a collection of disks that share a colnluou configuration. and which are managed by co~~figu~ration set of records with detailed info~~uation is a about related VxVM VxVM. A disk grou~p objects, their attributes, and their connections. A disk group name can be up to 31 characters long. 111releases prior to VxVM 4.0, the default disk group was rootdg (the root disk group). For VxVM to fimction. the rootdg disk grou~p to exist and it had had to contaiu at least one disk. This requiremeut uo longer exists. aud VxVM can work without ally disk groups co~~figu~red (althougl~ must set up at least one disk group before you call create any you vol~uues otherVxVM objects). of
Yon c m ~ create additional disk groups when yon need them. Disk groups allow yo11 to g o ~ disks into p logical collections. A disk group and its conipo~lents be moved as a unit fio111one host machine to can another. The ability to lllove whole voliunes and disks between disk groups. to split \vlvhole voluuues and disks between disk groups, and to joiu disk groups is provided by VXVM 5.0 Volunles are created withiu a disk group. A given volume and its plexes aud subdisks must be configured fiom disks in the same disk group.
VM disks
When you place a physical disk under VxVM control. a VM disk is assigned to the 1,hysical disk. A VM disk is under VxVM conh.01 and is usually in a disk group. Each VM disk conesponds to at least disk or disk partition. VxVM allocates storage fiom a contiguous area of VxVM disk one space.
A VM disk typically iucludes a public region (allocated storage) aud a small private region where VxVM internal colfigi~rationh f o ~ ~ n a t i o n stored. is
Each VM disli has a u~uque disk media name (a virtual disk name). You call either defme a disk name of up to 3 1 characters, or allow VxVM to assign a default name that takes the f011u diskg~.oup##, where diskgroup is the uame of the disk group to which the disk belongs. The following figure shows a VM disk with a media name of disk01 that is assigned to the pl~ysical disk devuame.
;Physir:al disk
" 0
0" 1
dOII
'SySIpqnS rnd t v
(.ys!p IW!S<II~ arro 01 patG!sse s! ys!p NA a q l ) .sys!pql~saa.rql q l qs!p MV\ m o r [ s a11129Sqwonoj aql'qsIp ~ U J O SIIO!LIO~ aules ag) aregs .lo d e l ~ a ~ o )omre:, sys!pqns lnq 's>[s!pqus a[d!l111rn maloo3 me3 qsrp rn v
y Qrpqnsauo I ~ ~ I I ' Y~ % I ~ y h . ~
rn aq1 no p!pqus
.sSuolaq ys!p at11 r p ! r p 01 dn0.15 qs!p aqljo amerr arlls! dno.Gqs!p a.rar[M '##-##d~~o.rZp!p ys!pqns e ,103amen IIuejap at11 pue ##dl~o.rSqs!p qsrp MA e JOJ amen quejap aqL s! s! .ys!p [e3!s.<rId e JO no!Sa.~q 3 a d s e 01 paddetrr s! I I ~ ! ~ M MA e JO IIO!UO~ 3gpads e slnasa.rda.1 .ys!p ys!pqns r13e3 'sys!pqns a,rorn .lo ano olm pap!,\!p aq rre3 ys!p MA v ,sys!pqns Zmsn a3eds qs!p sale3olI"AxA 'ys!p arl) no a ~ d s j jnrn e s! ?1301qv . s ~ o [ q S I I O I I ~ ! ~ ~ O ~)as e S! qs!pqu~sv o ys!p JO
Plexes
VxVM uses subdisks to build virtual objects called plexes. A plex collsists of one or more subdisks located on one or Inore physical disks. For example, see the plex volOl-01 shown in the following figure.
Plex with
t~vic::r ssubd~sks
You cau organize data on subdisks to foul11 a plea by using the follow in^ methods: co~~catenation striping (RAID-0) mi~~oring (RAID- I ) striping wit11 parity (RAID-5)
Volumes
A volume is a vi~?ualdisk device that appears to applications. databases, and file systems like a physical disk device. but does not have the pllysical limitations of a physical disk device. A volume co~~sists one or lllore plexes, each holding a copy of the selected data in the vol~une. of Due to its virtual nah~re, voluu~e uot restricted to a pallicular disk or a specific area of a disk. a is
The configuration of a volume can be changed by using VxVhl user interfaces. Co~lfigurationchanges can be accomplished witho~~t causing disruption to applications or file systeu~s are using the that volume. FOI.example, a vol~une be mirrored on separate disks or moved to use different disk cau storag. Note: VxVM uses the default naming conventio~ls vol## for volumes and vol##-## for plexes in a of volu~ne. ease of administration, yon cau choose to select more meani~lgful For nan~es the volumes for that yo11 create.
A \u~tuur: ,mn\
Its name can , ~ L . . L I I ~ up to 3 1 characters. .It can consist of up to 32 plexes, eacln of which contains oue or more subdisks. .It mnst have at least o~ne associated plex that has a complete copy of the data in the volume with at least one associated subdisk. All subdisks w i t h a volume must belo~lg the same disk group. to
Note: You c w use the Veritas Intelligent Storage Provisioning (ISP) feature to create and a d ~ ~ ~ i n i s t e r applicatiou volumes. These volumes are very siuular to the traditional VxVM volumes that are described in tllis chapter. However, there are siqifica~lt diffel.ences between the fiunctionality of the t. . I (\,pes of volume that pre\.ent them fiom being used i~nterchangeably.Refer to the Veritas Storage : I.ui~itd:~iiou Iutelligent Storage Provisioning Ad~~ilistrator's Guide for more ulfonnation about creating and adllliuistering ISP application volumes.
vo10 1-01
~IQX
Differeut v o l ~ u ~layouts each provide different levels of storage service. A volume layout cau be le configlu.ed and recolfigmed to ~ilatcli yal-ticdar levels of desired storage sen ice.
underlying volumes must nlap to VM disks, and hence to attached physical storage. Layered volt~nles allow for more coiiibi~latio~ls logical compositions, solne of which inay be of desirable fox cofigl~riug vu-tual device. Became pei.luitting fiee use of layered volt~mes a th~,ougliot~t the couunand level would have resulted in lmwieldy adillinish.ation. solne ready-made layered volume cotlfigurations are designed illto VxVM. These ready-made configurations operate with built-ul rules to automatically match desired levels of is service within specified coustrahts. The automatic cod~gul.ation done on a "best-eff01-t" basis for the cuweut command hvocatio~i working against the culrent coutig~uration. To achieve the desired storage service fiom a set of v u h ~ adevices, it iilay be necessary to include an l appropriate set of VM disks into a disk group, aid to execute nl~iltiple coufiguration commands. To the extent that it can. VxVM handles i~iitial configi~ratioii on-line re-co~lftgul.ationbit11 its set of and layouts and admiuistration interface to ~uake job easier and Inore detennhustic. this
Layout methods
Data iu virtual objects is organized to create volr~mes using the following layout methods: by Collcate~latio~~ spanniug and Striping (RAID-0) Mhroriug (RAID-I) Striping plus mirroring (mi~rored-stripeor RALD-O+l) Mirroring plus striping (striped-minor. RAID-1+0 or RAID-10) RAID-5 (striping with parity) The following sections describe each layout method.
The followiug figwe sl~ows coucate~~atio~i subdisks from the saule VM disk. The blocks n, the of two u+l, n+2 and n+3 (numbered relative to the start of the plex) are contiguous on the plex, but actually colue from two distinct subdislis on the same physical disk.
diskol-Ul
Data in
Phys~cal disk
Tl~e remaiuiug free space iu the subdisk, disk01-02. 011 VM disk, diskO1, can be put to other uses. subdisks when there is ins~~fficient contiguous space for the You c w use concatenation with ~ll~rltiple plex on any one disk. This folu~ concatenation can be used for load balmciug between disks, and for of head movelllellt optiulizatiou on a particular disk.
.saw .ralllo ot tud aq tw3 ~ o y s ! p qs!p KA no Z O - Z O ~T S !P ~ I I S at[) ~nmuds aay 8rr!rr!etra.r aqL S!~
Striping (RAID-0)
Stripiug (RAID-0) is useful if you need large amounts of data witten to or read from physical disks, and perfo~uiance iuiportalt. Stripung is also helpfill in balaucing tlie VO load from molti-user is applicatious across multiple disks. By using parallel data transfer to aild from multiple disks, stripiug siguificwtly improves data-access perfol~nauce. Shipiuz maps data so that the data is interleaved among two or more physical disks. A striped plex contaius two or more subdisks, spread out over two or more physical disks. Data is allocated alte~uately and evenly to the subdisks of a striped plex. The subdisks are grouped into "colu~ilus."with each physical disk limited to olie colomn. Each collunn coutahns one or more subdislis and call be derived from one or Inore physical disks. The number and sizes of subdisks per columu call vary. Additional sobdisks can be added to colmm~s, necessaly. as Cantion: Stripiug a volmne, or splitti~ig volume across lll~~ltiple a disks, iucreases tlie chance that a disk failure will result in failure of that volume.
If five voluines are striped across the sainie five disks. then failure of any one of the five disks will require that all five vol~uines restored froui a backup. If each vollime is on a separate disk, only one be volume has to be restored. (As a alternative to stiiphig, use m i ~ ~ o r i n g RAID-5 to substantially n or reduce the cliauce h a t a single disk failure results in faillwe of a large nlumber of volu~mes.)
Data is allocated h equal-sized tunits (swipe units) that are i~lterleavedbetween the colmmls. Each n stripe uuit is a set of coutig~~ous bloclis on a disk. The default stripe w i t size (or width) is G4 liilobytes.
For example. if there are three colu~~nus a striped ples aud six stripe wits, data is striped over tile iu t h e e colums, as illustrated iu followiug figwe.
Stripe I Stripe 2
SU = stripe unit
A sh-ipe co~~sists the set of shipe 111lits the sallle positious across all coiumns. h the figure. stripe of at L I I U ~ S 2, and 3 co~lstittite single shipe. 1, a
Stl.ipiilg coiitiill~es the length of the colunuis (if all c o l u m ~ are the s a u e length), or until the elid of for s k the shortest columu is reached. Ally space remaining at the end of s ~ ~ b d i s inslonger coltuuns becomes urnused space. The followiug figwe shows a striped plex with t h e e equal sized, single-subdisk columus. There is one col~unu physical disk. This example shows t h e e subdisks that occupy all of the space on the VM per disks. It is also possible for each su~bdishn a striped plex to occupy oiily a poi-tioii of the VM disk, i which leaves free space for other disk ma~iagement tasks.
. ..
Stlipe units
, ," ,X .I
," ,
, ,
,.*... ~. . .\
,...
, ,
, .
~.\<, . ,.
-..
S~.rlsdkks
VM disks
dis kD3
Physitxf disks
'sys'p WA !na.Iag!p mog syslpqns melno:, osla nag strum103 .(pasaa.~:,ys! x a ~ d arpjo az!s arpj! 'aldmsxa ~ o j ys!p .Iarpous m o g .lo ys!p amss attljo sno!8a.1 pa.~ajj!p mog a x d s a!s:,o~ls o! alq!ssod osla ) s! 11 . S S O pad!.r!s Brl!aq sys!p UA aqljo tpsa mo.g ys!pqns al8ms s 'on!su Lq pa~aa.~:, m:, saxald .~ aq padl.11~ 'ys!p ~s:,!sLqd ad rrrunlo:, ano s! a.laq1 .sys!pqnsjo .Iaqnrlin lua.rag!p s su!s!noo nmnlo:, q3sg 'sazls !na.lagpjo syslpqns Sn!rr!sjr103 sum11lo3aa.ni) 1 l 1 xald pad!qs s saqs.qsnlp a.mSg SU!MO~~OJ1 ~ ag
.atrrnlo~\ paletrajsotroo-pa.ro.~tm parma) s s! arrmloi\ at[) 'palsoaleonoo [la a.ts d a r l l j ~ 'attnilo,\ ad!.r)s-pa.rorr!nr s pam.lal ~l!)ss! anlnloA arlj 'pad!.qs s! ano Lpoj! ua;\a .pad!.r~s.lo palenajsonoo aq us3 .IO.LIFs II! sasald slep aqljo ad& jnoLel a t n
.anmioh ad!.~ls-pa.~o.rrp alea.ro 01 amnloA ames aql 01 s . ~ o . ~sep e r paqosue als 'sys!p aa.rql sso.r3e padrrls [pea 'saxald OMJ a l a r p aldrosxa m s ~ o r l a.111SgZtyqloj arlL s q s ! p a)e.tsdas m0.q pa)soo[paq jsntn S.IO.LI!~pus xald padt.4~ 'ayjoajja aq 01 Srt!d!.r)s a,\oqs B m . ~ o . ~JOJ s]! arli ty
.anrnloi\ parmeds .lo pad!.rls s j o (&!g!qel!e~e p m ) ,Q!~qega.~y ano.~dnr! Smro.u!ra .lap!snoo plnoqs uob a 04 &qS!tl.A1qsuosuaars! Brr!l!y sys!p Is.rahas j o luo anojo pooq!laT!l aqj asneoaa .alqssllml xald a.l!lua arl) aynn uao sqs!p asotl)jo atlo Ane j o a.m[!g 's-\~s!p ,raqmnrl aBra1 u s s 0 . r ~ jo Srr!trwds .LO Brt!d!.~js n a r m
.s.ro.rrpt papagem1 aqj Sn!sn ajslado 01 sa11m)noo nwrsZs arll jnq 'a1qq!b\srn1 samooaq qs!p p a l y aq) no xald aq) 'aml!ej qs!p p!sLqd e ~ Inaha o ag) "1 a[,:1110.\ q pat~!s)ao:, rlo!)erruojn! aqj aleo!ldlip o) (saxaid) s . ~ o . ~a[d!llnrrl sasn E~II~IO.LI!N ry
.mt~oloo rpea jo paalsu! Klpr~p!,\!pn! pa.lo.Lrp1 aq [re:, ys!pqr~s rpea .m~rnloo sxs!pq~ls .[ad ald!llnm ale a.IatgjI .ad!.~)sarlljo rrrrm~oo rlosa s.ro.rpm So!d!.rls Molaq BII!.IO.L~~ Brl!~li~ 'l110be[ .ro.Lv - p a d ~ e palla3 s! 1noXel pamqrno3 s!ru .SII?IO.LI!~~I Srqdys j o no!letnqmo3 aq) s ~ o d d ~ ~ sx ~s aAoqe ~
'no!leoola.r -joq Lq JO Llle~lnenr .~ar[l!a'paoe1da.r naaq seg ystp p a p j js.11~ a.rojaq p q ys!p pnooas e p111oqs at11 . r a ~ ~ l Q o ~ l ~ Ino sli1c1 Sn!aq 04 alquaarrllu a.loru s! arrrnlo~y ?a ~~~o adgs-pa~orr!m s 'Llleno!l!ppv .pa.rahooa.t nn nl ~ n a arnnloh aqljo rro!&rod e All10 'paoelc1a.1S! ys!p aqj rlarm .K3nep1mpa.r sasol amnloh x ~ . ,%: 'parpelap acl jst ~ ! ~ I S11!le3 aq) L ~ U'O IS! 111oKe[ .~o~l!ur-pad!qs s p q e at11 , -ar...-,.. . . . , : I : J ~ ~ I I S e aye) rle:, xald aqlna aql S m . r a ~ o ~ .alep oj dn p1Suo.rq aq 1s11m aa ys!:: ... . , ; xal': a.IyL!:; 'r*aql'La.l s! qs!p aql [ l a m 'anllqoh a.r!~rra avl rro Lonepnnpa.1Sursol Lqa~ar~j slap 'xa~d a.qna ne saq~elap lnoLel adys-pa no.^^ e n ys!p e j o a.ll~,!cj 'a.111Zg B~++io~~oj m m o q s s v ! aqj aql
3T :: 7.
use RAID-5 volumes can additioually perfolul logging to uliuilnize recovery time. RAID-5 volu~ues RAID-5 logs to keep a copy of the data aud pxity curreutly beiug written. RALD-5 logging is optio~~al aud call be created alor~g wit11 RAID-5 v o l ~ m ~ or added later. es
.az!s ~ e n b a j o o) smo.1 p w 'smnnlo3 syslp aq 11" sar!nba.r Ks.rre~o adb) s!rl~.no os pus 'sys!p 0 M O arl) sso.13ead!.~pp.r!q) ail) naq) '[ hiox m syslp ~ arI) sso.13e ad!.~lspoo2as ail) crag) '0 MOX m sys!p ail) ss0.13e ad!.qs )s.~g Zi~!KlddeKq paqs!ldmo33e ail) s! Zu!d!.qs .awlllo3 .lad SMOJ a,rotn B q p e K ~ L M O spoddns a.mpn.qs de.ue leoo!)!pe.q s u q IB
.. . .
~
.Kerre g - m 1wo!)!pe.u a j o )rramaSue.rra trmnlo3 pne MO.I s ~ o q am89 S n ~ o l l oarK .ad!.qs ,Q!.~ede j o t p p p 1111~ troddrls 03 aq) s j aq) K.ressa3an syslp j o .raqmnn leirmrp aql s! ,NO.[v 'Ke.na atp m oo!l!sod leo!p.ro amas arp n pa)s3o[ syslp ! j o laqtunu a s! tmm[o3 y .snmnIoo pne sMor II! paz!neZ.ro sys!p [s.ra.\as s! Ke.~raS-rn 1mo!)!pe4 v
.safiqo1!~91 s! az!s Inn1 ad!.qs lIItqap arll ' E - ~ .IOJ .rrrr~~tloo ,103pasti ale sl!rrn ad!.rls pazls-lertbg .snrntiloo aq) W qoea JO 11final arll ,103 no os prle 'lerll Molaq ad!qs .1arllorw Bn!hldde rrarll 'rnrrtiloo rpea 30 do1 aql le ys!pqtts q3w sso,roe a d y s ls.rg arp fmL1dde bq palrrarr~aldrn! fmd!.rl~'L~essaoan s m r ~ ~ i ~ o o pappe s! se arllol aq neo sys!pqtis leno!l!ppv 'syslp [eo!sdr~dlua.rag!p rr1o.g pai\rrap aq rwo nunqoo nai\!B e LI! sys!pqtis aqL ~sys!pqtisjo.raqmnu lna.Iag!p e j o ls!snoo 01 x a ~ d - m q o rmuiloo qoea sMo[[e I / ~ A X A s
2 edr11~ F ailyi~
ys!p 1230 ea.w og!oads e slnasa.1da.r ys!pq~tsrloq .a.rtiZg BII:NO[~OJ IF m o q s se sys!pqtis r@rra[ alqe!.Iei\jo fn!~s!snoo aql smmiloo sasti m x , j 'puaalsq .si\zo.t asti Ion saop ~ x , 'spafqo .Iaqjo pne sys!p ss,!jo altijerI1"'4"!~aql j 01 a n a .a.rtqotulrls leno!l!peq aqj ~xrog srajyp . l a B e ~ m ~ aurnIoA sel!.raA n artwnrjs Lena S-W ! aqL
Left-symmetric layout
There are several layouts for data and parity that L , I ~ Ibe used in the sehlp of a RMD-5 array. The illlple~ne~ltatiou RAID-5 UI VsVM uses a left-symmetric layout. This provides optillla1 performance of for both raudom 110 operatious aud large sequential I/0 operatious. However, the layout selectio~l is as are ~s not as critical for perfo~lna~~ce the nmnber of c o l u m ~ aud the stripe unit size. Left-syuuuetric layout stripes both data aud parity across coluuu~s, placing the parity iu a different col~uuu every stripe of data. The fust parity stripe twit is located iu the ~ight~nost l u u of the fnst for co stripe. Each successive parity stripe twit is located in the next stripe. shifted left one co1tu1111 from the previous parity stripe ~nlit locatiou. If there are more stripes thau CO~LUIIIS, parity stripe uuit the placement begins ~ I the rigl~truost I colul~lu agaiu. The following figure shows a left-symmetric parity layout with five disks (one per column).
1 For each stripe. data is organized startiug to the right of the parity stripe unit. I 1 the figure, data orgauizatio~~ the first stripe begins at P and contiuues to stripe ~mits for O 0-3. Data orgauizatiou for the seco~ld stripe begins at PI. then conti~lues stripe ~ u u4. and on to stripe muts 5-7. Data organization to t proceeds iu this manuer for the renlahliug stripes. OR on Each parity stripe unit contains the result of an exclosi\~e (XOR) operation perfo~lned the data in the data stripe uuits \iithin the same stripe. IFone coltumn's data is h~accessible to hardware or due software failure, the data for each stripe call be restored by XORing the conteuts of the re~uaiuing col~unus data stripe units agaiust their respective parity stripe twits.
For example, if a disk co~respondulg the whole or part of the far lef column fails. the volurne is to placed iu a degraded mode. While i degraded mode. the data fiom the failed col\~ruu be recreated u cau by XORiug stripe uuits 1-3 agaiust parity stripe uuit PO to recreate stripe ~ulit theu XORiug stripe 0, mlits 4, 6 , aud 7 agaiust parity stripe unit P1 to recreate stripe uuit 5, and so ou.
RMD-5 logging
Loggiug is used to preverlt corru~ption data during recovery by immediately recording changes to of data and parity to a log area on a persisteut device such as a volume on disli or UOII-volatile RAM. The uew data and parity are the11 witten to the disks. Without loggiug, it is possible for data not iuvolved ul any active writes to be lost or silently col~i~pted if both a disk iu a RAID-5 volume aud the system fail. If tlus double-failure occi~rs. there is no way of knowiug if the data being mitten to the data portious of the disks or the parity beiug written to the have actually been witten. Therefore, the recovery of the cor~upted may be disli parity po~-Iions corrupted itself. The following figtire illr~strates RAID-5 volulne co~lfigi~red a across three disks (A, B aud C). Iu this volume. recovely of disli B's co~lllpted data depends on disk A's data aud disk C's parity both being complete. However, only the data write to disk A is complete. The parity write to disk C is incomplete. which would cause the data OII disk B to be reconstructed inco~rectly.
tfatn write
Completed
/,. - .
Inr:omplete
--.
... . .
---.
.........................
__
-..
._I,-__-- __-
This failure can be avoided by logging all data and parity writes before comulitti~lgh e ~ n the allay. t to 1 1 tllis way, the lo? call be replayed. causing the data aud parity updates to be completed before the 1 recoustructior~ the failed drive takes place. of Logs are associated with a RAID-5 volume by beiug attached as log plexes. More thau one log plex can exist for each RAID-5 volume, iu which case the log areas are ~nirrored.
Layered volumes
A layered v o l m ~ ~ ea virtual Veritas Volu1111eManager object that is built on top of other voluu~es. l ~ e is T layered volume strl~chlre tolerates failure better aud has greater redu~i~dancy the stwdard volml~e thau struch~re. example, iu a striped-mhror layered volume, each miiror (plex) covers a smaller area of For storage space, so recovely- is quicker than with a standard mirrored vol~une.
The following figure illustrates the struct1u.e of a typical layered voliuue. It shows subdisks with two colullms, built on ulnderlyilg volumes with each vol~uue iuteiaally miirored. The voltume and striped plex iu the "Managed by User" area allow you to perfollu nolual tasks iu VxVM. User tasks cau be pelfolmed only on the top-level volume of a layered vollune.
-. -
Striped pled
Subdlsks on
VM disks
Ui~derlyiug volumes in the "Managed by V x V M area are used excll~sively VxVM and are not by desigued for user manipulation. You c m o t detach a layered volume or perfoiu any other operation on the utlderlying voluiues by manipnlatitlg the iutemal stru1cttu.e. You call perfom all necessary operatious h the "Mauaged by User" area that iucludes the top-level volume and striped plex (for example, resiziug the vol~ull~e, changing the col~u~un width. or addiug a coluuu~).
System a d n ~ i s t r a t o r call mauipulate the layered vol~ume s structure for troubleshootiug or other operations (for example. to place data ou specific disks).
Volume resynchronization
When storing data ~.edunda~ltly usu~g and i~li~vored M I D - 5 volumes, VxVM ensures that all copies or of the data match exactly. However, uuder cel-taiu conditioas (usually due to coil~plete system failures), c or some redundant data ou a vol~ume w become lllco~lsisteut unsyucl~ronized.The minored data is not exactly the same as the original data. Except for uoimal coufigu~rationchauges (such as detachiug aud reattacling a plex), this c w ouly occur when a system crashes while data is being witteu to a volun~e. Data is witten to the mirrors of a volou~e parallel, as is the data and parity iu a RAID-5 volume. If a iu system crash occurs before all the iudividual writes coulplete, it is possible for some w-ites to complete while others do not. This can result iu the data beco~ning ~~i~syuchroiized. ~ ~ l i ~ v ovolumes, it call For red cause two reads fiom the same region of the voluine to retuiln differeut results, if differeut minors are used to satisfy the read request. hl tlie case of RAID-5 volumes. it cau lead to parity co~luptiou aud i~~correct recoi~struction. data VxVM needs to ensure that all minors contaiu exactly the same data and that the data aud parity iu RAID-5 volumes agree. Illis process is called voluille resy~~chrouization. volumes that are part of For the disk g o u p that is automatically imported at boot time (osually aliased as the reserved system-wide disk group, bootdg). the resyi~chrouization process takes place when the syste~n reboots. require resynchronization after a systeiil failure. Volumes that were never witten or Not all volull~es that were quiescent (that is. had no active 110) when the systeul failure occnned could not have had outstaudiug writes and do not require resynchouizatio11.
Dirty flags
VxVM records wheu a volulne is f i s t witteu to and ~narlis as dirty. When a volu~ne closed by all it is processes or stopped clea~lly the adu&istrator, aud all wites have been completed, VxVM removes by the dirty flag for the volume. Ouly volumes that are marked dirty whel~ system reboots require the resyucln.o~~izatiou.
Resynchronization process
The process of r e s y n c l r o a t i o n depends on the type of voliume. M I D - 5 volumes that contaiu RAID5 logs can "replay" those logs. If IIO logs are available, the \~olume placed in reco~~struct-recovery is mode and all parity is regenerated. For milrored volumes, resynchrouizatio~is done by placiug the volu~ne recovery Inode (also called read-witeback recovery mode). UI Resynchrouization of data in the voluu~e done iu the backgound. Tlis allows the \lolume to be is available for use while recovery is takiug place. The process of resyncluouizatiou can impact system perfoilnance. The recovery process reduces some of this unpact by spreading the recoveries to avoid stressing a specific disk or controller.
For large volmnes or for a large n~mlber volumes. the resynchrouizatio~iprocess cau take t h e . of These effects can be addressed by ~isiug dirty region logging (DRL) and FastResync (fast minor respcluo~~izatiou) ~uirroredvolmues, or by ens111-ing RAID-5 volu~nes for that have valid RALD-5 logs.
Sequential DRL
Soule voliumes, soch as those that are used for database replay logs, are witten sequentially and do uot benefit fiom delayed cleaning of the DRL bits. For these volun~es. seq~re~~tial can be used to limit DRL the nuunber of di~ty regions. This allows for faster recovery should a crash o c c ~ ~ r . However. if applied to volumes that are witten to randomly. sequ~e~ltial can be a perfo~~l~ance DRL bottleneck as it lunits the uumber of parallel writes that can be canied out.
The e1111ancediuterfaces for redo logs allow the database software to infoml VxVM when a volume is to be used as a redo log. This allows VxVM to modifj the DRL bel~avior the volume to take of advaiitag of the access pattems. S u ~ c e unproved recovery t h e depends on d i ~ t y the regiou logs, redo DRL. log voliunes shodd be configured as muyored volumes with seqi~eutial
FastResy nc
Note: You ueed a Veritas F l a s l ~ S ~ ~ a FastResyuc license to use this feature. or p
The FastResync feature (previously called Fast Mirror R e s y ~ ~ c h o ~ u ~ a t iFMR) perfo~ms or o n quick and efficient resyuchronizatio~of stale llli~rors mil-ror that is not synchronized). This illcreases the (a efficiency of the VxVM s ~ ~ a p s lmechanis~n. i~llproves perfo~mance operations such as ~ot aud the of backup and decision ssuppo~t applications. Typically, these operations requke that the volume is qi~iescent, that they are not in~peded updates to the volome by other activities ou the system. and by
To achieve these goals. the si~apshot mechanis~u VxVM creates all exact copy of a primary volume in at an instant in time. After a snapshot is taken, it call be accessed independently of the volu~mefrom wluch it was taken. h~ a clustered VxVM envirom~~ent shared access to storage, it is possible to with elimiuate the resolute contention and perfoivlance overhead of using a snapshot snnply by accessing it fiom a different node.
.... . ... .
FastResync enhancements
FastResyllc pro\lides two fulldamental euhaucemeuts to VxVM: FastResync optunizes ilrkror resynchrouizatioi~by keeping track of updates to stored data that have . been llussed by a m u ~ o r(A mirror may be uuavailahle because it has been detached from its volmne, either automatically by VxVM as the result of a11 error, or directly by an adlniuistrator using a utility such as vxplex or \rxassist. A returning m i ~ ~ is r inil~or was previously detached and is in the oa that process of beiug re-attached to its oligi~~al volume as the resnlt of the vxrecover or vxplexatt operation.) When a mirror returns to service, only the updates that it has missed need to be re-applied to resynclno~lize This requires much less effort than the traditioi~al it. method of copying all the stored data to the retuiuiug mi~+or. Once FastResync has been enabled on a volume, it does not alter how you administer murors. The ouly visible effect is that repair operatiol~s conclude more quickly. FastResync allows you to refresh and re-use snapsl~ots rather than discard them. You can q ~ ~ i c krely plexes with tl~eir original voluuues. This reduces the system overhead associate (snapback) s~lapshot required to perfo~m cyclical operatiom such as backups that rely on the sllapshot functionality of VxVM.
Non-persistent FastResync
Non-persistent FastResync allocates its c h a u g maps iu memory. If uon-persistent FastResyilc is euabled, a separate FastResyuc lnap is kept for the origu~al volume and for each snapshot volume. Unlike a dirty region log (DRL), they do not reside on disk nor UI persistent store. This has the advantage that updates to the FastResync map have little impact OII 110 perfo~luance,as no disk updates needed to be perfollued. However, if a systeul is rebooted, the ii~fo~il~ation map is lost, ~ I the I so a full resynchronization is required on snapback. This limitation can be overcome for volumes in cluster-shareable disk groups. provided that at least one of the nodes iu the cluster remained r u u ~ i n g to preserve the FastResyuc map in its memory. However, a node crash iu a High Availability (HA) enviroment requires the full resynchronization of a ufiror when it is reattached to its parent volmne.
FastResync limitations
The followiug limitations apply to FastResync: .Persistent FastResync is supported for RAID-5 volumes. b i t this prevents the use of the relayout or resize operations on the volume while a DCO is associated with it. .Neither nou-persistent nor persiste~~t FastResync call be used to resyucllronize mu-rors after a system crash. Dirty region logging (DRL). which can coexist with FastResync. sl~ould used for this purpose. be hl VxVM 4.0 and later releases, DRL logs may be stored in a version 20 DCO volume. .When a subdisk is relocated, the entire plex is marked "dilty" and a fill1 resynchonization beco~nes necessary. .If a snapshot v o l i ~ n ~ esplit off iuto another disk groitp, non-persistent FastResync caunot be used to is resynchro~lize snapshot plexes with the original voluule when the disk group is rejoiued with the the original volmne's disk group. Persistent FastResy~lc must be used for this pmpose. .If yo11 move or split an origiual volulne (011 which persistent FastResync is enabled) into another disk group, aud then move or joiu it to a snapshot volu~ne'sdisk group. yoit calu~ot vxassists~~apback use to resynchonize traditioual snapshot plexes wit11 the original volume. This restriction arises because a snapshot volume references the original volu~ne its record ID at the time that the snapshot volume by was created. Moving the original volume to a different disli group cl~anges volmne's record ID. and the i~d so breaks the association. However, iu such a case, you call use the vxplexsuapback c o i m ~ ~ awith the -f (force) optiou to perf01111the snapback. Note: This restriction ouly applies to traditional snapsl~ots. does not al~ply illstant snapshots. It to .Any operation that c h a ~ ~ gthe layout of a replica volume can mark the FastResync cha~lge es map for that snapshot "dim" and require a fit11 resynchonizatio~~ ditriug snapback. Operatiolls that cause this include subdisk split. sobdisk move, aud odiue relayout of the replica. It is safe to perfoin~ these operations after tlle snapshot is completed. For more information, see the vxvol(1M). \xassist(lM), and vxplex (IM) manoal pages.
.a~rlerr~roj .raUaq t l l p sarrrlllo.\ IIO sjep .rasn pns 'L3asprnipa.r .raQ!q q j p samnloA lad rro palojs aq ~11103 elepalam taa1sLs a19 'aldtnwa .log 'sarrmloi\ SmLl.rapml ar[)jo s3!)s!.raj3s.1sq3 Qq!qq!we ptle a311~u~roj.1ad lrla.~ajj!parpjo asn jsaq ayerrl 01 stnalsLs alg snzo~ls anqeaj s ! q ~' ( s ~ x A ) rrra)sLs a[!$ sel!raA o) )nama~uarpa amu~o,\-!l~lim s$rodd~isanqeaj las anlnloA aqL ')as amloA at[) aqjjo sa~g.ra)n! arl) B!A papanp s! sarrmlo~ 011 Bn!Lpaprni aql 01 prre rnog 1 1 .jga!qo ls3!Bol ~ alBn!s I? Lq pa)nasa.tda.~ 01 samuIoA le.la,\as ~ o l l ~ l e q ~ 01 ~ r r a m a ~ w qne a slas amiloA aq t ~ ale
.alq!ssame nlema.1 ys!p arlljo sno!$~odpal3ajjsr11iat11 r10 SarnliloA Btm)s!xg 'pale3ola.1s! ys!p arlljo no!$rod p a p g atp no e)ep lueprnipa.1 '(qs!p e no sysrpqlis amos Lpo Smt3ajje aml!q s 's! lsrl]) s.111330a.lul!q ys!p ls!$red e u a m
.n!e8e alq!ssame marl4 say" pns a.nq!q aq) a.rojaq pals!xa lsql spa[qo ag) sl3u.1lsno3a.1 naql I/VAXA 'd11o.18qs!p aql 11!q)p awds aay .ro/pue s p p a x d s se pajetB!sap sqsrp 01 pa)e3ola.1ale sqs!pqm arll .sqs!pqns pal3ajje arp sale3ola.1pne s~3aFqo s a m p q O/I spalap m no x .s]3afqo asorp 01 ssa33e prle L311epmipa.1 aJ0)sa.l pne I / V A X / (samnlo,\ S-rn . 1 0 . ~ sl3aFqo 1n Z .IOp a ~) Ir1eprmpa.r no sanq!q O/I 04 L ~ ~ W ! ] W I O ) I ~ uralshs e I 01 ~ ~ E ~ . smone )eql a.114~aj s! no!le301a,r-)o~ e
The VRTSvlic package enables product licensing. After the VRTS\:lic is installed, the followhlg c o m r u ~ d and their rnal~oal s pages are available on the system: vxliciust Iustalls a license key for a Symantec product vxlicrep Displays c u ~ ~ e n tiustalled licenses ly vxlictest Retrieves features aud their descriptions encoded in a liceuse key E\ren tl~ough other products are iuclnded on the et~closed software discs. you call only install the Sy~nantec o h a r e products for which you have purchased a license. s
/opt directory
The directo~y /opt 111ust exist, be witable and ~uust be a sylnbolic l i d . W ~ e n not 1.1~:r:'adi~;. v7i: . ' not te~nporarily converted by the upgrade- .st.. : script 4 1 be unavailable d u ~ i i ~ g , th: you have a symbolic l i d from /opt to one of the uuconverted volumes, the syulbolic liuli will 1101 fiuctior~ during the upyrade and itelus i /opt will not be installed. n
Environment variables
Most of the couuuauds used in the installation are ill the Isbill or /usr/sbi~~ directory. However, there are atidilional variables ueeded to use the Veritas Storage Fou~~dation product after installation. Add the followiuy directories to your PATH environment variable:
w If you are using Bou~ne K O Ishell (sh or ksh), use the commands: or ~
$ PATH=$PATH:/usr/sbin:/opt/VRTS/biu:/opt/VRTSvxfs/sbi~~:\
loptNRTSob/bu~:/optNRTScvs/bi~~:/etc/~i~~
$ MANPATH=/usr/share/man:/opt/VRTS/man:$MMATH $ export PATH MANPATH
If you are usullg a C shell (csh or tcsh). use the co~nmands: % set path = ( $path /usr/sbin loptNRTSvxfslsbiu \ loptNRTScvs/bu~ loptNRTSob/biu 1optNRTSlbi11/etc/vs/bi~~ ) % setenv MANPATH lusrlsI~arel~uan:/optNRTS/n~an:$MMPATH Note: If you are not installin&an HA prod~~ct. can onlit loptNRTSvcsl bin. you
2 Do you waut to place the system root disk rulder VxVM colltrol?
3 Do you want to either encapsulate or iuitialize all disks on a coutroller together? Ideutify the coutrollers (for example cOtOd0). 4 Ideutify the disks to be encapsulated, iuitialized. 01.excluded.
5 Verify that the disks that are to be ei~capsnlated VxVM have two free paititioi~s a by and recollunellded ainount of 32MB of free space. The free space must be at the begiiming or end of the This space is used for storiilg disk group coufigr~rations a aud disli aud most not belollg to a pa~titiou. disk label that ensores VxVM call ideutify the disk. eveu if it is moved to a different address or and recovely. The boot coutroller. It is also used to keep track of disk coilfig~~ratiou to ensure co~rect disk is a special case. If uo other space is available, VxVM attempts to allocate space usually resewed for swap by sluiuliiug the swap pa~titiou. This process is knonu as swap relocation and, ifuecessaiy, happeus automatically durillg root disli encapsulation.
Note: Although it is possible to put disks with uo fiee space rmder VxVM coutrol. tllis is oilly used as a illigratioil strategy. Many VxVM capabilities based on disk identity are available oilly for disks with the required free space. See the vxdisk(lM) luaur~al page for iufo~lnation11 the 1lop1-i~ type. 0 disli
If your root disk is conuected over fabric, you should chech the Hardware Compatibility List at htp://support.v~i~itas.coiu see if your device type is supported for boot encapsdatiou to
b: Use the p~hrtoc(lM) o m a u d to record the layout of the paltitions on the ~meucapsdated c boot disk (/de\l/rdsWcOtOdOs2 in this example):
# prtvtoc /dev/rdsli/cOtOdOs2 Record the output froin this c o m a u d for fi1tl11.e reference.
c: To encapsulate the boot disk, tag the swap paitition as swap so that it is possible to duliilp to that partition later. See foivlat(lM) for infonnatioi~ taggiug the s ~ v a p on paltitio~~.
Note: If the path to an aliased boot device is different from the path i the / devices directory, aliases u may not f~u~ction coirectly. This inigl~t happen if the pathame is iuco~~ectly entered at the command line, or if the device's patllualue changes at a later date.
VxVM 5.0 does uot allow Dyuamic Moltipathing (DMP) to co-exist wit11 Sml's Alternate Pathiug (AP) s o h a r e . The AP driver must be disabled before iustallii~g upgrading VxVM. or
VERlTAS Ellte~yrise Aduul~istrator Windows (\~~indo\vs\VRTSobglli.msi) is the client for This package for Windows. See the Veritas Storage Foundation Release Notes for patch infonuation before you iustall VEA.
iustalliug the Ve~itas products. Patches may be required to resolve Solaris kernel, product perfo~mance, or other issues.
1 Log hl as superuser.
2 Place the Ve~itas software disc containing your product into a DVD drive connected to yoiu system
3 If Solaris voluule mauagemeilt software is r u u n i ~ ~ g your system. the sofhvare disc ai~to~natically on inoiults as /cdrom/cdromO.
4 If Solaris voli~ine managemalt software is not available 10 Inotult the DVD, you must mount it
drive.
Note: If you obtained a Veritas product from an electro~lic download site, the single product dowuload files do not c o ~ ~ t athe product installer, so you must use the product iustallatiou script to install the in prodnct.
At most poiuts during an installation, you call type b ("back") to retom to a previoos sectioil of the installation procedme. The back feature of the installation scripts is context-sensitive, so it returns to the begumiug of a grouped sectioil of questions. If an iustallatiou procedure hangs. use Control-c to stop aud exit the program. There is a short delay before the script exits. Euteiyrise The following sample procedtue is based on the installatiou of a Veritas Storage Fotu~dation HA cluster with two nodes: "hostl" aud "host2." If yo11are u~stalling stand-alone systeins ouly, on some steps are mmecessaiy. and these are indicated. Default responses are enclosed by parentheses. Press Retiurn to accept defaults.
5 Wlleu the list of available products is displayed, select the product you want to install and cuter the cor~espondiug number and press Retiinl. The product installati011 begins automatically.
6 You are prompted to enter the syste~ns names (iu the following example. "hostl" and "host?") which the software is to be iustalled. Euter the systen~ i~ame names and then press Rehuu. or filler the .rj:1:rtenl 11or17e.r se1~or.utetf spaces on il~liich Lg. to in.rtall l ~ r o d r ~ c t ~ ~ ~ a i i i e : host1 hosl2
7 Enter the product licel~se ilfioiu~atioi~.
01 1
Enter. a p r o h i c l nu~ne Iicerlse kej,,/i,iIiosll: /?/ .C~W-.C\:Y\':CYKY-..LYY~-.CY.Y.Y-.KCLYYYY ,YX,Y,Y-~LY-~YXY,Y-.i~i~~Y-.LCCY-.LKLY-.Y sl~ccav.,li~l!~. re,oi.s/ei~ec/ ho.r/l on
Do j.0~1 i~~criit ei11er.onolher. license kej;~'~.,/i)i. /J..II,(J,?] lo ho.r/l? (17)
Do j.021 11~c1nt enler ono/l~er. 1 0 license kej>,/br. O S I ZI?. , I I , ( ~(11) ~ / .?] Enter n if you have no further license keys to add for a system. You are then prompted to enter the keys for the next system. Note: Each system requil-esa p r o d ~ ~license before installatio~~. ct License keys for additioual product features should also be added at this time.
.. . .-.
: S ~ o l 1 0aqlol el-s lndlno aas plrioqs uoL j 'aldtr~exa .mn]ax ssa~d llelsrr! o] ] I I ~ M .IO.J pne iioX no!ldo q31q~ ]palas .rro!le[[e)sn!.loj pa.nc1ba.1 awds ys!p aql sXelds!p no!]do rpeg .sa%ey3ed ro saSey3ed pa.rrnba.~ lie bpo ~IQSII! .caq)!a 01 asooq:, m 3 IIOA 8
Installing on Solaris
To illstall the VEA clieut on a Solaris m a c b e usiug pkgadd
This colnlnaud will rehuu VRTSobgiii if VRTSobgui is already iustalled. It will return uothiug if the package has not beeu installed.
3 To iustall the VEA client package for Solaris, iusert the appropriate 111edia disc iuto your system's DVD-ROM or CD-ROM drive.
4 Copy the VRTS0bgui.tar.g~pacliage, and the dependent packages (VRTSat. VRTSpbx, aud VRTSicsco) to the c ~ i i ~ eworkiug directory on your system. ut
UI
7 The VEA client packaze for Solalis, and dependent packages, are iustalled.
Installing on Windows
The VEA clieut rLms on Wiudows NT, Wn~dows Windows 2003, Windows 2000, Wu~dows XP, ME, Wii1dows 98, w d Wiudows 95 luacl~iues. you plan to rLm VEA froln a Wiudows machu~e, If ulstall the optional Wiudows package aftel you have iustalled the VEA serve1 on a Sola~is maclliue. Before yo11 iustall VEA ou a Wu~dows luachhe, you must tuuinstall ally existing Veritas Volume Manager Storage Adnillistratoflh' (VMSA) packages and remove the old sehip.exe fiom that machine. Ouly oue VEA package cau be installed ou a Wiudows machine at auy giveu time. be Note: If you plau to install the GUI clieut on Windows NT 1.0, Wiudows Installer 111~ist upgraded to version 2.0. For more infonnatiou about upgrading Windows Installer, visit II~~~:!'/\vLLZV.II~~CI~OSOC~.COI~~. If you are i~siug Wiudows NT 4.0, it is also reco~mne~lded you use Windows NT 4.0 Service Pacl~ that 6. I
Disk devices
When perfoivliug disk administratim. it is inlportant to imderstaud the difference between a disk name and a device naine. When a disk is placed uuder VxVM control, a VM disk is assigned to it. You call define a symbolic disk name (also l i ~ l o w a disk media name) to refer to a VM disk for the purposes of adllliuistration. as A disli name can be up to 3 1 characters long. If yo11 do not a s s i p a disk name. it defaults to diskgroup## where diskgroup is the i~allle the disli group to wllich the disk is beiug added, and ## is of number. a seqi~ence Your system nlay use device uaules that differ fiom those given in the esanlples. The device name (sometimes refelred to as devname or disli access uame) defines the ilame of a disli device as it is I ~ I I O W ~to the operating system. Such devices are nsi~ally. uot always. located in the ~ but Idevl[r]dsli directories. Devices that are specific to hardware fi0111certain vei~dors inay use their o w path tlaille con~et~tions. VxVM recreates disk devices. iucl~tdii~g from the Idevl[f]dsli directories. as inetadevices iu the those Idevlvxl[r]dmp directories. The dynamic multipatlling ( D m ) feature of VxVM uses these n~etadevices (or DMP nodes) to represent disks that cau be accessed by more than one physical path, i~sually via different coutrollers. The nilinber of access paths that are available depends on whether the disk is a single disli. or is part of a multiported disk away that is connected to a system. You call use the vxdisk utility to display the paths su~bsumed a inetadevice, and to display the stah~s by of each path (for example. whether it is enabled or disabled).
a Disks i the OTHER-DISKS category (disks that are not multipatlied by DMP) are named ilsu~g u tlie fabric-# fonnat.
A small area where co~lfigurationinfoin~ation stored. A disk header label, is co~dguratio~~ records for VxVM objects (such as volui~ies, plexes and subdisks), log and au u~tent foi the collfigtlration database are stored here. The default piivate region size is 32 megabytes. which is large eilouph to record the details of VxVM objects iu a disk group. several thousai~d Under most circtuustwces. the default private region size should be sufficient. For adlniuistrative puiyoses, it is usually much simpler to create more disk groups that co11tai11fewer volmues, or to split large disk groups into several smaller ones. If required. the value for the private region size ]nay be overridden when you add or replace a disk using the vxdiskad~li coi11111a11d. Each disk that has a private region holds an entire copy of t11e configuration database for the disk group. The size of the configuration database for a disk group is limited by the size of the smallest copy of the colfigtu.atiou database on ally of its nie~iiber disks.
public region
AII area that covers the remainder of the disk, and which is used for the allocatioi~ storage space to st~bdisks. of
..
A disk's type identifies how VxVM accesses a disk, and how it manages the disk's private and piblic regions. The following disk access types are used by VxVM:
The pitblic and private regions are on the same disk area (wit11 the public area following the private a~ea). The pu~blic private regions are oil different disk pa~titions. and There is no private region (only a pu~blic region for allocating si~bdisks). Tllis is the sin~plest disk type consistii~g only of space for allocating subdisks. Soch dislcs are no st usefud for defining special devices (such as RAM disks, if supported) ou wllich private region data woold not persist behveen reboots. They can also be used to encapsolate disks where tliere is insofficient room for a private region. The disks cannot store configination and log copies, and they do not sitpport the use of the vxdiskaddregio~~ collunand to define reserved regions. VxVM callnot track the lnoveii~ei~t nopriv disks of on a SCSI chain or between controllers. When the vxconfigd daemon is started, VxVM obtains a list of h o w disk device addresses from the operating system and configores disk access records for thein automatically.
auto
Auto-collfiguured dislts (with disk access type auto) support the followiug disk foimats:
cdsdislc
The disk is fo~natted a Cross-platfoiln Data Sharing (CDS) disk that is suitable for as inoving between different operating systems. This is the default forn~at disks that are for as not used to boot the system.Typically, most disks on a system are co~ifigored this disk type. Hobvever. it is not a suitable foilnat for boot, root or swap disks, for i n i ~ ~ oorshotr relocation spares of su~ch disks, or for Extensible Fullware Interface (EFI) disks. The disk is fo~ruatted a simple disk that can be converted to a CDS disk. as The disk is fo~natted a sliced disk. This fo~ruat be applied to disks that are uused as can to boot the system. The disk can be converted to a CDS dislt if it was not initialized for use as a boot disk.
simple sliced
Caution: The CDS disk foinat is incompatible wit11 EFI disks. If a disk is iuitialized by VxVM as a CDS disk, the CDS header occul>iesthe poiti011 of the disk where the VTOC wodd osoally be located. If yo11 sitbsequ~ently a command soch as fdisk or foil~iat create a paitition table on a CDS disk, use to and this erases the CDS info~nation could cause data coi~itption.
By default, atdo-configured non-EFI disks are foinatted as cdsdisk disks bvlien they are initialized for ose with VxVM. Yo11 can change the default foi~nat osiug the vxdiskadm(1 M) command to update by the /etc/default/vxdisk defaolts fde. See the vxdisk(1M) manoal page for details of the itsage of this file, aud for more infoination abotd disk types and their co~lfiguratioi~. Aoto-collfigored EFI disks are fo~ruatted sliced disks by default. as
I-"
9
F?
! .', :
-.
~
VxVM initializes each new disk with the smallest possible number of partitions. For uon-EFI disks of type sliced, VxVM usually collfig~~res paltition s3 as the private region. s4 as the public region, aud s2 as t11e entire physical disk. AII exception is an eucapsulated root disk, on w l k h s3 is usually configured as the pnblic region and s4 as the private region.
r.7
. ..-.
-
F T
-
i :
&
7
vxdislicoufig calls vxdctlenable to rebuild \~olmne device node di~ecto~ies update the DMP u~tenlal aud database to reflect the new state of the system. You can also use the vxdisksca~ldisksco~nruaud scan devices iu the operating system device tree, to disks. aud to iuitiate dynamic reconfiguration of m~~ltipathed If you want VxVM to scan ouly for uew devices that have been added to the system. and for devices that have bee11 ellabled or disabled, specify the -f option to either of the commands. as s h o w here:
il.
However. a complete scan is initiated if tlre system co~lfiguration bee11 modified by chauges to: has lustalled allay suppolt libraries. The devices that are listed as being excluded from use by VxVM. DISKS (JBOD). SCSI3. or f o r e i g device definitions. See the vxdctl(1 M) and vxdisk(1M) mauoal pages for more illfo~~nation.
..-
..
The next example discovers fabric devices (that is, devices with the characteristic DDI-NT-FABRIC property set on thenl):
# 17x~fisk scur?tfi.~ksfubr~ic The following command scans for the devices c ItldO and c2t2d0:
Alternatively, you can specify a ! prefix character to iudicate that you want to scan for all devices except those that are listed:
You cau also scan for devices that are coullected (or not co~mected) a list of logical or pllysical to controllers. For example, this co~ummd discovers and co~lfigures devices except those that are all connected to the specified logical co~~trollers:
The next command discovers devices tbat are collllected to the specified physical controller:
Disk categories
Disk arrays that l~ave been certified for use wit11 Veritas Voluu~e Manager are supported by an allay s i ~ l ~ plibrary (ASL), and are categorized by the v e ~ ~ d L r string that is retu111ed by the disks (for o~t oD example, "HITACHI"). Disks iu JBODs for wliicli DMP car1 be supported in ActiveIActive mode, aud which are capable of bei~ig mnltipathed, are placed in the DISKS categoly. Disks in uusupported allays cau be placed in this catego~y. Disks h~JBODs that do not fall into any supported category, aud which are not capable of being luultipathed by DMP are placed h~the OTHER-DISKS cateeory.
The new disk anay does uot need to be already conuected to the system when the package is iustalled. If any of the disks iu the new disli allay are subsequently connected, and if vxco~~figd nuluing, is vxcoufigd immediately u~vokes Device Discovery fimction and includes the new disks iu the the VxVM device list.
ti ~~xu%d enable
This comnland scans all of the disk devices aud their attributes. updates the VxVM device list, and reco~lfigi~res DMP ~ i t the new device database. Tl~ere 110 need to reboot the host. h is Note: This command eusiwes that dyua~nic u l t i p a t h g is set up correctly on the allay. Otherwise, m VxVM treats the i u d e p e ~ ~ dpathstto the disks as separate devices, ~vkich result iu data c o ~ ~ i ~ p t i o n . e~~ can
Add support for an aimy to DDL. Remove si1ppo1.t for an away from DDL. List u~fo~matiou about exclitded disk anays. m 1 ic,t disks that are supported in tlie DISKS (JBOD) category. r .,:.id disks from differeut vendors to tlie DISKS category. Relnove disks from the DISKS category. Add disks as foreigu devices. The followiug sections explain these tasks iu more detail. For fi~rtlier i~~folmation, the see vxddlad~u(lM) mauilal page.
Note: Use this connnaud to obtaiu values for the vid a i ~ d attributes that are used with other follns of pid the vxddladm commaud.
To display more detailed iufoilnatiou about a particular allay library, use this folm of the c o i m a i d :
This comluai~d displays the vendor ID (VID), product IDS (PIDs) for the arrays. m a y types (for example, A/A or AIP), and allay uames. The followillg is sa~nple output.
ATTR-NAME ATTR-VALU E ................................................. LIBNAME Iibvxfuiitsu.so VI D vendor GR710, GR720, GR73o PID GR740, GR820, GR840 ARRAY-TYPE A/A, A/P FJ-GR710, FJ-GR720, FJ-GR730 ARRAY-NAME FJ-GR740, FJ-GR820, FJ-GR840
This example excli~des support for disk anays that depends on the libray libvxeuc.so. You can also exclude suppoit for disk airays from a particular vendor, as s11o\w1 UI tlus example:
~~..rrl~llcrt/rrr e.~.vcl~ir/eor.r.q. 17irI-A('MEpic/=.Yl
For liiore ulfonnation about excludii~g disk anay support, see the vxddladm (1M) manual page.
This comliiaiid adds the airay library to the database so that the library can once agaiu be used in device discoveiy. If vxcoi~figd running. you call use the \i?tdiskscaudislis command to disco\;er the is arrays and add their details to the database.
Wllere de\ice_i7u1ne is the device name of one of the disks hl the allay ( f o ~ example, /dev/rdsldclt20dOs2). Note the vali~es the vendor ID (VID) and product ID (PID) iu the output from of this col~mand. Fijitsr~ For disks, also uote the niunber of characters iu the serial number that is displayed. The followiug is sample output:
Iu this example, the vendor ID is SEAGATE and the product ID is ST3 18404LSUN 18G.
2 Enter the following command to add a new JBOD category:
Where ve~tdorid prodnctid are the VLD and PID values that you found fioun the previous step. For and example, vendorid might be FUJITSU, IBM, or SEAGATE. For Fiditsu devices, you must also specify the number of characters i the serial 1111mberas the argiument to the length argiuneut (for exanlple, 10). u Note: Iu VxVM 4.0 and later releases. a SEAGATE disk is added as a JBOD device by default. Continuiug the previous example, the commaud to define au allay of disks of this type as a JBOD would be:
3 Use the vxdctlenable command to bring the alyay under VxVM control:
ii ~,sdc/l enable
4 To verify that the al-ray is no\v snppol-ted, enter the follo~viug coluu~a~id:
The followiug is sample outpid from this c o m a ~ for the example array: d
VI D
PID
Opcode
P a g e Code
Page O f f s e t
SNO l e n g t h
5 To verify that the alray is recopized, use the vxd~~~paddisteuclosi~re a u d as showu iu the com followiuy salliple olltput for the example al-ray:
.................................................... ....................................................
OTHER-DISKS Disk OTHER-DISI(S Disk OTHER-DISl(S DISKS
ENCLR-NAME
ENCLR-TYPE
ENCLR-SNO
The enclosu~re uaule and type for the m a y are both show^ as beiuy set to Disk. Yon cau use the vxdislilist ~ O I U I I I ~ to ~ I I display the disks ill tlie ar-ray:
GROUP
G To verify that the DMP paths are reco~Azed, the v x d ~ ~ ~ p a d m y e t d ~ ncolull~al~d s h o w iu use p ~ ~ o d e as
tlie followi~~y sample output for the example nl-ray:
NAME STATE ENCLR- TYPE PATHS ENBL DSBL ENCLR- NAME ............................................................... ............................................................... D i s k - ~ ENABLED D i s k 2 2 0 Disk 2 2 o Disk D i s k - 1 ENABLED D i s k
This shows thatthereare two pathsto thedisks in the array.
The chauge is hln~ediate wl~ichevermethod you use. The optional persistence argument allows you to of after disk select whether the i~ames disk devices that are displayed by VxVM remain ~mchauged hardware has been reconfigured and the syste~n rebooted. By defa~ilt, both euclosore-based naming aud operating system-based naming are persistent.
Discovering the association between enclosure-based disk names and 0s-based disk names
If you euable enclos~~re-based uaming, and use the vxp~int con~mand display the struchwe of a to volume, it shows ei~closure-based disli device uan~es (disk access names) rather than c#t#d#s# names. To discover the c#t#d#s# ualnes that are associated with a given enclosure-based disk name, use either of the followi~~g coiwnands:
For example, to fmd the physical device that is associated with disk ENCO-21, the appropriate c o ~ ~ l ~ u m d s be: would
To obtain the fiill pathname for the block and character disk device fro111these commands. append tlie displayed device name to Idevl~xldn~p ldevlvxlrdmp. or
letcl~xlc~ltrIs.exclode.
2 A t the following prompt, enter the disk device name o f the disk to be added to V x V M colltrol (or enter l i s t for a list o f disks):
Add o r i n i t i a l i z e d i s k s Menu: VolumeManager/Disk/AddDisks Use t h i s o p e r a t i o n t o add o n e o r more d i s k s t o a d i s k g r o u p . You c a n add t h e s e l e c t e d d i s k s t o a n e x i s t i n g d i s k g r o u p o r t o a n e w d i s k g r o u p t h a t w i l l be c r e a t e d as a p a r t o f t h e o p e r a t i o n . The s e l e c t e d d i s k s may a l s o be added t o a d i s k g r o u p as s p a r e s . The s e l e c t e d d i s k s may a l s o be i n i t i a l i z e d w i t h o u t a d d i n g t h e m t o a d i s k g r o u p l e a v i n g t h e d i s k s a v a i l a b l e f o r u s e as r e p l a c e m e n t d i s k s . More t h a n o n e d i s k Here a r e some d i s k all: c3 c q t 2 : c3tqd2: xyz-o : xyz- : o r p a t t e r n may be e n t e r e d a t t h e p r o m p t . s e l e c t i o n examples: 2
a l l disks a l l disks on both c o n t r o l l e r 3 and c o n t r o l l e r 4,target a s i n g l e d i s k ( i n t h e c # t # d # n a m i n g scheme) a s i n g l e d i s k ( i n t h e e n c l o s u r e based n a m i n g scheme) a l l d i s k s o n t h e e n c l o s u r e whose name i s xyz
atthe prompt, t h e v x d i s k a d m program displays a list of the disks available t o STATUS online online online invalid online invalid online online
DISK DEVICE GROUP cotodo mydgoi mydg cotldo mydgoz mydg citodi ~3tod0 senao-o wydq-3 myd9 senao-1 rnydg 34 myd9 S e l e c t d i s k d e > ~ i c e St o add: [<pattern- list>,all, l i s t , q , ? ]
The phrase online iuvalid in the STATUS liue indicates that a disli has yet to be added or initialized for VxVM control. Dislis that are listed as oilline wit11 a disli name and disk gronp are already under VxVM control. Enter tlle device name or pattet-n of the disks that you want to iuitialize at the prompt and press Rehuu.
3 To continue with the operation, enter y (or press Reh11-n)at the following prompt:
Here a r e t h e d i s k s s e l e c t e d .
list of device names
Output format:
[Device]
Continue operation?
[y,n,q,?]
(default:
y) y
4 At the following prompt, specify the disk group to wI1ic11the disk sl~ould added. or none to reserve be the disks for f i ~ h ~use: re
You can choose t o add t h e s e d i s k s t o an e x i s t i n g d i s k g r o u p , a n e w d i s k group, o r y o u can l e a v e t h e s e d i s k s a v a i l a b l e f o r use b y f u t u r e add o r r e p l a c e m e n t o p e r a t i o n s . To c r e a t e a new d i s k g r o u p , s e l e c t a d i s k g r o u p name t h a t does n o t y e t e x i s t . To l e a v e t h e d i s k s a v a i l a b l e f o r f u t u r e use, s p e c i f y a d i s k g r o u p name o f "none". Which d i s k g r o u p [ < g r o u p > , n o n e , l i s t , q , ? ]
5 If you specified the name of a disk group that does not aheady exist, vxdiskad~n pronlpts for codu~nation you really \vaut to create this new disk group: that
There i s n o a c t i v e
You are the11 prompted to confum whether the disk group should support the Cross-platfo~m Data Shariug (CDS) feati~re:
C r e a t e t h e d i s k g r o u p as a CDS d i s k g r o u p ? [y,n,q,?]
(default:
n)
If the new disk group may be moved between different operatiug system platfoims, enter y. Otherwise, enter n.
6 At the followii~g prompt, either press Retuil~ accept the default disli name or enter n to allow you to to define your ow11 disli names:
Use d e f a u l t d i s k names f o r t h e d i s k s ? [y,n,q,?] (default: y)
7 When prompted wllether the disks should become hot-relocation spares, enter n (or press Retmm):
Add d i s k s
dishgroup iluine? [ y , n , q , ? ]
(default:
n) n
--.
8 When pl.ompted wlletheer to exclude the disks from hot-relocation use, euter n (or press Rehun).
Exclude disks f r o m hot- r e l o c a t i o n use? [ y , n , q , ? } (default:
n) n
9 You are next prolllpted to choose whether you want to add a site tay to the disks:
Add s i t e
t a g to d i s k s ?
[y,n,q,?]
(default:
n)
A site tag is usually applied to dish allays 01 enclos~~res, is not required 1111less want to use the and you Remote Minor feature. If you euter y to choose to add a site tag, you are prompted to the site name at step 11.
10 To coutiuue nit11 the operation, enter y (or press Retu~n) the followiug prompt: at
The s e l e c t e d d i s k s w i l l be a d d e d t o t h e d i s k g r o u p disf<grool)t~niitc,w i t h d e f a u l t d i s k names. list of device llalues Continue with o p e r a t i o n ? [ y , n , q , ? ] ( d e f a u l t : y) y 11 If you chose to tag the dislis with a site iu step 9, you are now pronlpted to enter the site uallle that shodd be applied to the dislis in each enclosure: The f o l l o w i n g d i s k ( s ) : list of device nallles belong t o e n c l o s u r e ( s ): list of enclosme uallles E n t e r s i t e t a g f o r d i s k s on e n c l o s u r e e~closm.c-uau1e [ < n a m e > , q , ? ] 12 If you see the followi~ig prompt. it lists any dislis that have already beeu iuitialized for use by VxVM; enter y to indicate that all of these dislis should now be used: The f o l l o w i n g d i s k d e v i c e s a p p e a r t o have been i n i t i a l i z e d already. The d i s k s a r e c u r r e n t l y a v a i l a b l e a s r e p l a c e m e n t d i s k s Output format: [Device] list of device names Use t h e s e d e v i c e s ? [ Y , h l , S ( e l e c t ) , q , ? ] ( d e f a u l t : Y ) Y Note that this prompt allows you to u~dicate "yes" 01. "no" for all of these disks (Y or N) or to select how to process each of these disks on an individual basis (S).
If you are sure that you want to re-initialize all of these disks, enter Y at the followillg proiilpt:
69
VxVM NOTICE V - 5 - 2 - 3 6 6 The f o l l o w i n g d i s k s y o u s e l e c t e d f o r use appear t o a l r e a d y have been i n i t i a l i z e d f o r t h e V o l u m e Manager. If y o u are c e r t a i n t h e d i s k s a l r e a d y have been i n i t i a l i z e d f o r t h e Volume Manager, t h e n y o u do n o t need t o r e i n i t i a l i z e t h e s e d i s k devices. Output format: [Device]
list of device uallles
Are y o u s u r e y o u w a n t t o r e - i n i t i a l i z e [Y,N,S(elect),q,?] ( d e f a u l t : N) Y
these disks?
13 vxdiskadm may uow indicate that one or more disks is a calldidate for encapsdation. Encapsulation allows you to add a 1 active disk to VxVM control and preserve the data on that disk. If you want to 1 preserve the data 011the disk, enter y. If you are slue that there is no data 011the disk that you want to preserve, enter n to avoid encapsulation.
VxVM NOTICE V - 5 - 2 - 355 The f o l l o w i n g d i s k d e v i c e has a v a l i d VTOC, b u t does n o t appear t o have been i n i t i a l i z e d f o r t h e Volume Manager. I f t h e r e i s d a t a on t h e d i s k t h a t s h o u l d NOT be d e s t r o y e d y o u s h o u l d e n c a p s u l a t e t h e e x i s t i n g d i s k p a r t i t i o n s as v o l u m e s i n s t e a d o f a d d i n g t h e d i s k as a n e w d i s k . Output format: [Device]
device ualne
Encapsulate t h i s
device?
[y,n,q,?]
(default:
y)
If yon choose to el~capsolate disk. vxdisltadn~confi~uls device llalue and prolnpts you for the its pe~missiou proceed. Enter y (or press Rehuu) to continue eucapsolation: to
has been s e l e c t e d
Continue w i t h e n c a p s u l a t i o n ? [y,n,q,?]
(default:
y) y
vxdiskadm now displays an encapsolatiou status, and iufo~uls that yo11 most perfolm a sht~tdoull you aud reboot as soon as possible:
The disk device cleuice ltarne w i l l be e n c a p s u l a t e d and added t o t h e disk group dgrzaine w i t h t h e dis k name disk '~tarne.
You cau now choose whether the disk is to be foiu~aned a CDS disk that is poi-table betweeu as different operating systems. or as a non-poltable sliced disk:
Enter t h e d e s i r e d f o r m a t [ c d s d i s k , s l i c e d , q , ? ] (defau1t:cdsdisk)
Euter the foimat that is appropriate for your needs. Iu inost cases, this is the default fonnat, cdsdisk. At the followiug prompt, vxdiskadill asks if you waut to use the default private region size of 65536 blocks (32MB). Press R e h ~ m coilfiilll that you want to use the default value, or enter a different to value. (The m a x i u ~ ~ ~ l ~ lthat yo11 call specify is 524288 blocks.) value
Enter d e s i r e d p r i v a t e ( d e f a u l t : 65536)
If yon entered cdsdiskas the fo~mat, are proinpted for the action to be taken if the disk canuot be you convelted this folmat:
If you enter y. and it is not possible to encapsulate the disk as a CDS disk, it is ellcapsulated as a sliced disk. Otherwise, the etlcapsulatiot~ fails. vxdiskadm then proceeds to ellcapsulate the disks.
VxVM INFO V - 5 - 2 - 3 4 0 The f i r s t s t a g e o f e n c a p s u l a t i o n has c o m p l e t e d s u c c e s s f u l l y . You s h o u l d now r e b o o t y o u r s y s t e m a t t h e e a r l i e s t p o s s i b l e o p p o r t u n i t y . The e n c a p s u l a t i o n w i l l r e q u i r e t w o o r t h r e e r e b o o t s w h i c h w i l l happen a u t o m a t i c a l l y a f t e r t h e n e x t r e b o o t . To r e b o o t e x e c u t e t h e command: shutdown' - go
-
i6
vxdiskadm now confim~s those disks that are being initialized and added to VxVM co~ltrol with messages similar to the following. lu addition. you may be prompted to perfotm surface a~~alysis.
VxVM INFO V - 5 - 2 - 2 0 5 I n i t i a l i z i n g
d e v i c e device name
You crw now choose whether the disk is to be fo~matted a CDS disk that is portable between as different operatiug systeins, or as a nou-pottable sliced or simple disk:
Enter desired p r i v a t e r e g i o n l e n g t h [ < p r i v l e n > , q , ? ] ( d e f a u l t : 65536) v x d i s k a d m t h e n p r o c e e d s t o add t h e d i s k s . VxVM INFO V - 5 - 2 - 8 8 A d d i n g d i s k d e v i c e device itaiizeto d i s k g r o u p dislzgroupizn~~iei t h d i s k name disk w
naine.
At the following prompt, enter the disk device name for the disks to be eucapwdated:
Encapsulate one o r more disks Menu: VolumeManager/Disk/Encapsulate Use t h i s o p e r a t i o n t o convert one o r more d i s k s t o use t h e Volume Manager. This adds t h e disks t o a d i s k g r o u p and r e p l a c e s e x i s t i n g p a r t i t i o n s w i t h volumes. Disk e n c a p s u l a t i o n r e q u i r e s a r e b o o t for t h e changes t o t a k e e f f e c t . More t h a n one d i s k o r p a t t e r n may be e n t e r e d a t t h e prompt. Here are some d i s k s e l e c t i o n examples: all: c3 c4t2: c3tqdz: xyz-0 : xyz- : a l l disks a l l disks a single a single a l l disks on disk disk on both c o n t r o l l e r 3 and c o n t r o l l e r 4 , t a r g e t ( i n t h e c#t#d# naming scheme) ( i n t h e e n c l o s u r e based naming scheme) t h e e n c l o s u r e whose name i s xyz 2
Select disk devices to encapsulate: [<pattern-list>,all,list,q,?] device I I ~ I I I ~ Where <pattern-list> can be a single disk, or a series of disks andlor co~~trollers optio~~al (with targets). If <patteiu-list> co~~sists multiple items, those itenls IIILIS~ separated by white space. of be If you do not b o w the address (device name) of the disk to be encapsulated, enter 1 or list at the prompt for a complete listing of available disks.
2 To contiuoe the operation, enter y (or press Rehum) at the following prompt:
Here i s t h e disk s e l e c t e d .
device name
Output f o r m a t :
[Device]
Continue o p e r a t i o n ? [y,n,q,?]
(default:
y) y
3 To add the disk to a disk group, enter the uame of the disk group (this disk g o u p need not already exist):
You can choose t o add t h i s d i s k t o an e x i s t i n g d i s k g r o u p o r t o a new d i s k g r o u p . To c r e a t e a n e w d i s k g r o u p , s e l e c t a d i s k g r o u p name t h a t does n o t y e t e x i s t . Which d i s k g r o u p [ < g r o u p > , l i s t , q , ? ]
4 At the followillg pro~npt, either press Return to accept the default disk name or enter a disk name:
Use a d e f a u l t
d i s k name f o r t h e d i s k ? [y,n,q,?]
(default:
y)
5 To coutiuue with the operation, enter y (or press Reh~rn) the followiug prompt: at The s e l e c t e d d i s k s w i l l group w i t h default disk
device name
(default:
y) y
G To collfinn that encapsulation should proceed, enter y (or press Reh~rtl) tlle followillg prompt: at
Continue w i t h e n c a p s u l a t i o n ? [y,n,q,?]
(default:
y) y
A message similar to the following confirtus that the disk is being ellcapsulated for use h~VxVM aud tells you that a reboot is needed:
The d i s k d e v i c e device izan?e w i l l be e n c a p s u l a t e d and added t o t h e d i s k g r o u p diskgroupwith t h e d i s k name diskgroupol. 7 For uou-root disks. yoti can uow choose wlletlether the disk is to be fol~natted a CDS disk that is as portable between different operatiug systems, or as a uon-portable sliced disk: Enter t h e desired format [ c d s d i s k , s l i c e d , q , ? ] ( d e f a u l t : cdsdisk)
Enter the fonnat that is appropriate for your needs. hh most cases. this is the defanlt fonnat, cdsdisk. e t Note that only the sliced foi~uat suitable for use with root, boot or swap disks. is
8 At the following prompt, vxdiskadm asks if you want to use the default piivate region size of 65536
'<:ricks (32MB). Press K a t ~ u tol confu~n you want to use the default value, or enter a different ~ that ..iue.(The maxinlum value that you can specify is 524288 blocks.)
9 I f you entered cdsdisk as the fo~mat step 7, you are pron~pted o ~ action to be taken if the disk h~ f the c m o t be converted this foimat:
as t h e f o r m a t should
'cdsdisk'
fail?
If you enter y, and it is not possible to encapsulate the disk as a CDS disk, it is encapsulated as a sliced
l o vxd i s k a d m then proceedsto encapsulatethe disks. VxVM NOTICE V - 5 - 2- 311 The clcuice encapsulation.
I I . U I , Ld i s k ~
has been c o n f i g u r e d f o r
VxVM INFO V - 5 - 2 - 3 4 0 The f i r s t stage o f e n c a p s u l a t i o n has completed s u c c e s s f u l l y . You should now reboot your s y s t e m a t t h e e a r l i e s t possible opportunity. The e n c a p s u l a t i o n w i l l r e q u i r e t w o o r t h r e e r e b o o t s which w i l l happen a u t o m a t i c a l l y a f t e r t h e next r e b o o t . To r e b o o t execute t h e command: shutdown - g o - y - i 6 This w i l l update t h e / e t c / v f s t a b f i l e so t h a t volume devices are used t o mount t h e f i l e systems on t h i s disk device. You w i l l need t o update any o t h e r r e f e r e n c e s such as backup s c r i p t s , databases, o r manually c r e a t e d swap devices.
Note: The origiual Ietclvfstab file is saved as /etc/vfstab.pre\~m.
At the following prompt, iudicate whether you waut to encapsulate illore dislis (y) or rehlru to the vxdiskadm main menu (n):
Encapsulate o t h e r d i s k s ? [y,n,q,?]
(default:
n) n
I$ Rootability
VxVM call place various files from the root file system, swap device. and other file systems ou the root disli under VxVM control. This is called rootability. The root disli (that is, the disli coutaiuiug the root file system) cau be put ~ u ~ VxVM co~~trol d e ~ through the process of encapsulation. E~lcapsulation collverts existing paltitions on that disk to vollunes. Ol~ce ru~der VxVM control, the root and swap devices appear as volu~mes provide the same characteristics as other VxVM volu~nes. and A volume that is colfig~red use as a swap area is refened to as a swap volume, and a volume that for contains the root fde system is referred to as a root vol~ume.
Cautiou: Only encapsulate your root disk if you also intend to mirror it. There is no benefit iu rootdisk encapsulation for its own sake.
It is possible to mnb-ror the rootvol, and swapvol vol~unes.as \veU as other parts of the root disk that are required for a successfi~l boot of the systeul (for exa~nple, Iusr). This provides co~uplete redr~uda~~cy and recovely capability iu the event of disk failure. Without VxVM rootability. the loss of the root. disks. swap. or usr partiti011 prevellts the system from being booted from su~rvivu~g Mhroring disk drives that are critical to bootiuq ensures that IIO siugle disk failure renders the system u ~ ~ ~ ~ ~ Aasuggested colfigu~ration to minor the c~itical s ble. is disk onto another available disk (using the vxdiskadu~ commaud). If the disk containing rootaud swvappartitions fails, the syste~n be rebooted can from a disk contaitiing minors of these partitions.
.pa3elda.r s! uaqa ysrp p a p g aqljo slualuo3 atll.1a~o3a.1 I asti nt?3noL .IO'tno.rj palooq aq 01 pamS1po3 aq tar11 Lsm 'a[qel!ns S! ys!p 01 ! a.teds arlljl ys!p Strpxua.1 no sasald aql mo.g Sn!Ldo3 Lq ys!p a.~eds no saxald papq arp saleal3a.r aql L11w!]m10~ e x A 'asn Sn!.nlp spej !Jo,L?m sl! .IOys!p 100.1 aql .1aq]!a pns palqena sy no!]e3ola.l-loq JI .ys!p a . ~ d auo 1s17-, .. ., -ro.u!m ys!p 100.1aq1 'ys!p 100.1palelnsde3ua atI1jo sls!s1103 1namaSueue s , v:ooq aql m sqs!p j o 1nam115!ssealq!ssod ano smoqs a~11Sy L ~ M O ~ ~ O . F ~ S s ! t ~.dl
of Where altboot-disk is the device ua~lle an alteinate disk froru which the systeill cau be booted. Alte~natively, the system is already u p w d ~ ~ u u l l lenter the follo~viviug if ~g, colluualld to defiue au alte~~late disk: boot
Removing disks
You c w remove a disk fiom a system aud move it to auotller system if the disk is failing or has failed.
...
3 Move the volumes to other disks or back up the volumes. To move a volume, use vxdiskadm to minor the volume ou one or more disks, then remove the origiual copy of the volume. If the volumes are 110 longer needed, they call be removed illstead of moved.
4 Check that any data on the disk has either been ~uoved other disks or is no longer ueeded. to
3 If there are any volu~nes the disk. VxVM asks yon whether they should be evacuated f i o n ~ on the disk. If you wish to keep the volumes, auswer y. Otherwise, answer 11.
(default:
The vxdiskadm utility renloves the disk from the disk group and displays the followiug success message:
mydgoi is complete
(default:
n)
VxVM ERROR V-5- 2- 369 The f o l l o w i n g volumes c u r r e n t l y disk mydgoz: home usrvol
use part of
Volumes must be moved f r o m mydgoz before it can be removed. Move volumes t o other disks? [y,n,q,?] (default: n)
If you choose y, then all snbdisks are moved off the disk. if possible. Some subdisks are not movable. A subdisk lnay not be movable for oue of the follouii~g reasons: There is not enougl~ space on the remau~ing disks in the subdisk's disk goup. Plexes or striped subdisks callnot be allocated on different disks fiom existiug plexes or striped subdisks hl the volume. If the bxdisliad~u program camiot move some subdisks. remove some plexes fiom some disks to free more space before proceeding with the disk removal operation.
Renaming a disk
If yo11 do not specify a VM disk name, VxVM gives the disk a default name when yo11add the disk to VxVM couh.ol. The VM disk name is used by VxVM to identify the location of the disk or the disk To chauge the disk name to reflect a change of use or owiership, nse the followiug conmand:
. ..* ....
For example, you might want to rename disk inydg03, as S~IOWIIin the following ol~tput fiom vxdisk list, to 1nydgO2:
# i,.~di.~k fi.r/
DEVICE
TYPE
DISU
GROUP
STATUS
mydgol mydg03
-
mydg mydg
To coufiu~u the llaiue change took place, use the vxdisk list conmand agaiu: that
# l a d i s k lisf
DEVICE
TYPE
DISK
GROUP
STATUS
mydgol rnydgoz -
mydg mydg
Note: By default, VxVM nallles subdisk objects after the VM disk on wllich they are located. Renaming a VM disk does not automatically rename the subdisl,~on that disk.
Reserving disks
By default. lib- . - -.:;kt command allocates space fiom any disk that has fiee space. You can reserve n set of dislis for special poqToses, such as to avoid general use of a particularly slow or a l~ai-ticularly fast disk. To resenre a disk for special piuyoses. use the followiug c o l l w ~ a ~ ~ d :
After you enter tlus co1l11naud. the vxassist program does not allocate space from the selected disk lmless that disk is specifically mentioned on the vxassist c o m a n d liue. For example, if mydg03 is reserved, use the followiug c o m a u d :
The vxassist c o m ~ n a ~ ~ d overrides the reservation and creates a 20 ulegabyte volu~ne mydg03. on However. the command:
does not use mydgO3, eveu if there is no ftee space on any other disk. off To ~LIIII reservation of a disk. use the following com~uaud:
DEVICE TYPE DISK GROUP STATUS cotodosz auto:s li c e d mydgoq rnydg online cotzdosz auto: s li c e d mydg03 rnydg online cot3dosz auto:s li c e d mydgoz mydg online SENAol-3 a u t o : s l i c e d online invalid SENAol-1 auto:sliced online invalid SENAol-2 auto:sliced . online invalid Note: The phrase online iuvalid iu the STATUS line uldicates that a disk has not yet beeu added to VxVM control. These disks may or nlay uot have been iuitialized by VxVM previously. Disks that are listed as onliue are already under VxVM col~trol.
To display details on a particnlar disk that is defined to VxVM. use the followi~lg coululaud:
# 1:~rlisk [-lq list diskrlurrie
The -v optiou causes the collunai~d additioilally list all tags a i ~ d values that are defu~ed the to tag for disk. Without this option. uo tags are displayed.
85
Note: Au alray suppo~f library (ASL) inay defiue additioual array types for the alrays that it suppo~ts.
VxVM uses DMP ~iieta~iodes (DMP nodes) to access disk devices connected to the system. For each disk iu a supported a m y , DMP maps olie uode to the set of paths that are couuected to the disk. Additionally, DMP associates the appropriate multipathing policy for the disk alray with the node. For
'I! ssame 01 '0-03oa 'apon dKa a1Bms aql sasn I / V A ~ A 'a.~nsopna plq aql ys!p a15ms s 0) ls!xa '0p66)p prtsop661[3 'sqlsd o , a.Iar[rM a~dmsxa s ~ o q 'a.~uSg ~ ns s Or~p\o[[oj arH 'sZoo[aq ys!p "s.us q 3 n p 01 azn1Bo3a.1olnod sA%oIIe atuatps Bn!msn a! qs!p s s l n a m a ~ m~ x lsrp tap d
- , .... ..-.
. . <
I]::... .- 4-b
.--
-'
-1
.Xe.ue ys!p p a ~ ~ o d dsl s ys!p s ,103apon s dir slas m a ~ o sale.I,siqI! a.niSg 3rqa1loj arm m q .d~a~!padsa.~ durp/m/hap/ pnt! du~pl/mpap/ i;,:?:p sa!. aql m palsa.13 a.1s saporr -.I! 103 sa3pap yoo~q 1us.1 pm pa~todd~~srnn~ sys!p nt! rr! at11 qs!p s 01 papaan03 s! ~srll tllvd rpsa OJ apon a~s.~sdas e sdem &q(,
V*V fvl
Meppcd by DMP
+ b
cIIYSd3
O i a ~ n c l o s u r cn e ;:
D MP
?,
fiif93d3
- -.
d e p e n d i n g a n t l i c path
.ds.rrs a~qovlai\!pv,103anop s! se s q ~ s d a y p s Xl)na.nn:, arp T~WSO.I~L? pamroj~ad! 8n!3ns[aq psol 'sLe.~~"-g,$pj pne 3 - 3 d j v '3-,$pj s .IOJ
'on )na.r1113i103 &~otldus ssapn sLs.rra ys!p a,1!ssad/a~!)3v .IOJpamroj~ad s! sqlad ~ ~ 0 . 1 3 s Kaq) )on %u!3nslsq pa01 ' i n i o p ~ o [ s a.IaAas It! st1nsa.r .raq)ow o) .rallo.rlno3 alro rnog S M ~ J O dys.rarnio 011 JO .raJsnsI) snonir!lno:, aq) s v .sq~sd hreprro3as .lo siged K.rarm.rd alqsl!ai\s "avo aqlol .IaAo paq3)+s S 011 'sl!t!~illsd L.rsm!.rd arIljI y)sd X.~sm!.rd aq) ~ r a o p ! luas s! 011 'sderm ys!p ai\!ssad/aA!pj r o . ~ y a d atlo Xna no psail.IaAo aq) a3npa.1 0) sipad a[qq!sAa atp sSO.1311palllq!.rJs!p s! a~ne.1 m q ) F aq) [lt?jlor1 saop laq) 011 le!lnanbas aS.rs7 .Si1!q3~3q3a.1) qs!p m0.g lyarraq 0) .rap.Io u! q)sd amas aq) m o p p a s s! a5ns.r u!a&ran t! n!q)p 8ir!).rels 011 1uttna11baS .srl~ud alqa[!sl\s llajo q l p ~ p w q w oaq) Smsn ~ l Kq ~udqSlio.ri1~ saz!tcqxsin On!3oolaq pa07 .SLRLIB 3 - g d w p~ 3 - d d w ' 3 - d / ~ 011 ys!p '~A!DVP,I!I~V .IOJ sil)" S S O J 5m3wlaq peol a p r ~ o r d m s ~ q 3 a m ~ ~ 01 rl)sd pa3nalaq arp s a w m a '~[nejap 43
.spaa33ns r p d aqj no 1sanba.1011 Zu!pw)s~nous J! .IOcqlad aql iro .ro.rra on s&rotla.~ ~ aqlj! qled aq) mo.y V H paAorna.1 s! Sm1~o.q) .sip" a[qaI!sAs laipo no papiparps a.Is qjsd lsq) 110 s~sauba.~ Sn!pna)s~110 ail1 011 at11 'q~ads o) pa!ldde s! Stnl~o.rip al!rlM q s d ail) no 1sanba.1011 11i~ssa33us agj an!s pasdsla lsal set1 a?) rra~!% .IO'an1aA L I ~ A ! ~paq3ea.r sarl s1sanba.1011 % ~ I ! ~ ~ I I ? I S ) I I O J O a s .raqnuirr aq) iraip .rarl)!a qlsd atp no )itas 5rrraq slsauba.1 011 Mail ~na,~a.rd pa.rnSrpo3 aq ne3 m a 'a,\!snodsa.r ssal amo3aq o) ssil )sip iped s rro d11 s p p q s1sanba.r 011 S n ~ p m ~ s ~ uraqrmln aq) put: GpalqstIa B t n l ~ o n l ~ ojo s!
.(Llpa.r103 sa3yap alp saz!r603a.r rira1sLs %rrga.~ado ~ s i lpap!,io.~d) pajooq L111g rraaq saq inalsLs aq) .raga aql ) sa3!~apaAoiira.1.lo ppa noh naqM pita 'pa.ropa.1 .ro pa.r!sda.~s! rio!13am103 e rtarp panrrop? osls s! m a ..Io)s.rlsnI!mpe aq) mog no!liraA.Ia1n! 1norlpn s~sa11ba.r 011 .IOJ [[lad alqsI!wa lxarr ail) spalas Klle3ysnro)ue m a c L a . ~ ~ q se p v s d e JO S S O ~ ! 01 aiIljo 1naAa aql nl .sLeria qs!p pal.~od!ylum ) p pas11 naqM /C1![!qa!ga.1 ma)sLs s a ~ n s q t ~ a ~ xa.rn)aaj m a a u q ~ ~ j o
'arimjrr03 0) )aeM uob .raq)aqM m n p o 3 0) pa)dnro.rd ale u o ' ~ l ~ 30 "a!A at[) mog a3!Aap s aplll3xa 0) lo f x ~ '(dmpm) .la.t!.rp ma ~ A X aqJ6q pail)sd!)lnm Sn!aq uroy a3!~ap e ~ n a ~ 01 warn nlem m p s y s ! p ~ A a~d aq) m0.g (May s . m x uroy sa3!nap s s a . r d d n ~ f i ~ ~ e d ! ) l u m ~ )naza.rd) L 1 7s" Iinaur palas 1
%u!lqt:uaput: %u!lqt:s!a
.ys!p eo) s q 1 ~ le3rsbqd Zm)s!xa arp 1 30 a.rom 10 airojo s s o l ~ s y a S e pamerlua s! Lu2qega.1ri~als/(s '>[s!p )oo.r aq) i3m.ro~r!m p ~ w Srrt)eliisds3oa b g .bene ys!p pavod!~liirue j o p d S! ys!p arlij! s q ~ e d ald!)lnat r l l y .ro .ys!p alSu!s e s! ) J qled ario !I q ) y a3!~ap ma e se passa33e ~ ~ ~ W ! ) W I O ~ I)! '[o.L)w~ ES! ~ X .Iapml pa3eld s! ys!p ) o o ~ n a l m A aq)
saqaap m
a m o g fu!looa
.be.ris EL aSp3.101~ arp no aporrr O I X ~ aq) a1qsna 01 o!sdm~ioddi~s-dm pnsrmno3 aql asn mis N sbs
'XX-gLZZI I P~"X-SI 1601 saq3)sd u! aIqel!eAe s! s b e . +EL pm! EL aSp31o)s .roj a.remmnj )sale1 aIll ~ ~ ~ '60-5 [ 160 I S! aps.~Sdu ,103q3)ed arll ' 8 ~ 1 . 1 a.rmrnJ EL aSp3,rols rnls at[) aps.rSdn )snm 1 1 0 ~ ST) o) .bs.rie arp no a3pap bnt! 04 sqled aldgli~nr aas IOU ~ X .Strqedypm salpmq ~ s o q no .raa.z!rpS ~ J aqj 'apom s ~q j.(ssedsa.q-oj~~enon A aql S JO .rai\opj ~ p q d x a apom 0 1 x m o) ~~.IIISIJ"O~ ) aq lsnm aSp3.10~~ arlj 'sno!)e.m81~"03 )soqypm UIIS
n+
.~tlamro.nAua pa.ralsnp-iiou e n! lsorl alZn!s e .ioj Sq)ed!)lnm alpneq o) pasn aq [re3 d w a .to .raA!.Ip (MISS) .~aStxmfl 1 3 " ~aSp3.1o)s nus arp .rarl)!g 3
m a W'MO I X ~ M u ! ~ n zI
4 5 6 7
Suppress a l l b u t one paths t o a d i s k Prevent m u l t i p a t h i n g o f a l l disks on a c o n t r o l l e r by VxVM Prevent m u l t i p a t h i n g o f a d i s k by VxVM Prevent m u l t i p a t h i n g o f disks by s p e c i f y i n g a VID:PID combination 8 L i s t c u r r e n t l y suppressed/non- m u l t i p a t h e d devices ? D i s p l a y h e l p about menu ? ? D i s p l a y h e l p about t h e menuing s y s t e m q Exit f r o m menus
Help text aud examples are provided ouscreeu for all the meun items. Select option 1 to exclude all paths tho11gl1 the specified controller fiom the view of VxVM. These the paths remain in the disabled state iu~til uext reboot, or mtil the paths are re-i~~cluded. Select option 2 to exclude specified patlis fi.0111 the view of VxVM. Select optiou 3 to exclude disks froiii tlie view of VxVM that match a specified Vendor ID and Product ID. Select option 4 to defiue a pathgroup for disks tliat are not u~ultipathed VxVM. (A pathgroup by explicitly defiues altelnate paths to the same disk.) 011ly oue path is made visible to VxVM. Select option 5 to disable multipatlhg for all disks on a specified controller. Select optiou 6 to disable m u l t i p a t l ~ ~ g specified paths. The disks that coi~espoud a specified foi to path are claimed in the OTHER-DISKS category and are uot mnltipathed. Select option 7 to disable multipatlhg for disks tliat ~ u a t c a ~ l specified Vendor ID and Product ID. to are in The disks that co~~espond a specified Vendor ID and Product ID co~iibi~iation clai~ued the OTHER-DISKS catego~y d are not multipathed. w Select optiou 8 to list the devices that are c ~ u ~ e n t suppressed or not mdtipathed. ly
+ + + +
+
+
91
vxdiskadm ~ n a i u menu to re-enable multipathg for a device, or to make a device visible to VxVM to again. Yon are pro~upted confiim whether you want to contiuue.
2 Select the operation you want to perfoim from the displayed list:
paths t h r o u g h a c o n t r o l l e r f r o m VxVM's view Unsuppress a path f r o m VxVM's view 3 Unsuppress disks f r o m VxVM's view by s p e c i f y i n g a VID:PID combinat i o n 4 Remove a pathgroup d e f i n i t i o n 5 A l l o w m u l t i p a t h i n g o f a l l disks on a c o n t r o l l e r by VxVM 6 A l l o w m u l t i p a t h i n g o f a disk by VxVM 7 A l l o w m u l t i p a t h i n g o f disks by s p e c i f y i n g a VID:PID combinat i o n 8 L i s t c u r r e n t l y suppressed/non- m u l t i p a t h e d devices ? Display help about menu ? ? Display help about t h e menuing system q Exit f r o m menus
2
1 Unsuppress a l l
+ Select optioi~21 to ~ilakespecifiedthrooghvisible to VxVM. visible to VxVM. + Select option to make all paths paths a specified controller + Select option 4 to make disks visible todefinition. (Amatch a specified Vei~dorID and Product ID.to 3 to VxVM that + Select option remove a pathgroup pathgroup explicitly defiues altei-natepaths
the sanle disk.) Once a pathgroup has been removed, all paths that Lvere defined in that pathgroup become visible agaiu. Select option 5 to enable multipathing for all disks that have paths through the specified coi~troller. Select option 6 to enable multipathg for specified paths. Select option 7 to enable multipatlung for disks that match a specified Vendor ID and Product ID. Select option 8 to list the devices that are currently suppressed or uot moltipathed.
+ + + +
SUBPATH
DANAME
DMNAME
GROUP
This shows that two paths exist to each of the two dislis, mydgO1 and mydg02, and also indicates that each disk is in the ENABLED state. information for a pal-ticularmetadevice, use the following commalid: To view m~dtipathing
For example, to view multipathing infolmation for c2tOdOs2, use the followii~g command:
i i*.~di,rk cZtOtl0.sZ ! list
Typical output from the vxdisklist couunand is as follows: Device devicetag t Pe Y host i d disk 9 ro u P flags pubpaths privpaths cztodo cztodo sliced aparaj i t a name=mydgol i d = 8 6 1 0 8 6 9 1 7 . 1 0 5 2 . a p a r a j i t a name=mydg i d = 8 6 1 0 8 6 9 1 2 . 1 0 2 5 . a p a r a j i t a o n l i n e ready autoconf ig autoimport imported block=/dev/vx/dmp/cztodos4 char=/dev/vx/rdmp/cztod0s4 block=/dev/vx/dmp/c~todos3 char=/dev/vx/rdmp/cztodos3 2.1 min=512 ( b y t e s ) max=zo48 ( b l o c k s ) s l i c e = 4 offset=o len=1043840 slice=3 offset=l len=iiig t ime=861801175 s e q n o = o . 4 8 0 248 count=i len=795 count=i len=lzo
version iosize public private update headers configs logs Defined r e g i o n s c o n f i g priv 000017- 0 0 0 2 4 7 [ 0 0 0 2 3 l ] : c o p y = 0 1 o f f s e t = o o o o o o e n a b l e d c o n f i g priv 000249- 0 0 0 8 1 2 [ 0 0 0 5 6 4 ] : c o p y = 0 1 o f f s e t = o o o z 3 1 e n a b l e d log priv 000813- 0 0 0 9 3 2 [ 0 0 0 l z o ] : c o p y = 0 1 o f f s e t = o o o o o o e n a b l e d Multipathing information: numpaths: 2 cztodosz state=enabled type=primary c i t o d o s z s t a t e = d i s ab l e d t y p e = s e c o n d a r y
III the Multipathing i~lfo~mation section of this outpi~t, ~lt~lupatl~s shows that there are 2 paths to the line the device. and the following two liues show that the path to c2tOdOs2 is active (state=enabled) and that the other path cltOdOs2 has failed (state=disabled):
The type field is showu for disks OII Actiw~eIPassive type disk arrays such as the EMC CLARiiON, Hitaclli HDS 9200 and 9500. Sun StorEdge Gxxx, and Sun StorEdge T3 allay. This field indicates the primary and seco~ldaly paths to the disk. The type field is not displayed for disks on ActivelActive type disk allays such as the EMC Symetiix, Hitachi HDS 99xx and S L I ~ StorEdge 99xx Series, and IBM ESS Series. Such allays haw:e uo concept of p~iluary secoadary patlls. and
... . ....
The physical path is specified by alyomeut to the nodename attribute. ~vhich lnost be a valid path listed iu the Idevlrdsli directoly. The above cornland displays o i ~ t p such as the followi~g: ~~t
NAME
STATE
Use the enclosme attribute with getdmpuode to obtaiu a list of all DMP nodes for the specified euclosiue.
NAME STATE ENCLR- TYPE PATHS ENBL DSBL ENCLR- NAME ............................................................... ............................................................... c z t i d o s z ENABLED T3oo 2 2 o enco c z t i d i s z ENABLED T3oo 2 2 o enco c z t i d z s z ENABLED T3oo 2 2 o enco
Note: Stalfiug with release 4.1 of VxVM. UO policies are recorded in the file letc/\rxldmppolicy.info, aud are persistei~t across reboots of the system. Do uot edit this file yo~~rself.
The followi~~g policies may be set: .Adaptive This policy attempts to lnaxiinize overall VO thoughpot fromdto the disks by dyi~all~ically schedulii~g on the paths. It is suggested for use kvhere 110 loads can vary over time. For example. I10 I10 fiomlto a database ~ u a y ediibit both long trausfers (tabIe scans) aud sl1012 trausfers (random look ups). The policy is also useful for a SAN enviro~imeut wl~ere different paths may have differeut ui~mber of hops. No f111fher configuration is possible as this policy is auton~atically rnauaged by DMP. In this example, the adaptive 110 policy is set for the euclosi~re encl :
# vxdtnpadm setattr enclosure euc I iopolicy=adaptive
.Balanced [pa~titiousize=size]This policy is designed to optimize the use of caching in disk drives aud RALD controllers. The size of the cache typically ranges fro111IZOKB to 500I(B or more, depending on the characteristics of the pa~ticolar hardware. During normal operation, the disks (or LUNs) are logically divided into a t~u~nber regions (or paititions). and 110 fronllto a given region is sent ou only of one of the active paths. Should that path fail, the workload is auto~natically redistributed across the relnainiug paths.
:aom K S Jb m n t ~ ~ r01rL3yod 011 aql slas aldrnaxa 811puol[oj ar~.aiiaub p IsabIoqs aql I I ~ qled atp sarmpualap L~~e3ylaurolna ~ Z ma se a~qissods! I I O ! ~ ~ . I ~.Iaq&nijON ~' p x a lot1 saop ~IJ~O ar13w 39312." 111~3g*!s e a.Iaqu s a o w .IOsys!p pna-MO~~ oaIqel!lis s! S!IU ' ~ e .IOJana~ib m . j 7 aql sprtas L ~ l o d q b ~ n ~ r n w s m s)sanbn.l 011 Sn!pr~e~s~no~o m r i r ~ aql~ i \ q lstll s r ~ s d .xaqmuu r a uo
.S~];IAZ ,so spea.1 le!lrraubas jo Lpsom sls!suo3 leql I L I ~ U rCI!~!ve 011 11s .roJ ( m ~ 01 a ~C~ 9 9 1) S9301q ZLO'I EI 01 S ~ L ' Z E ln0.1~ L ~ . L I ~ O9GG S(M s! V/V !II3E)!H ne SOJ az!s no!l!l.rad palsaSSns arp 'aldmaxa .IOJ ' ( a w l ) sy30[q 8tOZJO az!s no!l!l.red llrlejap arIl 01 lualm!~iba s! OJO az!s no!l!&mt?d s SulLjpads 'an[&\ alqelda33e lsa.rean aq) o) twop papm1o.r L[lnal!s s! 230 . ~ a ~ o tIon s! leql a1ilsA v .(m1) le s~301q t . 0 ~ az!s no!lqred a q roj anleA lIIlqap a u 8 S!
mpriority This policy is usefill when the paths in a S A N have unequal perfonnance, and you want to ellforce load balauciug mauually. You call assigu priorities to each path based ou your howledge of the configuratiou aud perforulauce characteristics of the available paths. and of other aspects of your system. h tlus example, the I/O policy is set to priority for all SENA amays:
# vxd~npadol setam alrayuame SENA iopolicy=priority
mrouud-robu~This policy shares 110 equally betweeu the paths iu a rom~d-robiu sequence. For example. if there are three paths. the first I10 request would use one path, the second would use a different path. the third would be seut down the remau~uig path, the foul211would go down the first path, aud so ou. No further coufig~u.atiouis possible as this policy is automatically managed byDMP. The uext example sets the VO policy to rouud-robiu for all ActiveIActive allays:
# vxdmpadm setam anaytype AIA iopoIicq=ro~rud-robui
This is the default 110 policy for A/P aud Asylnlnetric ActivelActive (AIA-A) alrays. msiugleactive This policy ~.ontes down the siugle active path. This policy cau be co~~figured A/P VO for a m y s with one active path per coutroller. where the other paths are used in case of failover. If co~~figured AIA allays, there is no load balauciug across the paths. aud the alternate paths are ouly for used to provide high availability (HA). If the cul~eutly active path fails, VO is switched to au alte~uate active path. No further collfig~~ratiou possible as the siugle active pat11 is selected by DMP. is The followi~~g example sets the 110 policy to siugleactive for JBOD disks:
# vxd~npadm setattr anayname DISK iopolicy=siugleactive
Module 6:
Note: III releases of Veritas Volume Mauager (VxVM) prior to 4.0, a system installed with VxVM was collfigui. I.\. ith a default disk group, rootdg, that had to contain at least one disk. By default, operatioic \\dre directed to tlie rootdg disk group. From release 4.0 onward, VxVM cau function without auy disk group having bee11 configulred. Ollly when the fust disk is placed uulder VxVM colltrol must a disk group be configuued. There is no longer a requirement that you name m y disk group rootdg, and any disk group that is nalned rootdg has 110 special properties because of this name.
11
Additionally, prior to VsVM 1.0, some commands such as vxdisli were able to deduce the disk group if the name of an object was u~~liquel y defined ul one disk g o u p among all tlie inipol-ted disk groups. Resolution of a disk group in tlus way is no lo~lger suppol-ted for any command. For a discnssion of disk g o ~ ~ that are colnpatible with the Cross-platfolnl Data Sharing (CDS) ps feahlre of Veritas Volume Manager, see the Veritas Storage Fouudation Cross-Platfo~m Data Sharulg Admblistrator's Guide. The CDS feature allows you to lllove VsVM disks and objects between machiues that are ~x~mling uulder different operatiug systems. As system admillistrator, you cau create additioilal disk groups to arrange your system's disks for different purposes. Matly syste111sdo not llse niore than one disk group, unless they have a large ~ n ~ m bofr disks. Disks cal be initialized, reserved, and added to disk g o u p s at any time. Disks ueed e not be added to disk groups ~llltil disks are needed to create VxVM objects. the When a disk is added to a disk group, it is given a llaule (for exalqle, mydg02). This name identifies a disk for operations such as volume creation or m i ~ ~ o r i uThe name also relates directly to the g. underlyiug physical disk. If a physical disk is moved to a different target address or to a different controller, the name mydg02 contiuues to refer to it. Disks can be replaced by first associating a different physical disli with the uanle of the disk to be replaced aud then recoveriug auy vol~uue data that was stored on the origiual disk (from minors or backup copies). Having disli groups that contain mauy disks and VxVM objects causes the private regiou to fill. In the case of large disk groups that are expected to coiltain Inore than several huludred disks and VxVM objects, disks should be set op wit11 larger private areas. A major pol-tion of a private regiou provides space for a disk g o u p configl~rationdatabase that contains records for each VxVM object iu that disk group. Because each configuration record talies up approsinlately 256 bytes. the number of records that can be created in a disk group call be estimated fiom the configu~rationdatabase copy size. The copy size iu blocks can be obtained fiom the outpu~t the co~n~iiand of vxdglist diskgroup as the value of the p e l d e n parameter on the line stalling wit11 t l ~ e string "config:". This value is the snlallest of the leu values for all copies of tlie configuration database ui the disk group. The amouut of renlai~~iug free database is s h o w as the value of the free parameter. space in the collfigu~ration
t-
bootdg
Specifes the boot disk group. This is an alias for the disk group that co~ltaius the volull~es are used to boot the system. VxVM sets bootdg to the appropriate that disli group if it takes c o ~ ~ t r ofl the root disk. Otherwise, bootdg is set to uodg (uo o disk grotup; see below).
Caution: Do not attempt to chauge the assigned value of bootdg. Doiug so may reuder your system onbootable. defaultdg Specifies the default disli group. This is an alias for the disk groop name that should be assumed if the -g option is i ~ o specified to a commaud, or if the t VXVMDEFAULTDG ei~viroimieut ~rariable lundefmed. By default, defaultdg is is set to nodg (uo disli group; see below). Specifies to an operation that no disk group has been defined. For example, if the root disk is not m~der VxVM control. bootdg is set to nodg.
nodg
Note: If yon have upgraded your system. yon may find it conveuieut to continue to coufigure a disk group uamed rootdg as the default disli groop (defaultdg). There is no requiemeut that both defaultdg aud bootdg refer to the same disli group, nor that either the default disli group or the boot disk group be named rootdg.
.pamjapml s! dno.18ys!p ,Ingap aq) 'pt1ammo3Zpllngaplppm arp 01 1naum5.re arn ss paypads s! 5ponj1 'dno.18 ys!p ~ o o q p ~ - m a l s L pamjap Lllna.~1113 a s aq) sa anras arp aq o) las st dno.15 ystp )Ingap arp 'p11~nnro3 01 laamn8.1e arp se pagpads s! Sp~ooq SR) j~
:duo.18 ys!p 11Ilejap arp Lelds!p 01 p~reurnro:, 5 1 r ~ o l l o j asn nu3 noL '.<la~!lenrally .paLslds!p s! Bporr 'pangap aaaq Ion serl duo.18 ys!p )111ejape j ~ aq)
:pnenrrr103Sn!Molloj alp asn 'dno.15 ys!p )Inejap app+uralsLs parigap L[lna.~1113 Lslds!p 0 atp 1
:pnemuro3 B ~ o ~arp asn 'duo.15 ys!p looq app+aia)sLs pangap K[~rra.~in3 Keldslp 0 ~ o j arp 1
. . .
.os op '(sp.ro3a.r ssame ys!p no no!)e.rado l!pa [re 'aldmaxa .roj) auisu duo.r8 xs!p e 5tynba.r ) n o q ) p a a ~ r o j ~ a d nu3 no!le.rado ar1)jIw ~ aq .pa![dde s! alnr ZUVO[~OJ 'pamjapml s! sege s g ~ j ~ aql %plpejap 'se!p dno.18 ys!p lInejap a p ~ - m a ~ aq) o) pa@sse naaq seq larll dno.15 ys!p aql a s n u Ls .pa!ldde s! ap.r 5 ~ ! ~ o [ [ o j 'pangapnn s! alqs!.rsA arp JI %pan .lo 'Sp)~nejap'5plooq :sawen aqj dn0.G ys!p a p ~ - u r a ) s b s pahJasa.1 aq)jo sno 01 ,as aq osle m o alqe!.le s g 1 ' ~ ) a l m v g g a - m ~ a[q"rtx ~rariruo.~!~na A p a p a d s s! )erl) aareo d1io.18ys!p )Ingap aql a s n u aql q :amen d11o.15ys!p e s a p a i a j a p I! 1!)ru1 .rap.ro r! sal1i.r 8 r v o l [ o j aq) sa![dde MAXI\ 'dno.18 ys!p arp L p a d s )on op 11oLj1.ao!ldo s!ql r p a p n a m m o ~ a ~1 s! 1 )da331! le11) spi1erm03WI\XA0) d110.18 ys!p a Ljpads 01 rio!ldo 8- arp asu uoL
ID 730344554.1025.tweety 731118794.1213. t w e e t y
To display more detailed u~fon~~ationa specific disk group. use the followiving command: on
# w d g list diskgro~ip
Group: m~dg dgid: g6zglog60.loz5.bass import- id: 0.1 flags: 140 version: l o c a l - a c t i v a t i o n : read- w r i t e 512 ( b y t e s ) alignment : ssb: on detach- policy: local nconfig=default nlog=default copies: config: s e q n o = o . l 1 8 3 p e r m l e n = 3 4 4 8 f r e e = 3 4 2 8 templen=12 l o g l e n = 5 z z config d i s k c o t l o d o copy 1 l e n = 3 4 4 8 s t a t e = c l e a n o n l i n e config d i s k c o t l l d o copy 1 l e n = 3 4 4 8 s t a t e = c l e a n o n l i n e 109 d i s k c o t i o d o copy 1 l e n = g z z 109 d i s k c o t l l d o copy 1 l e n = g z z
Note: hl this exaulple, the aduliuistrator has chosen to uame the boot disk group as rootdg.
To verify the disk group ID and name associated with a specific disk (for example. to iillport the disk group), use the followiug c o r n a n d :
# vxdisk -s list devicename
This coiluna~ld provides outpiit that includes the followiug infolmation for the specified disk. For example, output for disk cOt12d0 as follows:
autoconfig
autoimport imported
OFFSET
o o
o
FLAGS -
To display free space for a disk grou~p,. the follo~viug use command:
# vxdg -g diskgroup free
where -g diskgroup optionally specifies a disk grou~p. For example, to display the fiee space in the disk ~ ~ r o umydg. use the following command: p,
# vxdg -g mydg free
ou~tptd shows the aiiuouuit of free space in sectors: The followiug exa~iuple
OFFSET o 0
FLAGS -
Disks must be placed in one or more disk groups before VsVM can use the disks for volumes. It is iu~poltant you locate data related to pa-hticularapplications or users on an identifiable set of disks. that When you need to move these disks, this alloms you to lnove only the application or user data that should be moved. A disk gronp must have at least one disk associated with it. A ilew disk group can be created when you use menu item I (Add or iuitialize one or more disks) of the wdiskadm conlmai~d add disks to to VxVM control. p t to The disks to be added to a disk ~ o u must i ~ obeloi~g an existing disk group. You can also use the vxdiskadd colnuland to create a new disk group:
# vxdiskadd cl tOd0
wl-herecltOd0 in this example is the device name of a disk that is i ~ ocurrently assigned to a disk group. t Disk groups call also be created by using the mdgillit c o m ~ a u d :
# vxdg init diskgroup [cds=ou/offl disliuame=deviceuame
The disk specified by the device name, cltOdOs2. must have been previously initialized with vxdiskadd or vxdiskadm, and must not cui~ently beloilg to a disk group. Yon cru~ the cds attribute with the vxdgiuitconnnru-hdto specify whether a new disk group is use compatible with the Cross-platfollu Data Sharing (CDS) feature. lu Veritas Volume Mauaser 4.0 and later releases, newly created disk groups are colnpatible with CDS by default (equivalent to specifying cds=ou). If yon wru~t change this behavior. edit the file /etc/default/vxdg, and set the attribute-value to pair cds=off in this file before creating a new disk group. Alternatively, you can use the following command to set this attribute for a disk group:
# vxdg -g diskgoup set cds=ouloff
where c It1 do is the device name of a disk that is not currently assigued to a disk group.
For example, to remove mydgO2 from the disk grollp, mydy. use this co~uu~and:
# vxdg -g mydg ~uldisk mydgO2
If the disk has subdisks on it when you try to remove it, the followiug elyol. message is displayed:
Once the disk has bee11 removed fiom its disk group. you call (optionally) remove it fioin VxVM control completely, as follows:
For example, to remove cltOdOs2 from VxVM control, use these commands:
You cau remove a disk OII ~vllich some subdisks of volulnes are defined. For example. you call consolidate all the volumes outo one disk. If you ~~sevsdiskadm remove a disk, yo11 can choose to to move volumes off that disk. To do this, rtui vxdiskadm and select item 3 (Remove a disk) fro111the nlaiu menu.
use part of
Volumes must be moved f r o m mydgoz before i t can be removed. Move volumes t o other disks? [y,n,q,?] ( d e f a u l t : n)
If you choosey, then all volunles are moved off the disk, if possible. S O I I I ~ volomes may uot be n~ovable. i e most c o m o n ~.easons f \+by a volume may not be movable are as follows: There is not enou& space ou the remaiuing disks. Plexes or striped st~bdisks cannot be allocated on different disks fiom existing plexes or striped subdisks in the volume. If \.xdiskadmcaunot move some volllmes. you may need to remove S O I I I ~plexes from some disks to free more space before proceediug with the disk re111ova1operation.
*M~U
(IS!]
:$lne4ap)
. y s ! p a q $ 6 u ! ~ o u a l aJO4Jq y s ! p a q $ o$ ssa33e I l e a ] q e s ! p O $ $ U P $ J O ~ U ! S! $! 'sua$sr(s a u o s UO Sa3!AJp yS!p a l q e A o w a l l o j ' ( ~ a u ! l 4 4 0 ) P a l q e s ! P a4 P l n o 4 s sys!P a q l 4! Payse aq o s l e ll!M noA . d n o ~ 6 y s ! p e 40 a u e u a y $ l o 4 p a $ d u o ~ daq l l ! ~o, n) . a s o d l n d ~ a a u o s l o 4 d n o l 6 y s ! p e u ! 6 u ! u ! e u a l s y s ! p a y $ 40 I l e asn u 4! d n o ~ 6 y s ! p e $ l o d a p ' o s l v - u a $ s r ( s l a y l o u e o $ d n o l 6 ys!p e u ! sys!p aAoU 01 p u a $ u ! nor( J! d n o l 6 y s ! p t? $ l o d a a
01 JueM nor(
muam n!sm tnpsys!px.\ aq, mog (d1io.15ys!p s (4.1odap) 01 ssa33s a;\ottra~) tua)! nnam palas E 6
'(sassqslsp .lo smalsds aIg pa)mlour Lq 'aldmsxa ,103) asn u! a.w lerll samcqoA sn!slrro:, dno.rS ys!p atllx spsj toopabrodaa : a ) o ~ .samll[oA at11 no pa.111Syuo3ars lsq) sassqsjsp m o p p ~ t pus srrralsLs alg lmlomnn .pal.~odap ~s aq 01 s! let[) dlio.12 ys!p aql n! pa.1118yt103 am ~ s l satrmIo~\01 suo!la:,!ldds Lq ,Cl!~!131! 11s do)^ 1 p
5 At the following prompt, euter y if yo11 iuteud to remove the disks iu this disk group:
VxVM INFO V - 5 - 2 - 3 7 7 The requested o p e r a t i o n i s t o d i s a b l e access t o t h e removable d i s k group named newdg. This d i s k group is s t o r e d on t h e f o l l o w i n g d i s k s : newdgol on device c l t l d o You can choose t o d i s a b l e access t o ( a l s o known as " o f f l i n e " ) these d i s k s . This may be necessary t o p r e v e n t e r r o r s i f you a c t u a l l y remove any o f t h e disks f r o m t h e system. Disable ( o f f l i n e ) t h e i n d i c a t e d d i s k s ? [y,n,q,?] (default: n) y
G At the followiug prompt. press Rehn.11to cotltillue with the operatiotl:
Continue w i t h o p e r a t i o n ?
[y,n,q,?]
(default:
y)
Once the disk group is deported. the vxdisltadm utility displays the following message:
(default:
n)
Alte~natively, cau use the vxdg coiumand to deport a disk group: you
# vxdg depolt diskgroup
2 Select menu item 8 (Euable access to (import) a disk group) fiom the vxdiskad~u ~naiii menii.
3 At the followiug prouipt, enter the liauie of the disk group to import (in this esaiill~le, newdg):
Enable access t o ( i m p o r t ) a disk group Menu: VolumeManager/Disk/EnableDiskGroup Use t h i s o p e r a t i o n t o enable access t o a d i s k group. This can be used as t h e f i n a l p a r t o f moving a disk group f r o m one system t o a n o t h e r . The f i r s t p a r t o f moving a d i s k g r o u p i s t o use t h e "Remove access t o ( d e p o r t ) a d i s k group" o p e r a t i o n on t h e o r i g i n a l host. A disk group can be i m p o r t e d f r o m a n o t h e r host t h a t f a i l e d w i t h o u t f i r s t d e p o r t i n g t h e d i s k group. Be sure t h a t a l l disks i n t h e disk group are moved between hosts.
I f t w o hosts share a SCSI bus, be very c a r e f u l t o ensure t h a t t h e o t h e r host r e a l l y has f a i l e d o r has d e p o r t e d t h e d i s k group.
I f t w o a c t i v e hosts i m p o r t a disk group a t t h e same t i m e , d i s k group w i l l be c o r r u p t e d and w i l l become unusable. S e l e c t d i s k group t o i m p o r t [<group>,list , q , ? ] (default:
the list)
newdg
Ouce tlie inpoi? is complete, the vxdiskad~u utility displays the followi~lg success message:
4 At the followi~ig pro~i~pt, indicate whether you want to h p o ~ allother disk g o u p (y) or rehum to the t vxdisliadm u~aiu 1ue1i11 (u):
S e l e c t a n o t h e r disk g r o u p ? [y,n,q,?] (default: n)
Alternatively, you cau use the vxdg command to import a disk group:
# vxdg import diskgroup
If the -t option is iacluded, the inlpo1-t is temporaiy aud does ilot persist across reboots. I 1 this case. the 1 uuchanged ou its original host. but the disk g o o p is known by stored uaille of the disk group re~naius the llalne specified by ilewdg to the unporting host. If the -t option is not used. the name change is pe~manent. For example. this command temporarily renames the disk group. mydg. as mytempdg on iinpo~t:
# vxdg -t -n nlytempdg impoit mydg
When re~la~niug depoit. you ca11 specify the -11 hostnalne option to assigu a lock to an alteiuate host. on This ensures that the disk group is autonlatically imported wllell the alternate host reboots. For example, this command reuaines the disk group, mydg, as myexdg. and deports it to the host, jingo:
# vxdg -h jillgo
-11
Note: YON carnot use this method to rename the boot disk group because it coiltaias volu~ues are that iu use by mounted file systems (such as 1). To renaine the boot disk group, you must first umlli~~or aud u~~et~capsulate root disk. aud theu re-eucapsulate and remk~or root disk h~a different disk group. the the This disk groop becoiues the new boot disk group.
.-.
Creating subdisks
Note: Snbdisks are created a~~tomaticallyyou use the vxassist collunand or the Veritas Entelplise if Administrator (VEA) to create volulnes. Use the vx~nake command to create VxVM objects, such as subdisks:
# vxmake [-g diskgroop] sd st~bdisk diskname,offset.le~~gth
where: subdisk is the name of the su~bdisk, disk~~aluethe disk name, offset is the starting poiut is (offset) of the snbdisk w i t h the disk, aud leu,& is the leugth of the ssubdisk. For example, to create a subdisk na~ned mydg02-01 iu the disk group, nlydg, that starts at the beginning of disk mydg02 aud has a length of 8000 sectors, use the following command:
# vx~nake mydg sd 1uydg02-01 mydg02,0,8000 -g
Note: As for all VxVM couuuands. the default s u e unit is s. representing a sector. Add a suffix. such as k for kilobyte, ~n for megabyte or g for gigabyte. to change the imit of sue. For example, 500111 would represent 500 megabytes. If yon iuteud to use the new snbdisk to build a voltune, you must associate the subdisk with a plex. Snbdisks for all plex layouts (coucatenated. striped, RAID-5) are created the same way.
The -s optiou specifies information about subdisks. The -t option prints a single-line oatptd record that depends ou the type of object being listed. The following is example output:
SD SV sd sd
PLEX DISK DISI(0FFS NAME PLEX VOLNAME NVOLLAYR NAME m y d g o l - 01 v o l l - 01 m y d g o l o mydgoz- 01 v o l z - 01 mydgoz o
You cau display co~uplete hlfon~~ation about a partic~~lar sttbdisli by using this cornma~~d:
For example, the followiug C O I I I I U ~ I Idisplays all h~fo~matiou snbdisli mydg02-01 in the disk ~ for group, mydg:
Moving subdisks
Moving a subdisk copies t11e disk space contents of a subdisk onto oue or more other subdisks. If the subdisk being moved is associated with a plex, theu the data stored on the o~igiual subdisk is copied to are the new subdisks. The old subdisli is dissociated from the plex, and the new st~bdisks associated with the plex. The associatio~~ at the s a n ~ e is offset within the plex as the sotlrce subdisk. To move a subdisk, use the following couunaud:
# vxsd [-g diskgroup] mv old-subdisk uew-subdisk [new-snbdisk ...I
For example, if 1nydg03 UI the disk group, lnydg, is to be evacuated. aud mydgl2 has enough room ou two of its subdisks. use the followil~g co~lunald:
# vxsd -g mydglnv mydg03-01 1nydgl2-01 1uydg12-02
For the subdisk move to work coi~ectly, following cotlditious must be met: the The subdislis u~volved lullst be the same size. The subdisk being moved must be part of a11 active plex ou au active (ENABLED) voltume. The new subdisli must uot be associated wit11 any other plex.
Splitting subdisks
Splittil~g subdisk divides a11 eexistiug subdisk iuto two separate ~~ibdislis. split a subdisk, use the a To followiug command:
# vxsd [-g diskgroup] -s size split st~bdisk ilewsdl newsd2
where subdisk is the name of the original subdisk, newsdl is the name of the fuxt of the two subdislis to be created and newsd2 is the ualne of the secoud subdisk to be created. The -s option is required to specify the size of the first of the two subdisks to be created. The secoud subdisli occupies the r e m a u h g space used by the origiual subdisk. If the original subdisk is associated with a plex before the task, upon co~upletioil the split, both of the of resulting subdisks are associated with the s a n e plex. couunand as many times To split the original subdisk ulto more than two subdisks. repeat the previot~s as necessary on the resulting subdisks. For example, to split subdisk mydg03-02, with size 2000 megabytes into subdisks mydg03-02, mydg03-03, mydg03-04 and mydg03-05, each with size 500 megabytes, all io the disk goup. mydg, use the followi~~g I I I ~ I I ~ I I ~ S CO
# vxsd -g ~ n y d g 1OOOm split mydg03-02 mydg03-02 mydg03-04 -s # vxsd -g mydg -s 5OOm split mydg03-02 mydg03-02 mydg03-03
Joining subdisks
Joiniug subdisks coulbiues two or more existiug subdisks iuto oue subdisk. To joiu subdisks, the subdisks must be contiguous 0 1 the same disk. If tlie selected subdisks are associated, they ulust be 1 associated with the salile plex, and be co~ltiguous that plex. To joiu several subdisks, use the in followiug couunaud:
# vxsd [-g diskgroup] join subdiskl subdisk2 ... new-st~bdisli
For example, to join the contiguous su~bdisl~s mydg03-02, mydg03-03, mydg03-04 aud mydg03-05 as subdisk mydg03-02 i tlie dish group, uiydg, use the followiug command: u
# vxsd -g lnydg joiu mydg03-02 mydg03-03 rnydg03-01 1nydg03-05 mydg03-02
For example, to create the plex home-l and associate subdisks 1nydg02-01,1nydg02-00, aud mydg0202 with plex home- I, all iu the disk group, ulydg, use tlie followiug couunaud:
# vxmake -g 111ydgplex home-1 sd=mydg02-01.1nydg02-00,111ydg02-02
Subdisks are associated iu order sta~tilig offset 0. If you use this type of coimaud, you do not have at to specify the inultiple colnlnands needed to create the plex aud theu associate each of the subdisks with that plex. III this example. the subdisks are associated to the plex iu the order they are listed (after sd=). The disk space defuled as mydg01-01 is first, mydg02-00 is secoud, and mydg02-02 is third. This method of associating subdisks is conveuieut duriug iuitial coufiguratiou. Subdisks call also be associated with a ples that already exists. To associate one or Inore subdisks wit11 au existiug plex, use the followi~~g u ~ m a ~ ~ d : co
# vxsd [-g diskgol~p] assoc plex subdisk I [subdisk? subdisk3 ...I
For example, to associate subdisks uauled mydg02-01. mydg02-00, aud mydg02-02 with a plex named
of The -I option is required if you previously created a sparse plex (that is, a plex with poltio~ls its address space that do not map to subdisks) for a particular volume. and subsequently waut to make the plex complete. To complete the plex, create a subdisk of a size that fits the hole hl the sparse plex exactly. Then, associate the subdisk wit11 the plex by specifyiug the offset of the begiuuiug of the hole i11 the plex, using the followiug collunaud:
# vxsd [-g diskgroup] -1 offset assoc sparseglex exact-size-subdisk
Note: The snbdisk must be exactly the right size. VxVM does uot allow the space defined for two subdisks to overlap within a plex.
For striped or RAID-5 plexes. use the following co~nmaud specify a coluuu~ to number and colullln offset for the subdisk to be added:
# w s d [-g disk~~,oup]coluu~#/offset -1 assoc plex subdisk ...
If oilly one number is specified with the -lol~tion striped plexes. the ilulnber is interpreted as a for c o l ~ u u ~ ~ and the subdisli is associated at the end of the colu~nu. uuulber Alternatively. to add M subdisks at the e ~ l d each of the N co1111llnsI a striped or RAID-5 volume. of n fol~n you call use the followi~~g of the vxsd co~mnai~d:
# n s d [-g diskgroup] assoc plex subdisk1:O ... subdisl;M:N-1
The followiug example shows how to append three subdisk to the ends of the three colulnns i a striped u plex, vol-01, in the disk group, mydg:
# vxsd -g mydg assoc vo101-01 ulydg10-01:O 111ydgll-0l:l nlydg12-01:2
If a subdisk is filliug a "hole" in the plex (that is. some poitio~l the volume logical address space is of mapped by the subdisk), the snbdisk is considered stale. If the volume is enabled, the associatio~l operatiou regenerates data that belongs ou the subdisk. Otherwise. it is marked as stale and is recovered when the volume is started.
Note: Ouly one log st~bdisk be associated wit11 a plex. Because this log subdish is frequently cau witten, care should be take11to positiou it on a disk that is not heavily used. Placiug a log subdisl~ a on heavily-used disk call degrade system pe~formance.
To add a log su~bdisli au existing plex, use the following con~mand: vxsd [-g diskgroup] aslog plex to # subdisk where subdisk is the uame to be used for the log st~bdisli. The plex must be associated with a lnirrored volume before dirty region loggiug takes effect. For example, to associate a subdisk named 1iiydg02-01 with a plex named volO1-02, which is already vol01 in the disk group, mydg, use the followi~~g couuiand: associated with voluu~e
# vxsd -g mydg aslog volO 1-02 111ydgO2-01
You cau also add a log subdisli to an existing volume wit11 the following command:
# vxassist [-g diskgroup] addlog volume disli
This couunaud autouiatically creates a log stlbdisli within a log plex on the specified disk for the specified volu~me.
For example, to dissociate a subdisk named u1ydg02-01 fiom the plex with which it is c n ~ ~ e u t l y associated i the disk group, mydg, use the following co~luna~ld: n
# vxsd -g mydg dis mydg02-0 1
You cau additionally remove the dissociated subdisks from VsVM control using the followil~g fo11u of the c o m a ~ d :
# vxsd [-g diskgroup] -0 11n dis subdisk
Caution: If the subdisk maps a portiou of a voltmle's address space, dissociatiug it places the volume iu DEGRADED nlode. hl tlus case, the dis operatio~l priuts a \vanling a ~ most be forced using the d
-oforce option to succeed. Also. if re~noving subdisk makes the vol~une the unusable. because another subdisk in the same stripe is unusable or missing and the vol~uule uot DISAElLED and empty. the is operation is not allowed.
Removing subdisks
To remove a subdisk. use the following coumand:
# vxedit [-g disligroup] 1111 subdisk
For example, to remove a snbdisli named luydg02-01fi.01~ disk group, ~uydg, the followiug the use comand:
# vxedit -g lnydg 1x1mydg02-01
Creating plexes
Note: Plexes are created auto~natically you use the vxassist command or the Veritas Enterprise if Admiuistrator (VEA) to create vol~m~es. Use the vxniake commalid to create VxVM objects. such as plexes. When creating a plex, identify the subdisks that are to be associated wit11 it: To create a plex fiom existiug subdisks, use the following command:
# wmake [-g diskgrot~p] plex plex sd=subdiskl [,subdisk?, ...I
For example, to create a coucatenated plex lia~ued vo101-02 from two existi~ig subdisks n a ~ i ~ e d mydg02-01 and mydg02-02 in the disk group, ~ilydg, the following co~mna~td: use
# vxmake -g nlydg plex vo1O 1-02 sd=1uydgO2-01,11lydg02-02
To use a plex to build a volume, yon must associate the plex with the vol~ume.
T l ~ e option priuts a single liue of infomation about the plex. To list fiee plexes, use the followiug -t comwd:
The followi~~g section describes the il~eauing the various plex states that nlay be displayed UI tlie of STATE field of vxprint output.
Plex states
Plex states reflect \ðer or not plexes are coinplete and are consistent copies (mirrors) of the volume contents. VxVM utilities automatically maiutaiu the plex state. However, if a voluine should uot be witten to because there are changes to that volu~ne if a plex is associated mith that volume. you and can modify the state of the plex. For example, if a disk with a particular plex located on it begins to fail, you call temporarily disable that plex. A Note: A plex does not have to be associated with a vol~~me. plex can be created with the vxmakeplex command and be attached to a volt~lne later. VxVM utilities use plex states to:
m indicate whether volume coilteilts have bee11 ii~itialized a known state to
deteill~il~ea plex contains a valid copy ( m i ~ ~ oof)the volume contents if r track whether a plex was UI active use at the time of a system failure monitor operatioils on plexes This sectioi~ explaii~s individual plex states in detail. For more info~~natioii the possible the about transitions between plex states and how these are applied during volume recowrely
Plexes that are associated with a volume have one of the following states:
ACTIVE plex state
A plex cau be i the ACTIVE state iu two ways: n when the volume is started aud the plex f111lyparticipates iu IIOIYU~I vo1111l1eI10 (the plex contellts change as the c o u t e ~ ~ofsthe volume change) t wheu the volume is stopped as a result of a system crash and the plex is ACTIVE at the lnomeut of the crash
In the latter case, a systen~ failnre call leave plex coutents iu an i~~consistent When a volume is state.
started, VxVM does the recovery action to guarantee that the contents of the plexes nlarked as ACTIVE are made ideutical. Note: On a system rrmi~iug well. ACTIVE should be the most conm~on state yon see for ally volmne plexes.
A utility sets the plex state to TEMP at 11ieac.!iI of such a ope ratio^^ aud to an appropriate state at the 1 end of the operation. If the system fails for m y reason, a TEMP plex state iudicates that the operatio11is incomplete. A later vxvol start dissociates plexes it1 the TEMP state.
: ;... : .$
For example, to attach a plex uamed vo101-02 to a vollume uamed volO1 iu the disk group, mydg, use the followi~lg o m ~ a n d : c
# vxplex -g lnydg att volOl vo101-02
If the volume does not already exist, a plex (or ulultiple plexes) can be associated with the voliune when it is created using the followh~g command:
# vxulake [-g diskgroup] -U usetype vol v o l ~ ~ plex=plexl [,plex2...I ~ue
For exa~nple, create a mu~ored, to fsgen-type volume ~ ~ a l n home. aud to associate two existing plexes ed ~lanled home-1 aud home-2 with home, iise the followiug command:
# vxmake -g mydg -U fsgeu vol holl~e plex=l~ome-,home-2 l
Note: You can also use the couunand vxassistmu~or volul~ne add a data plex as a ~nirror an to to existiug volluue.
If a disk has a head crash. put all plexes that have asqp-i~te.?suhdishs dn the affected disk OFFLINE. u 'l.ou~.mydg, had subdislis on a drive to be For example, if plexes volOl-02 and vo102-02 i ti, repaired, use tlie following command to take these plexas offline:
This coulmaud places vo101-02 and vo102-02 in the OFFLINE state, and they remain in that state until it is changed. The plexes are not a~~tomatically recovered on rebooting the system.
Detaching plexes
To temporarily detach a l e data plex ul a anirrored volume, use the followirlg co~nmand:
# vxplex [-g diskgroup] det plex
For example, to temporarily detach a plex uaulled volO1-02 in the disli group, ~nydg, place it i 1 and 1 maintenance mode. use the followi~ig co~unand:
# vxplex -g mydg det vo101-02
TIUSconlmand ten~porarily detaches the plex, but n~aiutaius associatiol~ the behveeu the plex and its with the precediug command is volume. However, the plex is not used for VO. A plex detacl~ed recovered at svstem reboot. The nles state is set to STALE. so that if a vsvolstart collunaild is I.LIII on the appropriate v o l ~ ~ i (for exarnple. OII system reboot), the co~lteuts the plex is recovered and 111ade ne of ACTIVE.
Reattaching plexes
When a disk has been repaired or replaced and is agaiu ready for use, the plexes I I I L I S ~ pot back be online (ples state set to ACTrVE). To set the plexes to ACTIVE, use one of the followi~~g procediues dependmg on the state of the volume.
m If the voli~me c u ~ ~ e n tENABLED, use the followi~lg is ly co~nmaud reattach the plex: to
...
For example, for a plex named volOI-02 or1 a vol~une na~ned volOl in the disk group, mydg, use the following command:
# vxplex -g inydg an volOl vo101-02
As when returning an OFFLINE plex to ACTIVE, this command starts to recover the co~itents the of plex aud, after the revive is complete, sets the plex utility state to ACTIVE. If the volume is not in use (not ENABLED), use the followiug conmand to re-enable the plex for use:
For example, to re-enable a plex named vo101-02 in the disk group. mydg, enter:
# vxmend -g mydg 0 1 ~0101-02 1
111this case. the state of vo101-02is set to STALE. When the volume is ilext started, the data on the plex is revived from auother plex, w d incorporated iuto the volulne wit11 its state set to ACTIVE. If the vxiufo commaud shows that the volume is uustaltable, set one of the plexes to CLEAN usiug the followiug c o m a u d :
# vxmend [-g diskgou~p] cleau plex fix
Moving plexes
Moving a plex copies the data co~~teut the oi~ginal fiom plex onto a new plex. To move a plex. use the followi~~g command:
# vxplex [-g diskgroup] UIV originalglex n e w j l e x
For a move task to be successful, the followiug criteria must be met: The old plex must be au active pait of w active (ENABLED) volume. The ilew plex 111ustbe at least the same size or larger than the old plex. The new plex must not be associated with another ~oluine. size of the plex has several The in~plications: If the new plex is sinaller or Inore sparse than the origiual plex, an illcomplete copy is made of the data 0 1 the original plex. If an illcomplete copy is desired. use the -oforce option to 1 vxplex. If the uew plex is longer or less sparse t h w the original plex, the data that exists ou the origiual plex is copied onto the new plex. Auy area that is not on the origiual plex, but is represeuted on the new plex, is filled from other coinplete plexes associated with the same volume. If the new plex is longer thau the volu~ue itself. theu the remaining area of the new plex above the size of the volume is ilot iuitialized and remains ~mused.
Copying plexes
This task copies the couteuts of a volume onto a specified plex. The volum~e be copied nnist not be to enabled. The plex cwuot be associated with ally other volume. To copy a plex, use the followiug comaud:
After the copy task is complete, n e w j l e x is not associated wit11 the specified volulme vol~rme. The plex contaius a complete copy of the volun~e data. The ple.; that is being copied s h o ~ ~be the sallle size or ld larger than the vol~ume. the plex being copied is lager than the vol~mie, hcomplete copy of the If an For data res~dts. the same reason. newglex should riot be sparse.
'
dis plex
For exauiple, to dissociate and remove a plex named vo101-02 iu the disk groop, mydg, use the followi~ig o ~ w d : c
# vxplex -g nlydg -0 IU dis vo101-02
This commaud removes the plex vol0l-02 aud all associated snbdisks. Alteruatively, you can first dissociate the plex aiid subdisks, ru~d then remove them with the following commands
# vxplex [-g diskgroup] dis plex # vxedit [-g diskgroup] -r 1111plex
ce When used together, these commands p r o d ~ ~ the same result as the vsplex -0 1111dis comiland. The -I option to medit ml recursively removes all objects from the specified object downward. In this way, a plex and its associated subdisks can be removed by a siugle vxedit colwand.
witliiu a plex. C o n c a t e ~ ~ a t allows a volt~me be created fiom multiple regions io~~ to of one or more disks if there is not enough space for an entire volume on a single region of a disk. Striped A volt~me with data spread evenly across nlultiple disks. Skipes are equal-sized fragneuts that are allocated alteinately and evenly to the subdisks of a siugle plex. There must be at least huo subdisks in a striped plex, each of which must increases with the nuuber of disks across exist on a different disk. Thoogl~put which a plex is striped. Striping helps to balance 110 load iu cases where high traffic areas exist on certaiu sobdisks. A voluine with ll~ultiple data plexes that duplicate the illfolnlatiol~ contained in a voliune. Although a volune call have a siugle data plex. at least two are required for true llli~~oringprovide redtmdancy of data. For the redllllda~lcy be to to usefi~l, each of these data plexes shoold coutaiil disk space from different disks. d disks A volulne that uses striping to spread data a ~ parity- eveellly across ll~ultiple iu an array. Each stripe col~tains parity stripe unit and data stripe uuits. Parity a
Minored
IEI
.aurlr[o,\ S - a I a aqjjo smnrrloo arp ,103pas11 a.re lerp asorp mql .larpo sys!p uo s a s a ~ d pamSrpoo a.ra se sBo[ asaqL .sarmr[oi\ S - ~ V ~ ,C.rai\ooa.r Bu!.~upelep jo rro!ldrl.uoo luaaa.rd 01 pas11 ale sZo1 ~ - m J O .amn[ol\ 03a oz no!sla,\ a 30 $red sa .lo 'saxa1cl Sol 7aa se .laq)!a pa$roddrls a.ra sSo1 a s a u .qse.ro U I ~ ~ SeL S sarmiloh palo.rr!rrrjo L.ra~ooar aq) MoIIe sZo1 no!Sar /cl.rta .rage lsej .s)or1sdaus atnnlon lrre)sn! pazmn~do-aosdsprra paz!s-111ij .roj 3uLsaa)sed )rrals!s.rad pue Brr!890178(1 ~roddns MXA m paonpo.r)~ *O'P 'sauniloA 03a oz no!s.raA .loqsdans amuIoAjo adLjgo-yea.rq .ro.u!ru-pqtp Iaoo!)g)a.v aq) .roj orrLsa8jssd jnajs!s.rad $rodd~is p o samnloh 03a 0 no!s.raA L
03a " $red se ys!p uo .IO '(ouLsaalsad )najs!s.~ad-no~) 0 L.roaram LC.laqj!a pa$rocld~ls sdam asaqL a.re
.s.ro.rr!mjo uo!)ez!rro.rr~onLsa.~ jna!oga prrs y3!11b nuoj~ad pasu a.re sdam onLsaa)sed 01 :samtqoA q j sdam pna sSoljo s a d 4 le.~a.~as as11 aqj s~~oddirs ~ jo .raSemm amcl[oA sejuaA
.samnloA .ro.rrp~-palana)aonoo pne .rou!rrr-pad!.r)s a.18 samuloh pa.raLe1j o saldmexg ')noLe~[eo!So1jo smroj xaldmoo a.rom jo uo!jea.~oarp MoIle p11e '(samrilo~ aSe.~ojs mtorq) saurriIoA Bu!Lpapmlo) sys!pqns .naq) Su!ddam se Lq pajon.rjsooo ale sarnrlloh pa.raLal .sys!p 01 S ~ S ! P ~ I I .t!aql S ~ d d e nLq S r palon.qsooo are samnloh pa.1aLs1-rro~ .sarunIoA .rarl)o nro.tj pa~ou.r)srroo aurllIoh v
amnloA p a ~ a b r l
x l e p j o Lowpm~par pnuys!p ald!)~r~m ss0.13eelep Zmpealds Lq aonsmroj.rad pasaa.rorF a.re )11oLe1SF[IIJO saSesre~pe ar[L '(pad!rls .IOa[cIuns s! said aql .rarI)aqM rro Bmpnadap) Zrr!.ro.u!rn ,103sys!p ~ .raqjo a.rorrr .ro aoo prre Zqd!l)s .roj sys!p o w )seal sa.t!nba.r s g .an0 pad!.t)s at[! s.Io.u!rrr !ern xald .rar[jorrt!pne xald pad!ys a se pa.ruBgrroo s! lerp anrrqoh v
adyjs-pa~o~.r!,q
.pa.nubar aoeds jo )mlorne aq) saoupa.1Lowpn1ipa.r ejep ~rrarna[dm! Ll!.redjo asn arp 'Bn!.ro.r~!nr 01 nos!.radmoo m 'raAah\oH ol .passaooe s! ejep arm) qoaa pa~epdu 01 spaan no!lemroju! &!.red aoms aq sasea.oap sanm[o,\ S - ~ J )l~d$r~o.npal!.m 'satnnlon pad!.rlsjo aouemroj.rad O arp oj tros!.rednroo u1 y q s>~s!p arI)jo arroj! elep Ion.vsnooa.r 01 pasu aq nao
Creating a volume
You can create volumes using an advauced approach, au assisted approach, or the mle-based storage allocation approach that is provided by the hltelligeut Storage Provisiouing (ISP) feature. Each method uses different tools. You may switch between the advanced and the assisted approaches at will.
Note: Most VxVM commands require superuser or equivalent privileges.
Advanced approach
The advanced approach consists of a number of c o m w d s that typically require you to specify These couuuauds use a "buildil~g blocli" approach that reqtiies you to have a detailed detailed u~put. knowledge of the tu~derlyiug structure aud co~uponents n~anually to perfo~ni commands necessary the to accolnplish a certaiu task. Advwced operations are perfolvled using several different VxVM couunwds.
2 Create plexes usiug vxmake plex, and associate subdisks wit11 them
Assisted approach
Tlie assisted approach takes h ~ f o ~ - ~ ~ ~ a t i owhat you want to accomplish and then perfonns the about n necessary underlyi~~g tasks. This approach requires only minimal illput from you, but also pelnits more detailed specifications. Assisted operations are perfo~n~ed primarily thou* the vxassist commald or the Veritas Ente~yl-ise Adnliuistrator (VEA). vxassist aud the VEA create the required plexes and subdisks using o~lly the basic attributes of the desked volmne as input. Additionally, they call modify existing volumes wliile auto~natically modifying any tmderlyiug or associated objects. attributes, mlless you prokide specific Both vxassist and the VEA use default values for lnauy volm~ie
values. They do not require you to have a thorougl~ understandiug of low-level VxVM concepts, vxassist aud the VEA do not conflict with other VxVM commands or preclude their use. Objects ir'e:;operab!e 1ri;tL ol?jeqts ?.l.e?ted other by create~i \sassist and the VEA are compatibrs 1.;) VxVM com1;~1ds interfaces. and
1 Using vxassin [
You c w use the vxassist utility to create and modify volumes. Specify the basic reqoirerneuts for volume creation or modification, w d vxassist perfoms the uecessaly tasks. The advantages of using vxassist rather than the advanced approach include: Most actious require that yo11 enter only one command rather than several. You are required to specify ollly nlinimal hifolnlation to vxassist. If necessary, you can specify additional parameters to modify or control its actions. Operations result iu a set of configuration c h a ~ ~ gthat either succeed or fail as a group, rather than es do individually. System crashes or other intel~iuptions not leave htennediate states that you have to clew up. If vxassist fiuds an enor or an exceptional co~~dition,exits after leaving the systelu in the it same state as it was prior to the attempted operation. The vxassist utility helps you perf01111 the folloc\bg tasks: Creating volu~ues. Creating minors for existing volomes. Growing or shrinking esisting voliunes. Baclimg iup voliuues online. Reconfiglriug a voliume's layout online. vxassist obtaius no st of the i~lfonuation needs fiom sources other than your illput. vxassist obtains it iufolmation aboid the existing objects aud their layoots from the objects themselves. new For tasks reqaili~~g disk space, vxassist seeks out available dish space aud allocates it in the configaratiou that c o ~ l f o ~ m sthe layoat specifications aud that offers the best use of fiee space. to The vxassist c o m ~ a u d takes this folm:
# vxassist [options] keyword volu~ue [attributes...I
Where keyword selects the task to perfonn. The first algimlent after a wassist keyword, volmue, is a volome name, which is followed by a set of desired voliunle attributes. For example, the keyword malie allows yoit to create a new volume:
# vxassist [options] make voliuue length [attribi~tes]
z=ad!l~su-u!u 8 = a d !l1su-xeu suunlo3 # J~!JIS 8 PUP Z UaJMJJq aJPal3 J l n e j a p hq ' ~ u ! ~ ! J JJs l n 6 a l 104 # e Z=lOll!LllU SlO.lJ!U O M 1 aJPJl3 ' 6 U ! l o l J ! U UJqM # 1ool=dnol6 Jool=lasn =O'=~'MI=~=JPOUI awnlo/\ e 01 ssa33e 1001 h l u o M o l l e # uafis~=adh~asn SaunloA 5 -alVtl 6 u ! 1 e a l 3 u a q ~~ d a ~ x ' a d h ~a6esn ua6s4 aq1 asn # u6!1ey5!~ ' 6 0 ~ ~ 0 ! 6 ~ ~ 0 ~ ' 6 0 ~ 5 p ! e 1 ' 6 ! ~ u o ~ o u ' u e d s ' ~ d ~ ~ o s a ! l e p u n o q l a p u ! l h 3 uo s u o 1 1 e 3 o l l e u 6 ! l e # 601 e a ~ e a l 31,uop ~ U ! J O J J ! L~ J ! M '601 e a ~ e a l 3S - a l t j t l ~ J ! M# U SaA!Jp ueds 0) s U o ! ~ e 3 o l l e M O l l e # SaunloA p a d ! J ~ s u n ' p a l o l ~ ! l u u n a)eals # :JlneJap hg #
:pmmmoo ls!ssexi\ aqljo mroj Sn~zolloj as11 'ls!ssexi\/ll~igap/3la/aIg arll u plaq salnq!.rUa ~[riajap Lslds!p 0 arll ! aql 1 .s[!qap ,103 asad [elineur ( ~ ~ ) ~ s ! s s a111 wA 01 .rajax 'ant[ p r r e m o o ~s!sssxi\aql uo sno!ldo se pagoads asoql sa amas aql are s.r!ed an~ei\-aluq!.r~e asalK .Sam1 Man Lq pala.radas s.~!adanleh-al~iq!.~~ejo a s! alg slpiajap a u! sa!.r)najo laurroj a q l ls!l .a.ratpasla paogap anleh a pmj Iormao )!j! sasn I! ~ a slprgap y-q!nqjo las a saq osla ls!ssex,\ .aorrapa3a.rd sayel ~ g SLWIBan!( pusururoo aql no pagpads anlei\ llnqap v .no!ydo p- arll Bmsn L p a d s uoL 1sq) alg sllr~ajap alsnralle na m .to 'am[ posutru~oo no maq) apkua,\o loa op noLj! joaga aya) alg sm) I? pals9 s~lriajap aq) a q l ~~s!ssaxi\/)111gap/~a/ aq) rr! pagpads aq Laro sasu prnnnnoo ls!ssexl\ aql )ELI) sanlaA )pigap a r u alg
# f o r RAID-5, by d e f a u l t c r e a t e between 3 and 8 s t r i p e columns max_nraid5stripe=8 min-nraidsstr ipe=3 # by d e f a u l t , c r e a t e 1 l o g copy f o r b o t h m i r r o r i n g and RAID- 5 volumes nregionlog=l nraidslog=l # by d e f a u l t , l i m i t m i r r o r i n g l o g l e n g t h s t o 3zKbytes max_regionloglen=3zk # use 64K as t h e d e f a u l t s t r i p e u n i t s i z e f o r r e g u l a r volumes stripe_stwid=64k # use 16K as t h e d e f a u l t s t r i p e u n i t s i z e f o r RAID-5 volumes
For example, to discover the maximum size RAID-5 voliuue with 5 c o l m ~ ~ands2 logs that you call l~ create within the disli group, dglp, enter the fol lowiug collunand:
# vxassist -g d g p maxsize layout=raid5 1110g=2
You can use storage attributes if you nant to restrict the disks that wassist uses when creatulg volumes.
Note: The nlaximtuu size of a VxVM volulme that you can create is 256TB.
By default, vxassist auto~uatically roimds up the volilme size and attribute size values to a midtiple of as the alignment value. (This is eqtdvalent to specifyiug the attribute dgalig~_checkiug=roiu~d an additioual argument to the \%assist command.) If yon specify the attribute dgaligl-checlting=strict to ~xassist, co~lunand the fails with an error if you specify a volume length or attribute size value that is not a mi~ltiple the a l i g ~ ~ n evalue for the disk of nt
group.
7 .
L..
Note: Specify the -b option to initialize the voliuue iu the backgrouud, this will make the voluune immediately available for nse. of For example. to create the collcatenated volume voldefault with a lengtl~ 10 gigabytes in the default disk groutp:
# vxassist -b make voldefault log
For example, to create the volume volspec wit11 length 5 gigabytes on disks mydg03 aud mydg04. use the followiug commaud:
The vxassist conlu~aid allows you to specify storage attributes. These give you c o ~ ~ t rover. the ol devices, iucludulg disks. controllers aud targets, which vxassist uses to configure a voliuue. For example, you c w specifically exclude disk mydg05:
# wassist -b -g nlydg make volspec 5%!mydg05
If yo11 waut a volume to be created using only disks fiom a specific disli goup, use the -g optiou to vxassist, for example:
# vxassist -g bigoue -b make vohnega 20g bigonel0 bigonel 1
Note: Any storage attributes that you specify for use mt~st belong to tile disk group. Otherwise. vxassist will not use theill to create a volume.
'. vu cau also use storage amibutes to control how massist uses available storage, for example, when calculating the maxin~ui~l of a voltune, wheu growiug a volulne 01. wheu removiug ~uinors logs size or from a voli~me. The follo\vblg example excludes dishs dgy07 and dg1p08wlleu calculatu~g the maximiuu size of RAID-5 vol~ume that vxassist cau create nsiug the disks in the disk grou~p dg:
See the \.xassist(lM) mauual page for more itifo~u~ation about using storage athibutes.
mydg03 mydgO4 111ydgO5mydgOG Tllis conm~and places columns 1. 2 a t ~ d of the first min.or on disks mydg01. mydg02 and mydg03 3 respectively, and colu~~lus 2 and 3 of the second III~ITO~. disks myd&01. mydg05 and mydgOG 1. on respectively. This a ~ ~ a ~ l g e ~islillustrated in the following figure. l e~lt
'808pi(m rl8110.11~ g)8p.C11r sys!p !L! paItLIoj i(l.Ie[nIr!s natp a.re su~unlo:,asarIljo s.ro.Lr!m a t u 'z: ntu11103 01 t08pLtt1 m0.g salLqe8!8 Z: poe ~ 0 8 p L m 1no.g sa~qeS!S E ptle '1 turnlo3 01 ~08pLur 1uo.g sa~quZ!B z puq08pdu1 mog sa&@!8 E sag3olla pnertruro3 s!rl~
:stImtllo3 i. m y amuIoil ad!qs-pa.~o.~nm salea.13pnemmo3 Bnyolloj aq) 'a~dmesa I O ~ e . .strtm~lo:, oln! sys!p arll tro a x d s alenale3tro:, 01 ~ o Ljpads 01 aluq!.rUe r[3lys-[03 aql asn 11123 'Llleno!l!ppv q 11oL
+tunlo,\ ~ o i . i ! ~ ~ l - p a d ~ ~ i ~ ~
I
~0BpLm SyS!p
SSOJ3B
.toBpLm pne Z 1111111103P U '~oZpL1t1 10Zp/CtIISyS!p SS0.13B 1 U 1 1 1 3 S.IO.LI!ttI PUBUTttI03 S!qL U PtIB 1110
:smm1103 Z: q ) y atmqo,\ . ~ o . ~ r p - p a de salaa.~:, ~ r ~ s pmmcno:, Strp%o~~oj 'aldmxa aql .rod .samnIoil pa.raXe1-uon ,103se a8e.rols ale3olle 01 s a p ames arIl saqdde Jsrssexh 'sannqoh pa.ra.ie1.10~
-Striped plex
.--:r~dirror
'
- St:riped plex
L Mirrorerf-stripe volume
Other storage specificatiou classes for controlle~s.ellclowlres, targets aud trays can be used with ordered allocatiou. For example, the followhg coluuaud creates a 3-col~uuu minored-stripe volume between specified controllers:
# vxassist -b -g lnydg -0 ordered malie mirstr2vol 80g layot~t=lllinor-stripencol=3 cth:cl ctl1.:c2c t k c 3
ctlr:cl ctlr:c5 cth:c6 This co~nmai~d allocates space for coltmu~1 from disks on co~it~.ollers, for c o l u m ~ ~ cI 2 fiom disks on coi~troller a i ~ d ou as illustrated ~ I I followii~g c2, so the figure.
IPI
2-olloj
[ah!)ov+~~~] [.raqrnnr~=~o.u~rn]o ~ ~ ) n oq)Bna[ amliloh aqeru [dno.~Bys!p8-1 [q-] )s!ssexh # .~ Asl :pnemnro3 B m , ~ o ~aq) asu 'an1111o~ ~oj paIo*lpm Man e alea.13 o~
.sl!ej SIO.LI!~I ~nanodn~oo ano qs!p e J! )so1)or1 s! epp sl! lsql sa.msna arnlqoA e S F I O . L ~ ~ s)!jo .S.IO.LI!UI 1aq)o m o g poe aruriloh aq)jo Cdoo lerr!Zpo aq) moy sys!p lrra.Ia.jj!p no pa.Io)s s! (.Io.LI!~ .to) Ldoo q3eg .e)ep S)!JO Ado3 at10 neq) alorn 8mme)noo Lq L3oepm1pa.t elep sap!.\o.td amrqoi\ paxo.rmn v
By default. FastResync is not enabled ou newly created volumes. Specify the fastresyuc=on attribute if you want to ellable FastResyuc 011 the volmne. If a DCO object and DCO volun~e associated with are the v o l ~ ~ mPersistent FastResyuc is enabled; otherwise, Nou-Persisteut FastResyuc is enabled. e,
2 To enable DRL or seqoeutial DRL logging on the newly created volume. use the followiug comrna~d: # vxvol [-g disligroup] set logtype=drlldrlseq volulrte For more iufollnatiou, see the \xassist(lM) aud \~xvol(lM) manna1 pages.
If you use ordered allocatiou wheu creating a mirrored volruue on specified storage, you can use the optioual logdisk athibute to specify on which disks dedicated log plexes should bc created. Use the following f o m of the vxassist c o m a u d to specify the disks from which space for the logs is to be allocated:
# vxassist [-g diskgroup]
-0 ordered make volou~e leugth layout=u~i~+or logtype=log-type logdisli=disk[,disli....I storage-attributes
If you do not specify the logdisli attribute. vxassist locates the logs UI the data plexes of the volume.
For example, to create the 10-gigabyte sb iped volume volzebra, i the disk group, mydg. use the u followiug co~mnaud:
# vxassist -b -g mydg make vo1zebl.a log layout-stripe
This creates a striped \folame wit11 the default stripe Illlit size (64 kilobytes) and the default ntunber of stripes (2). You cau specify the disks on which the volonles are to be created by i n c l r ~ d i ~ ~ gdisk names on the the C O U U I I N I ~line. For example, to create a 30-gigabyte striped \rolnme 0 1 three specific disks, nlydg03. 1 1nydgO4, and tuydyO5, use the following co~nmalld:
# vxassist -b -g 111ydgmake stripevol 30g layout=stripe 1llydg03111ydgO41llydg05
To change the III--.'--* of c o l u ~ ~ orn s stripe width, use the ucolr~~lm striperluit modifiers \vith ~ the aud vxassist. For ex,. 111efollo\\ing c o u i a n d aeates a striped volu~lle with 5 colum~ls a 32and
[ ~ ~ c o l = ~ ~ u m b e r ~ o f ~ c oI:stripewidtli=size] lulm~s]
[~~col=~li~mbe~of-columns] [stripewidtl~=size] By default, VxVM attempts to create the underlyu~g volumes by m i ~ ~ o l i n g subdisks rather than c o l u m ~ if the size of each colu~nu greater than the value for the attribute stripe-hror-col-splits is trigger-pt that is defmed in the vxassist defaults file. If there are multiple silbdisks per column. you cau choose to minor each subdisk iudividually instead of each column. To mi~ror the subdisk level, specify the layout as stripe-murorsd rather than stripeat mirror. To m i ~ ~ at r col~umn o the level, specify the layout as stripe-muror-col rather than stripe-mi~ror.
# vxassist [-b] [-g diskgroup] nnake volumne length layout=layout mu-ro~=target [attributes]
... . . . ..
Tlle attribute mi~-rom=ctlrspecifies that disks in one miror should not be on tlie same co~itroller disks as in other nliil.ors within the same volume:
# vxassist [-b] [-g diskgro~~p] make voltuue length layout=layo~~t iuirror=ctlr [attributes]
Note: Both paths of an active/passive ammy are not collsidered to be on different controllers when lnirromkg across controllers. The following c o m a u d creates a milrored volume with two data plexes in the disk group, mydg:
# vxassist -b -2 mydg malie volspec log layoutlllliiror II~I~ITOI-2 nninro~=cthctlr:c2 ctlr:c3
The disks u one data plex are all attached to controller c2, and the disks in the other data plex are all n attached to controller c3. Tlnis arrangement eusures conti~lued availability of the volume s h o ~ ~either co~~troller The ld fail. attribute mi-roi-enclr specifies that disks 11 one minor s h o ~ ~not be in the same enclosure as disks in 1 ld other inurors w i t h the same volunne. The following command creates a minrored volume uith two data plexes:
:aldmaxa .roj 'aarnloh a rro anla.1 Bsl ~sno!ldoPIIS QSJ panrat1 s !as ol puamnro3 aysmls!sssxl\ aql 1111~ alnq!.ma Be! aql asn m 3 noA .ap!uf) s..rola.rls!u!orpv mals,ts a p 5 sa)!.raA aL[) aas 'a.rlsaaj s!ql lnoqa uo!)sa~~oju! a.Ion1 . I O.a.ra/ylos ~ no!)apmlod aBs.rols aqljo a.m)aaj Sm.ra!~ aBa.ro)s ~ ! u I ~ Iaq) ~uamalda~! pasn a.Ia s8e) amlqoA IL~ 01
salnq!.~~s-aBa.rols [~~~~ys!p']ys!p=ys!pBo~ [qGnal-Sol=ualZol] \ [.1aqm11~r=8olu] [s~mru~o3-.1aqrr1nn=10311] sp!s.~=lr~oLslq s o a l amnloA aysm pa.lap.10 o- [dno.rSys!p 8-1 [q-] ls!ssam # :pals3olla aq 01 s! sBo[ aql .roj a x d s I ~ ! I ~ M o g sys!p arp L p a d s 01 pmrmnno3 ls!sssxl\ aqljo mroj m Bnpto[loj arll a s n .pa)aa.I3aq plnoqs saxald Sol s - a m at[$sys!p q3!qh\ no Ljpads o) a)nq!Jue ys!pZol at11 asu ISIIUI nod 'a8s.10)~ pag!3ads rro amulo;\ s - m a Brrgaa.13 rrarp rto!la3olle pa.rap.ro asn noLj1
'xald S - a w a arp JO az!s ad!.r)s arp s a r q 1a.laAas aq p111oqsSol arll 'La.ua s-ala aq) 01 ssams )ua.rru3no3~1odc111s ,arrrnlo,\arll .roj oo!lsrrnojo! 8n!%Sol aql JO Ldo3 alaldmo3 a sarl arnnloh o~ S - ( J I ~a r1)+ paly3osseSol j - a I m rpaa pua 'saxald pad!.rls .TOpa)snala3oo3 aq rla3 sBo1 s-(flm ,103pas11 aq 01 sqs!p aq) L p a d s 01 alnq!.rUa ys!pBo[ at[$asn lsurrr noL '~801 s
- m a~!nba.r11oLj1:a)oN
501 anojo )IIiqap aql m q l ratpal sBo1 s - r n OM$ salsa.13 os[e 1 'sysp jo .raqtmIn q u q a p aql no az!s l y l ad!.ys )Inejap aql qlpw amn[oA 5 - r n walaa.t3 s!rll 1
To list the tags that are associated with a volu~ne, this co~nmand: use
# vxassist [-g diskgoup] listtag volume
To list the voluuues that have a specified tag name. use this co~nn~and:
# vxassist [-g diskgrotrp] list tag=tagame volume
character shings of up to 256 characters. Tag naiues cau Tag uames and tag values are case-sa~sitive cousist of letters (A tlu.ouiJl Z aud a t11rot1glIz). nt~mbers tluougl~ dashes (-), underscores (J or (0 9), periods (.) from the ASCII character set. A tag name must stai-t with either a letter or an uuderscore. Tag values cau consist of auy cl~aracter from the ASCII character set with a deciu~al value from 32 through 127. If a tag value includes any spaces, use the vxassist settag command to set the tag on the newly created voltme. Dotted tag hierarchies are uuderstood by the list operation. For example, the listing for tag=a.b includes all volumes that have tag names that stai-t with a.b. The tag names site. udid and vdid are reserved aud should uot be used. To avoid possible clashes with future product features, it is recomnended that tag nalnes do not stall with any of the follo\Ying striugs: asl, be, isp, nbu, sf, sylnc or \;x.
Note that because four su~bdislis specified, but the number of colu~n~nsnot specified, the vxmake are is couunaud assumes a four-colurnu~ RAID-5 plex and places one subdisk in each coluum. Striped plexes are created ush~g san~e the method except that the layout is specified as stiipe. If the subdisks are to be comlnand to create the plex: created and added later, use the followii~g
# mmake -g mydp n l ~ u raidplex layout-raid5 nco~unm=4 stwidtl1=32
If each colmnn iu a RAID-5 plex is to be created fiom multiple subdisks which may spau several physical disks, you cau specify to which coltunu each subdisk should be added. For exalnple, to create a three-colimm RAID-5 plex usiug six stbdisks. use the following for~u the vxmake commaud: of
# vxmake -g mydg plex raidplex layout=raid5 stwidth=32 \
The followil~g o m a n d creates a RAID-5 volume. and associates the prepared RAID-5 plex aud c RAID-5 log plexes wit11 it:
# vxmake -g mydg -Uraid5 vol raidvol plex=1.aidplex.raidlogI,raidlog2
Note: Each RAID-5 volume has olie RAID-5 plex where the data and parity are stored. Auy other about data and plexes associated with the volume are used as RAID-5 log plexes to log info~~natiou parity beiug written to the volume. After creatiug a voln~ne nsu~g vxu~ake. mlrst iuitialize it before it call be used. you
Alternatively, you cau specify the file to vxmalie usiug the -d option:
# vxmake [-g diskgroup] -d descriptiou-file
The followi~~g sample descriptiou file defu~es voltune, db, with two plexes. db-01 and db-02: a
#rty sd sd sd sd sd plex
#name #options rnydg03- 01 disk=mydgo3 o f f s e t = o l e n = l o o o o rnydg03- 02 dis k=rnydg03 o f f s e t = 2 5 0 0 0 l e n = l 0 4 8 0 rnydgoq- 01 disk=rnydg04 o f f ? t = o len=8000 rnydg04- 02 disk=rnydg04 o f t > .:t=~l;ooo len=8ooo rnydg04- 03 disk=rnydgoq offse:=30000 len=4480 d b - 0 1 layout=STRIPE ncolurnn=2 s t w i d t h = 1 6 k sd=rnydgo3- ol:o/o,rnydgo3- 02:0/loooo,rnydg04- o l : l / o , mydgoq- 02:i/800o,rnydgo4- 03:1/16000 sd rarndl- 01 d i s k = r a r n d l len=640 cornrnent="Hot spot f o r dbvol plex db-02 sd=rarndl- 01:40320 v o l db usetype=gen p l e x = d b - o i , d b - 02 r e a d p o l = p r e f e r prefnarne=db- 02 cornrnent="Uses r n e m f o r h o t spot i n l a s t
5rn
Note: The subdisk defu~ition plex, db-01, must be specified ou a single line. It is showm here split for across two hies because of space coustraints.
The fnst plex. db-01, is striped and has five subdisks on two physical disks. 1nydg03and uiydg04. The second plex. db-02. is the prefened plex in the nunor, and has oue sttbdisk. rand 1-0 1. on a volatile n~eluory disk. For detailed infolmatiou about how to use vxrnalie, refer to the vmalie(1M) manual page. After creating a vol~tme using vslnalie, you must initialize it before it cau be used.
The -b option makes VxVM carry out any required initialization as a bacligrom~dtask. It also greatly speeds up the creatio~~ striped volumes by i ~ ~ i t i a l i zthe~ g of i ~ colmiins in parallel. As au alten~ative the -b option, you can specify the init=active attribute to make a new volll~l~e to illwiediately available for use. Lu tlus example, u~it=activeis specified to prevent VxVM from synchoniziug the euipty data plexes of a uew mirrored volume:
# vxassist [-g diskgroup] make volume length Iayoutt=mi~~or init=active
Caution: There is a very s~uall of e i ~ o r occui~iug risk s when the init=active attribute is used. Although written bloclis are guarailteed to be consistent. read errors can arise in the uulikely eveut that fsck attempts to verify uuiuitialized space iu the file system, or if a file r e ~ n a i uuiuitialized follo\ving a ~~s system crash. If in doubt, use the -b optioil to vxassist instead. This co~lliilarldwites zeroes to the entire length of the volume and to ally log plexes. It then makes the vol~lme active. You call also zero out a volluue by specifying the attribute iuit-zero to vxassist, as sl~owil this example: in
# vxassist [-g diskgroup] make volume length layout=laid5 iuit=zero
Note: You c m o t use the -b option to make this operation a backgrollud task.
The followiug command cau be used to enable a voltuue without iuitializiug it:
# vxvol [-g diskgroup] init enable volume
This allows you to restore data ou the volume from a backup before using the followii~g o m a u d to c malie the volume fully active:
# vxvol 1-g diskgrot~p] i t active volume h
If you waut to zero out the conteuts of au entire voltume, use this coil~~llaud iuitialize it: to
# vxvol [-g diskgoup] illit zero \ r o l u ~ ~ ~ e
Accessing a volume
As soon as a volume has been created aud iuitialized, it is available for use as a virhial disli partition by the operatiug system for the creatiou of a file system, or by applicatiou prograins such as relational databases and other data management software. Creatuig a volume iu a disli group sets up block aud character (raw) device files that c w be used to
/dev/vx/dsWdiskgrou~p/vol~~~~~e block device file for volulue /dev/vx/rdsWdiskgrou~p/voluu~~e character device file for volulue
The patlmames iuclude a directory ualned for the disk group. Use the appropriate device uode to create, moilut aud repair file systems, aud to lay out databases that require raw pal-titions. Note: As the rootdg disk group no longer has special significance, VxVM only creates volume device I nodes for this disk group ~ Ithe /dev/vx/dsWrootdg and /dev/m/rdsk/rootdg directories. VxVM does uot create device nodes in the /dev/vx/dsk or /dev/vx/rdsk directories for the rootdg disk group.
-u
P,lAttlE
NME
R J ; '
/:?SET!
CSK3TATE F:ST.L.TE
DISK
LEFIG'I'H LEIFZTH
FREFPLEH
LiCC.L( X I D DF,71i'E
CITY FE
lOOE
PL
VCnLCRIE
an
,, N ? M _:, ,.
SCi
P.I-U~TE N.4ME
I.Ik3DE
I.l,2,EE lODE
--
>X'NI.I
DFII'IIE
PZ N X E 6 P N.914E
f sgen
R; : *
C 1tOllCl
EN.%
<.(>IK".T
.-
B E L ~ T
f sggn
J:F :
cltldrj
ENA
Here v is a \lolume. pl is a plex, aud sd is a sobdisk. The top few lilies iidicate the headers that ii~atch each type of output line that follows. Each volume is listed alo11g with its associated plexes aud sttbdisks.
Note: The headings for sob-volumes (SV), storage caches (SC), data clia~ige objects (DCO) aud snappoints (SP) can be iguored here. No soch objects are associated wit11 these volumes.
T o display volume-related infon~l;~tion a specific volume. use the following connnand: for
# vxpriut [-y diskgroup] -t volume
For example, to display iufo~~nation the \;oliune. voldef. in the disk group, mydg, use the about following comnland:
# vxpiiut -g 111ydg-t voldef
.. v
EJAME
ST-ATE
LEII.GTH
RE.?DPGL
FR-EFPLEZ
l.rryF4E
-:- \ r ~ l d s f . EEI.WLED ACTI'.;'E 204913 SELECT f 3gen Note: If you euable enclosure-based naming, and use the vxprht coululaud to display the striich~re a of volume, it shows enclosi~~e-based device names (disk access names) rather than c#t#d#s# names. disk The following sectiou describes the il~eauiug the v a r i o ~ ~ s of \:ol~m~e states that may be displayed.
Volume states
The following \ ~ o l u ~ n e may be displayed by VxVM coiluuai~ds states such as vxprint:
systeul
vxtask operations
The vxtask collw~and suppoits the following operations: abort Causes the specified task to cease operation. In most cases, the operations "back out" as if an 110 enor occurred, reversiug what has been done so far to the largest extent possible. Lists tasks rimning on the syste~n one-line siummaries. The -1 option priuts tasks in UI long foimat. The -h option pints tasks hierarchically, with child taslis followiug the parent tasks. By default, all tasks ruuui~lg the system are printed. If a taskid arguinent on is supplied, the ol~tput lul~ited those tasks whose taskid or task tag match taskid. is to Tile remaining arguments are used to filter tasks and limit the taslis acti~ally listed. P ~ i n t iufonnation c o ~ ~ t i ~ ~ u o ~ ~ a l y or group of tasks as task idolmation s about s task changes. This allows you to track the progression of tasks. Specifying -1 causes a long listing to be printed. By default. short one-line listi~lgs printed. In addition to prii~ting are task i d o ~ u ~ a t iwhen a task state c l ~ a n g soutput is also generated when the task oi~ , completes. When this occms, the state of the task is printed as EXITED. task Puts a runni~lg iu the paused state, causiilg it to suspend operation. Causes a paused task to coi~tinue operation. there Changes modifiable parameters of a task. Cu~~.ently, is only one modifiable parameter, slow[=iodelay], which can be used to reduce the impact that copy operations
list
monitor