VxFS File system mounted in read only mode cannot be resized using vxresize
book
Article ID: 100023206
calendar_today
Updated On:
Description
Error Message
UX:vxfs fsadm: ERROR: V-3-20305: cannot open /vol1/lost+found/.fsadm - errno 30
Resolution
#vxprint -g datadg -htdatavol
V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFFAM/NM MODE
SC NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE
DC NAME PARENTVOL LOGVOL
SP NAME SNAPVOL DCO
EX NAME ASSOC VC PERMS MODE STATE
SRNAME KSTATE
v datavol - ENABLED ACTIVE 2097152 SELECT datavol-01 fsgen
pldatavol-01 datavol ENABLED ACTIVE 2097152 STRIPE 2/128 RW
sddatadg02-04 datavol-01 datadg020 1048576 0/0 hds9500-alua0_002a ENA
sd datadg01-03 datavol-01 datadg010 1048576 1/0 hds9500-alua0_0026 ENA
#df -k |grep/vol1
/dev/vx/dsk/datadg/datavol
1048576 17749 966401 2% /vol1
vxresize would fail with the following error:
#vxresize -g datadg -bx datavol +1g
#UX:vxfs fsadm: ERROR:V-3-20305: cannot open /vol1/lost+found/.fsadm - errno 30
VxVM vxresize ERROR V-5-1-7514 Problem running fsadm command for volume datavol, in diskgroup datadg
"errno 30" means the file system is read-only.
#cd/usr/include/sys
#grep 30 errno.h
#define EROFS 30 /* Read only filesystem */
Trying to touch a file would fail with "cannot create" which confirms the file system is mounted as read-only.
The solution is to run vxresize after remounting the file system as read-write.
#mount -F vxfs -o remount,rw/dev/vx/dsk/datadg/datavol /vol1
#vxresize -bx datavol +1g
Verify the file system size is increased.
#df -k |grep/vol1
/dev/vx/dsk/datadg/datavol 2097152 180061949207 1% /vol1
Issue/Introduction
VxFS File system mounted in read-only mode cannot be resized using vxresize
Was this article helpful?
thumb_up
Yes
thumb_down
No