- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Online JFS defrag question
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
12-11-2007 07:14 AM
12-11-2007 07:14 AM
Thnx!.
Extent Fragmentation Report
Total Average Average Total
Files File Blks # Extents Free Blks
1369376 19 1 17417055
blocks used for indirects: 1672
% Free blocks in extents smaller than 64 blks: 1.79
% Free blocks in extents smaller than 8 blks: 0.80
% blks allocated to extents 64 blks or larger: 90.96
Free Extents By Size
1: 36447 2: 19700 4: 15918
8: 6754 16: 3941 32: 1734
64: 1413 128: 1388 256: 1173
512: 708 1024: 327 2048: 268
4096: 179 8192: 97 16384: 42
32768: 51 65536: 44 131072: 21
262144: 12 524288: 3 1048576: 1
2097152: 0 4194304: 0 8388608: 0
16777216: 0 33554432: 0 67108864: 0
134217728: 0 268435456: 0 536870912: 0
1073741824: 0 2147483648: 0
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2007 07:27 AM
12-11-2007 07:27 AM
Re: Online JFS defrag question
I use a script:
#!/bin/sh
# defrag all mounted file systems
# modified to NOT include oracle filesystems
LOG=/tmp/fsadm.defrag.log
if [ -f $LOG ]
then
mv $LOG $LOG.old
fi
cat /dev/null > $LOG
for i in `mount -l | egrep -v "stand|oracle|\/v0" |awk '{print $1}'`
do
echo "defraging " $i "at "`date` >> $LOG
fsadm -F vxfs -d -D -e -E $i >> $LOG
done
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2007 07:31 AM
12-11-2007 07:31 AM
Re: Online JFS defrag question
% blks allocated to extents 64 blks or larger: 90.96
As long as that value is high you are fine.
In almost all cases, the gains you are going to get from defragging a vxfs filesystem are going to extremely difficult to measure --- much less actually perceive. Most of the times I done this, I've gained perhaps 1% in throughput or access times. The reason for this is that vxfs always tries to allocate space in large contiguous chunks (extents) and UNIX systems typically create and delete thousands of files per hour so that any defragging gains are rapidly wiped out.
This is a task I seldom bother with and for the vast majority of filesystems no defragging at all performs almost as well as daily defragging.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2007 07:43 AM
12-11-2007 07:43 AM
Re: Online JFS defrag question
I launch:
fsadm -F vxfs -Dd -Ee -s $FS
And as you say, i only launch this in one, machine where the io on the fs is really big and it fragmets at a tremedous speed, and because is a fifo fs for the aplication is important it is defragmentated, the thing I wantes to check as you say, is an easy way to check if the fs are defragmentated.
so for example in a fs i have this?
% Free blocks in extents smaller than 64 blks: 0.03
% Free blocks in extents smaller than 8 blks: 0.00
% blks allocated to extents 64 blks or larger: 0.00
does it mean, its not ok ?
THnx!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2007 08:19 AM
12-11-2007 08:19 AM
SolutionUsually, that means it is fragmented....
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2007 08:21 AM
12-11-2007 08:21 AM
Re: Online JFS defrag question
"so for example in a fs i have this?
% Free blocks in extents smaller than 64 blks: 0.03
% Free blocks in extents smaller than 8 blks: 0.00
% blks allocated to extents 64 blks or larger: 0.00
"
means there is nothing in the file system - IE - no data...
Example - I get the same on /var/adm/crash
blocks used for indirects: 0
% Free blocks in extents smaller than 64 blks: 0.00
% Free blocks in extents smaller than 8 blks: 0.00
% blks allocated to extents 64 blks or larger: 0.00
# bdf /var/adm/crash
Filesystem kbytes used avail %used Mounted on
/dev/vg01/lvol2 12582912 3686 12186134 0% /var/adm/crash
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2007 08:25 AM
12-11-2007 08:25 AM
Re: Online JFS defrag question
I would try to only reorganize directories. This may produce a gain in search times by removing all the "holes" in a directory. Even here, however, the contention in trying to lock a very busy directory may offset any gains if you defrag often.
You assume that the filesystem is the culprit. Have you actually verified this or are you applying Windows techniques/knowledge to a UNIX box?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2007 08:53 AM
12-11-2007 08:53 AM
Re: Online JFS defrag question
In this part is better to have small free extents ?
Free Extents By Size
1: 36447 2: 19700 4: 15918
8: 6754 16: 3941 32: 1734
64: 1413 128: 1388 256: 1173
512: 708 1024: 327 2048: 268
4096: 179 8192: 97 16384: 42
32768: 51 65536: 44 131072: 21
262144: 12 524288: 3 1048576: 1
2097152: 0 4194304: 0 8388608: 0
16777216: 0 33554432: 0 67108864: 0
134217728: 0 268435456: 0 536870912: 0
1073741824: 0 2147483648: 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2007 09:12 AM
12-11-2007 09:12 AM
Re: Online JFS defrag question
% blks allocated to extents 64 blks or larger: 0.56
it looks like it needs a defrag.
Extent Fragmentation Report
Total Average Average Total
Files File Blks # Extents Free Blks
4052496 4 1 58769968
blocks used for indirects: 70424
% Free blocks in extents smaller than 64 blks: 2.26
% Free blocks in extents smaller than 8 blks: 2.23
% blks allocated to extents 64 blks or larger: 0.56
We launch the defrag just once a week in a 6 hour window.
Thnx for the help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2007 09:23 AM
12-11-2007 09:23 AM
Re: Online JFS defrag question
What kind of problems? Are you sure the problems are related to the file system? Have you looked at things other than file system fragmentation while troubleshooting these problems?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2007 09:29 AM
12-11-2007 09:29 AM
Re: Online JFS defrag question
I am looking at that fs, because i know thats where the application writes.
But i just wanted to check fragmetation, to get one thing out of the way, as you say it can be a lot more things.
But when i checked the defrag stats i realised, i didn't have a clue, if it was ok or not, thats why i asked.
thnx