1825706 Members
3370 Online
109686 Solutions
New Discussion

Re: fsadm options..

 
SOLVED
Go to solution
James Hamilton_6
Occasional Advisor

fsadm options..

Hi,

I am trying to implement some advise I received in another thread.

I am trying to use fsadm to defrag and change the number of blocks in the filesystem:

fsadm -e /dev/vg02/lv11
fsadm -b 18432M /dev/vg02/lv11

I am getting an error that these are not recognised options.

They are not in man fstab, but there is an option -o for a comma separated list of 'special options'. I am running 10.20.

How to I do the -e and -b?

Thanks,
James.
11 REPLIES 11
Hazem Mahmoud_3
Respected Contributor

Re: fsadm options..

If you want to increase the size of the filesystem, the command is:

fsadm -b

ie:
fsadm -b 102400 /home

Hope that helps!

-Hazem
RAC_1
Honored Contributor

Re: fsadm options..

Check the man page for fsadm_vxfs.

The option -e re-organizes the extents. -b options is to reduce the filesystem online. You need to have online JFS installed for this.

Anil
There is no substitute to HARDWORK
Mark Grant
Honored Contributor

Re: fsadm options..

Hey James, I think you are going to have to forget reducing this filesystem and go for the re-create option instead.
Never preceed any demonstration with anything more predictive than "watch this"
Steven E. Protter
Exalted Contributor

Re: fsadm options..

Id back up blow away and recreate.

Two words why you should not try it while the fs is live.

Bleeding Edge.

Explanation available upon request. :-)

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
James Hamilton_6
Occasional Advisor

Re: fsadm options..

Ok - I'm gonna forget fsadm.

Cheers.
SS_6
Valued Contributor

Re: fsadm options..

#fsadm -F vxfs -E /mountpoint
"E" reports extent fragmentation

#fsadm -F vxfs -D /mountpoint
"D" reports directory fragmentation

#fsadm -F vxfs -DE /mountpoint
"ED"reports extent & directory fragmentation

#fsadm -F vxfs -DEde /mountpoint
Will show as well as do extend & directory defragmentation.
You can compare both output and see teh difference.
By providing solutions I am helping myself
Hazem Mahmoud_3
Respected Contributor

Re: fsadm options..

In that case, tar up all the contents of the file system and move to a secure location. Remove the logical volume, then recreate it (and the file system) and move all the contents back and untar them.

-Hazem
Elena Leontieva
Esteemed Contributor

Re: fsadm options..

James,

Having OnlineJFS I never had an issue reorganizing directories and extents although I am not sure how much performance will you gain:

fsadm -D -d /mount_point
fsadm -E -e /mount_pont

Also, from my experience it is safe to expand the FS:

lvextend -L N(Mb) /dev/vgxx/lvolx
fsadm -F fstype -b Nm (Mb) /mount_point

To reduce a FS, you use the same fsadm -b command, and then you have to reduce a logical volume. I never did this, but I've heard that you could end up with the corrupt FS.

Elena.
Sanjay_6
Honored Contributor

Re: fsadm options..

Hi James,

We hope you have onlineJFS installed on the system before you do this.

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062921855

Hope this helps.

Regds
Bill Hassell
Honored Contributor
Solution

Re: fsadm options..

The options available to fsadm are directly related to the option (extra cost) product Online/Advanced JFS. Without Online JFS, fsadm will not have features to allow changing filesystem sizes on mounted filesystems and the mount command (and /etc/fstab) will not have options such as convosync and mincache. For 10.20, do NOT attempt to reduce a filesystem even if you have Online JFS and the latest (ie, Dec 2001) patches--you'll almost always trash the entire filesystem. Just back it up, unmount it, recreate the new lvol and reload the files.


Bill Hassell, sysadmin
James Hamilton_6
Occasional Advisor

Re: fsadm options..

phew- I'm glad it didn't work now!

thanks for your input.

James.