No subject


Thu Apr 19 13:57:37 EDT 2007


<carlos_sevillano at ureach.com>  Add to
address book 
To sunmanagers at sunmanagers.org
Subject Veritas Resize Command Line in
blocks       

 Solaris 8
 VxVM 3.04
 VxFS 3.3.3

 Using command-line to resize a
 file-system...  Is there an "easy" way to
 determine the blocks size of the
 file-system?   Is there a way to tell
 veritas to grow a file-system to the space
 left on the volume?

 Currently what I do is to covert the new
 size I want in MB to blocks ei:

 Grow by 3072m (grow volume first then
 file-system):

 /usr/sbin/vxassist -g rootdg growby DUMP
 3072m 
 /usr/lib/fs/vxfs/fsadm -b 16734208 -r
 /dev/vx/rdsk/rootdg/DUMP /DUMP 

 3072 * 1024 * 2  = 6291456 (3072m in
blocks)

 to figure out the -b value (blocks) value
of
 the fsadm command I take the 6th field of
 the
 vxprint command and add those up:

 # vxprint -Ath | grep DUMP
 v  DUMP         fsgen        ENABLED 
 ACTIVE   10442752 SELECT    -
 pl DUMP-01      DUMP         ENABLED 
 ACTIVE   10443992 CONCAT    -        RW
 sd disk02-03    DUMP-01      disk02  
 8396784  4198392  0         c0t3d0   ENA
 sd disk01-07    DUMP-01      disk01  
 34915920 442928   4198392   c0t2d0   ENA
 sd disk02-07    DUMP-01      disk02  
 20549032 2530344  4641320   c0t3d0   ENA
 sd disk02-08    DUMP-01      disk02  
 31579824 1738728  7171664   c0t3d0   ENA
 sd disk04-13    DUMP-01      disk04  
 1609920  1533600  8910392   c2t0d65  ENA

 bc -l
 4198392 + 442928 + 2530344 + 1738728 +
 1533600 = 10443992 (in blocks)

 Then I add the old size in blocks to the
new
 size to get the -b value for the fsadm
 command:

 10443992 + 6291456 = 16735448 (blocks -b
for
 fsadm).

 /usr/lib/fs/vxfs/fsadm -b 16734208 -r
 /dev/vx/rdsk/rootdg/DUMP /DUMP


 Am I making mistakes?  Do I end-up with
gaps
 of un-used disk-space on my volume?.... is
 there any easy way of doing this without
 using the vmsa or vxva GUIs??

 Carlos

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




More information about the summaries mailing list