1834934 Members
2779 Online
110071 Solutions
New Discussion

FSADM

 
vinay_26
Advisor

FSADM

Hi,

I have HPUX 11I with Online JFS.

When trying to extend the file system it says the following error pls suggest.

# fsadm -b 3072000 /var
fsadm: /etc/default/fs is used for determining the file system type
fsadm: /dev/vg00/rlv_var is currently 2867200 sectors - size will be increased
fsadm: attempt to resize /dev/vg00/rlv_var failed with errno 16

8 REPLIES 8
Slawomir Gora
Honored Contributor

Re: FSADM

Hi,
in first step you need to extend lv by lvextend command:

lvextend -L size_in_MB /dev/vg00/lv_var
extendfs -F vxfs -b $((1024*size_in_MB)) /var
vinay_26
Advisor

Re: FSADM

I have already done a Lvextend.

After that i tried to run fsadm.
Denver Osborn
Honored Contributor

Re: FSADM

Try to free up some space in /var before you run fsadm to extend. If the filesystem is near 100% full, fsadm will have a hard time extending it. You can also try to free up a small amount of space then extend it in smaller increments... once enough free space is there, run fsadm and extend to same size as lvol size.

hope this helps,
-denver

vinay_26
Advisor

Re: FSADM

filesystem is 30% free
Geoff Wild
Honored Contributor

Re: FSADM

Please post a vgdisplay -v vg00

More then likely, you are trying to increase larger then the lvol size..

Command sshould have been something like:

lvextend -L 3072 /dev/vg00/lv_var
fsadm -b 3072M /var

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Denver Osborn
Honored Contributor

Re: FSADM

can you post the latest failing fsadm command syntax and output from "bdf /var"

-denver
James R. Ferguson
Acclaimed Contributor

Re: FSADM

Hi:

Error 16 is EBUSY.

The Knowledge Base suggests that patch PHKL_33258 might result this issue. Since this patch requires a reboot, however, you might just as easily get around the problem by unmounting your filesystem and extending in in that state.

Regards!

...JRF...
Chan 007
Honored Contributor

Re: FSADM

Vinay,

I think your /var file system needs to fsck'd. Or the Fs i busy doing some work.

Cheers ....007