Veritas: ID free space in a disk group

Title:

Veritas: ID free space in a disk group

Author:

Douglas O’Leary <dkoleary@olearycomputers.com>

Description:

Veritas: ID free space in a disk group

Date created:

08/2008

Date updated:

09/2009

Disclaimer:

Standard: Use the information that follows at your own risk. If you screw up a system, don’t blame it on me…

There’s a couple of ways to determine how much free space you have and/or can use in a particular disk group. To print out the entire free space, issue:

vxdg -g ${group} | grep -i '^${group}' | \
awk '{Sum += $6} END {printf ("Megs free: %.2f\n",Sum/2048)}'

That will tell you the grand total of megs free in ${group}’s disk group. That may or may not be the largest amount of space that you can use. Veritas can show you what it thinks the largest volume it can create using the layout of your choice by executing the following command:

vxassist maxsize layout=${layout}

where layout = simple | stripe | raid5

For example:

vxassist maxsize layout=simple
Maximum volume size: 376832 (184 Megs)

vxassist maxsize layout=stripe
Maximum volume size: 376832 (184 Megs)

vxassist maxsize layout=raid5
Maximum volume size: 376832 (184 Megs)