Operating System - HP-UX
1825782 Members
2150 Online
109687 Solutions
New Discussion

Reducing OnlineJFS File System

 
SOLVED
Go to solution

Reducing OnlineJFS File System

I added a third disk to a file system with only one lvol (lvol1). However, I needed to reserve some space for additional lvols in the same vg. I have found the information regarding fsadm to reduce the lvol but I do not understand the options. Ex: fsadm -F vxfs -d -D -e -E /mountdirectory. I understand -F but not the others. I
looked fsadm up in man pages but these options are not listed. Can someone please explain to me how to reduce the lvol on the 3rd disk?
I am on a N4000, HPUX 11.0.
Thank you.
7 REPLIES 7
Rita C Workman
Honored Contributor
Solution

Re: Reducing OnlineJFS File System

Here you are:
fsadm -D Report on directory fragmentation
fsadm -d Reorganize directories to reduce fragmenting
fsadm -E Report on extent fragmentation within f/s
fsadm -e Reorganize (defrag) a f/s extents to reduce
fragmenting.

fsadm -b Resize (in blocks of size 1024) a file system

Hope that helps,
/rcw
Vincenzo Restuccia
Honored Contributor

Re: Reducing OnlineJFS File System

lvextend -L 500 /dev/vgxx/lvoly
fsadm -F vxfs -b yyyyy /mount_point
Steven Russo
New Member

Re: Reducing OnlineJFS File System

fsadm is not used to reduce lv's out of a volume group. To get more info on the additional option you posted view the man pages for fsadm_vxfs.

To reduce lv's out of a volume group you would use lvreduce.

Ex: lvreduce /dev/vg00/lvol9

To reduce an lv from a specific disk in a vg:

lvreduce /dev/vg00/lvol9 /dev/dsk/c?t?d?

Hope this helps
Steve
Steffi Jones_1
Esteemed Contributor

Re: Reducing OnlineJFS File System

Hello,

proper steps to reduce when using online jfs:

1) lvreduce ... (see man lvreduce)
2) fsadm ... (see man fsadm_vxfs)

The big advantage of online jfs is that you can run the commands on a mounted filesystem.

Steffi Jones
Vincenzo Restuccia
Honored Contributor

Re: Reducing OnlineJFS File System

fsadm is a extendfs without umount,for the reduction backup the filesystem you can see lvreduce.
Stephen Bouzan
Frequent Advisor

Re: Reducing OnlineJFS File System

Yes use lvreduce but you then run run fsadm to resize the file system:

#fsadm -F vxfs -b 1000M /mountpoint

this resizes to 1 gigabytes.

note: most documentation says the -b parameter uses blocks. So 1000 * 1024 = 1024000
or -b 1024000

instead you can specify in megabytes directly:
-b 1000M (Ihave never seen this documented, but it works)

You do need OnlineJFS in order to use fsadm.

Get the Disk & File Management Task on HP-UX by Tom Madell (ISBN 0-13-518861-X)

Good Luck
False sense of well being.
Wodisch
Honored Contributor

Re: Reducing OnlineJFS File System

Hello Rebecca,
be careful, because it migth happen that "fsadm" is NOT
able to move all used blocks to the beginning of the LV.
Usually some i-nodes are left where they were, and then
"fsadm" will complain about not being able to reduce!
Even multiple "passed" with "-E -e -D -d" will not help...
HTH,
Wodisch