fsadm -b command to resize a VXFS filesystem hangs

Problem

fsadm -b command to resize a VXFS filesystem hangs

Solution

Background

As a result of running vxassist + fsadm or vxresize to grow a volume and vxfs filesystem, the vxassist commands to grow the volume succeeded successfully but fsadm command to grow the filesystem fails and will appear to hang.

Solution:

To verify the capture the threadlist

For Solaris 10 we have:

# echo '::threadlist -v' | mdb -k  > /var/tmp/threadlist

# cat /var/tmp/threadlist  and search for fsadm command
....
 

 
000003001aa7cea0    6009a625140      60091692920   1  593001aa7d046
 
PC: cv_wait+0x38  CMD: /usr/lib/fs/vxfs/fsadm -b <size>  </mountpoint>
 
stack pointer for thread 3001aa7cea0: 2a103b78601
 
  [ 000002a103b78601 cv_wait+0x38() ]
 
   delay+0x90()
 
   vx_freeze_block_threads_all+0x1e8()
 
   vx_freeze_all+0x10()
 
   vx_freeze+0x68()
 
   vx_resize+0x278()
 
   vx_aioctl_full+0x180()
 
   vx_aioctl_common+0x77c()
 
   vx_aioctl+0x13c()
 
   vx_ioctl+0xe4()
 
   fop_ioctl+0x20()
 
   ioctl+0x184()
 
  syscall_trap32+0xcc()

 
...process in stuck in kernel and it need a reboot
 

Once verified , reboot the system
 
#  reboot
 

 
Run full fsck to remove the vxresize aborted flag and mount
 
#  fsck -F vxfs  -o full  /dev/vx/rdsk/<dgname>/<volname>
 
#  mount  -F vxfs /dev/vx/dsk/<dgname>/<volname>  /<mountpoint>
 

 
Check fragmentation status
 
# fsadm -ED </mountpoint>
 
Defrag the file system using, we may have to repeat step 2 for more than one time to achieve required defrag level -
 
# fsadm -F vxfs -ed -s -t 1800 </mountpoint>
 
Verify the defrag status
 
# fsadm -ED </mountpoint>
 

 
Download and the apply the patch to a resolve this issue:
 
The Veritas File System 5.0 MP3 RP2a for Solaris can be downloaded from the Patch Central Web Site as per URL:
http://seer.entsupport.symantec.com/docs/328233.htm

For Solaris 10 apply : Patch-ID# 123202-05
Keywords: VxFS 5.0 VERITAS File System Maintenance Patch 03
 
Synopsis: VRTSvxfs 5.0MP3RP2: Maintenance Patch for File System 5.0-Sun5.10
 

 
Finally resize the file system
 
# /usr/lib/vxvm/bin/vxresize -F vxfs -g <dgname> <volume name> <new size>
 
or
 
# /usr/lib/fs/vxfs/fsadm -F vxfs  -b <new size> </mountpoint>
 

Terms of use for this information are found in Legal Notices.

Search

Survey

Did this article answer your question or resolve your issue?

No
Yes

Did this article save you the trouble of contacting technical support?

No
Yes

How can we make this article more helpful?

Email Address (Optional)