Operating System - HP-UX
1834689 Members
2450 Online
110069 Solutions
New Discussion

fsadm resize fails with errno 16

 
SOLVED
Go to solution

fsadm resize fails with errno 16

I am trying to reduce a logical volume from 22gb to 8gb using fsadm. The server is an HP9000,N class with 11.0 OS. I have online JFS
( B3929BA B.11.00 HP OnLineJFS (Advanced VxFS) but it is failing with the following error msg:
mbhpu08::rbhounsc[124] > sudo fsadm -b 8000M /u03
fsadm: /etc/default/fs is used for determining the file system type
fsadm: /dev/vg05/rlvol1 is currently 29696000 sectors - size will be reduced
fsadm: attempt to resize /dev/vg05/rlvol1 failed with errno 16
Can someone please tell me what my problem could be? I have looked in the knowledgebase but find only "extending" failing on 10.20.

Thank you,
Rebecc
10 REPLIES 10
Tom Geudens
Honored Contributor

Re: fsadm resize fails with errno 16

Hi Rebecca,
I haven't looked at the actual error yet, but did you do a defrag of the filesystem first ? Options -E -e -D -d of the fsadm command.

Regards,
Tom
A life ? Cool ! Where can I download one of those from ?
T G Manikandan
Honored Contributor

Re: fsadm resize fails with errno 16

errno 16 is

#define EBUSY 16 /* Mount device busy

The volume you are trying to reduce might be still used by some processes.

check using fuser to find whether the volume is still used.

THanks
Sanjay_6
Honored Contributor

Re: fsadm resize fails with errno 16

Hi Rebecca,

Instead of trying to reduce the size of the lv, take a backup of the filesystem, unmount and remove the lv and recreate the lv with the desired size, do a newfs, mount it and then restore the data.

Hope this helps.

regds
Pete Randall
Outstanding Contributor
Solution

Re: fsadm resize fails with errno 16

Sanjay,

What's the point of having Online JFS if you're going to do it the old fashioned way, anyway?

Pete

Pete
T G Manikandan
Honored Contributor

Re: fsadm resize fails with errno 16

Try umounting the file system.
do a fsck on the file system
Again try using fsadm.

Thanks

Re: fsadm resize fails with errno 16

Yes, I did the fsadm -d /u03 first. I failed to state in the original message that this is on an autoraid. Would the raid have anything to do with my problem?

Rebecca
Dietmar Konermann
Honored Contributor

Re: fsadm resize fails with errno 16

Hi, Rebecca!

Maybe you are hitting the VxFS design limitation described in KBRC00006692.

In this case you need to the job the old fashioned way.

The shrinking algorithms were changed by Veritas for VxFS 3.3, so installing this on your 11.00 system and upgrading to lfs ayout 4 would be a long-term solution.

Regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Sanjay_6
Honored Contributor

Re: fsadm resize fails with errno 16

S.K. Chan
Honored Contributor

Re: fsadm resize fails with errno 16

This has nothing to do with the autoraid. I have never used OnlineJFS to reduce a FS simply because I've experience a few failure. It works well if you want to increase the FS on-the-fly but not so for FS reduction. So sometimes the old fashion way works best (in your case).
Uday_S_Ankolekar
Honored Contributor

Re: fsadm resize fails with errno 16

Hello Rebecca,

This error is because the file system you want to increase is busy with some process. Is it possible for you to unmount the file system and mount it back then try fsadm??

-USA..
Good Luck..