Operating System - HP-UX
1761964 Members
2751 Online
108906 Solutions
New Discussion юеВ

Cannot extend my /var filesystem.

 
JackieB
Advisor

Cannot extend my /var filesystem.

I ran lvextend on the /var file system to increase it from 8G to 20G:

lvextend -L 20000 /dev/vg00/lvol8.

Then I went to the console and booted the machine into single user mode to extend the FS
(hpux -is).

Then I tried to extend the file system

extendfs -F vxfs /dev/vg00/lvol8

but it gave me the error

extendfs: /dev/vg00/rlvol8 "cannot stat"

Does anyone know what this is all about?
This is HPUX 11.31 and all filesystems are vxfs.

Thanks for any help.

j
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: Cannot extend my /var filesystem.

Use the raw device:

extendfs -F vxfs /dev/vg00/rlvol8


Pete

Pete
JackieB
Advisor

Re: Cannot extend my /var filesystem.

Pete,

I was using the raw device but it still gave me the "cannot stat" error.

Figured it out though. I ran:

vgchange -a y /dev/vg00
and then
extendfs -F vxfs /dev/vg00/rlvol8 and it worked.

J.
Pete Randall
Outstanding Contributor

Re: Cannot extend my /var filesystem.

Sorry, I wasn't sure. You said "extendfs -F vxfs /dev/vg00/lvol8" and then reported the error message as "extendfs: /dev/vg00/rlvol8 "cannot stat"" so it was a bit hard to tell.

Glad you figured it out.


Pete

Pete
Ivan Krastev
Honored Contributor

Re: Cannot extend my /var filesystem.

Could you post lvdisplay output?

Maybe you should use:
#lvextend -L 20000M ...

regards,
ivan
Emil Velez
Honored Contributor

Re: Cannot extend my /var filesystem.

See if the volume group is active. The error message seems to make me suspect that.. Do a vgdisplay -v of vg00.

Do you have online JFS. Try using fsadm if you have online jfs.

Johnson Punniyalingam
Honored Contributor

Re: Cannot extend my /var filesystem.

Hi,

>>extendfs -F vxfs /dev/vg00/lvol8
<<
>>extendfs: /dev/vg00/rlvol8 "cannot stat"<<


You should always point the raw logical-volumes if you are using "extendfs" command

please do man extendfs "example"

EXAMPLES
To increase the capacity of a filesystem created on a logical volume,
enter:

#umount /dev/vg00/lvol1

#lvextend -L larger_size /dev/vg00/lvol1

# extendfs /dev/vg00/rlvol1

Thanks,
Johnson
Problems are common to all, but attitude makes the difference