- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Is it possible to defragment logical volumes...?
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
10-13-2004 09:54 PM
10-13-2004 09:54 PM
Or at least analyse the defragmentation of each logical volume??
Thanks,
Eric
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2004 09:59 PM
10-13-2004 09:59 PM
Re: Is it possible to defragment logical volumes...?
I have no OnlineJFS installed and command
fsadm -E /home works fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2004 10:00 PM
10-13-2004 10:00 PM
Re: Is it possible to defragment logical volumes...?
/root# fsadm -F vxfs -E /app/oracle/dbappl
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2004 10:13 PM
10-13-2004 10:13 PM
Re: Is it possible to defragment logical volumes...?
I do this monthly via a crontab entry that runs this little script:
#!/bin/ksh
for i in `bdf -l |grep -v Filesystem |awk '{ print $6 }'`
do
if [ $i != "/stand" ]; then
echo "Re-Org'ing " $i
fsadm -F vxfs -d -D -e -E $i
fi
done
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2004 10:28 PM
10-13-2004 10:28 PM
Re: Is it possible to defragment logical volumes...?
hp440# fsadm -F vxfs -E /disc1
Extent Fragmentation Report
Total Average Average Total
Files File Blks # Extents Free Blks
610 7799 2 2923818
blocks used for indirects: 46
% Free blocks in extents smaller than 64 blks: 13.42
% Free blocks in extents smaller than 8 blks: 3.99
% blks allocated to extents 64 blks or larger: 99.95
Free Extents By Size
1: 12 2: 57 4: 43 8: 30
16: 3 32: 13 64: 9 128: 0
256: 1 512: 1 1024: 1 2048: 0
4096: 1 8192: 0 16384: 0 32768: 11
Has /disc1 been defragmented?
Thanks,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2004 10:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2004 10:50 PM
10-13-2004 10:50 PM
Re: Is it possible to defragment logical volumes...?
You will need OnlineJFS for the -e option.
fsadm -F vxfs -e /app/oracle/dbappl
fsadm: the -e option requires "HP OnLineJFS (Advanced Vxfs)"
---
For a Base JFS, to de-fragment, you need to perform the same steps you would
for an HFS: backup the file system and then restore it.
---
Best regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2004 10:55 PM
10-13-2004 10:55 PM
Re: Is it possible to defragment logical volumes...?
You should also note from the fragmentation report that 99.95 percent of the blocks are already allocated to extents 64 blks or larger. That says you're not very fragmented anyway!
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2004 11:05 PM
10-13-2004 11:05 PM
Re: Is it possible to defragment logical volumes...?
Here is the Production server report:
Data and control files logical volume:
hp360# fsadm -F vxfs -E /disc1
Extent Fragmentation Report
Total Average Average Total
Files File Blks # Extents Free Blks
1110 4009 1 3232013
blocks used for indirects: 30
% Free blocks in extents smaller than 64 blks: 7.16
% Free blocks in extents smaller than 8 blks: 4.38
% blks allocated to extents 64 blks or larger: 99.92
Free Extents By Size
1: 1 2: 100 4: 177 8: 46
16: 3 32: 5 64: 1 128: 0
256: 1 512: 1 1024: 0 2048: 1
4096: 0 8192: 0 16384: 1 32768: 2
APPS, RDBMS and logs logical volume:
hp360# fsadm -F vxfs -E /disc2
Extent Fragmentation Report
Total Average Average Total
Files File Blks # Extents Free Blks
248307 16 1 893314
blocks used for indirects: 23
% Free blocks in extents smaller than 64 blks: 27.11
% Free blocks in extents smaller than 8 blks: 6.68
% blks allocated to extents 64 blks or larger: 90.12
Free Extents By Size
1: 4144 2: 4989 4: 3728 8: 2265
16: 1725 32: 1346 64: 949 128: 530
256: 233 512: 123 1024: 34 2048: 5
4096: 1 8192: 2 16384: 0 32768: 0
Thanks,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2004 11:08 PM
10-13-2004 11:08 PM
Re: Is it possible to defragment logical volumes...?
There was a recent discussion on the performance benefits of defragmenting and the consensus was that, unless your disk is severely fragmented, you are unlikely to see any noticeable benefit. As I said, I defragment mine monthly simply because I can and it's one less thing to worry about!
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 12:09 AM
10-14-2004 12:09 AM