- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Oneline JFS defragmentation
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2001 11:26 PM
03-15-2001 11:26 PM
I'm using the following command line:
fsadm -F vxfs -p 20 -v -s -de /filesystem
Do I have wrong expectations?
Thanks in advance for any hints.
Felix
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2001 02:43 AM
03-16-2001 02:43 AM
Re: Oneline JFS defragmentation
case. There are not many free blocks in small
extents.
% Free blocks in extents smaller than 64 blks: 1.95
% Free blocks in extents smaller than 8 blks: 0.35
% blks allocated to extents 64 blks or larger: 86.01
What was it like before.
What is your file system like.. lots of small
text files, lots of big binaries? What kind
of fragmentation do you expect?
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2001 04:02 AM
03-16-2001 04:02 AM
Re: Oneline JFS defragmentation
Maybe I'm miss-interpreting the difference, but it seems to me that I have much less contigous space on the previous report?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2001 04:36 AM
03-16-2001 04:36 AM
Re: Oneline JFS defragmentation
I guess you can't expect miracles and
get it to be identical!
How often do you run the defragmentation?
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2001 05:25 AM
03-16-2001 05:25 AM
Solutionhttp://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B3929-90011/B3929-90011_top.html&con=/hpux/onlinedocs/B3929-90011/00/00/18-con.html&toc=/hpux/onlinedocs/B3929-90011/00/00/18-toc.html&searchterms=fsadm&queryid=20010316-052424
Monitoring Fragmentation
Fragmentation reduces performance and availability. Regular use of fsadm's fragmentation reporting and reorganization facilities is therefore advisable.
The easiest way to ensure that fragmentation does not become a problem is to schedule regular defragmentation runs from cron.
Defragmentation scheduling should range from weekly (for frequently used file systems) to monthly (for infrequently used file systems). Extent fragmentation should be monitored with fsadm_vxfs(1M) or the -o s options of df_vxfs(1M). There are three factors which can be used to determine the degree of fragmentation:
percentage of free space in extents of less than eight blocks in length
percentage of free space in extents of less than 64 blocks in length
percentage of free space in extents of length 64 blocks or greater
An unfragmented file system will have the following characteristics:
less than 1 percent of free space in extents of less than eight blocks in length
less than 5 percent of free space in extents of less than 64 blocks in length
more than 5 percent of the total file system size available as free extents in lengths of 64 or more blocks
A badly fragmented file system will have one or more of the following characteristics:
greater than 5 percent of free space in extents of less than 8 blocks in length
more than 50 percent of free space in extents of less than 64 blocks in length
less than 5 percent of the total file system size available as free extents in lengths of 64 or more blocks
The optimal period for scheduling of extent reorganization runs can be determined by choosing a reasonable interval, scheduling fsadm runs at the initial interval, and running the extent fragmentation report feature of fsadm before and after the reorganization.
The "before" result is the degree of fragmentation prior to the reorganization. If the degree of fragmentation is approaching the figures for bad fragmentation, then the interval between fsadm runs should be reduced. If the degree of fragmentation is low, the interval between fsadm runs can be increased.
The "after" result is an indication of how well the reorganizer is performing. The degree of fragmentation should be close to the characteristics of an unfragmented file system. The file system may be a candidate for expansion. (Full file systems tend to fragment and are difficult to defragment.) It is also possible that the reorganization is not being performed at a time during which the file system in question is relatively idle.
Directory reorganization is not nearly as critical as extent reorganization, but regular directory reorganization will improve performance. It is advisable to schedule directory reorganization for file systems when the extent reorganization is scheduled. The following is a sample script that is run periodically at 3:00 A.M. from cron for a number of file systems:
outfile=/tmp/fsadm_out.&212#;/bin/date +'%m%d'&212#;
for i in /home /home2 /project /db
do
/bin/echo "Reorganizing $i"
/bin/timex fsadm -F vxfs -e -E -s $i
/bin/timex fsadm -F vxfs -s -d -D $i
done > $outfile 2>&1
--------------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2001 06:01 AM
03-16-2001 06:01 AM
Re: Oneline JFS defragmentation
I have some more questions regarding defragmentation experiences.
Would you make it running on all file systems? And is there any risk of data?
Felix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2001 06:25 AM
03-16-2001 06:25 AM
Re: Oneline JFS defragmentation
that are under heavy usage.. and where defragmentation will actually result in a significant performance improvement.
I have heard of some troubles such as
entire directory trees vanishing after a defrag, but the problem was related to a bad CPU rather than OnlinJFS.
If you go to the search here in the ITRC and search for JFS patches you can find out if there is any critically important patches to install OnlineJFS related by looking at your current version and seeing in the patch release notes what bugs have been fixed.
I suggest doing a backup before defragging
just in case...
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2001 02:44 AM
03-19-2001 02:44 AM
Re: Oneline JFS defragmentation
fsadm -F vxfs -b 700000 /swcom >> t.t
fsadm: cannot shrink /dev/vg00/rswcom - upgraded fs - inodes are currently in use.
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 204800 89465 108172 45% /
/dev/vg00/lvol1 99669 27622 62080 31% /stand
/dev/vg00/lvol7 770048 569710 188905 75% /var
/dev/vg00/lvol6 614400 486277 120136 80% /usr
/dev/vg00/lvol5 614400 2042 574860 0% /tmp
/dev/vg00/lvol4 1536000 410959 1055979 28% /opt
/dev/vg00/lvol8 102400 1610 94492 2% /home
/dev/vg00/swcom 8000000 3450978 4274419 45% /swcom
I would expect that the free space is being contigous, so that the partition could reduced?
Felix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2001 04:12 AM
03-19-2001 04:12 AM
Re: Oneline JFS defragmentation
just note also that the units are different
between an lvdisplay and the bdf output.
You need to divide/multiply by 512.
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2001 04:29 AM
03-19-2001 04:29 AM
Re: Oneline JFS defragmentation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2001 06:43 AM
06-13-2001 06:43 AM
Re: Oneline JFS defragmentation
Are there any 3rd party utilities that can do defrag on an HFS file system, whether live or offline?