Custom Search

Monday, July 25, 2005

Volume Maintenance

Topics:
Changing the Volume Layout
Managing Volume Tasks
Analyzing Configurations with Storage Expert


Changing the Volume Layout

Online relayout: Change the colume layout or layout characteristics while the volume is online.

By using online relayout, you can change the layout of an entire volume or a specific plex. Use online relayout to change the column or plex layout to or from:
* Concatenated
* Striped
* RAID-5
* Striped mirrored
* Concatenated mirrored


Online Relayout Notes
* You can reverse online relayout at any time
* Some layout transformations can cause a slight increase or decrease in the volume length due to subdisk alignment policies. If volume length increases during relayout, VxVM resizes the file system using vxresize.
* Relayout does not change log plexes
* You cannot:
- Create a snapshot during relayout
- Change the number of mirrors during relayout
- Perform multiple relayouts at the same time
- Perform relayout on a volume with a sparse plex


Changing the Layout: VEA

Highlight a volume and select Actions -> Change Layout


Changing the Layout: CLI

# vxassist relayout
- Used for nonlayered relayout operations
- Used for changing layout characteristics, such as stripe width and number of columns

# vxassist convert
- Changes nonlayered volumes to layered volumes, and vice versa

Note: vxassist relayout cannot create a nonlayered mirrored volume in a single step. The command always creates a layered mirrored volume even if you specify a nonlayered mirrored layout. Use vxassist convert to convert the resulting layered volume into a nonlayered volume.


vxassist –g diskgroup relayout volume|plex layout=layout ncol=+|- ncol stripeunit=size

To change to a striped layout:
# vxassist –g datadg relayout datavol layout=stripe ncol=2

To add a column to striped volume datavol:
# vxassist –g datadg relayout datavol ncol=+1

To remove a column from datavol:
# vxassist –g datadg relayout datavol ncol=-1

To change stripe unit size and number of columns:
# vxassist –g datadg relayout datavol stripeunit=32k ncol=5

To change mirrored layouts to RAID-5, specify the plex to be converted (instead of the volume):
# vxassist –g datadg relayout datavol01-01 layout=raid5 stripeunit=32k ncol=3

To convert the striped mirrored volume datavol to a layered stripe-mirror layout:
# vxassist –g datadg convert datavol layout=stripe-mirror


Managing Volume Tasks: CLI

Use the vxtask command to:
- Display task information
- Pause, continue, and about tasks
- Modify the progress rate of a task


The vxrelayout command can be used to display the status of, reverse, or start a relayout operation:
# vxrelayout –g diskgroup status|reverse|start volume


What is Storage Expert?
Veritas Storage Expert (VxSE) is a CLI utility that provides volume configuration analysis.

Storage Expert:
* Analyzes configurations based on a set of “rules” or VxVM “best practices”
* Produces a report of results in ASCII format
* Provides recommendations, but does not launch any administrative operations


Running Storage Expert Rules
* VxVM and VEA must be installed
* Rules are located in /opt/VRTS/vxse/vxvm
* Syntax:
rule_name options info|list|check|run
* In the syntax:
- info
Displays rule description
- list
Displays attributes of rule
- check
Displays default values
- run
Runs the rule