1838250 Members
4321 Online
110125 Solutions
New Discussion

fsadm

 
SOLVED
Go to solution
nancy rippey
Trusted Contributor

fsadm

I am trying to extend a vxfs filesystem but my command keeps erroring out. I have done this numerous times before and never had a problem.
This is an hpux 11.i server with OnLineJFS intalled. I have extended my logical volume by 4 gig. When I look at the lvsize it is correct. To extend the filesystem I am inputting
/usr/lbin/fs/vxfs/fsadm -F vxfs -b 5734400000 /software
and receiving the following message. Any help would be greatly appreciated.
vxfs fsadm: Usage:
fsadm [-F vxfs] [-V] [-b newsize] [-r rawdev] path_of_mountpoint
fsadm [-F vxfs] [-V] [-DEcde] [-vs] [-a days] [-r rawdev] [-l largesize]
[-p passes] [-t time] path_of_mountpoint
fsadm [-F vxfs] [-o largefiles|nolargefiles] path_of_mountpoint|rawdev
fsadm [-F vxfs] -c path_of_mountpoint


nrip
6 REPLIES 6
Uday_S_Ankolekar
Honored Contributor

Re: fsadm

What happens if you try..

fsadm -F vxfs -b5000M (or newsize followed by M) /mountpoint

-USA.
Good Luck..
A. Clay Stephenson
Acclaimed Contributor

Re: fsadm

If the filesystem is already mounted then the mountpoint is required. I would give it the -r rawdevice argument as well. However, I suspect that your real problems is one of two things: 1) You are missing a lost+found directory so that the .fsadm lock file cannot be written, or 2) (and most likely) the filesystem is completely full. There must be some spare root for fsadm -b to work.
If it ain't broke, I can fix that.
Sheriff Andy
Trusted Contributor

Re: fsadm

Have you tried extending thru SAM?
Steven E. Protter
Exalted Contributor

Re: fsadm

Shalom,

Silly question, but did you lvextend the logical volume before running fsadm. Its necesary to do so.

The command syntax seems okay.

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
Ivan Krastev
Honored Contributor
Solution

Re: fsadm

The fsadm use size in kb so your (5734400000) is too big for 4G.
Use 4*1024*1024 = 4194304

regards,
ivan
nancy rippey
Trusted Contributor

Re: fsadm

The problem was that my math was incorrect. I was expanding from 5 gig to 9 gig. Boy do I feel stupid. Thanks to everyone for the responses. I love this forum!
Thanks!
nrip