Forum Discussion

allaboutunix's avatar
10 years ago

Disk group free space calculation

Hi 

root@murray # vxdg -g RMTSTP01_ora_arch_dg free
DISK         DEVICE       TAG          OFFSET    LENGTH    FLAGS
RMLS01_ora_arch_dg01 emcpower16s2 emcpower16   140509184 85915904  >>>>>>>>>>>140509184*512/1024 = 67 GB - calculated
RMLS01_ora_arch_dg02 emcpower17s2 emcpower17   224395264 2029824   >>>>>>>   224395264 *512/1024      =107 GB calculated
RMLS01_ora_arch_dg03 emcpower18s2 emcpower18   0         226425088 -
RMLS01_ora_arch_dg04 emcpower19s2 emcpower19   0         226425088 -

 

root@murray # vxassist -g RMLS01_ora_bin_dg maxsize
Maximum volume size: 129955840 (63455Mb)

When I crosschecked with 63455/1024 = 62GB

When I calculate 

From  vxassist -g RMLS01_ora_bin_dg maxsize it shows (63455Mb) -  62GB

From  vxdg -g RMTSTP01_ora_arch_dg free it shows 67+ 107 GB

As checked by these two outputs they have the space size shows different, please let me know why and for which command I have to use to check teh free space in disk grp?

  • A couple of issues here:

    1. You are using arch_dg in vxdg free and bin_dg in vxassist maxsize
    2. You are adding up the offsets. not the lengths.

    So free space in arch_dg is:

    85915904 +2029824+226425088+226425088=540795904
    540795904/2048=264060 MB
    264060/1024 = 257GB

    Mike

     

4 Replies

  • FYI - In the latest SF versions you can use human readable formats too

    See vxdg(1M) for more info

    Below is from a 6.1 system. 

    [root@server101 ~]# vxdg -g tonydg free
    DISK         DEVICE       TAG          OFFSET    LENGTH    FLAGS
    d1           ibm_shark0_1 ibm_shark0_1 0         2027264   -
    [root@server101 ~]# vxdg -g tonydg -uM free
    DISK         DEVICE       TAG          OFFSET    LENGTH    FLAGS
    d1           ibm_shark0_1 ibm_shark0_1 0         989.87m   -
    [root@server101 ~]# vxdg -g tonydg -uG free
    DISK         DEVICE       TAG          OFFSET    LENGTH    FLAGS
    d1           ibm_shark0_1 ibm_shark0_1 0         0.96g     -

     

  • A couple of issues here:

    1. You are using arch_dg in vxdg free and bin_dg in vxassist maxsize
    2. You are adding up the offsets. not the lengths.

    So free space in arch_dg is:

    85915904 +2029824+226425088+226425088=540795904
    540795904/2048=264060 MB
    264060/1024 = 257GB

    Mike

     

  • Hi Team,

    Are you able to see the above posts.There are some red dotted lines shows in the border of the comment fields, I don't know how it came. Please help to resolve this issue.