How To Recover from "cannot statvfs" when running Solaris "df -k" command

book

Article ID: 100002625

calendar_today

Updated On:

Description

Error Message

From output of "df -k" the following lines is observed;

cannot statvfs /ora01: I/O error

Cause

The following messages in /var/adm/messages show the offlining of hardware

Aug 6 01:13:42 hseau108 scsi: [ID 107833 kern.warning] WARNING: /pci@6,4000/fibre-channel@3/sd@1,0 (sd77):

Aug 6 01:13:42 hseau108 offline As a result you will see that the Veritas File Systems will be disabled:

Aug 5 23:59:43 hseau108 vxfs: [ID 702911 kern.warning] WARNING: msgcnt 14 mesg 037: V-2-37: vx_metaioerr - vx_ilock - /dev/vx/dsk/oracledg/oravol01 file system meta data write error in dev/block 0/4528

Aug 5 23:59:43 hseau108 vxfs: [ID 702911 kern.warning] WARNING: msgcnt 15 mesg 031: V-2-31: vx_disable - /dev/vx/dsk/oracledg/oravol01 file system disabled

 

Resolution

Force unmount the file system reporting the problem:

Example:

# umount -f  /ora01

Alternatively, for a  vxfs file system

# umount -o force  /ora01

Note : Some earlier versions of Operating Systems will not support the "force" option and a reboot will be required.

 

 

Issue/Introduction

"df -k" command generates "cannot statvfs" when running Solaris