Question about blocks (((bsize * size) / 1024) * 2)

From: Carlos Sevillano (carlos_sevillano@ureach.com)
Date: Fri Mar 28 2003 - 16:47:50 EST


Solaris 2.6
Volume Manager 3.0.4
VxFS 3.3.2

I am getting this error on trying two grow a
file-system:

vxvm:vxresize: ERROR: Cannot determine file
system current size for volume dump

normally this happens when I am missing
patches and have a discrepancy between my
file-system size and my volume.

My question is about the math to calculate
the size of volume and file-system in
blocks:

If I use vxprint -Ath for the volume and
get the size... I get a size in blocks for
the volume:

#vxprint -Ath | grep ora8i01
v ora8i01 fsgen ENABLED
ACTIVE 104960000 SELECT -

My volume size in blocks is 104960000.

To calculate the FileSystem size in blocks I
do this:

#fstyp -v /dev/vx/dsk/oradg/ora8i01
bsize 1024 size 52480000 (then multiple
bsize by size and dive by 1024)

#bc -l
(52480000 * 1024) / 1024
52480000.00000000000000000000
dump filesystem size in blocks is 52480000 (
* 2 = 104960000)
dump volume in blocks is 104960000

Only if I do (((bsize * size) / 1024) * 2)
do I get the same size as the volume in
vxprint? Why do I have multiply by 2 or
what is wrong with my math?

Carlos

________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:05 EDT