February 11, 2009

How check free space on Veritas diskgroup

Posted in Veritas at 11:52 am by alessiodini

In a VxVM environment a diskgroup is a “container” that has different entities ( subdisk , plex , volume ).
When a dg is created an entire disk is referred for this operation.
So , when the free space must be checked , this operation requires a dg control.

method 1:

root@system10/> vxdg -g rootdg free
DISK DEVICE TAG OFFSET LENGTH FLAGS
disk01 c1t1d0s2 c1t1d0 63968238 7156053 –
rootdisk_2 c1t0d0s2 c1t0d0 63968237 7156053 –

Length * 512 / 1024 = KB /1024 = MB /1024 = GB (available space in disk)

method 2:

root@system10/> vxassist -g rootdg maxsize
Maximum volume size: 14311424 (6988Mb)

The second method shows directly free space in Mb

Advertisements

6 Comments »

  1. vinnu said,

    Hi, your explanation doesnt say how to calculate the free spce from
    ” vxdg -g rootdg free” command. Thanks

    • alessiodini said,

      u right , but i spoke about what i tipically do , nothing more ๐Ÿ™‚

  2. Velup said,

    to calculate free space from method 1 use Length value. (here 7156053 in the value in both line)
    Lenth*512/(1024*1024) = value in MB
    7156053*512/(1024*1024)= 3494 Mb ( since both line length value are same) = 3494+3494 =6988MB

    • alessiodini said,

      thank you :))

  3. sudheer said,

    hi
    Giving the two commands caliculation,i hope below procedure will give free space of diskgroup.

    vxassist -g dg01 maxsize

    Maximum volume size: 165285888 (80706Mb)

    #vxdg -g dg01 free
    DISK DEVICE TAG OFFSET LENGTH FLAGS
    oraEU2dg0108 san_vc1_31 san_vc1_31 0 105459840 –
    oraEU2dg0108 san_vc1_31 san_vc1_31 202090080 7549840 –
    oraEU2dg0117 san_vc1_22 san_vc1_22 104857600 23531040 –
    oraEU2dg0117 san_vc1_22 san_vc1_22 191303200 18336720 –
    oraEU2dg0127 san_vc1_41 san_vc1_41 104857600 602240 –
    oraEU2dg0127 san_vc1_41 san_vc1_41 199831680 9808240 –

    #bc
    105459840+7549840+23531040+18336720+602240+9808240
    165287920

    165287920/2
    82643960

    82643960/1024

    80706Mb

    • alessiodini said,

      Yes good job! ๐Ÿ™‚


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: