1752579 Members
3076 Online
108788 Solutions
New Discussion юеВ

Re: FSADM blocking

 
JOURDAINNE
Occasional Contributor

FSADM blocking

Hello,

I try to extend a FS with fsadm.

Extension of the lvolXX (5800 LE --> 5928 LE)
#lvextend -l 5928 /dev/vgXX/lvXX PVG2a PVG2b
#vgdisplay -v /dev/vgsap --> ok

Extension of the File System on line (48562176 = 5928 x 8192)
# fsadm -b 48562176 /oracle/P01/sapdata2
fsadm: /etc/default/fs is used for determining the file system type
vxfs fsadm: /dev/vgsap/rlvdata2 is currently 47513600 sectors - size will be increased
.....

Blocking. I have the impression that the extension is not done.

#ps -ef |grep fsadm
root 16958 16956 0 14:24:46 pts/tc 0:00 fsadm -b48562176 /oracle/P01/sapdata2
root 16956 14523 0 14:24:46 pts/tc 0:00 fsadm -b 48562176 /oracle/P01/sapdata2

If I kill the process 16956, I obtain
root 16958 1 0 14:24:46 pts/tc 0:00 fsadm -b48562176 /oracle/P01/sapdata2

Impossible to stop it.
Thanks.
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: FSADM blocking

Shalom,

When it completes check the error code.

echo $?

If its zero, its good, otherwise it failed.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
JOURDAINNE
Occasional Contributor

Re: FSADM blocking

Thank you
It is never finished. I killed the process.
Victor BERRIDGE
Honored Contributor

Re: FSADM blocking

Hi,

Just thoughts...
How full is the files system currently?
Too full it will not succeed...


All the best
Victor
JOURDAINNE
Occasional Contributor

Re: FSADM blocking

Hum... :(
/dev/vgsap/lvdata2 47513600 46946872 562360 99% /oracle/P01/sapdata2

Jeff Schussele
Honored Contributor

Re: FSADM blocking

Hi Jourdainne,

You must also have a valid lost+found directory in that filesystem to run fsadm commands.
If it's not there are was improperly recreated then add or delete & readd it using the mklost+found command.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Victor BERRIDGE
Honored Contributor

Re: FSADM blocking

As Jeff said, a vaild lost+found is required and here is an extract of man:
Increasing the size of a file system requires that the file system
contain enough free space, prior to the expansion, for the growth of
the structural files. In the case where a file system has no free
blocks available, the attempt to increase the size of the file system
will fail (see extendfs(1M) for an alternate method to increase file
system size).

......

I would try to defragment and reorganize first:
fsadm -F vxfs -D -d -E -e -s /
If this cant be done (errors) then you definitely are too full


All the best
Victor